ActionScript 3.0 :: When To Use Underscore _ And When Not To Use Underscore
Jan 3, 2007example: _root._xmouse;
when to use underscore _ and when not to use underscore?
example: _root._xmouse;
when to use underscore _ and when not to use underscore?
Is it possible to check a TLFTextfield for any underscores "_", then replace all underscores with spaces? I have looked around the web a bit, though sadly only found very few websites detailing how to create such a function.
I recently began using this function to gain the currentURL of the swf:
ActionScript Code:
var currentURL:String = String(ExternalInterface.call(" function(){ return document.location.href.toString();}"));
It appears that this function works in Firefox, but in other browsers seems to fall flat, would be useful to know why.
Is it possible to use the underscore character in a URLVariables variable name? For instance, the following code outputs "my%5Fusername=foo" instead of "my_username=foo".
import flash.net.URLVariables;
var variables : URLVariables = new URLVariables("my_username=foo");
trace(variables.toString());
Just as in the trace, the "%5F" shows up instead of the underscore in the request. Is there some way I can get the underscore character to show up instead?
i see this sometimes in tutorials, in some places a variable is referred to as "world" and other places "_world". what is the difference and when do you use which?
View 1 RepliesI am having a strange issue where I have created a MovieClip in the IDE and given it a class name ( MyObject ) and exported for actionscript...this object is created in an external class. This object has a few MovieClip symbols inside, ( MyButton ) and ( MyOtherButton ). After creating a mouse-over event for MyObject and catching the target ( either MyButton or MyOtherButton ), in the listener function, I trace the event.target in hopes that it will output "Object MyButton" or "Object MyOtherButton" but instead, I get "Object MyButton_6" and "Object MyOtherButton_2"...
View 2 RepliesDoes anybody know how to apply this text effect [URL](including the blinking underscore) to a text field that loads from an external .txt file.
View 6 Replies