Solved

attachMovie and FListBox

Posted on 2003-10-28
3
178 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 75 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SCCM 2012 - Deploy Flash 16 7,134
ActionScript 3 - Removing Duplicates in ArrayCollection 1 445
Rotating Adobe pdf document 4 338
embedding a media live encoder stream 3 180
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

732 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