Ask a Question related to Macromedia Flash, Design and Development.
-
Chris Kennedy #1
dynamic text boxs
I am using Flash MX but I would like my dynamic menu to work in the Flash 5
Player, unfortunately Flash 5 doesn't support the use of instance names for
dynamic text boxes. Is there an easy way around this within the framework of
the code I am using below.
while (amount>=0)
{
duplicateMovieClip (_root.navbutton_mc, "button"+i, i);
this["button"+i].varTitle = myVars["url" + i]
i++;
amount--;
}
Chris Kennedy Guest
-
load external text to dynamic text field in levels
Dear Sir I found the Tech Noe Index #16238 is useful in creating dynamically loaded text from external text file. However, the method mentioned... -
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... -
Creating Boxs with Borders
What is the easiest/simplest way to draw a box with a border in Photoshop Elements? Like there would be a white box with a black border, which I... -
Dynamic text in smooth scrolling text field - help
here's links to the files. http://www.anicespot.com/test/ http://www.anicespot.com/test/easing_textScroller-01.html... -
Dynamic Text Loaded from Text files -> Flash 5 <-
I was wondering how I can dynamically load text into a text box from a text file using Flash 5. I've seen plenty infos how to do it with Flash MX but... -
S. Elliott \(timberfish.com\) #2
Re: dynamic text boxs
You'll have to code your movie using scripts that work in Flash 5. That
means you'll have to assign your text fields a variable name and then set
that.
--
Shane Elliott
[url]www.timberfish.com[/url]
"Chris Kennedy" <chrisk@cybase.co.uk> wrote in message
news:1058987874.316923@azores.network-i.net...5> I am using Flash MX but I would like my dynamic menu to work in the Flashfor> Player, unfortunately Flash 5 doesn't support the use of instance namesof> dynamic text boxes. Is there an easy way around this within the framework> the code I am using below.
>
> while (amount>=0)
> {
> duplicateMovieClip (_root.navbutton_mc, "button"+i, i);
> this["button"+i].varTitle = myVars["url" + i]
> i++;
> amount--;
> }
>
>
>
>
S. Elliott \(timberfish.com\) Guest
-
Max Davy #3
Re: dynamic text boxs
Hi Chris,
It seems to me that you are targeting the Var: of the dynamic text field not
its instance name?
Otherwise it would be: this["button"+i].varTitle.text = myVars["url" + i]
The code you supplied should work with Flash 5, but if not - the lack of
support for the instance name of a dynamic text field isn't the reason. To
test this, open the movie clip and remove the instance name (not the Var)
from the text field - you will find that it all still works in Flash 6, and
doesn't alert you to an unsupported feature when you publish it for Flash 5
(that doesn't mean it will actually work).
Perhaps its the this[]: this["button"+i].varTitle = myVars["url" + i]; Maybe
you could try eval() instead: eval("button"+i).varTitle = myVars["url" + i]
Anyway, I'm reluctant to post this without a solution, but it might help put
you on the right track.
Best regards,
Max Davy
--
Oz Impact Multimedia
Innovate, Immerse, Inspire
[url]www.ozimpact.com[/url]
"Chris Kennedy" <chrisk@cybase.co.uk> wrote in message
news:1058987874.316923@azores.network-i.net...5> I am using Flash MX but I would like my dynamic menu to work in the Flashfor> Player, unfortunately Flash 5 doesn't support the use of instance namesof> dynamic text boxes. Is there an easy way around this within the framework> the code I am using below.
>
> while (amount>=0)
> {
> duplicateMovieClip (_root.navbutton_mc, "button"+i, i);
> this["button"+i].varTitle = myVars["url" + i]
> i++;
> amount--;
> }
>
>
>
>
Max Davy Guest



Reply With Quote

