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




Make Button Visible Only When Pressing Another Button



Hi Everybody, 1 question.

How do I make it so when you press a button another button appears?

Example:
I have a button that shows a picture.
After pressing that button I need another button to apear that zooms the picture.

I have both button created.. Only I want the second button only to be visible AFTER the 1st button is released.

How do I do that without placeing the buttons on seperate frames?

PLEASE HELP.. THANKS



FlashKit > Flash Help > Flash General Help
Posted on: 11-21-2003, 03:38 PM


View Complete Forum Thread with Replies

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

Making Something Visible/Invisible After Pressing A Button
Its like this

I have 3 buttons on one frame, and each of those buttons should be linked to a background. the background isn't on the same frame, the backgrounds are on 3 sequential frames after another frame between the background choice frame and the 3 sequential frames with the backgrounds on it.

so the build up is like this:

first frame with the choice buttons (3 buttons for every movieclip background)

(a) frame(s) in between

1 frame with the 3 background movie clips
another frame with the 3 background movie clips
last frame with the 3 background movie clips

Now what I would like to know is how to program in actionscript that when I press the button the backgroundmovie clip button, that it shows the movie clip in those 3 sequential frames and not the other back ground movie clips in those 3 frames

I would be very pleased if you could help me out
could some moderator move this to the actionscript forum?

Making Buttons Visible After Pressing Another Button
Hi there

I´m doing a project for university but i got stuck in the part where i need to show a button so that the user can advance to the next scene.

Below i´ve put a screenshot from my scene so that i can explain this better.

http://img145.imageshack.us/my.php?image=exemplopb5.jpg

In this scene the user can press the guitar, flute, saxophone and electric guitar so that he can listen the music that i´ve put in those buttons.
You can consider these buttons on/off buttons which was a problem that i already passed, fortunately

What i want to do is to show the green button below only after the user presses one of the three musical instruments on top of the little gnome.

For example this is the code i´ve made in the guitar:


Quote:




on (release) {
tellTarget ("_root.El_Mariachi") {
nextFrame ();
}
}

on (release) {
nextFrame ();
}

on(release) {
gelRight._visible = !gelRight._visible;
}




The last bit of code i´ve taken off a thread from another forum but it didn´t seem to work.

How can i solve this problem?

Cheers

How To Make Text Visible When A Button Is Pressed?(and Not Visible At All Other Times
My unfinished .swf can be found here:
http://blitzing.5u.com/Untitled-1.htm
What do i have to do to have the correpsonding text appear when i push a button? I got
on (release) {
}
down but pretty much no clue what to do from there. Btw, each text-field-thingy is on a separate layer. Thanks

Why Does A Draggable MC Become Visible Where The 'make Visible' Button Is Clicked?
Hello, i have a MC which is draggable and controlled by the code below.
The first time the user opens the draggable mc, it is positioned nicely on the screen (where i have placed the instance of the MC, then made it invisible).

But if the user closes the draggable MC, then click on the 'open' button, it appears where the user clicks the button.

This looks very ugly.

How can i tell the MC to become visible where the initial MC is placed on the screen?

code i'm using


Code:
largeimg._visible = false

largeimg.onPress = function() {
this.startDrag();
if (this.closeMC.hitTest(_xmouse, _ymouse, true)) {
this._visible = false
largeimg.gotoAndPlay(1)
}

};
largeimg.onRelease = stopDrag;
The window is reopened when a button is clicked


Code:
enlarge.onRelease = function() {
_root.largeimg._visible = true
_root.largeimg.gotoAndPlay(2)
}
Thanks a lot for any help in advance

How Can I Make One Button To Make A Mc Visible. The Mc Is Not Visible In The Beginnin
How can i make one button to make a mc visible. The mc is not visible in the beginning.

Need To Know How To Make Movie Play Upon Pressing One Button...
Hello,

I need to know how to make my movieclip "DropBox_mc" play when you press the profile button. just check out the attached flash mx file to see what im talking about. also, i need to know how to go about making the dropbox sort of rewind if you will, when you press the home button. i basically want it to go back up into its shape as a single black line (study the mc and look at frame 1 on it, you'll see what i mean) when you press the home button because i will have other graphics fill that space.

let me know if more info is needed. i really need to figure this out.

thanks!!

Make A Button Visible Only In A Particular Frame
hey this is nithin...im working on flash cs3

my as3 code is:
Code:
Code:

function eventResponse1(evt:MouseEvent):void {
gotoAndStop(30);}
lab_but1.addEventListener(MouseEvent.MOUSE_UP,eventResponse1);

function eventResponse2(evt:MouseEvent):void {
gotoAndStop(60);}
lab_but2.addEventListener(MouseEvent.MOUSE_UP,eventResponse2);

function eventResponse3(evt:MouseEvent):void {
gotoAndStop(126);}
lab_but3.addEventListener(MouseEvent.MOUSE_UP,eventResponse3);

function eventResponse4(evt:MouseEvent):void {
gotoAndStop(121);}
lab_but4.addEventListener(MouseEvent.MOUSE_UP,eventResponse4);


Now i made a button on Frame 130...and added this code to above one's..
Code:


Code:
function eventResponse5(evt:MouseEvent):void {
gotoAndStop(133);}
lab_but5.addEventListener(MouseEvent.MOUSE_UP,eventResponse5);


Im getting this error...and that button is also not working...
Code:

Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at gotit10_fla::MainTimeline/gotit10_fla::frame1()


here is the fla file...http://nithin1234.googlepages.com/gotit10.fla

Any help....plzzz

How To Make Something Visible On Click Of Button
Hi,

I am trying to make a menu appear within my movie. The menu in question is in the library of the same movie. I simply want the user to be able to click a button and then the menu appears. Here is the code I have came up with but it does not work, I am new to actionscript so probably got it all wrong.

if (menu_btn.onPress)
{menu._visible = true;}
else if
(menu._visible = false


I would appreciate any help.

Make A Button Visible Only In A Particular Frame
hey this is nithin...im working on flash cs3

my as3 code is:
Code:
function eventResponse1(evt:MouseEvent):void {
gotoAndStop(30);}
lab_but1.addEventListener(MouseEvent.MOUSE_UP,eventResponse1);

function eventResponse2(evt:MouseEvent):void {
gotoAndStop(60);}
lab_but2.addEventListener(MouseEvent.MOUSE_UP,eventResponse2);

function eventResponse3(evt:MouseEvent):void {
gotoAndStop(126);}
lab_but3.addEventListener(MouseEvent.MOUSE_UP,eventResponse3);

function eventResponse4(evt:MouseEvent):void {
gotoAndStop(121);}
lab_but4.addEventListener(MouseEvent.MOUSE_UP,eventResponse4);
Now i made a button on Frame 130...and added this code to above one's..

Code:
function eventResponse5(evt:MouseEvent):void {
gotoAndStop(133);}
lab_but5.addEventListener(MouseEvent.MOUSE_UP,eventResponse5);
Im getting this error...and that button is also not working...

Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at gotit10_fla::MainTimeline/gotit10_fla::frame1()
here is the fla file...http://nithin1234.googlepages.com/gotit10.fla

Any help....plzzz

Cant Make Symbol Visible With Button Click
this is so simple its embarresing, but it dosn't work.

I am trying to create an effect where I press a button, a symbol become visible.
So, i created two buttons called blue and green.
on the blue button i placed this code.

on(release){
blu=1
grn=0
}


on the green button I placed this code.

on(release){
blu=1
grn=0
}

I inserted a layer called lyr_blue and inserted this code.

setProperty("_root.blue", _visible, "0");
if (blu==1) {
setProperty("_root.blue", _visible, "1");
}


I inserted a layer called lyr_green and iserted this code.

setProperty("_root.green", _visible, "0");
if (grn==1) {
setProperty("_root.grn", _visible, "1");
}

but it doesn't work for some reason.

I have read SAMS teach yourself Macromedia MX in 24 hours and I am currently reading friends of Ed's Foundation Action Script for Macromedia Flash MX.

So far none of the books have helped.

Please can someone help
Tricia

Cant Make Symbol Visible With Button Click
this is so simple its embarresing, but it dosn't work.

I am trying to create an effect where I press a button, a symbol become visible.
So, i created two buttons called blue and green.
on the blue button i placed this code.

on(release){
blu=1
grn=0
}


on the green button I placed this code.

on(release){
blu=1
grn=0
}

I inserted a layer called lyr_blue and inserted this code.

setProperty("_root.blue", _visible, "0");
if (blu==1) {
setProperty("_root.blue", _visible, "1");
}


I inserted a layer called lyr_green and iserted this code.

setProperty("_root.green", _visible, "0");
if (grn==1) {
setProperty("_root.grn", _visible, "1");
}

but it doesn't work for some reason.

I have read SAMS teach yourself Macromedia MX in 24 hours and I am currently reading friends of Ed's Foundation Action Script for Macromedia Flash MX.

So far none of the books have helped.

Please can someone help
Tricia

How 2 Make A Button Action So That It Makes A Word Visible On An Inputtxt
Very familiar with audio editting and stuff, also design (no flash e.d.) So beginning to learn bit by bit.
I now actually understand that the hardes part of all nice things are coming this year for me. the variables, let animated things work.

A question I have is:

how 2 make a button action so that it makes a word visible on an inputtxt. (Some sort of add 2 cart, a button action adds a text into an inputtextbox. When all products are chosen the send button at the bottom of the form will send it 2 email. (trough php)

All of that is fixed accept that code.

Is it possible when the buttons are in load level 2 and the form is in 1.? (So that those buttons can preform the action 2 goto that form and fill in my desired button related text)

Greets,

a music hippy.

How 2 Make A Button Action So That It Makes A Word Visible On An Inputtxt
Very familiar with audio editting and stuff, also design (no flash e.d.) So beginning to learn bit by bit.
I now actually understand that the hardes part of all nice things are coming this year for me. the variables, let animated things work.

A question I have is:

how 2 make a button action so that it makes a word visible on an inputtxt. (Some sort of add 2 cart, a button action adds a text into an inputtextbox. When all products are chosen the send button at the bottom of the form will send it 2 email. (trough php)

All of that is fixed accept that code.

Is it possible when the buttons are in load level 2 and the form is in 1.? (So that those buttons can preform the action 2 goto that form and fill in my desired button related text)

Greets,

a music hippy.

Visible Not Visible On Button Controlling Mc
I am trying to make a movie clip visible or invisible useing a button. I want the button to check and see if the mc is visible if it is than make it disappear. If it is not visible make it appear. The is the code that I have on the button and it does disappear, but not reappear. Please help, I know this code looks horrible, but I am winging it.
on (release) {
pt._visible = false;
if (pt._visible=false) {
} else {
pt_visible = "true";
}
}

Button Pressing
i have a fixed backround and a few buttons how can i make tha when i press on another button the one i was just on closes itself and the other one loads its content , what i have now is i press one button a text loads i press another a text loads over it , plz help , how ?
hope i explained myself

SetVariable Through Pressing A Button?
I gave a button the following script:

set:
on (release) {
gotoAndPlay (124);
variable = 2;

Later I made a keyframe with

set:
if (variable = 1) {
gotoAndPlay ("Szene 2", 1);
}

but my PC keeps crashing when it reaches this very frame.

Put Number In Box After Pressing Button
as the title suggests, im wondering how i could get it so that if a button is pressed, it puts a number in an input box. the thing is i need it so that if one number is already, the next number comes after it. any ideas? the following script is all i could think of.

code: on(release){
_root.pagenumber=="1"
}

Pressing Button Several Times?
I have a button which turns yellow on press. But I would like it to go back to its original frame when pressed again. Is that possible?

wB

Pressing A Button On Random
So i am creating a computer opponent who will click a button on random .
I don't want to execute the commands prior to what the random will be since that will make the whole code a lot bigger .

I want something like

var button = 1 + Math.floor(Math.random() * 20);

press(button);
button.addEventListener(MouseEvent.CLICK, computerclick);
function computerclick(event:MouseEvent):void {
-------
}

Is that possible ?

Button Pressing Problem
ok here is my problem i have a website. i have most of the website coding done already. i have drop down buttons and when you press the any of the drop down buttons i have code on the individual buttons so when its pressed it does the actions I've placed on the button. and it used to work but now it doesn't and I've checked everything but i can't find the problem; and its really driving me up the wall.

so can someone find the problem with my drop down buttons?

Deactivating A Button After Pressing Another....
I have some movieclips containing mp3´s, there is one the main movie clip with the background music playing constantly, and several others with short loops that sound only when u click on them....what I need is that when I clic one of the movie clips containing the short loop the MAin movie clip with the BG music to stop automatically....dont know if I explain myself.... any ideas?? thanks a lot!

Deactivating A Button After Pressing Another....
I have some movieclips containing mp3´s, there is one the main movie clip with the background music playing constantly, and several others with short loops that sound only when u click on them....what I need is that when I clic one of the movie clips containing the short loop the MAin movie clip with the BG music to stop automatically....dont know if I explain myself.... any ideas?? thanks a lot!

Making Textfield Switch Between Visible/invisible When Pressing Buttons.
Okey, here is the sceneraio. I have about 9 buttons.

When i press these buttons i get up some dynamic text in some textfields.
I get 3 different sets of info into 3 sets of textfields. I have placed the textfields over eachother because according to what i press i only need the info from 1 out of the 3.

So how can i make 2 of the 3 textfields invisible when i press the button?
I have experienced also that when loading dynamic text and doing something with a textfield could "blank out" the textfield.

I have tried doing something like this on the button itself and as aactionscript for all of them (same with "onRelease")

onPress=function(){
albumartist1_txt.enabled=true;
albumname1_btn.enabled=true;
date1_txt.enabled=true;
genre1_txt.enabled=true;
albumartist2_txt.enabled=false;
albumname2_btn.enabled=false;
date2_txt.enabled=false;
genre2_txt.enabled=false;
albumartist3_txt.enabled=false;
albumname3_btn.enabled=false;
date3_txt.enabled=false;
genre3_txt.enabled=false;
};

Anybody got anything to help out here?

Stopping A Movieclip When Not Pressing A Button
Alright, I'm making a Cowboy Bebop game and I'm trying to figure out how to stop the main character from moving when no keys are being pressed. I also would like to know how to make him face in the opposite direction when you press a the key opposite to the way he's facing. I'll attach the game so far to the post. its in FLA

Pressing Same Button Twice Takes You To Different Frames. Why?
First of all, I am quite new to Flash MX so bear with me

I have a movieclip stage that is basically consisting of a menu (5 buttons) on the left and a main textframe (dynamic) on the right. There is also a layer containing a border that equals the size of the stage.

Clicking on a menu button will take the user to a specific frame on the main timeline where the appropriate contents will be shown in the main textframe. So far so good. You press "button1" and "text1" is shown, same goes with the other buttons. There is a stop action in the border layer on the specific frame to prevent the movie from continue playing.

Now, while displaying "text1", if you press the "button1" again it will switch to "text2". "Text2" should be accessed by pressing "button2", not "button1" twice. Why is this? How can I prevent this from happening? Pressing "button1" a third time will switch back to "text1".

I tried to put all buttons and texts on different layers and even with blank keyframes between keyframes on the timeline, but that didn't help.

Anyone?

Cheers.
*T*

Load Variable By Pressing A Button
Hey people..

Is there a way to let my movie play 10 frames after an action has been taken (example. pushing a menu button)..

Perhaps load a variable by pressing the button and then activate the variable 10 frames later?
How would a script like that look?

Sry both for my newbie knowledge and my bad english..

thanks in advance.
//Gustav

Variable Setting Upon Button Pressing
I'm getting my webpage together, but you see:
I'm defining a variable as follows in the first frame of my movie:

a = 0;

Then, I've got 5 buttons and on each button I'm placing the following script:
on (release) {

Variable Setting Upon Button Pressing
I'm getting my webpage together, but you see:
I'm defining a variable as follows in the first frame of my movie:

a = 0;

Then, I've got 5 buttons and on each button I'm placing the following script:
on (release) {
if (a != 1) {
//Changing the value of the variable a depending on the
//button pressed ( could be {1, 2, 3, 4, or 5})
a = 1;
}
}

And then on the final frame of each section I'm evaluating the value as follows:
if (a == 1) {
gotoAndPlay ("section1");
} else if (a == 2) {
gotoAndPlay ("section2");
} else if (a == 3) {
gotoAndPlay ("section3");
} else if (a == 4){
gotoAndPlay ("sectoin4");
} else if (a == 5) {
gotoAndPlay ("section5");
}

So now, the fact is that, when I press a button, it's just not changing the value of the variable "a", how do I get this script to work. Please help.

If anyone's interested in analyzing the .fla file, please feel free to ask for it, I'm not posting it for security reasons (my site). Thanks. And if someone wants to just see the file here it is:
http://www.geocities.com/foamamoeba/site02.swf

Load Movie When Pressing A Button
what ac tionscript would i need to achieve this

do i put the actionscript onto the button, im unsure of the actionscripting for this.

any help would be grateful.

Play Movieclip When Pressing Button
Obviously this is wrong...
I'm trying to play a movie when the button is pressed (on the same stage as the button) but I'll be darned if I can get this code right. I finally got it so there were no "errors" but now it just doesn't do anything. I'm not sure if I have to place the movie on the stage, keep it in the library or...? I don't know.
Have you any advice for me? I'd appreiciate it!

(.fla attached for your reference)

cheers

Pressing Enter Instead Of Clicking A Button
Hi
Can a bit of code be used to do the job of a button when enter is pressed?
Users have to input a number in a box in my movie and then click 'CHECK' button. Can they just press enter and it might do the same job as the button?

Pressing Enter Instead Of Clicking A Button
Is there any way that someone could press enter after typing in an input text box which will double as clicking a 'CHECK' button.
This is the code that is on my 'CHECK' button - and that is what I want to have happen when you press enter instead!

Anyway of doin it?!

I am working in FLASH 5.

on (release) {
if (Number(num6)==Number(num4)*Number(num7)) {
mouse.gotoAndPlay(mouse._currentframe-120);
yessound.play();
num4 = Math.ceil(Math.random()*12);
num7 = Math.ceil(Math.random()*12);
num6 = "";
num2 = Number(num2)+1;
num1 = Number(num1)+1;
Selection.setFocus("num6");
} else {
nosound.play();
num6 = "";
num3 = Number(num3)+1;
num1 = Number(num1)+1;
Selection.setFocus("num6");
}
}

Keep Playing The Movie After Pressing A Button
Hi guys!

I have a scene called "Pregrame". Inside, there is a quick animation, then comes a stop(); and right there I have a button. I want that after pressing the button (it's at Frame 40) continues playing from Frame 41. I have done this before but I don't remember how . Thank you guys!

Yayo =3

Movieclip Not Playing Wne Pressing Button
Hello all,

Oke I did this many times before but how it doesn't work and I have no idea what I did wrong.

I have one scene. Three layers: Layer A and layer B and a Action Layer.

In the action layer at frame 1 I but in a Stop Command so that the animations doesn't play before I do something.

I create a button in Layer A. And put in a action to tell: GotoandPlay frame 5.

In layer B at frame 5 I put in a MC.

When I test the animation and press the buttn it goes to frame 5 but does not play the animation of the MC. It just disappears...

Does anybody know what I am doing wrong ?

Alternate Button Pressing Increments A Bar
Hey, long time no post.

I have recently started a new project, again and hit a stump. Im trying to make a mini game where you have to press two alternating buttons (x and z) to increment the bar. Now i started it, but it failed as pressing any button really fast incremented the bar. i used a _root.onEnterFrame = function() {

code, but im having troubles. So what i want to do is have the user press the x button, and then have to press the y button and the bar increases and they have to do this rapidly. If anybody could help i would be very thankful.

--binime--

5 Steps At One Time Before Pressing Button Again
how do i make so that when i press a button instead of juz moving from point A to B, it will move from point A to B then C then D then E. and then i will click again and it will go 5 more steps and so on..? because i tried to write it as

targetIndex += 5;

but obviously it won't work coz instead of going thru 2, 3, 4, 5... it jumps straight from 1 to 5.... help me some one....

Release A Button While Pressing Movieclip
Hi There!

i'm trying to build a flsh menu navigation that appears only if the user is pressing the mouse down.
while he still pressing i want the buttons to appear.
and on release out/ mouse up he would be able to select an item.

in the attache dfile iv'e tried to apply over state on a button and on a movieclip but it dosen't seems to work since the movie clip is already pressed.

is teher a way to get around it?


any help will be appriciated,

Thanks a lot,

Hittest And Button Pressing At The Same Time
I've tried doing this and I'm having trouble >.<

I'm basically trying to do a guitar hero like game. What I'm looking to do is
when 'mc_note1 -> mc_note5' (names of the 5 notes) hit mc_bar1 -> mc_bar5 (the names of what the notes will hit) AND buttons Z X C V B (for mc_note1,2,3,4,5) are pressed, then it adds 10 to a textbox with the instance name of score.

How would I go about doing this?

Click A Button By Pressing A Keyboard Key
Hi,
is it possible to click a button by pressing a keyboard key and get all functionalities which could be get by addListener("release",............) mouse click?

Movieclip Not Playing Wne Pressing Button
Hello all,

Oke I did this many times before but how it doesn't work and I have no idea what I did wrong.

I have one scene. Three layers: Layer A and layer B and a Action Layer.

In the action layer at frame 1 I but in a Stop Command so that the animations doesn't play before I do something.

I create a button in Layer A. And put in a action to tell: GotoandPlay frame 5.

In layer B at frame 5 I put in a MC.

When I test the animation and press the buttn it goes to frame 5 but does not play the animation of the MC. It just disappears...

Does anybody know what I am doing wrong ?

Loading Image By Pressing Button
I want to make a pop-up window appear that slides open and then displays an image. I'm going to make this by loading a seperate swf file in a new level.

But I want my button on level 0, to give the command to the image-swf wich image should be loaded there, so that I don't have to reproduce the image-swf file for each picture I use.

So if you click button 1 - image1.jpg loads
if you click button 2 - image2.jpg loads
and so on

How can I do this?

How Can I Fade Out Sound By Pressing Button?
I have named my button instance: pause_btn.

Can I have it pressed automatically when I hit the "media" button so that it stops playback of all sounds or preferably have it fade out?

thx,

jed

Playing Movie Clip By Pressing A Button
when you press the button it is supose to gotoandplay frame 2 inside a movie clip i have not a clue how to do this! i am desperate!!

Adding Text To A Dynamic Box By Pressing A Button
Hey,
When you click a button on my flash movie, I want it to edit text in a dynamic box. For example you click box lablled "Hi" and it will type the word "Hi" into the the dynamic box. How can you do this? Thanks in advance.

How To: Stop Sound And Restarting After Pressing Button...
hi, i need help on this:

I have a template whith a bunch of buttons, on this template i want a song to be playing, but i don't want it to play when i press certain buttons with songs themselves....what can I do to make this possible...

what code do I use, and where?


thanks!

mannie

Change 'mouse Click' To 'pressing Button 0'
Hi, I have the following code


Code:
welcomeScreen.onRelease = function()
{
blah blah blah
}


How do I change that onRelease (when you click on the screen with the mouse) to pushing the key 0 ???

Thanks,

Dan

Pressing ENTER Key Instead Of Clicking A Button In Flash 8..
hello everyone.. good day!

I have i problem with my page flip animation and i have this actionscript for the animation:

prevBtn.onRelease = function() {
var prevPage = _parent.offsetPages(_parent.page-1,_parent.removedPages);
if(prevPage>=-1) _parent.gotoPage(prevPage);
}

nextBtn.onRelease = function() {
var nextPage = _parent.offsetPages(_parent.page+2,_parent.removed Pages);
if(nextPage<=_parent.offsetPages(_parent.maxpage,_ parent.removedPages)) _parent.gotoPage(nextPage);
}

gotoBtn.onRelease = function() {
_parent.gotoPage(Number(pageNum.text)+1);
}


I am using Flash 8. The actionscript runs and do well. What my problem is I want to add the keypress function like when I pressed the ENTER key it will automatically flip the pages and go to the typed page number. ESCAPE for close. RIGHT arrow for next page. LEFT for previous page. I tried this code for ENTER :

pageNum.on (keyPress "<Enter>") {
_parent.gotoPage(Number(pageNum.text)+1);
}

But nothing happens. I knew there something wrong and I can't fix it..
I used flash for 5 years and still do not know all in the functions of actionscript. Specially now, FLASH is under ABODE.. By the way, pageNum is the name for INPUT TEXT.

Please help me on this.. thank you

Load And Play Consecutive Swf's After Pressing A Button
I am definitely missing something here...

I have a button that when click, I would like it to play one swf, then another right after. Not sure if I have to use an array but here is what I have so far. I know it is probably VERY wrong so be kind.

Thank you!


ActionScript Code:
// External SWF Containter
var imageLoader:Loader = new Loader();

// URL Requests
var imageRequestmain:URLRequest = new URLRequest("intro_main_out.swf");
var imageRequestsecond:URLRequest = new URLRequest("holyguac.swf");

// Button Functions
but_about.buttonMode = true;
but_about.addEventListener(MouseEvent.CLICK,playabout);

function playabout(e:MouseEvent):void
{
   imageLoader.load(imageRequestmai)
   addChild(imageLoader)
   imageLoader.load(imageRequestsecond)
   addChild(imageLoader
}

What's The Event Handler For Pressing/holding Down A Button?
What's the event handler for pressing/holding down a button?
And, with AS3, how do I make an object invisible?

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