I guess something like

_root.edittext.createTextField("anotheredittext", 
_root.edittext.getNextHighestDepth(), x, y, width, height);

should do that.

Regards
Huub

________________________________
> Date: Sat, 27 Sep 2008 10:16:27 +0200
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: [Swftools-common] change text in textfield in child swf 
> generated by swfc
> 
> And thanks Huub.
> 
> Now, is it possible to create a textfield inside the child from within the 
> parent by createTextField?
> 
> Greets,
> eddie
> 
> On Fri, Sep 26, 2008 at 10:06 PM, Eddie Adams <[EMAIL PROTECTED]> wrote:
> oh yeah, it is working, sweet.
> 
> Thanks Matthias
> 
> 
> On Fri, Sep 26, 2008 at 9:58 PM, Huub Schaeks <[EMAIL PROTECTED]> wrote:
> 
> The .text command should be an .edittext:
> 
> .edittext myedittext font=Fontname text="set from child" 
> variable=_root.textcontent
> 
> should work
> 
> Regards,
> Huub
> 
> ________________________________
> Date: Fri, 26 Sep 2008 21:19:21 +0200
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: Re: [Swftools-common] change text in textfield in child swf 
> generated by swfc
> 
> It should indeed be _root.edittext.myedittext.text !
> But it doesnt change the textfield
> 
> The second try gives the following error
> "edittext.sc", line 4 column 29: error- Illegal argument "variable" to .text
> 
> 
> Any ideas
> 
> 
> 
> 
> On Fri, Sep 26, 2008 at 9:01 PM, Matthias Kramm  wrote:
> 
> On Fri, Sep 26, 2008 at 08:16:14PM +0200, Eddie Adams  wrote:
> 
> > the parent swf generated by flash:
> 
> >
> 
> > this.createEmptyMovieClip("edittext", 2);
> 
> >
> 
> > var mcLoader = new MovieClipLoader();
> 
> > mcLoader.onLoadComplete = function() {
> 
> >      _root.edittext.myedittext = "set from parent";
> 
> > }
> 
> 
> 
> shouldn't that be _root.edittext.myedittext.text ?
> 
> 
> 
> If that doesn't work, try setting a variable:
> 
>   .text myedittext font=Fontname
> 
>         text="set from child" variable=_root.textcontent
> 
> 
> 
> and then set "_root.textcontent" from parent.
> 
> 
> 
> Greetings
> 
> 
> 
> Matthias
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _________________________________________________________________
> Uniek: Onbeperkt chatten op je mobiel voor maar € 2,95 per maand!
> http://www.overaljevriendenbijje.nl/#superdeal

_________________________________________________________________
Probeer Live Search: de zoekmachine van de makers van MSN!
http://www.live.com/?searchOnly=true

Reply via email to