Steve, no i'm not calling this from a panel. I'm using an external jsfl file and importing swfs and running the command against that. I'll see if i can find the rectangle or mouse click option. But i was hoping there was a way to find out what each elements DOM position is on the stage.
-----Original Message----- From: [EMAIL PROTECTED] on behalf of Steven Sacks Sent: Sat 5/12/2007 12:44 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] jsapi question Hey Jason, Are you calling this from a panel? If you are, make sure the panel is docked. There are bugs with certain JSFL commands if a panel isn't docked when it calls them and setTextString is one of them. Also, you could also try selecting the text field using the rectangle selection command (not sure what it is off-hand) and then using the document command for setting a text string, versus the element command. You could also try using the mouse click command, though that's kind of dirty. Jason Law wrote: > i've been having alot of issues with changing elements values on the > stage using the following code. > > > > fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[1].setTex > tString( "some text" ); > > > > The issue is that i'm running this code against different swf templates > that get loaded in and need to make sure that the element position on > the same is always 1. Is there a way to find out what the elements > position is? > > > > I've tried this, but it doesnt give you the true element position. > > > > for( i=0; i < > fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements.length; > i++){ > alert( > fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[i].getTex > tString() + i ) > } > > > > Does anyone have any other ideas? I know if you create swfs within > fireworks that you can set the element position by what layer it is on, > but in flash it seems that there is no way to know. > > > > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > This email is intended only for the person or entity to which it is addressed > and may contain information that is privileged, confidential or otherwise > protected from disclosure. Dissemination, distribution or copying of this > email or the information herein by anyone other than the intended recipient, > or an employee or agent responsible for delivering the message to the intended > recipient, is prohibited. If you have received this email in error, please > immediately notify us by calling our Help Desk at (415) 581-5552 or > by e-mailing us at [EMAIL PROTECTED] > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email in error, please immediately notify us by calling our Help Desk at (415) 581-5552 or by e-mailing us at [EMAIL PROTECTED]
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com