PDA

View Full Version : comboBox component issue: Flash MX2004 Pro


asWarrior
05-01-2004, 03:08 AM
I was wondering if anyone else has had this problem and remembered what was causing it..

I've made a movie ("gallery.swf") and in it there is a comboBox component populated with data loaded from an external text file(data.txt). The comboBox dropdown displays a category list of picture types(mountains, beaches, etc.) that one can choose. When the category is chosen from the drop down and the 'go' button is clicked on, jpeg images from this category appear on the stage within nine targeted movie clips(target1_mc, target2_mc, etc).

Once I verified that all was working well as a standalone .swf, I decided to find out how it would work if I called the child .swf ("gallery.swf") to load into a parent .swf ("test.swf")

I tried loading the child swf ("gallery.swf") into the parent movie clip in two different ways.

In the first method on the parent movie clip ("test.swf") I created a simple button and used the following code:

on(release) {
loadMovieNum("gallery.swf", 1)
}


I have the following items within the library of the parent clip:
1.) a button symbol
2.) the comboBox component copied from the library of the child .swf

This method works well, the child clip loads into the parent and functions well

In the second method, all is as before except I added a blank targeted movie clip ("myTarget_mc") and changed the code on the button to the following:

on(release) {
myTarget_mc.loadMovie("gallery.swf")
}


What happens in this case is that the child movie loads into the targeted movie clip, the drop down of the comboBox allows me to select a category I wish to view, but when I click on the 'GO' button, none of the jpeg images appear within their targeted movie clips within the child movie.

The problem seems to exist only when using a targeted movie clip as a placeholder, but works well if the movie is simply loaded into a level.

I am really stuck at this point and could really use any assistance possible.

Thanks!

I created the .swf files under Flash MX2004 Pro
Published as Flash: 7 Actionscipt: 2

jbailey
09-04-2006, 10:55 PM
I'm having the same issue! grrr