Accessibility
Adobe
Sign in My orders My Adobe

Flash Remoting TechNote

Contents of ComboBox don't display when loaded into target movie

The ComboBox default item may display but the dropdown box is blank when a movie is played. This occurs when you load a movie with a ComboBox component instance into another movie's movie clip using the loadMovie function.

The loadMovie function accepts up to three parameters:
loadMovie("url",level/target[, variables])

  • URL refers to the absolute or relative URL of the SWF file or JPEG file to be loaded into the movie.
  • Target refers to the path to the target movie clip that will be replaced by the loaded movie or image.
  • Level is an integer that describes which level (or location) to load the movie into the Macromedia Flash Player.
  • Variables is an optional parameter that specifies the HTTP method to use when sending variables.

You'll see the problem only when you load a movie with a ComboBox component instance into another movie's movie clip using the loadMovie("url",target) function. The problem does not occur when you load a movie with a ComboBox component instance into another movie's level using the loadMovie("url",level) function.

This TechNote describes how to successfully load a movie with a ComboBox component instance into another movie.

Loading a movie with a ComboBox component instance into another movie

Use one of the following two methods to display ComboBox component instances properly in another movie:

  • Method 1: Load the movie with the ComboBox into the other movie's level rather than a target movie clip.

    This eliminates the problem.

    See loadMovie in the ActionScript Dictionary to learn more about using the loadMovie("url",level) function.

    or
  • Method 2: Load the movie with the ComboBox into a target movie clip using the loadMovie("url",target) function and perform the following:
    1. Drag an instance of the ComboBox component onto the target movie's Stage.
    2. Delete the instance after it displays on the Stage.

      When you bring the component into the target movie, it loads that component's resources into the library.
      This solves the problem because all resources now reside in the target movie.

Last updated: September 3, 2002
Created: August 16, 2002
ID: 16534
Product: Flash Remoting
Versions: All
OS: All
Browser: All
Server: All
Database: All
Former ID: N/A
 

Provide Feedback

less more

1

2

3

4

5

(300 characters or less - you will not receive a reply.)