Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
readyToGo #1
how dynamic?
Hi,
Many text field names are recorded in an array. And I want to write a function
to create text fields named as in array.
However, even after creating a text field I could not acces and change it's
alpha value.
fieldname = "aboutus";
_root.createTextField(fieldname,1,1,1,100,20);
_root.fieldname.text = "About Us";
_root.fieldname._alpha = 50;
I do not want to write "_root.oboutus._alpha = 50;" for each element in the
array.
Where's the way out?
readyToGo Guest
-
dynamic drop downlists in an editable dynamic datagrid.
How would we address a situation where we have to put dynamic drop downlists in an editable dynamic datagrid. So the scenario is to populate a... -
ANN: Learn to go dynamic with WebAssist Dynamic Site 101
If you're a Dreamweaver Web designer looking to expand your skill set - and your earning potential - make the leap to dynamic Web sites with WA... -
dynamic menu system going to dynamic page
please can someone help me - im at the end of my tether! ive got an access db. Its got a list of words that is to be a menu system stored in it.... -
DYNAMIC Dropdown. How to stick on non dynamic choice?
Environment: DreamweaverMX 2004, ASP, VBScript, mySQL I have a dropdown which is populated dynamically from a mySQL database plus a hand entered... -
Dynamic text box within dynamic movie clip
I'm having a similar problem. On mine I noticed that although the text doesn't show and the border doesn't show, the cursor changes appropriately... -
MOLOKO #2
Re: how dynamic?
readyToGo wrote:
that's because in the above code you're attempting to change the alpha> Hi,
>
> Many text field names are recorded in an array. And I want to write a function
> to create text fields named as in array.
>
> However, even after creating a text field I could not acces and change it's
> alpha value.
>
> fieldname = "aboutus";
> _root.createTextField(fieldname,1,1,1,100,20);
> _root.fieldname.text = "About Us";
> _root.fieldname._alpha = 50;
>
> I do not want to write "_root.oboutus._alpha = 50;" for each element in the
> array.
property of the variable called fieldname. Variables do not have an
alpha property (or if they do, it's always 0 and you can't modify it! ho-ho)
What you mean to do is this:
_root[fieldname]._alpha = 50;
--
MOLOKO
------------------------------------------------
::remove _underwear_ to reply::
'God saves but Buddha makes incremental backups'
------------------------------------------------
GCM/CS/IT/MC d-- S++:- a- C++ U--- P+ L++ !E W+++$ N++ O? K+ w+++$ !O M+
VMS? PS+++ PE- Y PGP+ t+ 5-- X-- R* tv++ b++++ DI++++ D+ G e h-- r+ y++
see [url]www.geekcode.com[/url] to translate the above!
MOLOKO Guest
-
kglad #3
Re: how dynamic?
moloko, he's setting the _alpha of a textfield instance name, not a variable. and his code is ok. he just needs to embed that font.
kglad Guest



Reply With Quote

