how do I access a variable that was created in a function? For example
<code>
function create()
{
var myvariable:string='hello world';
}
trace myvariable
</code>
does anyone have a solution for this?
I am using the swfobject with actionscript to automatically update users who have old versions of flash. The problem is, when the user's flash player has been updated to flash 9, the page closes and opens in a new window. Does any one know how i can make it refresh the existing window?
I have 2 swf movies. They communicate using LocalConnection. They are on one page. One swf is AS2 and the other AS3. They work fine when it is just the one window open. But when i open another window with a different swf, my 2 swf files stop communicating. Any idea why?
Can no body demonstrate how two swf files (one AS2 and the other AS3) can have two-way communication? I have seen countless examples of one way communication but in most cases two-way is required. Especially with the introduction of AS3.
This AS2 works great in both IE and firefox
import flash.external.ExternalInterface;
var cookieValue = ExternalInterface.call("myGetCookie", "yumyum");
hello_txt.text = cookieValue;
This AS3 works great only in firefox but not IE
import flash.external.ExternalInterface;
var...
here is the fla file here ..
http://myoperators.com/useless/helloworld.fla
you can download it and try to see where i am going wrong.
Thanks in advance
import flash.external.ExternalInterface;
if(ExternalInterface.available){
trace(ExternalInterface.call("myGetCookie", "yumyum"));
}else{
trace("ExternalInterface is not available");
}
this code gives me nothing. The flashdoes not seem to fully load. Here is the result...
import flash.external.ExternalInterface;
var cookieValue: = ExternalInterface.call("myGetCookie", "yumyum");
if (cookieValue==1) {this.gotoandplay(15)}
This worked perfectly in AS2. But these people have compeletly changed everything with AS3. I get all kinds of errors in AS3. Any help on how...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.