Now I have placed [color=blue]“ring”[/color] in a movie called [color=blue]“box”[/color]
And [color=blue]“box”[/color] is loaded into [color=blue]“scrol”[/color] (scrollpane)
This is how I thought the code should be, but it doesn’t work.
eval doesn’t work with []
either you use the brackets i.e.:
_root.abc[“def”].ghi ( == _root.abc.def.ghi)
or eval i.e.:
eval("_root."+“abc.def”).ghi
things you can’t do:
[color=DarkRed] _root.[“abc”].def.ghi[/color] (no dot before the brackets)
[color=DarkRed] _root[“abc.def”].ghi[/color] (there is only one mc inside the brackets (would probably work for a movieclip called “abc.def”))
[color=DarkRed] _root.eval("_root.abc.def").ghi[/color] (eval always stands at the beginning of a path
[color=DarkRed] eval[“abc”].def.ghi[/color] (eval only works with round brackets)
I thought I might have tried that, I have tried 20 or so variations, I have checked the names and linkages half a dozen times, tried relative and absolute paths and still can’t get it.
[color=black]Here is another bit that was working.[/color]
[color=black]Here is what I just tried now that [color=blue]“ring”[/color] is inside [color=blue]“box”[/color] and box is inside [/color][color=blue]“scrol”.[/color]
so if you set the content scrollpane (we call scrolly) to a movieclip containing a textfield (we call hans) you can set its text by
scrolly.[color=Navy]content[/color][color=Black].[/color]hans.[color=Navy]text[color=Black]=“whatever”[/color][/color]
That duplicates 10 [color=blue]“rings”[/color] accross [color=blue]“box” [color=black]as it did before[/color] [/color]so that I can scroll through all ten in [color=blue]“scrol”.[/color]
So all I should have had to do is change the path of the code I had to reflect [color=green]scrol.box.ring5.text =[/color]
[color=red]But nothing I try works…[/color]
I just pasted this under the duplicate code above. It is now in the same place in relation to the code above as it was before.
But it still won’t change the text !
[size=4][/size]
[size=4]It’s always the most stupid little things that send me around in circles for hours…[/size]
[size=4][/size]
[size=4][/size]
[size=4]I LUV you man ![/size]
[size=4][/size]
Not in that way, Not that there is anything wrong with that. [size=4][/size]