Solved

attachMovie and FListBox

Posted on 2003-10-28
3
170 Views
Last Modified: 2010-04-03
Hi all,
I have a movie clip with an instance of an FListBox in it. Whenever I try to attach a new instance of this movie to the stage, the instance name of the FListBox does not get picked up and I cannot access it!

Is there any particular reason for this, and is there a suitable workaround?

Thank you,
-Dan
0
Comment
Question by:SuperMario
  • 2
3 Comments
 
LVL 27

Expert Comment

by:negatyve
Comment Utility
How do you do it?
0
 
LVL 3

Author Comment

by:SuperMario
Comment Utility
Ordinarily I'd do something like

_root.attachMovie("myMovieLinkageSymbol", "movieClip2", 1);
movieClip2.ListBoxInstance.addItem("Screw", "This");

This doesn't work, but if I drag an instance of myMovieLinkageSymbol onto the stage, call it movieClip2, and write the same line of code, it's added.

Thanks,
-Dan
0
 
LVL 27

Accepted Solution

by:
negatyve earned 75 total points
Comment Utility
It's normal, when you fire this line:

movieClip2.ListBoxInstance.addItem("Screw", "This");

the ListBox instance loading (initialization) is not complete. Try this way:


_root.attachMovie("myMovieLinkageSymbol", "movieClip2", 1);
movieClip2.ListBoxInstance.onLoad = function()
{
      this.addItem("Screw", "This");
};
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now