Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 3 of 3
  1. #1

    Default URGENT HELP REQUIRED - Actionscript with movieclips

    hey im fairly new to flash

    im making a website in flash and have everyhitng but one thing sorted

    i have a few pictures that link to a WMV that opens with media player movie (non-flash)

    i have a seperate movieclips for each picture with a description

    when i rollover the picture i want the correct movieclip to load up at the botttom of the page

    can anyone give a small tutorial with the actionscript


    this is urgent as my client needs it done by 4pm GMT

    to make it easier i have a small diagram here



    the blue boxes are my images

    i want people to rollover that
    when they rollover, they see the picture again and a description (in a movieclip) in the red box


    i have 6 pictures

    the movieclips are called

    mc0 - default movieclip
    mc1 - picture 1 description
    mc2 - picture 2 decription
    mc3 - picture 3 description

    and so on a soforth


    the person ho gets thios to work will win a cheery without a stone

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi

    Welcome to the forum. Flash allows for many different ways to accomplish the same goal. Something like this could be achieved entirely with actionscript, but to keep it simple, my suggestion would be instead of seperate movieclips for each .... use a single movieclip with each image and description on a different frame and use a rollOver event to send the movieclip timeline to the correct frame...

    Movieclip named "imageDescription"..... button code for rollover...
    Code:
    myButton.onRollOver=function(){
    imageDescription.gotoAndStop("frameLabel");
    }
    hope it helps
    NTD
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  4. #3

    Default Here's One Way

    I'm not sure if I understand you entirely, but here's what I think I understand.

    In the flash movie, you just want the pictures at the top, and a place to show the descriptions at the bottom, correct?

    When you mouse over the images, you want the description to appear, and when you click on the images, you want the movie to play in an external player.

    Ok ... here goes ...

    1.) Make sure all the images are turned into buttons. If you have alread done this, skip to step 2.
    • For each image :
      Place the image on the main screen
      Right click on it and choose Convert to Symbol
      Give it a name and make sure Button is selected

    2.) Place your 1st picture description movie (mc1 I believe) on the main screen below the pictures

    3.) Right click on mc1 and choose Convert to Symbol
    • Give it a name and make sure Movie is selected

    4.) On the main screen, click on the movie you just created and under properties and give it an Instance Name (found right under the drop-down to select the type of symbol), I'll use movDesc for our purposes

    5.) Double click on the movie to open it
    • You'll see there is only one layer and one frame in it
      For every picture that you have (minus one because the first description is already there), create a blank frame on an odd frames in the layer
      ........So for example if you have 6 pictures, you will have frames that start at 1, 3, 5, 7, 9, and 11
      Add one more blank frame to the next odd frame (13 in this case) and then remove it (this extends the 11 frame to cover 11 & 12)
      Highlight all the frames and move them over 2 spots (so 1 & 2 are a combined blank frame)
      Go to frame 5 (the first blank one after the one that has the first picture description in it) and drag the second picture description onto the scene (make sure it's centered horizontally and vertically)
      Do this for each picture description moving to the next odd frame each time (again, make sure it's centered horizontally and vertically)
      Insert another layer
      Highlight all the frames in that layer and convert them all to blank frames
      Now add code to all the even frames in this new layer with just the code stop();

    6.) Exit out to the main scene

    7.) Edit the code for the first picture (button) and enter this code
    Code:
    on(rollOver) {
    	movDesc.gotoAndPlay(3);
    }
    on(rollOut) {
    	movDesc.gotoAndPlay(1);
    }
    on(release) {
    	getURL("http://www.yoursite.com/nameOfMovie.swf","_blank");
    }
    • Continue for each button, incrementing the number in the rollOver command by 2 each time, leaving the number in the rollOut command alone

    Let me know if I got this all correct and if it helps you out.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Changing movieClips
    By Shiroten in forum Flash Scripting
    Replies: 0
    Last Post: 10-10-2006, 02:45 AM
  2. Need Help.. very Urgent
    By smartso19 in forum Advanced Flash
    Replies: 0
    Last Post: 06-12-2006, 07:44 AM
  3. URGENT HELP REQUIRED
    By sidphreak in forum Standalone & Applications
    Replies: 1
    Last Post: 07-30-2005, 12:43 PM
  4. Freelancers Required
    By colornshapes in forum Cool Sites
    Replies: 0
    Last Post: 11-26-2004, 11:02 PM
  5. nested scaleable movieclips
    By Tim H-L in forum Advanced Flash
    Replies: 0
    Last Post: 10-09-2003, 03:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial