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




Making Button In Movie Clip Symbol Reference Main Scene



I set up a flash movie with a scroll pane moving a movie clip. When I place instances of buttons in that movie clip and apply actions to them, they are not working.

The main movie has only one scene, so my actions for the buttons in the movie clip contained in the scroll pane have the following properties: gotoandplay, scene 1, frame label, frame label in scene 1 I'd like to jump to.

Is there a reason, the actions applied to those buttons won't take me to the corresponding frame label in my main movie?



FlashKit > Flash Help > Flash MX
Posted on: 11-23-2003, 06:24 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Button In Movie Clip Linking To Main Scene.
Howdy howdy. I'm working on a flash project and I want the buttons in one movie clip to link to frame 5 of scene 1. (So I have scene 1, a movie clip with the buttons in it and I want one of those buttons to make scene one skip to frame 5) So far it just goes to frame 5 of that movie clip, and when I named "Scene 1" inside the "Scene" box it didn't do anything. I tried searching the forum prior to posting this but I got 50000 results the first time and 35000 the second time, and I didn't feel like browsing through all of those hoping to find the answer to this question. (The first 2 pages of each search didn't contain anything I found to be helpfull) Any help would be greatly appreciated! (I'm using Flash 5) Thanks -NoodlyGod

Button Inside A Movie Clip Controlling The Main Scene?
Hi, I have a button inside a movie symbol that is on the main scene.

When it is clicked I want to move to a certain frame on the main scene.

I have double clicked on the movie symbol and attached this script to the button:

on (release) {
tellTarget ("this._parent") {
gotoAndPlay(5);
}
}

but it doesnt do anything.

What is wrong?

Thanks.

How Do I Code For A Movie Clip With A Button In It Embedded In The Main Scene?
This should be easy for any one who designs websites in flash.

I have a movie clip embedded in my main timeline that appears after an animation sequence happens. In this movie clip is button that changes color when you rollover it and links to an email address. Pretty simple.

I am not sure how to correctly code the actionscript for this. So far, when you rollover the movie clip and try to click the button, the whole movie clip flashes.

How do I tell flash to point to the button embedded in the movie clip?

You can see the god awful mess I've created online at:

http://www.espavoproductions.com/flash_site.swf

Look at the CONTACT button to see what I am talking about.

Please help. I would be so very grateful.

-Stephanie

Problem Getting A Button From A Movie Clip To Play A Frame In Main Scene
I am at a stumbling block and need help!!

I have created a animation that is a scrollbar full of buttons as a separate clip, the prob is that when I set the action from the button of that clip to the main scene, the action doesn't happen.

Please help! you can reach me by aim or e-mail and I will send you the fla to help me debug, thanks!!

Making A Movie Clip A Button(which Sends To Another Scene)
I need help on making an active button a movie clip. What i want to do is have a bunch of pictures scroll across the screen and when you click on the one you want, it opens to a seperate scene.

Thank you

Making The Main Timeline Play From A Button Embedded In A Movie Clip
How does one make the main timeline play from a button embedded in a movieclip that is on the main timeline?

Making A Button Within A Movie Clip Load A Differant Scene:
Yeah, I imagine this has been explained millions and millions + 2.6 times before, however, I have done my searching and I can't find my solution that I need in paticular and I don't have all week, let alone all day to find the answer (Since I have been trying to figure this out for the last few days)

So with that said:

I have a rollover movie clip on my company's web site I am working on. Everything is working as acording to plan. However, I have a movie clip within a movie clip, and that movie clip is the one with the buttons. Now when I go into their action scripts I do the basic

on (release) {
gotoAndPlay(285);
}

Which then plays a fancy little transition and then on the last frame it does this:

gotoAndPlay("Contact", 1); "

Which is Scene "Contact" and Frame "1" for those who are also wondering.

However since this is inside a movie clip, which is in turn, in another movie clip...... it does not go to the scene and play frame 1, but rather reloads the movie clip again.

I imagine I have to add another script in there to look outside of the movie clip or something, however I can not find this anywhere.

Like I said..... it's probably an easy thing to do, but I just got hit by a bus today and I just can think properly....... uh..... yeah that's it.

Thanks in advance.

How To Reference A Movie Clip In Main Swf From A Class?
I'm a little ahead of myself in doing AS 3 for a client - before I have complete understanding myself.

Here's where I am stuck -

In the main swf(fla) I have "presentation_mc" which is a movie clip with many keyframes. Later designers will add/remove keyframes as needed. So I also have to generate numbered buttons dynamically.

Here is the code that generates the custom buttons in the main.swf:

function placeButtons():void{
var i:int
for(i=0; i<varNumOfSections; i++){
var varTemp:Number = i + 1;
varButtonLabel = String(varTemp);
varButtonX = varButtonFirstX + (35 * i);
varButtonOver = sectionArray[i];

var b1:Button_mc = new Button_mc(varButtonLabel, varButtonX, varButtonY, varButtonOver);

mySprite.addChild(b1);
}
}

----- end code in main.swf

Here is the custom class for Button_mc:

package{

import flash.display.MovieClip;
import flash.text.TextField;
import flash.events.MouseEvent;

public class Button_mc extends MovieClip{
public var varLabel:String;
public var varX:Number;
public var varY:Number;
public var varOver:String;

public function Button_mc(varLabel, varX, varY, varOver){
this.label_txt.mouseEnabled = false;
this.label_txt.text = varLabel;
this.x = varX;
this.y = varY;
this.toolTip_mc.over_txt.text = varOver;

this.toolTip_mc.tipBacker_mc.width = this.toolTip_mc.over_txt.textWidth + 20;
this.toolTip_mc.visible = false;
this.buttonOver_mc.visible = false;

this.buttonMode = true;

this.addEventListener(MouseEvent.CLICK, clickHandler);

}

private function clickHandler(event:MouseEvent):void {
var tempVar:String = this.label_txt.text;
//trace("You clicked " + tempVar);
buttonClick(tempVar);
}

function buttonClick(tempVar:String):void{
trace("I want to go to presentation_mc frame # " + tempVar);
//presentation_mc.gotoAndStop(tempVar);
}

}
}

---- end Button_mc.as

Note the red and bold traces fine on clicks - but I can't actually reference the movie clip "presentation_mc" from here.

I'm really sorry if this is simple - referencing is always the second thing I check on errors - after spelling. But I am getting a specific 1120: Access of undefined property presentation_mc error.

I am working my way through Moock's book on AS 3 at a feverish pace, but if I can't get this sussed I am in serious trouble for today.

I greatly appreciate anyone's help - whether simple or conceptual.

Movie Clip Symbol Won't Play On Main Timeline
Hi everyone,

I've created a movie clip symbol with it's own animation on its timeline. I've placed this symbol onto the first frame of the main timeline but when I test it, it doesn't play. There's no stop actions or anything on either timelines so I'm not sure why this is happening. I thought that the animation in a movie clip symbol will automatically play (i.e. if you test in a browser) once it's on the main timeline - is this right? Or am I doing something wrong. Maybe I need to tell it to play?

Appreciate any advice.

Communicating To The Main Timeline From Within A Movie Clip Symbol
Hi Everyone,
I am learning AS3, used to using AS2. This may seem very basic, but try as I may, it does not work anymore.

What I have is a situation where I need to play some frames on the main timeline, say to frame 5. I place a movie clip symbol in frame 5 which I want to play (all is working fine so far).

Once the Movie clip is finished playing, I want the main timeline to start again.
In AS2, I would simply put

_root.play();

Now in AS3, I think it should read

root.play();

but I get an error which reads:
call to a possibly undefined method play through a reference with static type flash.displayisplayObject

What am I doing wrong? Is AS3 no longer allowing us to do this?
Thanks in advance for anyones help!
-Rich

Start And Stop Main Timeline From Movie Clip Symbol
Hi All,

I have a main movie where I have 4 different movie symbols in 4 differnet frames.

I want to stop the main timeline > play the first symbol movie > at the end of the first clip, start the main timeline again and play the next movie clip.

I tried putting "root.play();" at the end of the symbol movie clips, but it does not seem to affect the main timeline.

Moving Movie Clip Symbol Content To Scene 1.
Hi there.

I'm kinda new to the Flash community and I need some help.

I made a Intro movie clip symbol (a lot of layers and over 700 frames long). When I was done, I realized that I wanted all this content in the Scene 1. I tried cutting/copying the layers and frames from my Intro movie clip back to the Scene 1...but it doesn't work.

I also made a lot of random movie clips which I want to include in my Intro, but I want all the layers and frame to be together in Scene 1.

Can some Flash dude help me out. I hope you guys know what I'm talking about. I'm trying to learn about Flash and my terminologies are not up to par yet.

Thanks in advance.

HELP, Make Movie Clip Symbol Visible Until A Scene Is Loaded
I am not extremely new to CS3 or Flash but I am not advanced by any means. Anyhow, here is what I am trying to do and I hope someone can help me out.

I have 1 SWF file that has about 10 or so scenes in it. When you go to the webpage it has an initial loading screen and then goes to the home page. (I do not allow this loading screen to load everything in the SWF because it would take far too long, I would rather get the user to the home page and let the rest load while the person is viewing that).

That said, if the user decides to click on a button too quickly before one of those scenes have been loaded then flash attempts to send the user to a scene name that of course, has not been loaded/defined yet… because of this, flash will send the user to the furthest scene loaded (or maybe it’s a random one, I am not sure nor does it matter).

What I want to happen is for flash to check if the particular scene that the user is trying to go to is loaded yet. If it is not loaded then I would like a simple movie clip symbol to play until it is loaded and then send the user to the loaded scene. From doing some research it looks like I may be able to use something like: ifFrameLoaded or _framesloaded. I am not positive if either of these is applicable but if they are how would I use them for my application? If they are not, do you have any other suggestions?

Even if one of those do work, my biggest concern is how to hault until the scene is loaded to go to (while playing a simple “loading” movie clip symbol of course).

I hope all of this makes sense and that I am not making it harder than it reall is. Any help would be greatly appreciated!

Button In Movie Symbol To Go To New Scene
I am having trouble in Flash 5 getting a button action that is embedded in a Movie Symbol in Scene 1 to do a

on (release) {
gotoAndPlay ("scene 9", 1);
}

I know I am missing some context for the whole parent.child thing but I just don't get it....

I have tried _root & _level0 & _parent but I can't make it work....

HELP!!!!

A Button Within A Movie Symbol Effect My Main Timeline?
I have a button inside a movie symbol on my stage, I want the button on release to send my main movie to a different scene. How?

Help please

PLEASE HELP - Movie Clip Control Of Main Scene
Hi,
my problem that is driving me crazy:

I have a movie clip playing on a stopped frame on my main scene, what I need is for when the movie clip within the scene reaches the end frame for the main scene to gotoandplay another frame,

I keep trying variations of _root.goToAndPlay("Scene 1",2) on the last frame of the movie clip but it doesn't work. please please help,

Thanks

Loading A Movie Clip In Main Scene
I have made a movie on the top of which are two buttons in the form of Tshirts. I want that when the Tshirt with horizontal stripes is clicked a colored image of that Tshirt is loaded in a square. After that when one of the colored squares is clicked, the same Tshirt is loaded in another color. Similarly when the button with vertical stripes is clicked a colored version of that Tshirt is loaded in the square. If the square already has an image of the horizontal sriped Tshirt in the square, then , that should be replaced by the Tshirt with the vertical stripes. I have written acrtion scipt for this but it is not working. I will be grateful if some one can kindly look at .fla file and let me know what the error is and how to rectify it.
Thanks!

Load Movie Clip In Main Scene
I have made a movie on the top of which are two buttons in the form of Tshirts. I want that when the Tshirt with horizontal stripes is clicked a colored image of that Tshirt is loaded in a square. After that when one of the colored squares is clicked, the same Tshirt is loaded in another color. Similarly when the button with vertical stripes is clicked a colored version of that Tshirt is loaded in the square. If the square already has an image of the horizontal sriped Tshirt in the square, then , that should be replaced by the Tshirt with the vertical stripes. I have written acrtion scipt for this but it is not working. I will be grateful if some one can kindly look at .fla file and let me know what the error is and how to rectify it.
Thanks!

Play One Movie Clip After The Other In The Main Scene
I know this must be a pretty simple task but I can't seem to get it
working..
I have a Scene "MainScene" which has a library attached with 3 movies.
What I would like this to do is play one after the other in the main scene
but I'm not sure how to play one (a single keyframe on the timeline) and
then after that one has finished, play the next.

Please help me out! and its urgent! Thanks In advance!

How To Load A Movie In Main Scene While The Command Is Inside A Movie Clip?
Hi all,

Well, I have a scene that has a movie clip, and inside this movie clip there is a button. I want to program that button using ActionScript to loadMovie named "1.swf" inside a container in the main scene (which this movie clip belongs to).

Hope the question is clear and hope to get a fast answer as it is urgent..

Thanks alot in advance.


Regards

How Can I Get A Button In A Movie Symbol To Control The Scene?
I'm making a Flash movie with a drop down menu (a movie symbol). The movie symbol is on its own layer in frame 1, scene 1 and remains present throughout the scene.

In the dropdown menu, one of the options is 'General Info'.
In frame 5 of scene 1, there is a keyframe which contains the 'General Info'. Can the 'General Info' button in the movie symbol make Scene 1 jump to frame 5 to display the 'General Info' frame? If yes, then how?

Any suggestions appreciated

Katherine Alsop

How To Tell Main Timeline To Goto Next Scene From A Movie Clip.
How to tell main timeline to goto next scene from a movie clip.
Ive tried:
_root.nextscene()
_root.play()
_level0.nextscene()
_ level0.play()
_root.level0.nextscene()
_root.level0.play()

Nothing seems to work except having a button with the action, but I need it to work without having to press a button. Any help would be appreciated.

How To Tell Main Timeline To Goto Next Scene From A Movie Clip.
Mentaleruptions,

The code does work. Sorry for premature reply. It was late last night when I tried it. I got up fresh this morning and tried it with success. I just needed to move the line one up before the this.stop() command, duh.

Thank you vary much.




.

Selecting Movie Clip Instances On Main Scene
Is there an easy way to find and select movie clip instances on the main
scene? I'm working with a pre-built template and I'm trying to find and
edit a movie clip instance on the main scene, but I'm having trouble
selecting it.

Thanks.

Load An External Image From A Movie Clip To A Main Scene
Hi Guys
I want to make an image gallery I have put 4 button in a movie clip and when the user click on any button a big image will open in front of the main scene and user can close that window as well to see other images
a quick reply shall be highly appriciated

Thanks & Regards

Atif

Making Movie Clip Effect Main Timeline
I want to make a movieclip of a guy shooting a rifle. I am making the guy have button attributes so that when you click on him, he dies. In order to save time and space I want to make it a movie clip. How can I make it so that if you miss the guy and he shoots you, it does a goto and play in the main timeline?

Animation In Main Scene Into Symbol
Hi all,

I have an external swf file with some transition animation. Now I want this animation to be used main container swf instead of using as an external. How could I make this animation into movieclip so that I can import it to main container. All the animations are on the external swf file's root.

GOING FROM A SYMBOL BACK TO MAIN SCENE
Afternoon Everyone

I am creating a website in FLASH MX PROFESSIONAL 2004 and I am trying to get the movie to move from the end of a symbol to the start of the main menu.

I have placed an action at the end of the symbol telling it go back to the root and stop, but it is not working.

I understand that it would be an awful lot easier if you could see what I was trying to do however the FLASH file is 2.3Mb when zipped.

If anyone can help or recommend a place where I can put the file so that you can view it it would be very much appreciated.

Ta in advance

Cameron

Making A Movie Clip Play A Scene.
Ok basically here is my problem.

I have designed a movie clip for a button. And i need the movie clip to play something outside of the movieclip.

Ive made an invisible button. the code i have done is

Code:
on (release) {
gotoAndPlay ("Scene 1", 116);
}


but when i test it out. nothing happens. could someone please help me out.

Thanks in advance.

zoot

How To Reference Movie Clip In Button
Hello,

I have a button, lets say its linkage name is btn. From script in the main timeline I am adding the button (from the library) to a movie clip with attachMovie, giving it an instance name btn1. This has been working fine for me (however, please correct me if I should not be using attachMovie on buttons).

This button, in the Up frame, has a movie clip with an instance name interior. Is it possible, after I call attachMovie and create btn1, to reference this interior movie clip, like: _root.outer.btn1.interior ? I can successfully reference btn1 with _root.outer.btn1, but _root.outer.btn1.interior is undefined.

If I list objects while debugging, I can see a target: _root.outer.btn1.instance63. I realize that Flash has generated that instance name, but why hasn't it used the "interior" name I assigned inside the button?

Please excuse my lack of knowledge here, and know that I've spent a number of hours researching this before posting. Any help would be appreciated.

Thanks,
M

How To Make Button In MC Send Main Movie To New Scene?
I can't get a button I have in a MC in my current scene, to send the playhead to a different selected scene using on(release). I can get it to control the playhead in the current scene, but not the others. I've scripted it using the _root.gotoAndPlay("scene2", 1) syntax, but it won't work. Anyone have any ideas? Thanks

How Do I Reference The External Movie Clip's Button?
I'm loading a movie into a container (a navigation system). Now I want to put in some code in the first swf, not the external swf, to change the alpha of a movie clip. Can someone help?


Code:
var navLoader:Loader = new Loader();
gavholder.addChild(navLoader);
var navURL:URLRequest = new URLRequest("dock.swf");
navLoader.load(navURL);
navLoader.x=0;
navLoader.y=0;
navLoader.scaleX=1;
navLoader.scaleY=1;
I thought I could just say this


Code:
gavholder.c1.addEventListener(MouseEvent.CLICK, camp);
function camp(event:MouseEvent) {
gcrmcholder.alpha =50;
}
Regards,

Glen Charles Rowell

Making A Symbol Dynamically Float Whithin The Scene?
i have a symbol(button) that i would just like to float around the screen and when you moused over it, it would stop and activate..

A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?

I have been trying to do it for the last few days for a site I am working on.

I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.

What I have right now is on the button in my Menu Bar Movie Clip:

on (release) {
gotoAndPlay(285);
}

Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:

gotoAndPlay("Contact", 1);

Which is the Scene for the "Contact Us" Scene named "Contact"

One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.

Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.

If someone has a solution, it would be greatly appreciated.

Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.

Thanks in advance.

How To Make A Button Which Plays A Movie Clip (Symbol)
I've got a problem,

I need the Actionscript to play a specific Movie Clip (Library Symbol) in the movie when a button is pressed.

Can anybody help me plz?

Help With Movie Clip Symbol Acting As A Button Pretty Please
Hello, and welcome to my post.

I am trying to use a movie clip symbol as a button and the code below allows me to do most of the functions apart from being able to take me to another frame in the scene and that is where i need help.

I am using the following code in a layer above the movie clip symbol:

this.button_mc.onRollOver = function() {
button_mc.gotoAndPlay("_over");
}

this.button_mc.onRollOut = function() {
button_mc.gotoAndPlay("_out");
}

I am using this for advanced animation when rolling over and out of the symbol.

Is there a code which can take me from this button to another frame in the scene. When i have tried i have only managed to go to another frame within the movie clip (as opposed to the scene).

Thanks for any help.

PS i am using Flash Pro 8

Playing Movie Clip Symbol After Button Release
hi, i have two symbols, a button and a movie clip. ideally, after the button is pressed, the movie clip starts to play. how can this be done? i have been able to get this outcome by, in the button, inserting a keyframe in "Over" and putting the movie clip inside. likewise with "Down" (but i am required to hold down the button) .. so, what i would like is just 1 mouse press. but how?

is it?

on ([press, release])
{
something
}

Thanks for the help.

Button In Movie Clip To Main Timeline
I have a button(A) that opens a movie clip which contains a button (B). I want button B to go to and play a frame on the main timeline, NOT a frame in the movieclip. Is this possible?

If not, what I am aiming for is a menu of buttons, that are rollovers from which another menu pops up with buttons you can click.

Help!
Thanks

How To Get A Button Inside Of A Movie Clip Play The MAIN Movie
how to get a button inside of a movie clip play the MAIN movie

( reposted, bad grammer in 1st one)


I got a button, inside of a movie clip.....
How do I get the button to have the MAIN movie play on click, not the MOVIE clip

Help Pls Making A Button In A Movie Clip Goto Another Movie Clip (pic)
Hi guys and girls,

i need ya help. What action script would i need to make a button in one movie clip goto and play a frame in another movie clip. I've added a pic to help. Im not very good at flash but i've been trying my usual codes but it dont work..

Cheers

Help Pls Making A Button In A Movie Clip Goto Another Movie Clip (pic)
Hi guys and girls,

i need ya help. What action script would i need to make a button in one movie clip goto and play a frame in another movie clip? I've added a pic to help. Im not very good at flash but i've been trying my usual codes but it dont work..

Cheers

A Button In A Movie Clip Controlling The Main Movie
I have a button in a MC, i want it to tell the main movie to go to (& stop at) a frame labelled "hr". why doesn't this work?: -

on (release) {
_level0.gotoAndStop("hr");
}

TY in advance

Button In Movie Clip To Affect Main Movie
HI

I was wondering how I can make a button in a movie clip affect the whole movie.

I have a button in a movie clip, that is in the main scene. But the button doens't affect the main scene, which I want it to.

THanks...

Button In A Movie Clip To Trigger Main Timeline
I have a little problem...I have a navigation menu that is a movie clip containing buttons. I want each button to go to a specific frame on the main time line. But I can't seem to make it work. Does anyone have any ideas?

I tried

on (release) {
gotoAndPlay ("home");
}

But its probably trying to find that frame label within the menu timeline.

http://www.sodiumhalogen.com/new

Controlling Main Timeline From A Button In A Movie Clip...
i have a button inside of a movieclip, and all i want it to do is ON RELEASE...make the main movie GOTO & PLAY another scene.

For some reason, this isnt f*ckin working!

Is this wrong or right?

on (release) {
tellTarget ("_root") {
gotoAndPlay ("rls_details", 1);
}
}


lemme know. Thanks!

Main Timelline Control With Button In Movie Clip
I'm trying to make a photo gallery site with a dropdown menu. Within the menu are buttons to jump the main timeline to the corresponding scene, each scene will have a different group of pictures.
I can get the buttons to work only if I don't have a 'rollover' and 'rollout' control on the dropdown menu (ie if the menu movie clip is NOT animated).
I'm pretty unfamiliar with actionscript so I would love some help.


http://www.missouri.edu/~bdlhb9/menutest.html
Here is the link to what I have. As you can see the buttons are not working but the movie clip is. How can I tell the buttons to work?
Thanks.

Button In Movie Clip To Return To Main Timeline
This is similar to the question just posted. I have a movie clip with buttons in it. When a button is pressed I want to exit the movie clip and go to Scene 2 and what ever frame corresponds to that button.

I scripted a button:
on(release) {
gotoAndStop ("scene 2", 1);
}
This works when you are in the movie clip pressing the buttons but on test movie nothing happens.

I tried
on (release) {
unloadMovieNum(0);
gotoAndStop ("Scene2", 1);
}
on test movie the screen goes blank. Apparently it unloads the movie clip but does not go to scene 2 or anywhere else for that matter.

Thank you for any ideas you can give me.

Listbox, Within A Movie Clip, And A Button On The Main Timeline
Hey guys, I've been a silent user of this site for ages, but now comes the time when I have to ask a q' of my own.

I have a List Componant (menu1), which undergoes a motion tween, within the movie clip (drop_down), this list contains the names of the other scenes, and is designed to allow the user to pick what scene to play, which eventially leads back that that scene.

Then I have a button, called goButton, on the main timeline, which needs to allow the user to actually go to the scene in question. Below is the code that im currently using, but im fairly sure i need to start afresh as apposed to edit this, but any help would be much appreciated, the person who actually figures this out gets my eternal gratitude (this is for a fairly major project).

The Code That Is On The Same Timeline As The List Component:


PHP Code:



menu1.addItem({label:"0.357", data:"0.357"});
menu1.addItem({label:"7&7", data:"7&7"});
//and then loads more after that

var listHandler:Object = new Object();
listHandler.change = function(evt:Object)
{
    switch (evt.target.selectedItem.data)
    {
    case "0.357" :
        trace("0.357")
        //_root.superSelect = "0.357";
        //break;
    case "7&7" :
        trace("7&7")
        //_root.superSelect = "7&7";
        //break;
    default :
        trace("something else")
        //trace("unhandled event: "+evt.target.selectedItem.data);
        //break;
    }
}
my_list.addEventListener("change", listHandler);




The Code That Is In The Button:


PHP Code:



on(release)
{
    if (megaSelect == "null")
    {
        gotoAndPlay("Preamble", 1);
    }
    else if (megaSelect == "0.357")
    {
        gotoAndPlay("0.357", 1);
    }
    else if (megaSelect == "7&7")
    {
        gotoAndPlay("7&7", 1);
    }
    else if (megaSelect == "Alabama Slammer")
    {
        gotoAndPlay("Alabama Slammer", 1);
    }
}





As you can see im currently trying to pass the variable megaSelect from the list to the button, preamble is meary an empty scene that occures between the loading scene and the Main Menu scene, any help what so even will be greatly appreciated. To see the Flash in its current, highly unfunctional state, lol, have a look at http://www.wickedmixer.com/mixer.html

Button In A Movie Clip To Different Scene?
I can't get a button to transport the user to a different scene once I've put it in a movie clip. Anyone enlighten me? It's probably dead easy to resolve, but then I am incredibly stupid.

Copyright 2005-08 www.BigResource.com, All rights reserved