Jump to content

simple Flash help (I think)


BrianKitts
 Share

Recommended Posts

I'm new to using flash, but have a director background... so most of it makes sense, but now I'm stuck on the last part, any help would be appreciated.

 

I'm working on a presentation that has to be embedded in powerpoint. So to get the control that I want I'm embedding the animation in flash and then adding the needed navigation.

 

Basically there's a video on the screen, and the timeline has stopping points at specific frames of the animation. Then the user has a "next" button to continue playing the animation. All this works great, so now I want to add a combobox dropdown menu with all the stopping points to allow the user to jump backwards to specific points if need be.

 

basically I can't figure out how to do a gotoAndPlay and pull the data value from the dropdown menu. Here's what I have so far...

 

//navigation menu

import fl.data.DataProvider;

import fl.events.ComponentEvent;

 

var items:Array = [

{label:"Existing", data:"01"},

{label:"Demo", data:"20"},

{label:"Add. Floors", data:"120"},

{label:"Seismic", data:"178"},

{label:"Bathrooms", data:"238"},

{label:"Elevators", data:"286"},

];

 

navMenu.dataProvider = new DataProvider(items);

navMenu.addEventListener(Event.CHANGE, ItmChng)

function ItmChng(e:Event):void

{

nav = navMenu.getValue();

gotoAndPlay(nav);

}

 

 

I can remove the "nav" variable and just put in a number to the gotoAndPlay line and it works, so I just need to figure out how to use the data value from the dropdown....

 

any ideas?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...