The id attribute will not be created inside the movieclip symbol as a
property - it just gives the name under which the movieclip is
accessible in the textfield object (and actually the movieclip's _name
property will also hold the value of the id). So if you place your
HTML tag in a textfield, you can refer to the movieclip representing
the image tag like this:
my_textfield.testmc
You cannot access any attributes given in the HTML tag, but since you
can reach the movieclip instance, you can also pass any data to it,
e.g.:
my_textfield.testmc.file = "miImageFile.jpg";
my_textfield.testmc.setFile("miImageFile.jpg");
etc.
Attila
G> Hello list,
G>
G> I'm loading a HTML file into a textarea. I see it and everything works
G> just fine.
G>
G> I need to do something like this:
G>
G>
G>
G> when mi imgViewer class is instanced I get a trace in the constructor,
G> so the class is well instanced. But is there any way to retrieve that
G> "file" attribute?? Why if I do trace(this.id) from the class I can't get
G> it? I've tried with intervals also because of the load time, but even
G> when it is full loaded I can't access it.
G>
G> any other idea??
G>
G>
G> thanks!
G>
G> Gab
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com