ActionScript 2.0 :: Link To Other Frame With Button Simple Click?
May 8, 2010really odd been stressing my self with AS3 and havent a clue with AS2. all i want to do is take said button1 on frame1 to link to frame2
[Code]...
really odd been stressing my self with AS3 and havent a clue with AS2. all i want to do is take said button1 on frame1 to link to frame2
[Code]...
i'm using flash cs3.i was using flash 8.i used to just put this code on a button, and worked, no problem.[code]now, i can't put code on a button... got some code on another site... seems i have to put code in an actions layer, and give the button an instance name![code]
1. this doesn't work
2. the older way seems alot easier and does work.
3. how can i just use the first method?
I need some code to link a button to an external swf. It seems like an easy thing to do, but I cant find anything on google that directly relates to this issue.(using Actionscript 3.0).
View 3 RepliesI've been working on this for an hour -Googled it - etc. Still can't do something simple.
I have created text on the stage, then converted it to a button. I want it to return to the first frame, so I added this to the button:
Code:
on(release) {
gotoAndPlay(1);
}
[Code]....
I need a simple image gallery to load when you click a button. I've tried shadowbox but have had absolutely zero luck. I'm not sure how to load it from a flash file and I know there is work that has to be done outside of flash like in the root folder. All I need is for a simple image gallery, nothing fancy, to open when I hit a button. how to use shadowbox in lamens terms or knows how to easily script a gallery that would be amazing.
View 2 RepliesI click on a button (or any object where I can write Action Script) and It should call a javascript function which I wrote in my functions.js
View 1 RepliesHow to create a simple .swf in which the user presses a button, a textfield has a number, the number goes up by one each time the button is clicked?
View 3 RepliesI need a simple image gallery to load when you click a button. I've tried shadowbox but have had absolutely zero luck. All I need is for a simple image gallery, nothing fancy, to open when I hit a button.
View 9 RepliesI have a character, And in its movieclip I`ve got 3 frames (first has an idle pose, second a walking pose and third a running pose), each with a movieclip with an action in it.Well, what I wanted is that when I am walking with this character, and press the SHIFT key he runs.And I`ve got the following code
if (Key.isDown(Key.LEFT))[code]....
But when I click the shift button, he shows the first frame static of the movie clip in frame 3 (running frame).
there is a button on 1st frame. there is a movie clip on frame 2. I named the movie clip as "ball_mc" I want to go to frame 2 when I click on button on 1st frame. I know that the code "gotoAndPlay(2);" on button will work. But for some reasons, i want to try another way.... i tried several codes:
1. this.ball_mc.gotoAndPlay();
2. _level.ball_mc.gotoAndPlay();
3. _global.ball_mc.gotoAndPlay();
4. _root.ball_mc.gotoandPlay();
However these codes dun work. Is there other way to resolve this besides this code "gotoAndPlay(2)"?
I have 5 different buttons for the navigation on my flash website.The first page is on frame one.When you click on any of the 5 buttons I want it to play frames 10 - 15 before moving to which ever frame the button 1-5 corresponds to. So:
Click on button 1 > plays frames 10 - 15 > Goes to frame 20
Click on button 2 > plays frames 10 - 15 > Goes to frame 30
Click on button 3 > plays frames 10 - 15 > Goes to frame 40 etc
How do I make this work?
I have a small flash site made up of a number of pages all on the one timeline.
The query is this. When i release a button i want the timeline to roll on for x frames (fading components out) before going to the frame that button links to (The beginning of the new page).
I have no idea what AS to use for this.
No matter where in the timeline you are, the button should fade out that area and then skip to a new one.
The old way to allow audio to be played/streamed in the browser was a flash button, such as that seen on [URL]. What's the new iPhone-friendly way to give the ability to click on a simple button to listen to an audio file in the browser? If the answer is HTML5, is the such a button built and available? I don't need an MP3 player with steaming and such, only a button.
View 1 Repliesi can not seem to get a button working with simple gotoAndStop frame . its setup like _root > EMC_photos > photos_thumbs_ani now in photos_thumbs_ani i have several photo pages all setup every 100 frames with labels page 1, page 2 etc my button is within photos_thumb_ani as a movieclip with code inside this.onRelease = function(){ _root.EMC_photos.photos_thumb_ani.gotoAndStop("pag e2");} I have tried different variations to no sucess
View 2 RepliesI am completely new to AS3, and am trying to learn the basics, but have been having issues with what I think should be a simple command. I need to have two frames, the first one with a simple button that when clicked loads frame two and on frame two a seperate button that when clicked loads frame one.
When I try using the following type of event handler, i can link from frame 1 to 2, but not back and get an error message:
(TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mc1_fla::MainTimeline/frame1()
[Code]...
i have a flash button and i want to pass the button link (after click) as parameter.
View 2 RepliesI understand how to create simple buttons as reuseable classes, but how could you create a next button that does something similar to the AS2 "goto and stop nextframe", and a back button that does something similar to the AS2 "go to and stop previous frame".On each frame that the user navigates to, is a movie clip, within that movie clip is then another button with a go to and play "Frame Label" action required, that navigates within the movieclip to a specific frame.
View 6 RepliesI have a flex application mxml file with 3 tabs.the first tab having the link button to select the value in the 3rd tab. Suppose, i have a link button in first atab. And the 3rd tab contains the combobox with values:"basic", "advanced". by default the vaule is displaying "default". When i select the linkbutton on the first tab, the "advanced"should be displayed in the comboBox on the 3rd tab. and the problem is , when click on the first tab link button , at that time the 3rd tab is not initialized. So it is not displaying the "advanced" in the comboBox. selecting the 2nd time on the link button it is displaying fine. But not first time. code: thirdTab.comboBoxId.selectedItem.data = 1;
View 4 RepliesI'm working on a project and I need to link multiple screens so that when you click a button it will go to the next screen.I know how to do this via the timeline but I have to do it in action script with addchild.
View 1 RepliesHow do I link a button thats embedded in frame 2 (music page timeline) to a frame in the main timeline ( frame 3= biography page)? Both pages are on the same scene with link buttons embedded in each page independent timeline.
View 1 RepliesI am trying to connect audio to the button so when I click on the button music it starts playing and when clicked again music stops.
View 5 Repliesis there any way I can link a button inside a MC on frame1 to a frame inside another MC that is located on another frame.Ive got 2 frames in total. On the first frame Ive got an Mc and inside this one Ive got a button that needs to be linked to frame number 50 which is inside a MC located on frame number 2.
View 1 RepliesI have a button, and on it, there is this code:
on(press){ gotoAndPlay("second");}
the frame I want to link to is labeled "second", but the link is not working. What is wrong?
I Want to have a button info_btn. Now i know how to make a button and link it to a scene/frame.
But what im asking is, i want the button to display something (text field or movieclip(doesn't matter )) but I do not want it to go to another scene or frame if you know what i mean ? i want it to display there and then on the same scene and frame with a button to close it.. Is this possible?
i recieved a template and all of the buttons are linking to the main timeline, i need to add a few pages that needed to be linked within some instances, i cant seem to find a way to set the release code to link to the frame within an another instance.
View 0 Repliesi have a button named biografy_btn and that should link to another frame on same layer wich contains other information, i labeled that next frame: biografie
the code is:
stop();
biografie_btn.addEventListener(MouseEvent.CLICK, goBiografie);
function goBiografie(evt:Event)
{
this.gotoAndStop(''biografie'');
}
but..it does not work, i keep seeing to tekst from frame 1 and the "other info" frame flickering both at same time and the button does not do a thing...
I'm trying to find out how to make a simple image gallery which changes image upon a mouse click on a button, when a button is pressed I want the image to slide in from the left into the viewable area and then when another image is selected I want the previous image that was viewed to remain in the screen and then the new image slide across over the top to replace the image.
I can get the images to slide across from the left upon a mouse click however I can't change the layer order so if image 6 is viewed and then I click to see image 1, the image will slide into place however it will be below image 6 so therefore not viewable.
I don't have an example of what I'm after but I hope my explanation was good enough, I've seen this been done in javascript but I have to use flash and am unable to replicate the effect I'm after
1. The old main logo was not as wide as the new one, so now the entire new one is not clickable (to take you back to the main page). How do I fix this?
2. For the life of me I can't figure out how to make text (or a button if need be) link to a specific flash frame. If you look on the site, there are a couple of spots under "What We Do" that I need clickable to take them to the Contact Us page.
I wanted to know how to link Button within a movie clip linking to Frame Label?I am using Action-script 3.0
I am trying to use the following AS inside the movie clip from where i want to go to the other frame labeled as advt_sms but i am not able to go to that page[code]...
It's the simplest thing: I have a button. I want to click the button, and go to the next scene frame 1. I made my own button. AS 2.0 was so simple with it's code. I having a very difficult time with the code. I'm an artist, not a code guy.
View 3 Replies