[Flashcoders] Trouble getting _x position

2007-03-23 Thread Lee Marshall
Hi all Just trying to create a box in actionscript into an empty movieclip. I then wanted to reurn the _x postion of the box, but it's just not happening for me. Here is my code. Any ideas? Cheers all Stage.scaleMode = scale; Create a box to encapsulate the loader indicator var bW:Number =

RE: [Flashcoders] Trouble getting _x position

2007-03-23 Thread Steven Sacks | BLITZ
Draw your box from 0,0 and then set the _x and _y of the movieclip you drew in. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by

Re: [Flashcoders] Trouble getting _x position

2007-03-23 Thread Pedro Taranto
what is the problem ?? you expect to receive the top-left corner _x position of the drawed box ? --Pedro Taranto Lee Marshall escreveu: Hi all Just trying to create a box in actionscript into an empty movieclip. I then wanted to reurn the _x postion of the box, but it's just not happening

Re: [Flashcoders] Trouble getting _x position

2007-03-23 Thread nelson ramirez
Seems to work. It returns an _x of 0 because that's where this line : var loaderBox_mc:MovieClip = this.createEmptyMovieClip(loaderBox_mc, this.getNextHighestDepth()); creates the clip. The coordinates you're drawing on are relative to the loaderBox_mc but they don't in fact change the position

Re: [Flashcoders] Trouble getting _x position

2007-03-23 Thread Hans Wichman
Hi, it works ok here. It traces zero, as it should. greetz JC On 3/23/07, Lee Marshall [EMAIL PROTECTED] wrote: Hi all Just trying to create a box in actionscript into an empty movieclip. I then wanted to reurn the _x postion of the box, but it's just not happening for me. Here is my code.