dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: basic essential flash q

Hybrid View

  1. #1
    Junior Member
    Join Date
    Oct 2004
    Posts
    7

    basic essential flash q

    hello,
    have been visiting many flash sites that work in a very attractive way, meaning:
    there is a steady background (never disappearing while browsing the site) and all the contents appearing inside a shape (most usually a rectangle)which is the only thing changing while browsing.
    I am sure this is a rather stupid q, but would you please give me a hint or redirect me to a relevant thread (can't figure which keywords i should use for searching)?

    Thank you in advance.

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    What your seeing is one of the simplest things to do in flash. The main movie is the GUI. In it is all the background layers, buttons and other content that is not going to change throughout the movie. It also holds an empty movie clip that has an instance name. This is what you load other, smaller [rectangle] movies you've made into.

    So you have made another smaller movie that you want to load into that spot in the main GUI. These "external" movies will always load their top left corner to the dot of the empty movie clip in the GUI, so you know where to position it. If the empty clip has an instance name of mtClip, and your little external movie is named movie1.swf, then the code, either on a button to load it or in a frame, would look like this;

    on(release){
    _root.mtClip.loadMovie("movie1.swf");
    }

  3. #3
    Junior Member
    Join Date
    Oct 2004
    Posts
    7
    big thanks iaskwhy , heading to check this out.

  4. #4
    Junior Member
    Join Date
    Oct 2004
    Posts
    7
    the loaded movie (child) includes buttons.
    is it possible these buttons to load another movie (grand-child)to the child movie?

    (asking because experimented on doing that. when i test the "child" movie, works fine. not working at all when i test the "grand-parent" movie, meaning "grand-child" movie doesnot appear in the "grand-parent" movie).

    thank you

  5. #5
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    Yes, in the child, lets say you put another empty clip and name it mtClip1. Since once the child is loaded to the parent, you have to use the full path on a child button, the full pat, starting from root of the parent, then the code will have to look like this;

    on(release);
    _root.mtClip.mtClip1.loadMovie('granchild.swf");
    }

    Nesting movies and targetting them works OK down to about the 4th level. After that, it becomes a problem, although, you could use relative targetting, rather than absolute. And remember, when your making and testing child to load grandchild, the path will be wrong, and it won't work until you load them all together into parent.

  6. #6
    Junior Member
    Join Date
    Oct 2004
    Posts
    7
    u r my man.
    thanks is not enough.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center