Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Select Frame To Jump To W/combo


Hello,

I would like to use a combobox to select an item then, after pushing a button, jump to the appropriate frame based on the selected item. Here is my code so far:

submit_btn.onRelease = function () {
var disLetter = bis_cbo.getSelectedIndex();
getDisLetter();
}

function getDisLetter(){
gotoAndStop(disLetter);

}

Thanks for your help!




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 11-23-2003, 02:32 AM


View Complete Forum Thread with Replies

Sponsored Links:

Select Frame To Jump To W/combo
Hello,

I would like to use a combobox to select an item then, after pushing a button, jump to the appropriate frame based on the selected item. Here is my code so far:

submit_btn.onRelease = function () {
var disLetter = bis_cbo.getSelectedIndex();
getDisLetter();
}

function getDisLetter(){
gotoAndStop(disLetter);

}

Thanks for your help!

View Replies !    View Related
Combo Box - Jump To Frame Label? How Please?
Hey guys...I've done a search and found out how to get the MX Component Combo box to jump to a URL:

http://www.flashkit.com/board/showth...mbo+box +menu

BUT I want to know how to make it jump to a frame label within a scene. I'm an entry level actionscripter so please be basic with your descriptions if possible....thanks in advance guys!

View Replies !    View Related
Jump To Frame Or Load .swf From Combo Box
Folks, I have a nice little combo box but haven't figured how to activate it to do two simple things. For example:

I need to on select "Bio", jump to the frame label "biography"

AND

I need to on select "Portraits", jump to frame label 'load_port" and load portraits.swf to an empty movie clip.

I've found tutorials that go through setting up loading external .swf files to a movie clip, i'm cool there. It's the simple process of setting the different selections in the combo box to do something when chosen that I'm not finding.

Can someone point me to a lesson on setting up the function to jump to a label?

View Replies !    View Related
How Can I Create A Jump Or Select Menu?
I want to create a jump menu or a select menu in Flash, I have flash 6 but I though I'd post it here in case any 1 knows...

If any 1 knows, please send a fla file with the menu.

View Replies !    View Related
Combo Box Select
Hi,

I'm creating a demo showing a user fill in their credit card details...

How can I show a combo box being selected then scrolling down to select 'Visa' for example?

Any ideas?

View Replies !    View Related
Combo Box Won't Select
Is this a bug?

I have 2 swfs, one is a container swf, and one is the swf that gets loaded.

1) Container
2) Gets Loaded

Container loads Gets Loaded into _level5;

Inside the Gets Loaded swf, there is a combo box (flash mx, not 2004). When I run the Gets Loaded swf independent, I can click on the items in the combo box and it will select them. When I load the Gets Loaded swf into the level, I can no longer select the items in the combo box (the dropdown is performed, but when I click on an item, it just goes to the default item).

To make this problem even more weird, if I try and select an item, it goes to the default... but then I use the up and down arrows, I am allowed to select an item.

Why does this happen? Is it a macromedia bug? Do I have to use the MX 2004 components and add another 30k just for a combo box? What is the best solution?

View Replies !    View Related
Can't Select A Combo Box?
I'm fairly new to Flash and am having a little problem.

Basically I have a the top of a clipboard visible at the bottom of the screen. When it is rolled over the clipboard rises up from the bottom until it is completely visible on the stage. I did this by creating a movieclip containing the picture of a clipboard and tweening it to come up, and then reversing it to go back down. I placed stop actions at the beginning of the movieclip, the fully visible position, and a gotoAndStop command at the end of the movieclip to return it to the start. I placed the movieclip on the stage, and used onRollOver and onRollout events to trigger the tweens.

To ensure that the bottom of the clipboard isn't visible when the clipboard is off screen, I added a mask over the stage area so that only the portion of the clipboard on the stage will ever be visible.

Here comes the question: Now I need for the clipboard to display a few questions with combo boxes that the user can select and choose an answer from when the clipboard is in it's fully visible position. I can get the questions onto the clipboard by placing them in their own layer within the movieclip. However, I can't make the combo boxes selectable. Is this a focus problem? Do I just have the questions layer in the wrong place? Does any of this even make sense? Any help would be greatly appreciated.

View Replies !    View Related
Play After Select In Combo Box
Hai all,

I would like to ask some favor. I am using flash mx to make a demoware for an application. I need to find out how to make the movie play or go to some frame after a user select and click a label in the combo box component.

I would really be grateful if someone can explain me how to do it. Thanks.

Regards.

View Replies !    View Related
Combo Box Multi-select - $12.5 Million Question
I keep asking this, and it just ends up ignored. So either nobody wants to answer this, or nobody can.

So I decided... as soon as I transfer that $25 million from that one account in the National Bank of Nigeria from the wife of that guy that was a rebel and died in that one coup - you know the one, I'll split it with whoever can answer this:

Using the Flash MX Combobox component, how do you allow a multiple selection of the items in that compbox box?

Given a combo box, you can select a single item from that box. If you hold down the ctrl key and select another item, you select that next item - but not both! This does not mimick an html select that has the multiple property set, and there is no way to set a multiple property to a flash combo box.

Does anybody have any code for making this possible? I can't believe Macromedia just didn't write that functionality in....

View Replies !    View Related
Video Tut, Loading Into A Containermc And Cant Select Combo
I created the video player from lee's tuts and am using it in another movie. It get loaded into a container movie clip but the combo box isnt selectable. The buttons for playing, pausing, rewinding, and scrubbing all still work though.

Anyone know why?

Thanks!

View Replies !    View Related
Combo Box Jump Menu?
Is it possible to make a combo box act like a jump menu as in HTML. I'm trying to create a combo box listing the issues of a given newsletter that will jump to a frame on the timeline when a particular issue is selected. Is this possible?

View Replies !    View Related
How Do I Make A Combo Box Into A Jump Menu?
I have created several static combo boxes for a movie, but I want them to behave like Dreamweaver Jump Menus.

In other words, when the selected option changes in a box, go to that option's URL (selection value).

I realize that it probably involves an event handler, but I don't have one.

Can anyone give me the right one or direct me to a tutorial, etc. ??



Thanks in advance.

View Replies !    View Related
MX: Convert Combo Box To Jump Menu?
Can anybody help me with the event handler needed to open a link in a new window when you pick an option from a combo box.

Is there a detailed tutorial out there?

I know it's just a matter of a bit of code, but I don't know how to write it.

Any help will be greatly appreciated.


Thanks in advance.

View Replies !    View Related
Combo Box Size V Dreamweaver Jump Box
Hi,

I've been looking at using a combo box in Flash MX 2004,
it is my preferred method for solving a navigation problem.
It will take over 11 seconds to load at 5kb/sec, a similar jump box in Dreamweaver takes less than 1 sec, why the difference. I prefer using Flash but .....


Thanks Lucky-Black-Cat

View Replies !    View Related
How To Jump From Frame To Frame Without Changing Part Of The Movie
I didn't know how to title this little question/problem I have but I'll try to explain it as best I can. I'm creating a movie in Flash for my portfolio page by using buttons to navigate from frame to frame. The movie has three thumb pictures at the bottom (each one is a button), a Main View, where you can see the thumb pictures bigger, and two arrows below the thumb pics to move to the next three thumb pictures. Since I'm doing this in just one scene with a bunch of layers, I'm having a little predicament. When the user cicks on the arrow to move the thumb pictures, I would like the Main View to remain the same. For example, if the user clicks on thumb 1, the Main View changes to Picture 1. Then the user clicks on the next arrow to view the next three thumbs. The Main View should remain as Picture 1, and the only thing that should change are the three thumb pictures at the bottom. I'm attaching an example of what I'm trying to say for you to view it better. If you have any suggestions on how I can do this, I will appreciate it greatly.

THANKX!!

View Replies !    View Related
F5.swf -Stop On A Frame For Xsecs Then Jump To Next Frame, How Please?
I have a Flash 5 .swf movie containing 10 frames.

After playing Frames 1 and 2

I need the movie to stop on Frame 3

Then after 8 seconds, go to the next Frame

until Frame 10 where it will return to Frame 3 and then repeat the process.

I would like to do this with Scripting and not thousands of frames, tried loads of different ideas from the board today and have been unable to get them to work for me

I would appreciate any help from out there!

View Replies !    View Related
Jump From Frame 2 To Frame 1 In My Pingpong Game
Hi.
My first (of many i guess) post here :-)
I have made a small pingpong game. It have 2 frames. The intro game on frame 1, and the game itself on frame 2.
When the player or the computer scores 3 points, i want the game to go back to the intro screen at frame 1.

Here is the code i wanna use for that
if (this._x>500)
{
this._x = 200;
this._y = 200;
_root.yspeed = 5-random(10);
_root.xspeed = 5;
_root.ballSpeed = 0;
_root.playDeadSound.start(0,1);
_root.player1Score += 1;
start = getTimer();
while (start+2000>now)
{
now = getTimer();
}
if (_root.player1Score > 2)
{
gotoAndStop(1);
}
}
But the games just keeps playing. It dosent go back to frame 1. I have tryed setting in a trace("test") to see if i captured the event. And i do. I also put a trace in my frame 1. That one only gets written when the games start up. Not when i make the gotoAndStop(1)
In frame i have all my parameter inits, and a stop() command. Anyone know what im doing wrong ?

Here is the code, if anyone wanna see it:

View Replies !    View Related
Buttons Jump To Correct Frame, And Then Another Frame
I have buttons inside a movie clip. the actions assigned to these buttons affect the _root.

this is ok so far.

when i press a button, it jumps to the frame label it is supposed to. that frame label has a stop action on it.

another press of the same button, jumps to the next frame. this should not happen. i have only made one script and told it to go to one frame and one frame only.

does anyone know why a second and third presses will jump the timeline instead of keeping it where it is.

thanks

huggs

View Replies !    View Related
Select Frame From All Layers
Is it possible to select and copy one frame (e.g. 5) from all layers(and keep the different layers)?
Thanks in advance!

Maxx

View Replies !    View Related
List Box --> Select To Go To Frame Label
Dear all~~

anyone knows what shud i do so that when i make my selection on the list box drop down.. it will go to specific frame labels?

thanks so much for your help!!


regards
sy

View Replies !    View Related
[F8] External Variables To Select Frame
I am working on a little project to build a flash "cd player" style movie. What I need is an external text file to select which frame it goes to, and each frame has a different music file to play. I tried using this code:


Code:
stop();
loadVariables("config.txt","");
if(music=1){
gotoAndPlay(2);
}
if(music=2){
gotoAndPlay(3);
}
and put music=1 in the text file (config.txt), but it went to frame three.

A bit of help please?

View Replies !    View Related
How Do You Select Actionscript To NOT Load Sound In The First Frame?
when "exporting for actionscript", how do you select a frame other than frame 1? it slows down download time in frame 1....

View Replies !    View Related
Use Variable To Select Frame In Movie Clip?
Ok -

Frame 15 - I have a variable labeled "tagstyle"

Frame 75 - I have a movie clip named "tags" - the first frame is blank, the second has an image of a bell, the third of a bone, etc....


I want it to get the "tagstyle" variable from earlier and therefore choose the correct frame in the "tags" movieclip

Most recently, I've tried this:
if (_root.tagstyle = "Bell") {
gotoAndStop(2);
} else if (_root.tagstyle = "Bone") {
gotoAndStop(3);
} else if (_root.tagstyle = "Military") {
gotoAndStop(4);
} else if (_root.tagstyle = "Large Circle") {
gotoAndStop(5);
} else if (_root.tagstyle = "Large Heart") {
gotoAndStop(6);
} else {
gotoAndStop(7);
}It's not working.....I'm a total newbie here - any help would be greatly appreciated!!

View Replies !    View Related
Jump To Frame Within A MC
GREETINGS ALL

I have a small animation with a number of buttons, upon clicking a button i need it to jump to frame 73 in mc labeled detailMC. The MC sits in frame 74 of the main timeline.

any help would be welcomed

thanks

spider

View Replies !    View Related
Jump To Frame
I have a movie clip on a main stage of a movie that has about 50 frames. Now within this clip, let's say its on frame 5 of the main movie, I'd like to have a button that when this button is released the control will take me to a specified frame within the main movie.

Isn't this something simple to do?

Many thanks in advance!

View Replies !    View Related
Jump To A Frame
what can i use to load and jump???

The way my site is constructed is by having multiple swfs loading into a main swf (holding movie) which also recieves external .txt files.

The main swf sits within an html doc, there are a number of main swf's in different html doc. that is the structure of my site.

Q. can i have a button on an imported swf on main (main1.swf) to jump to a specified frame on main (main2.swf)

at the moment i can only jump to the first frame of (main2.swf)



i'm currently using this code to jump

on (press, release) {
getURL("http://www.website.co.uk/page1.html", "_self", "POST");

cheers
rat

View Replies !    View Related
[F8] Jump To Frame Zero?
i have an imported swf that has buttons in it.

when i press a button it jumps to frame zero!!! instead of the desired frame numebr???


never come across this before so any ideas on what to check would be good!

rat

View Replies !    View Related
Jump To A Frame
hi. I have an if statement that I only want to do stuff if my movie is on a certain frame like this

if(this._currentframe == 30){}

but I dont wanna use a frame number. I want to use a label instead

if(this._currentframe == "complete"){}

but cant get it to work. In my movie frame 30 is labeled 'complete' .should this work?

View Replies !    View Related
After FLV - Jump To A Frame
I have a fla with a flv on the 2nd frame -- after its done playing i would like it to jump to a certain frame.

any confusion please let me know.

Please help

View Replies !    View Related
Jump To Frame
i'm still new to this program so this might be a n00b question

in my main movie i set a button to jump to a movieclip (seperate movie) now on press of the same or another button it has to play the same movieclip but beginning on frame 45.

any ideas?

i can get the movie to play.

its a folding shape that gains in width, on frame 45 it starts to fold back in to dissapear.

View Replies !    View Related
Jump To Frame?
is there a way to jump to a frame number on the timeline without having to scroll? like a command you can use to jump to a certain frame?

thanks!

View Replies !    View Related
Jump To Frame?
Is it possible to jump to a frame in a movie using gotoAndPlay () when a certain key is pressed?

View Replies !    View Related
Jump To Different MC Frame 2
On the main stage there is a MC on frame 4.

I have a drop down menu button that I want to jump me to frame 2 of that MC

I tried this:

button.onRelease = function () {
_root.instance_of_mc.gotoAndStop(2);
}

but it didn't work.

Any help would be greatly appreciated.

View Replies !    View Related
Jump To Frame
i'm still new to this program so this might be a n00b question

in my main movie i set a button to jump to a movieclip (seperate movie) now on press of the same or another button it has to play the same movieclip but beginning on frame 45.

any ideas?

i can get the movie to play.

its a folding shape that gains in width, on frame 45 it starts to fold back in to dissapear.

View Replies !    View Related
How Do I Jump To A Particular Frame From One Swf To Another (was: Hi)
how do i jump to the particular frame from one swf to the other swf

View Replies !    View Related
Select Frames From A Frame Number Eg. Frame11 , To Infinitive
How I may select frames from a frame number eg. frame11 , to infinitive ? (in flash mx 2004)

View Replies !    View Related
Select A Frame To Preview In An Embedded MC On The Main Timeline.
Dear ASorg chums n whutnot:


I have a constant problem having to do with embedded MC's that contain an animation. When I go back to a higher MC, or the main timeline, what I see is frame one of that movie clip, which can often be apparently nothing (say, I have the alpha set to 0 for example). I have a design-on-the-fly style, and it makes my style tedious. Is there a way to change the frame that you are previewing in a movie clip when you're viewing it from a step above?


Thanks,
Nate

View Replies !    View Related
Help Please - Jump From One MC To Specific Frame Of Another.
Hi!
I need to be able to direct a viewer from a button in one Movie Clip to a specific frame of another MC loaded at a seperate URL (within the same domain)....

Nothing I can find seems to allow this - although there is the suggestion of passing variables from one to the other to determine which frame to play from???

Can anyone please offer the code or suggest where to look for the solution..

Oh yes, and it has to be done in Flash 4....

Many thank in advance
Frank H

View Replies !    View Related
Random Frame Jump
I've created an animated screensaver and I need to make the elements within the score play randomly. How can I make the movie jump from one frame to a random one of six specified start points?

Would an alternative be to put all the movie clips on one frame and trigger each one off randomly?

Thanks for your help

Phil

View Replies !    View Related
Jump To A MC Frame From Different Scene
Hello,
I have a movie clip with a button, clicking on it goes to another scene.
When in the other scene, i want to be able to click another button and go back to the original scene and have the movie clip be at the frame where I left it, or any other that I specify.

Thanks in advance.

View Replies !    View Related
Random Frame Jump To
hi there

i've got 11frames on the main timeline, each frame has a stop command and a movie attached to it (*each move has a bit of code that jumps back to the main timeline, frame one).

what i want to do is have on frame one on the main timeline, a random bit of code that jumps from frame one to any of the next ten frames.

at present i am using this bit of code

gotoAndPlay (random (10));

i'm not sure what it does exactly, but it seems to work - what i need is to make sure that if this code has randomly picked 6, then on a return to frame one, it doesn't pick 6 again but instead picks another random number.. .

hope this makes sense.... .

many thanks

tasvino

View Replies !    View Related
Play Frame 1 To 10 Then Jump To 30?
i have a buttom that i would like to progam to first play frame 1 to 10 then jump to frame 30 and play. everything happends in the same movieclip.

surely very easy! or? would be very glad if u could help me

View Replies !    View Related
HELP Need To Load .swf And Jump To 5th Frame
Can someone please help me...There must be a way for this to be done...I want to unload my intro projector and load up my second .swf then jump to the 5th frame.

Reason being...I have a preloader in the first 5 frames and since I'm putting this on CD there is no need for a pre-loader plus it looks jerky soooo.....I just need to smooth on past it.

Now I know someone will say, "take the preloader out" but just so you know...I lost the .fla...this is my life

thanks in advance

View Replies !    View Related
Jump To Next Frame Label
Is there a way to make a button so when clicked, the play head jumps to the next instance of a frame label. I need to do this generically without calling out the name of the next label. I have to do it about 240 times and don't want to program each button between label names.

Thanks.................Rob

View Replies !    View Related
Can I Loadmovie And Jump To A Frame
When I use LoadMovie I end up at the start of the SWF I load. Is there any way to load it and jump to a specific label or frame number?

thanks

Mitch

View Replies !    View Related
How To Jump To A Frame In A Movie?
Hello,

I'm a newbie to flash (just started my first site 2 days ago), so this is probably a really dumb question, but I'm hung up on it, so here goes . . .

I purchased a template to get me started. In Scene 1 of the template, there are the menu buttons which, when clicked, gotoAndPlay a page turning effect that begins in frame 221 of Scene 1. After the page turns, the movie jumps to a specific frame in a movie clip called "SubPages". Here is the code that activates this:


on (release) {
_root.page = 4;
tellTarget ("_root") {
gotoAndPlay(221);
}
}


The problem I am having is that I have added additional pages in my movie clip "SubPages" that I need to add to the menu in Scene 1. I can't for the life of me figure out how to do this.

Do I need to give the new frames a page name in the "SubPages" movie clip? How do I do this? Or am I way off track?

I would appreciate any advice! Thank you.

View Replies !    View Related
How Can I Jump From One Frame To Another Using A Button?
Meaning...

I have a button and when I click it I want to jump to Frame 10. I went into actions and and set it to frame 10 but for some reason it aint happening. Please let me know after i've made the button, how the hell do I make it do that?

Thanks!
O

View Replies !    View Related
Frame Jump Script Help...
hi, i have a roll-over of a door opening and closing. it's a motion tween that takes 20 frames to open and 20 frames to close. if you roll-over the door it begins to open, but if you roll out before it closes it jumps to the door fully open and begins to close. i want to make it better by telling the movie to jump to frame 39 frame but subtract the number of the frame the moive is currently on, so that the door position is in the same place.

I've tried a few things but I am such the novice, any help would be greatly appreciated.

thanks..

View Replies !    View Related
Random Frame, Jump To
I need help with some code for a game I am making, I want i so when you click a button it randomly goes to
(this frame) or
(this frame) or
(another frame)

Anyone know? well, considering this is flashkit, undoubt-ably yes.

View Replies !    View Related
Jump To A Button Frame?
Can you stop on the over state on a button? How?

View Replies !    View Related
Jump To A Random Frame.
Ok, here's the scenario.

There are 4 animated sequences. Each sequence begins at frame: 1, 18, 54, and 78.

I want to play these animated sequences randomly, so I'm looking for an actonscript that I can put at the end of each sequence to tell it to "GoTo" 1, 18, 54, or 78, randomly.
Another idea is to jump to a random scene, but I'm not sure what the action script is for that either.
I've looked through slide show tutorials, and actionscripting tutorials and I haven't had any luck. Can anybody point me in the right direction?
Thanks!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved