Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

attachMovie and FListBox

Posted on 2003-10-28
3
Medium Priority
?
183 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 27

Expert Comment

by:negatyve
ID: 9640221
How do you do it?
0
 
LVL 3

Author Comment

by:SuperMario
ID: 9642894
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 300 total points
ID: 9642958
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

618 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