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

Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Location
    USA
    Posts
    2

    Default Scripting Help using Variables

    I have made this flash that basically runs a presentation. Using the arrow keys you can cyle through the presentation. I can't get the thing to go back one section at a time using the back arrow key. It goes all the way back to the beginning. I tried to use variables but I don't know what I am doing I guess. If someone could take a look at the flash and let me know I would appreciate it.

    http://www.lucidpixel.com/misc/flash/movietest.zip

    This is not a presentation for the web so the mouse has been disabled in the flash piece.

    Thanks.

    sg

  2. # ADS
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many
     
  3. #2

    Default

    Hi,
    I took a look at you fla, but cant actually see any "sections"?

    Just the thingy in the middle turning

    Taff

  4. #3
    Join Date
    Mar 2004
    Location
    USA
    Posts
    2

    Default Re: Sections, Where they are.

    They are in the MC in layer two called namesmc. It's hard to see by looking at the stage because it's off to the side. If you click on layer two though on the main stage, you will select it then go into that movieclip and you will see it. Anyway I uploaded a newer version and named some of the layers to make it easier for someone to see what's going on.

    s.g.

  5. #4

    Default

    Found it!

    if you want the namesmc to go back one level then maybe you could place a variable in that keyframe telling it where to go?

    ie:

    in frame 30 have a piece of code saying

    Code:
    _root.whereTo=15;
    and that for all of them.

    Then on your back button you simply need a piece of code saying:

    Code:
    _root.namesmc.gotoAndPlay(_root.whereTo);
    and it will take you where you want to go...in this case frame 15

    Easy huh?

    Taff

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Dynamic Variables
    By gotoandpay in forum Newbies
    Replies: 0
    Last Post: 05-25-2006, 01:26 AM
  2. Dynamic Variables
    By n4rc071X in forum Flash Scripting
    Replies: 1
    Last Post: 03-29-2006, 07:33 PM
  3. Passing Different Variables in Flash
    By cheezyfries in forum Flash Scripting
    Replies: 2
    Last Post: 09-06-2005, 01:18 AM
  4. Variables from different symbols
    By Dude in forum Newbies
    Replies: 1
    Last Post: 05-09-2005, 06:23 PM
  5. variables
    By KingKong in forum Flash Scripting
    Replies: 8
    Last Post: 12-24-2004, 02:35 AM

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