HEX Codes for Flash HTML text

Read full article | 2 Comments

I recently noticed that sometimes flash gets a little crazy when trying to display certain characters, e.g. ampersand or percent sign. Here is link to a table with a bunch of ASCII and HTML char codes. In flash you will need to use %HEX to replace the chars in flash. For example use %26 to [...]

More SSH/Command Line MySQL commands

Read full article | 12 Comments

I noticed that my previous post with basic MySQL SSH commands was relatively popular and I’ve been meaning to save some of the recent ones I’ve been using before I forget them, so…
show full processlist;
This shows all the processes (queries) running on the server at the moment you run it. Helpful if the server is [...]

Detect when Flash Video Reaches End of Playback (AS3)

Read full article | 3 Comments

Need to execute some action when your FLV reaches the end? Pretty simple:
import fl.video.VideoEvent;
wihsvid.addEventListener(VideoEvent.COMPLETE, RestartVid);
function RestartVid(evt:VideoEvent):void{
this.gotoAndStop(1);
}
//you need to import the VideoEvent (no idea why??)
import fl.video.VideoEvent;
//Add an EventListener – replace ‘myvideo’ with your video instance name and ‘VideoEndAction’ with the function you want to run.
myvideo.addEventListener(VideoEvent.COMPLETE, VideoEndAction);
function VideoEndAction(evt:VideoEvent):void{
//some action here
}

Actionscript Autorewind Video

Read full article | No Comments

myvideo.autoRewind = true;
Of course, replace ‘myvideo’ with the instance name of your video.

Loop FLV Video in AS2

Read full article | 2 Comments

Just sharing some code I found that worked to loop an flv clip that I had dropped into an AS2 movie:
var myLis:Object = new Object;
myLis.complete = function(){
flvPlayer.play();
}
flvPlayer.addEventListener(”complete”, myLis);
Just drop that in a frame and make sure the Instance name of your flv is flvPlayer.
Found the code in the macromedia.flash group on Google groups, which also had [...]

Javascript Exit Popup

Read full article | 6 Comments

My team has been looking for some good exit popup code for a client and found it hard to find code that would pop an exit popup when a user was leaving the page without also calling the popup when users clicked internal links. With that said I searched google for:

code for exit popup
code for [...]

onClick buttons in Actionscript 3

Read full article | 3 Comments

Actions are no longer applied directly to buttons in Actionscript 3. Instead all code can be placed on the main timeline. For a basic getURL you first createa function, then you add an Event Listener to the button instance. Code below:
———————————————–
function gotoPage(event:MouseEvent):void
{
var targetURL:URLRequest = new URLRequest(”http://www.sitedesignmagazine.com/”);
navigateToURL(targetURL,’_self’);
}
skip_btn.addEventListener(MouseEvent.CLICK,gotoPage);
———————————————–
Replace skip_btn with the instance name of your own button.
NOTE: For [...]

Timer Delay in Actionscript 3.0

Read full article | 4 Comments

If you’re like me, you’ve found youself with a flash file that goes on for hundreds of frames because you have animations that need to happen after 5 or 10 seconds and you’re adding frames to get that delay. Well, AS3 makes it pretty simple to use a script based delay timer and keep your [...]

Tween Rotate in Actionscript 3.0

Read full article | 2 Comments

I Just discovered the Tween() class in AS3. It’s pretty awesome and I think I’ll be using this quite a bit. Basically to make something rotate, you use this:
var myTweenRotation1:Tween = new Tween(img1_mc, “rotation”, Strong.easeOut, 114, 184, 3, true);
And your movie clip img1_mc will rotate smoothly with easing and everything. As you can probably figure [...]

Gradient Mask in Flash Actionscript 3.0

Read full article | 1 Comment

Creating a gradient mask in Flash Actionscript 3.0 is actually pretty easy.
1) Create your masking graphic and apply a gradient fill (I’m assuming you know how to make this masking graphic – if not, you probably need a different tutorial first)
2) Add this line to your main timeline:
cliptomask.mask = maskinggraphic;
Where cliptomask is the instance name [...]

Easing Options in Actionscript 3.0

Read full article | No Comments

Found this great info here
About the easing classes
Easing refers to gradual acceleration or deceleration during an animation. For example, a ball might gradually increase its speed near the beginning of an animation, but slow down right at the end of the animation before it arrives at a full stop. Adding easing helps your animations appear [...]

Getting to know Actionscript 3.0

Read full article | 1 Comment

Not sure if I’m late to the party or what, but I’m just getting into Actionscript 3.0. I have to say that there aren’t that many sites out there to help us AS2 loyals. Here is my attempt to help out any newbies like myself.
One of the big things I noticed was that you no [...]

The Werkstette Website is Amazing

Read full article | 3 Comments

This is by far one of the best websites I’ve ever seen. The product is the absolute focus of the site. The design is secondary – they avoided the temptation to make the navigation or any other design elements “pop” and take attention away from that product. Great use of restraint. http://werkstette.dk/

Captcha Innuendo?

Read full article | 5 Comments

 

Nice Logo Treatment at Care2.com

Read full article | 3 Comments

I really like the logo treatment at http://www.care2.com/