Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combo box within movie clip

Status
Not open for further replies.

mikepop

MIS
Sep 15, 2003
1
US
I'm having trouble using the list box and combo box components within movie clips.

I used actionscript to create an empty movie clip and attach the movie.

The movie clip is just a combo box.

I can't call any of the combo box methods such as getLength, addItem, or getRowCount.

Is there a trick to using the FLASH MX components within a movie clip. I haven't found any documentation on how to accomplish this task.

_root.createEmptyMovieClip("mc",1);
_root.mc.attachMovie("navbuttons", "butts", "2");

//movie clip object
var rec = _root.mc["butts"];

//combo box name is excReason
rec.excReason.getLength()

This code doesnt work. The trace always returns undefined

Any ideas on what is wrong? I haven't found any examples of using FLASH MX components within movie clips.
 
Think your facing a path problem... But there's some confusion on what your really are doing...

Where is the combo located exactly? Is it contained in your attached movie clip "navbuttons", thus now in "butts", or is it only nested within your created movie clip "mc"?

On thing you can try, is since the combo is itself a movie clip, select it wherever it is and add the following on it's first frame...

trace(this);

Test your movie and that should output the target path to that combo in your whole movie, excluding the instance name of the combo itself, which you should add in your targeting path.



Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top