Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
_height in actionscript 2 ?

_height in actionscript 2 ?

2004-02-18       - By Grant Davies

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

I 'm doing a new project in AS 2 and having a couple of issues..

If I do the following :

this.button = this.attachMovie( "005 invisibleButton ", "button ",
this.getNextHighestDepth());
this.button._x=0;
this.button._y=0;
trace( "this.button = " + this.button);
trace( "button height = " + this.button._height);


The button is attached correctly but the output window displays :

this.button = _level0.projectImage2.button
button height = 0

Can someone tell me what I 'm doing wrong, I expect the button height to
be 105 and to be able to access it via the _height property.


I have the same issue if I do loadMovie to load a jpeg from the file
system, the image loads and displays ok, but if I output something like
theImage._height I get "0 ".

I thought I used this in AS 1.0 all the time... Hopefully I 'm just being
dumb :)

Cheers
Grant




=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104553
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)