-
odd one this, I think
I am trying to develope a flash player 6 compatible app. Its a dynamic courseware program that generates instances of componets and populates them depending on the contents of an XML document.
I have sorted the problem of getNextHighestDepth() not being available. (took some time )
The latest wierd problem is this:-
The code below writes to the original component no problem.
Code:
eval("caiText").text = "Get in the text";
The next bit of code is supposed to write to the instances of the original component.
Code:
eval("caiText"+dp).text = "Get in the please";
It doesnt work thought. It used to works in Flash player 7. The dp is the next highest level. Surely this should work?
P.S. I hope this makes sense I really a bit of a newbie to actionscript
- - - - - - - - - - - - -
Any idea? Lost again!!!!!!
- - - - - - - - - - - - -
-
- - - - - - - - - - - - -
Any idea? Lost again!!!!!!
- - - - - - - - - - - - -
-
I believe i read something about that..
the thing is that eval can't be used directly, try making a var of it first:
var thingy = eval("caiText"+dp);
thingy.text = "Get in the text please";
sig? I don't have a sig. euhm.. no wait! this is IT!
-
Thought that you where on to something there. Alas no luck, it didnt work.
if you do a trace like follows
Code:
trace(thingy.text);
it outputs the text fine. Do Flash 6 depth levels not work properly or something?
- - - - - - - - - - - - -
Any idea? Lost again!!!!!!
- - - - - - - - - - - - -
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|