|
From: | Huub Schaeks |
Subject: | RE: [Swftools-common] change text in textfield in child swf generated by swfc |
Date: | Sat, 27 Sep 2008 11:33:14 +0200 |
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: address@hidden > To: address@hidden > 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 <address@hidden> wrote: > oh yeah, it is working, sweet. > > Thanks Matthias > > > On Fri, Sep 26, 2008 at 9:58 PM, Huub Schaeks <address@hidden> 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: address@hidden > To: address@hidden > 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. { > > > _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 Waarom chatten Robbie en Adriana? Check 't hier... |
[Prev in Thread] | Current Thread | [Next in Thread] |