Archive for the “Problems” Category

After searching and trying a lot of different URLs for the Subversion repository of SWFAddress I finally found the right URL for my Tortoise SVN client. The address is:

https://swfaddress.svn.sourceforge.net/svnroot/swfaddress

Share

Comments No Comments »

List of some useful ActionScript code snippets:

How to toggle button with two states in two lines of code,i.e. sound on/off button?

Let’s say you have a movieclip called “sound_btn” with two frames for the two states – sound on and sound off. Here is the code:

sound_btn.onRelease = function(){
 
this.gotoAndStop(Number(soundIsOn)+1);
 
soundIsOn = !soundIsOn;
 
}

The code soundIsOn = !soundIsOn; is equal to: Read the rest of this entry »

Share

Comments No Comments »

This is the answer I got to my e-mail from Adobe:

Hello,
…..
Unfortunately there is a bug filed against the use of the stopAllSounds()and the FLVPlayback component. The stopAllSounds method breaks the play/pause button in FLVPlayback component.The bug is currently deferred, so I can’t give you a potential fix date for this.

Regards,
Chris Bedford

Chris Bedford | Sr. Technical Writer | Adobe Systems

But I found a workaround using instanceof and checking if the object is instanceof Sound or instanceof FLVPlayback and then I call the Sound object’s stop() or the FLVPlayback component’s stop().

This is not very professional solution, but when I found a better one I’ll post it here.

BG version —————— Read the rest of this entry »

Share

Comments 1 Comment »

TxEff - The Flash Text Effects