ActionScript 3.0 :: When To Use Underscore _ And When Not To Use Underscore

Jan 3, 2007

example: _root._xmouse;

when to use underscore _ and when not to use underscore?

View 8 Replies


Similar Posts:


ActionScript 3.0 :: Replace Underscore With Space?

Nov 24, 2010

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.

View 2 Replies

Actionscript 3 :: Use The Underscore Character In A URLVariables Variable Name

Jan 9, 2012

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?

View 3 Replies

ActionScript 3.0 :: What Does The Leading Underscore In Front Of A Variable Mean

Mar 14, 2010

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 Replies

ActionScript 3.0 :: Why Underscore / Number Placed After Class Name Of Asset Objects

Jul 31, 2009

I 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 Replies

ActionScript 2.0 :: Apply Text Effect (including The Blinking Underscore) To A Text Field That Loads From An External .txt File?

Sep 23, 2004

Does 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







Copyrights 2005-15 www.BigResource.com, All rights reserved