Actionscript 3.0 :: Two Buttons To One Page?

Jul 7, 2009

Currently flash only allows the first estabished button to go to a specified frame. I want two buttons etablished on different layers to lead to the same frame. Here is my code if:

stop();
function buttonClick(event:MouseEvent):void{
gotoAndStop(event.target.name);

[code].....

View 2 Replies


Similar Posts:


Make The Buttons On Each Page Load The Next Page (sprite) From The Library?

Jun 29, 2011

My basic aim is to create a newspaper that consists of four pages. Each page i have created and are sitting in the library as sprites. Each page has buttons that need linking so that when pressed it loads the next page or page that i want. This is the part i am confused with =/ how do i make the buttons on each page load the next page (sprite) from the library??

View 2 Replies

ActionScript 3.0 :: Gallery Page With A Bunch Of Page Numbers - Click On A Page Number, The Over Script Should Stop Until Go To Another Page?

Jan 26, 2009

i'm trying to build a flash site and ran into a problem... i have a gallery page with a bunch of page numbers at the top. when you click on one, a movieclip loads of some images coming in.so the problem i'm having is that i made a little animation for when you roll the mouse over the page number (they scale up when the mouse is over, scale back when the cursor moves away)... what it's doing is when you roll over, it goes to a certain frame in the timeline and plays that animation.that's all working cool, but i need it to not do that once it's clicked on. so basically when you actually click on a page number, the over script should stop until you go to another page... here's the code i've written,

function over(event:MouseEvent):void {
this.gotoAndPlay(30);}
function out(event:MouseEvent):void {[code].....

View 0 Replies

ActionScript 3.0 :: Clicking Buttons And Going To That Page?

Jul 3, 2009

This is a really stupid question and I was able to get it to work in AS2.0 but now I am trying to redo it in AS3.0.What I have are 4 menu buttons and what I want to do is when a button is clicked it will take the user to that page on the timeline.On the actions layer this is what I have:

stop();
btnAbout.addEventListener (MouseEvent.MOUSE_DOWN, stopHandler);
function stopHandler(evt:MouseEvent):void {[code]....

When I add the code under stop(), and test the movie, it doesn't stop, it just keeps looping through all the pages. I am probably doing something really stupid that I can see. As I stated above, AS3.0 is VERY new to me. I have two books in front of me and neither are helping me with this issue.

NOTE: If I remove the code below the stop(), the movie stops when I test it.

View 4 Replies

Buttons To Open The Page In The Same Window?

Jun 12, 2009

Have an issue with several buttons in cs3. I want the buttons to open the page in the same window, and they will once, but I need this to be a reoccuring effect.  here is the code.

[Code].....

View 4 Replies

ActionScript 3.0 :: Page With Several Buttons That Play Music?

Dec 16, 2009

I made a simple page with several buttons that play music, but then decided I wanted a video (flv) to first play automatically, and when that ends the page with the buttons appears. How can I do that? Right now I have four layers using one frame. Layer one has the AS code, two has the text, three has the buttons and the fourth layer has a background image.

View 7 Replies

ActionScript 2.0 :: Page Transition - Buttons And Sections

Mar 25, 2007

I'm currently working on a site that has several buttons for several sections. Each section has its own transition. My question is, if I click on button 1, section 1 content appears, now when I click on button 2, section 1 content fades away and section 2 content fades in and so on with the rest of the buttons and sections.

View 3 Replies

Professional :: 12 Movie Clip Buttons On The Main Page?

Aug 25, 2010

I have 12 movie clip buttons on the main page (3 rows of 4 buttons).When a button is pressed,it gives the answer to a question which remains visible.On this answer screen, there is another button to click for further information. I pointed to this button to go to another frame within the same movieclip (containing the further information).However, this "further information" shows up  UNDERNEATH the 12 buttons, and you can't read it.

View 14 Replies

ActionScript 3.0 :: Hyperlink From A Button-Multiple Buttons On The Page?

Oct 27, 2010

I have five buttons on a page. One must link back to a previous scene in the movie. The other four must each launch a window with a unique URL.
 
Currently the code is this:
 
stop();
resourcesretoc.addEventListener(MouseEvent.CLICK, btnclickresourcesretoc);
function btnclickresurcesretoc(evt:MouseEvent):void {
gotoAndPlay(120,"Scene 1")

[Code].....

I get an error - "Call to a possibly undefined method navigateToUrl, but I don't know what that means / how to fix it.

View 3 Replies

ActionScript 3.0 :: Three Buttons - Changing Page For User Navigation

Apr 4, 2011

I have 2 versions of the same code, both to make 3 simple buttons work to move the timeline to a keyframe to change the page for user navigation. What is the difference? Is one way better than the other?

HTML Code:
stop();
var button1:SimpleButton;
var button2:SimpleButton;
var button3:SimpleButton;
function handleCLICK( pEvent:MouseEvent):void {
[Code] .....

View 2 Replies

ActionScript 3.0 :: Activating Buttons And Loaders From Child SWF Page

Jun 15, 2009

Background: I have an Index.SWF that loads a Home.SWF. The website has essentially three layers, top layer is menu bar, middle layer is content, bottom layer is links to home page and e-mail. All the buttons on the top and bottom layers work. When I go to add a new button to the middle layer of Home.swf. I get all kind of errors associated with not referencing the right objects or having undefined objects.

I believe my structure is as follows:
> Index
>> Home
>>> Any other SWF through "myLoader" object and buttonclick function

Here's the code:
Select allvar myLoader:Loader = new Loader();
addChild(myLoader);
function buttonClick(event:MouseEvent):void{
gotoAndStop(event.target.name);
this.myLoader.load(new URLRequest(event.target.name + ".swf"));
[Code] .....

So here's the structural question, "where do I define my new button?" and what code do I use so that the new button is placed on the home page works with the myLoader and buttonclick function located in the parent page? I have the same structural question, if I decide to add a loading status message, if "the pitch" button is clicked.

View 2 Replies

ActionScript 2.0 :: LocalConnection - Buttons To Open Jpg's In Another Swf On HTML Page?

Feb 15, 2005

I have a Flash menu and want the buttons to open jpg's in another swf on my HTML page. I searched for "localConnection", but couldn't find a suitable example. I also heard this is possible with Javascript.

View 2 Replies

IDE :: Buttons And Events - Simply Moving To New Page Within Site

Mar 24, 2009

I have seen instruction on event listeners to get a button to go to a URL or to make a movie pause and whatnot, but what I'm not finding is instruction on how to write the AS3 for a button that simply moves you to a new page within the site itself. Also, if it's a "goto" script, the page that I want it to go to, does that have to be a new scene? If so, how do I merge two scenes together? Essentially, you can look here for what I am trying to accomplish. [URL]

What we want to happen is when let's say the direct marketing button is clicked, we want the other buttons to slide offscreen the way they slid on screen and then a new set of buttons pertaining to the direct marketing will appear at the bottom the way the original buttons appeared at the beginning. Do I need to make these buttons sliding away and a new set of buttons sliding in on a new scene? How do I link the scenes together?

View 2 Replies

ActionScript 1/2 :: Add To Flash Page Print And E-mail The Schreenshot Buttons

Jul 12, 2010

i need to add to my flash page print and e-mail the schreenshot buttons. like the buttons in this page "

View 1 Replies

ActionScript 3.0 :: Add Several FLA Videos On The Same Flash Page And Control Them With Different Navigation Buttons?

Aug 12, 2010

I am trying to add several FLA videos on the same flash page and control them with different navigation buttons.So, Button 1 to play video 1, Button 2 to play video 2, etc .I have already put two navigation buttons and added two videos.However, I need to know Action Script to enable navigation button to do above.

View 6 Replies

ActionScript 3.0 :: If Statement - When I Click One Of The Buttons, I Want The Current Page To Fade Out?

Jul 11, 2009

I have setup some nav buttons on my website. When I click one of the buttons, I want the current page to fade out, and I don't want the other page fading in until the first one is gone. This means I need a statement to go along with each button so that they all get rid of the current page, and don't fade in their respective pages until the first one is gone. Here is my current code:

buttons_mc.about_mc.addEventListener(MouseEvent.CL ICK,disappear);
buttons_mc.about_mc.buttonMode = true;
buttons_mc.about_mc.useHandCursor = true;[code]...

So, what do I need in order for this to all function correctly, once "home_mc" has reached its final frame?

View 5 Replies

Actionscript 3.0 :: Multiple Play/Stop Music Buttons On One Page

Apr 20, 2010

What I am trying to do is have multiple play/stop buttons on one page. I've been watching tutorials trying to figure out the best way to do this, but it seems there are so many different ways. I am making the band's name as the play/stop button (one color as play, a different color as stop). I've successfully done that to one button. What I'd like to be able to do is add anywhere from 3-6 songs (all different bands/buttons) per page.

Also, if one song is playing and another song is clicked, I would like to stop the first song and start whatever one is clicked so there aren't multiple songs playing at one time.

And if it's not too much to ask, once one song is either done playing or another is clicked, if it could go back to the first state of the button, that would be amazing.

I will paste my code below for the button I have. If there is a simpler way to do it, I'm totally open to that. Like I said, there seems to be so many ways to do everything, I'm not sure which is best.

var loadSnd:URLRequest = new URLRequest("Song1.mp3");
var thisSnd:Sound = new Sound();
var sndTrans:SoundChannel = new SoundChannel();
thisSnd.load(loadSnd);

[Code]....

View 3 Replies

ActionScript 2.0 :: Cannot Make The Moving Buttons Move And Load A Swf. Page?

Dec 16, 2003

I visited this kool site-I cannot make the moving buttons move and load a swf. page

View 6 Replies

ActionScript 2.0 :: Main Navigation Buttons - Dynamic Page Indicator

Jun 21, 2004

I have a website, basic overview. I have my main movie, which contains the logo and navigation. I have a blank movieclip created with actionscript that loads the individual movie swf files. That works fine. What I want to do is dynamically have the main navigation buttons' text indicate what page you the user is on. Right now the code is on each button instance, example:

Code:
//work button Definition
on(press){
if(_root.pageHolder != "work") {
_root.pageHolder = "work";
_root.mcContainer.loadMovie(_root.pageHolder+".swf", this);
[Code] .....

Each button has the same code, just pointing to their respective pages. Here is the code in the first frame for setCurrentMarker()n function:
var aMenu = new Array(home, jschaer, work, contact);
function setCurrentMarker(){
for(i=0; i<= (_root.aMenu.length-1); i++){
if(_root.aMenu[i] == pageHolder){
[Code] .....

So the variable aMenu holds the moveclip names of the buttons. PageHolder holds the the name of the current page that is loaded. Thats how I change the pages to be loaded. To explain, if you look at the button code, the text for each button is by default greay and when you rollover it becomes black and off and it becomes gray again. That is on the first frame.

On the second frame the text is black. In the code I tried to make the black dynamically, but it didn't work, so I settled for going to the second frame and stopping. How do you get those little scroll boxes where you can put code. I guess its preference, but is it generally good to put the code on each instance of a button or put in in the main frame where your code lies. Is there any benefit either way?

View 5 Replies

Flash :: IDE - Menu Buttons Open Up An HTML Page In A Different Frame?

Oct 24, 2002

Is it possible to use HTML frames with Flash? For example, I want to make a flash menu system on my site, and have the click of the menu buttons open up an HTML page in a different frame.

View 14 Replies

ActionScript 3.0 :: Writing Function For Buttons - Pass A Unique File Name To Asp Page

Sep 17, 2009

each of six buttons need to pass a unique file name to an asp page... below is the code for the six buttons... obviously this won't work, but it give you an idea of what i need to happen...

[Code]...

View 1 Replies

ActionScript 3.0 :: Flash Menu Buttons On HTML Page Opens New Window?

Jul 25, 2009

I have a .swf I'm inserting at the top of a page in DW. I have a button named "aboutUs_btn" which when pressed needs to load "aboutUs.html. That part works fine, but it always loads the page into a new window. How do I make it load into the same window? I could do this in AS2 with getURL and using _self. Here is what I have:

var aboutUsLink:URLRequest = new URLRequest("aboutUs.html");
aboutUs_btn.addEventListener(MouseEvent.CLICK,aboutUsClick);
function aboutUsClick(event:MouseEvent):void{navigateToURL(aboutUsLink);}

[code].......

View 5 Replies

Professional :: Adding Music - Stop And Play Buttons On Main Page

Nov 9, 2010

I have my mp3 audio clip and made my play and stop button. I am using cs4 and as3. I want to have the play and stop button on my main page but still have the music play when the users clicks onto one of the buttons which takes them to a new page.

View 6 Replies

ActionScript 2.0 :: Make Flash Buttons Clickable / When They Are In Html Page In Layer?

Jan 18, 2010

I have created a webpage with a html menu and flash embedded underneath it.The problem is, the flash movie is in an index layer of -1 and the html menu needs to sit above it in index 1 for example.If the menu sits behind the flash the buttons are inactive, if the flash sits behind the html menu, its buttons are inactive.I have a div layer for the html menu and it not as high as the flash movie, but it doesn't make a difference, its seen as sitting behind and therefore the buttons don't work.

View 2 Replies

ActionScript 3.0 :: Flash Buttons - Making IFrames To Change HTML Page

Oct 18, 2010

What im trying to do is to link my Flash buttons using as3 to make an iframe change the html page its showing every time i click on a different button. The web page is as follow: An html page containing a Flash menu and one iframe. I was using this code with no result:

Code inside Flash SWF File
var bt1:URLRequest = new URLRequest("MY WEB PAGE");
function Fbt1(e:MouseEvent) : void{navigateToURL(bt1,"body");}
bt1.addEventListener(MouseEvent.CLICK, Fbt1);

Code inside HTML Frame:
<iframe src="MY WEB PAGE" name="body" align="center" width="1010" height="500" margenwidth="1010" margenheigth="260" frameborder="0">Browser dont suport iframes</iframe></TD>

I get this error:
1061: Call to a possibly undefined method addEventListener through a reference with static type flash.net:URLRequest.

View 2 Replies

ActionScript 2.0 :: Flash Buttons Makes A Html Page Load In Iframe?

Sep 5, 2004

want to load a html page in a iframe when i click a flash button.

My code for the iframe:

[Code]....

Shouldn't that be alright? I've tried with _IFRAME too, but didn't work out. Instead of opening in the iframe, it opens in a new window. My flash button is on the main page, not in a iframe and the iframe is on the mainpage too.

View 2 Replies

ActionScript 2.0 :: Make Simple Page To Click Several Buttons Before It Moves On To Next Scene?

Apr 9, 2010

New to AS and would like to know how to make a simple page where the viewer has to click several buttons before it moves on to the next scene. They can only go to the next scene when all of the buttons have been clicked.

View 3 Replies

ActionScript 2.0 :: Flash Buttons Makes A Html Page Load In Iframe

Sep 5, 2004

want to load a html page in a iframe when i click a flash button.

My code for the iframe:

[Code]....

Shouldn't that be alright? I've tried with _IFRAME too, but didn't work out. Instead of opening in the iframe, it opens in a new window. My flash button is on the main page, not in a iframe and the iframe is on the mainpage too.

View 3 Replies

ActionScript 2.0 :: Using _level Script For Pages - Create 2 Buttons The First Page Automatically Loads?

Apr 5, 2007

I have attached a zip file which has a main.fla and a folder pages which contains 2 fla's p1.fla and p2.fla.The main page loads the first page which is p1 and as the main page has 2 buttons i am using _level script to know which page to load, actually i wanted to create 3 buttons. Since i have already created 2 buttons the first page automatically loads but when i click on the 2nd button it does'nt the p1 page goes but it comes back again.In the main there is a movie clip which has an instance name of page_mc and the code inside it is:

Code:

nextpage="pages/p1.swf";
loadMovieNum(nextpage,1);
b1.onRelease = function() {[code].....

View 2 Replies

ActionScript 2.0 :: Buttons Load The External Swfs Except When Click On The Contact Button That Is In The Main Flash Page

Feb 23, 2011

I am loading swfs into a movie clip. However, the contact button is not a loaded swf any longer. It's in the main flash page. This is what I want to do. All the buttons load the external swfs except when I click on the contact button that is in the main flash page. I need to get the other buttons to load after I click the contact flash button. Below is the code for the contact button and the one under for one of the other buttons.

[Code]....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved