Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-23-2004, 12:39 PM   #1
Registered User
Join Date: Jun 2004
Posts: 7
Default Plz Help with the movies

Hi folks! First of all sorry 4 my poor english. I´m very newbie in Flash. A big problem for me and probably its easy for U. How can I make that if I click on a button first play a movie and only after load another movie. Well I dont know if U understand what i wanna ask so for this here u can find a link http://www.vizimalompanzio.hu/ its a great site. and if u try after clicking on a button first play an mc and then begin to load another mc. so thats my question. Anyway thax for reading
scafusia is offline   Reply With Quote
Old 06-23-2004, 01:05 PM   #2
Join Date: Sep 2002
Location: Toronto, ON
Posts: 2,068

Hi, welcome to the forums,

What you are looking for is an Event Handler for a button, then run a function.

So on your button, you could have some code like:
on(release) {
   doFunction ('section');
then your function could be:
function doFunction (str_section) {
   if (str_section == 'home') {
      // some code for animation or another function
      containerClip.loadMovie('file.swf', 1); // where 1 represents the depth within the containerClip
   } else if (str_section == 'about') {
      // some code again....
      conatinerClip.loadMovie('file2.swf', 1);
This is very basic code, but should help you get started. Don't forget to search for other posts and tutorials on this, I know there are plenty.
o Please do a search before you post
o Please use the [ as][ /as] tag for your code (so we can read it clearly)
Slowburn 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

All times are GMT. The time now is 01:32 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.