Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-15-2008, 04:26 AM   #1
Senior Member
Join Date: Jul 2005
Location: India
Posts: 1,029
Default Blank Combobox

Can someone let me know the solution to this?
I have a combobox in a movieclip attached dynamically. It works well for the first time but when attached in the same movieclip once again... it does not show the selected item of the combobox.... here is simple code for the same

var objMain = this;
objMain.a_mc.attachMovie("notesNewNotesControls_mc ","notesNewNotesControls_mc",1);
b_mc.onRelease = function() {
objMain.a_mc.attachMovie("notesNewNotesControls_mc ","notesNewNotesControls_mc",2);

I have tried removeMovieClip as well but it does not work. If I use onEnterFrame to ensure that the movieclip has been removed or not .. it works but for some scenarios and also makes execution slow. Any suggestions?

The Tutorial Hub
Sunny13 is offline   Reply With Quote
Old 01-15-2008, 04:30 AM   #2
Senior Member
Join Date: Jul 2005
Posts: 175


try this code.

var objMain = this;
var myMovie = objMain.a_mc.createEmptyMovieClip("main1", 1);
myMovie.attachMovie("notesNewNotesControls_mc", "notesNewNotesControls_mc", 1);
press_mc.onRelease = function() {
var myMovie = objMain.a_mc.createEmptyMovieClip("main2", 1);
myMovie.attachMovie("notesNewNotesControls_mc", "notesNewNotesControls_mc", 1);
Tarjinder Kumar
tarjinder80 is offline   Reply With Quote
Old 01-15-2008, 05:20 AM   #3
Registered User
Join Date: Jan 2008
Location: paradise
Posts: 5

var objMain = this;
objMain.a_mc.attachMovie("notesNewNotesControls_mc", "new1", 1);
objMain.a_mc.attachMovie("notesNewNotesControls_mc", "new2", 2);
if you make two MC with the same name, the later with replace the first, of course? You need diffrent names for different instances (like different depths for them)
ThienHaFlash is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
combobox behavior question... Iron Mike Components 0 11-11-2007 11:00 AM
ComboBox hell xwielder Components 1 08-28-2007 07:13 PM
ComboBox not loading in swf, blank white box moondust_82 Components 1 04-04-2006 11:25 PM
blank combobox newblack Components 5 12-16-2005 05:13 PM
ComboBox Blank when used in loadMovie khamstra Components 3 05-15-2002 04:01 AM

All times are GMT. The time now is 04:28 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.