graphic designer new to code needs help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cjfetes
    New Member
    • Jan 2008
    • 1

    graphic designer new to code needs help

    Hello all, I am a photographer/graphic artist and I am createing a website useing flash.
    I have created a flash animation that contains everything I want to happen in the page.
    I now want to write code that will allow me to click the buttons and have the animation go to a certain frame and play then pause on a certain frame. when the next button is pressed i want the current animation continue for the last 30 frames then go to the first frame of the section for that button. total of 3 buttons plus home.

    every time i find something that sounds helpful it just confuses me more... my brain just doesnt work with code!

    the key here is that the web page you will see needs to complete for 30 frames before the webpage you want to see can start
    Help...
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    #2
    Hello cjfetes:
    OK this is a tall order, but here goes.
    1. create two new layers call them Labels and actions.
    2. the action layer should be the length of your project.
    next we are going to put an action in it. So make sure your action window is open.
    type in stop();
    3. On the Label layer we're going to place names in every 30 frames. The labels layer needs to match
    the photo layer ie place a keyframe every 30 frames.
    next name each Label frame To do this click on the the first frame and then go to the properties toolbox. Look for frame (left side) type in the box photo1 (or what ever you want).
    Next look for label type select Name. Repeat each step until you have all 30 done.
    4. Next we need to create the buttons which you already have. But you need to have the button layer match each photo and label layers. So place a keyframe every 30 frames.
    So right now you should have 30 labels, 30 photos and 30 buttons (3 per ie next, Play again button, and home)
    select the Button layer and click on the Next button. We're going to place an behavior on that button.
    Make sure your Behavior window is open. Click on the Plus Sign (+) and select Movieclip and scroll to Goto and stop at frame or label. You should see a text box at the bottom type in photo1 and click ok.
    Your Action Window should have something like this:

    Code:
     on (release) { 
    //Movieclip GotoAndStop Behavior 
    this.gotoAndStop("photo1");
    //End Behavior
    }
    Note I think you can use GotoAndPlay as well


    Do the same thing for play again button
    Next go to the next button frame section ie frame 31. select the next button repeat the process above instead you would tpye in photo2 and the same thing goes for the play again button.
    Do a test at this point if it works continue until you have all 30 done.
    good luck. I hope I did not confuse you.

    nomad

    Comment

    Working...