Professional :: Buttons Only Work The First Time

Feb 22, 2011

I have set up my buttons so that are each a movieclip with 'over' and 'out' states/frame labels. They exist on the main timeline. The actionscript controlling them is situated in a frame on the main timeline and the frame holding that actionscript is on the same point within the main timeline where the buttons are introduced. I am using actionscript 3.

The buttons have been set up so that they navigate to another frame on the same main timeline and on that frame is a movie. The movie dimensions are smaller than the main stage so the buttons are still accessible when each movie is played. The problem is my buttons are only working once - by that I mean they go to the correct place when clicked the first time, but when they are clicked again they navigate elsewhere. Here's the code I used for the buttons...

[Code]...

View 4 Replies


Similar Posts:


Buttons Work But Not All Time

Jan 7, 2010

I am new to Flash and am having an issue with a project I'm working on. I have buttons that are in frame 1-150. I wrote the code in frame 1, but expanded the box to frame 150 so they will work. However latter in the project I want to be able to gotoAndStop frame 150, but when I do the buttons no longer work. I changed it to gotoAndStop frame 1 and they work. Can you not link to buttons in the middle of the "timeline".

View 1 Replies

ActionScript 3.0 :: Buttons Only Work The First Time (using Frame Labels)

Feb 23, 2012

I have 5 overlapping tab buttons and when each is clicked, it calls to a specific frame. The tabs are assigned to a specific frame so that when the timeline jumps to the assigned frame, the tab clicked appears on top of the other tabs. My code below works, but only once. If I click a tab and then try to click a previous tab, nothing happens.

FYI: My 5 tab names are: rotating_globe, company_tab_mc, newproducts_tab_mc, applications_tab_mc and tradeshows_tab_mc

There's also a 'back_home_btn' that appears on the stage when user is not clicked on the 'rotating_globe' tab (the 'rotating_globe' tab is my default home button)

stop();
import flash.events.MouseEvent;
rotating_globe.addEventListener(MouseEvent.CLICK, rotatingGlobeBtnHandler2);
company_tab_mc.addEventListener(MouseEvent.CLICK, companyBtnHandler2);
newproducts_tab_mc.addEventListener(MouseEvent.CLI CK, newproductsBtnHandler2);

[Code]....

View 9 Replies

ActionScript 2.0 :: Move Between The Color Buttons, Second Time Code Does Not Work?

Jan 25, 2007

My film works ok. But if you move between the color buttons, the first time they react ok, just like i want, but the second time they get a life o they're own, driving me crazy... what am i doing worng? why doesn't the code do what it should?

View 3 Replies

Professional :: GoToAndPlay Doesn't Work Second Time

Nov 21, 2010

I have made a simple animation using only the timeline. The animation is covered by a button "Knapp"  (alpha 0) wich activates the actions. The whole thing works fine the first time. The last action says go to and play frame 2, wich has two actions: stop + go to and play frame 4. But this action does not work the second time. I tried to set the action to frame 3 instead of 2 and the same problem occured on another action on the timeline as well.
 
Here is the last action on my timeline:
 
Knapp.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_11);
function fl_ClickToGoToAndPlayFromFrame_11(event:MouseEvent):void{    gotoAndPlay(2);}

[Code]....

View 7 Replies

Professional :: Getting Buttons To Work?

Apr 1, 2010

i'm just learning Flash at a local college and my instruction is not being very helpful, so i'm hoping someone can help me. I need to insert a "start" button that will start the movie. I have the button on a layer called "startButton". I inserted another layer and called it "stopMovie" - this is where I add a keyframe on the 1st from and the last frame and then add a actionscript to stopmovie on both frames.
 
The problem I'm having is when I select the 1st frame of the layer where the button is localed, I go to the actionscript window/global fuction/timeline and then I want to select "play" but the system has it grayed out so I can't select it. My only option is "goto". But that doesn't work. All I want the funtion to do is start playing when I click on the start button.

View 1 Replies

Professional :: Navigation Buttons Work On And Off?

Feb 18, 2010

I am new to Flash CS4 so I may be doing something stupid. I created my assests on Photoshop CS4 and imported them into flash as flash layers. I followed a training video by Paul Trani about creating a first website. I have several pages in my site, home, about, contact, photos etc. I created navigation buttons for the homepage and they work great. However on my other pages I created different buttons as they are in a different place and have some additional buttons that the homepage does not have (except the contact page has common buttons to the homepage). I put the homepage and second page (contact) actions on frame 1. I then created a new keyframe at frame 20 where the rest of the pages uses common buttons. I then changed the language in the action script so as not to conflict with the frame 1 action script. I had trouble making the second group of buttons work so I created a new actions layer (actions2) and they work, except.

Well my homepage buttons work, all of them. I can even go to my contact page (which share the same buttons with the homepage) and then go back to the home page. I can also go from the homepage to the other pages and those buttons work... UNTIL I go back to the home page or to the contacts page (the pages that share buttons) then those buttons NO LONGER WORK??? It seems like once I committ myself to one group of pages (I consider myself having two groups of pages based on the sharing of buttons by each group) it disables the other group.

View 5 Replies

Professional :: Buttons Do Not Work When In MovieClips?

May 8, 2010

I'm trying to create a portfolio site and I'm running into some problems. I've built my main site on the timeline and all my buttons work fine the AS is very simple:
function goForward(event:MouseEvent):void {
if(currentFrame == totalFrames) {
gotoAndStop(1);
} else {
nextFrame();
}} next_btn.addEventListener(MouseEvent.CLICK, goForward);

But when I make Movie clips of a scenes with buttons in them (children?) to try and simplify the site, AS doesn't seem to recognize the instance name for the button in the Movie Clip. I get an error message:
1120: Access of undefined property next_btn.

I've put an invisible button over the mc and given it the next_btn instance name and it works although I would like to fix the buttons in the MC properly. Is it better to condense a site into movie clips and single frames or should I just have a long linear timeline that spans many frames?

View 3 Replies

Professional :: Cant Get Buttons To Work After Linking Back?

Jan 6, 2010

The buttons in the flash movie also link to movie frames in the flash and external html pages. Once movie plays and stops, all links work fine, the links to the anchors and the links to the other html pages, however when I try and link back to the flash movie from an external html page, to specific frames in the flash movie, the html link will link back to flash movie frame fine, however once your back in the flash movie, none of the buttons in the movie work anymore.I have embedded the flash movie in an HTML and published it with anchors,"home, about, events etc.used this code for several buttons in the flash linking to frame anchors in the movie:

///////////////////////////
home_btn.addEventListener (MouseEvent.CLICK, handler);
function handler (event:MouseEvent):void

[code]......

View 6 Replies

Professional :: Can't Customize Flash Buttons To Work

Mar 29, 2011

I am using Flash CS5. In flash the program has a set of buttons already in a folder within the program so you can use them for your website and projects. For those that know the buttons most of them have a text that says "enter". What I have done is dragged the button to my stage and double clicked on it so I can edit it. From there I change the text from enter to something else like say "home". My problem is that when I click duplicate or make a copy of that button and go to change the text it changes the text for my first button too.
 
So I have my first button that says "home". My second one is going to say "pictures" but when I change the text of my second button to pictures it automatically changes the text of my first button from home to pictures. It seems that the only way I can get my buttons to work is if each button has the same exact text and if I change the text to one button it changes the text to all my buttons and makes it all the same text. How can I fix this so each button has a different text? I have a layer on my main timeline that is called buttons and all my buttons are on there. I am using these buttons for my flash website project but instead of creating them myself I used the ones flash had because I found them a bit more stylish for my taste.

View 5 Replies

Professional :: Actions On Buttons Wont Work?

Jul 25, 2011

i had placed buttons on and the Actionscript 2.0 Play,Pause, Ffwd etc and when i test the video the buttons do not function.

View 3 Replies

Professional :: Animation Doesn't Work When Load One Swf Into Another - Buttons

Jan 28, 2010

I'm new and am having a bit of trouble loading one swf into another for a preloader and main program. If u open up flashSite.fla or the swf, everything works, but when I load it into a mc container of preloaderMomSite, the animated buttons no longer work. If someone could take a look, I would love to find out what I'm doing wrong. All files are located on in the same directory.

[Code]....

View 2 Replies

Professional :: Motion Tween Works Fine In The Time Line But Does Not Work On Stage Preview?

Jun 7, 2010

I am new at flash CS4. (Upgraded to Flash CS 5 but this gives other problems in the meantime I continue with CS4)I have created  webpage. Within the web page I have created Motion Tween with Motion editor and once previewed, it works fine. Going back to the stage and previewing the result shows the initial position of the Motion tween but it doesn't move and behave the way it shoud. What's missing? Where am I going wrong?

View 9 Replies

Professional :: Make Buttons Work In Drop Down Movieclip In Flash?

Feb 17, 2010

I am trying to make an index page with buttons for a photography site.the entire page is built in flash so far. I have created a drop down menu that is a Movieclip with 5 buttons.I can not seem to assign an external web page to each buttons that are under the movie clip drop down menu.   Is this a possible? The Movie clip is run by mouse-over the word "studio Gallery" button. This drops down the 5 gallerbuttons (Portrait, children, wedding, Artistic Babies, etc...).  In Flash 8 Pro I know I can assign an external web page named children on the main page but how do I assign these to the buttons in the drop down once the movieclip is made.  Is this where I need to use folders with extra layers in the folder to make it work?

View 6 Replies

Professional :: Buttons Or Linked Text Dont Work In A Movieclip?

Apr 25, 2010

Im using Flash 8 to make a meny for my webiste. When you point whit the mouse on the meny it will scroll down, and if you take it outside it will scroll back. But im facing a problem When i try to put buttons or linked text into the movieclip, they just wont work... Anyone know what i have done wrong?Here you can download the movieclipHeres the code.

on (rollOver) {_root.html.gotoAndPlay(2);}on (rollOut) { _root.html.gotoAndPlay(7); }

View 3 Replies

Professional :: Test The Buttons To See If They Work On System (localhost) And Not On A Random Website

Apr 16, 2010

I have just created a flash navigation menu in which I imported to dreamweaver to link with the rest of my website. But if I want to test the buttons to see if they work on my system (localhost) and not on a random website, what url do I put? Or do I have to wait until I put my pages on the server and simply paste in the address?

[Code]...

View 3 Replies

AS2 :: Professional - Buttons - If Click The Logo Repeatedly In Different Areas The Link Will Sometimes Work

Nov 23, 2010

Working on the following site [URL] On the "What we Do" page (one click to the right) each company logo is linked using the Action Script 2 below. Only the "Zipfizz" button works though. The rest of the buttons only work very rarely. I made a stock button from a white box then turned the opacity to 0. Put one over every logo with the proper dimensions and gave them the right instance names. If you click the logo repeatedly in different areas the link will sometimes work. Anyone have an idea what's going on? I not very familiar with AS2, only AS3 but the site was built by another designer awhile ago.

[Code]...

View 1 Replies

Professional :: SWF File Doesn't Load Images Correctly And Buttons Do Not Always Work Properly.

Jan 7, 2011

I have a big problem - I decided to make a website using flash as I am good with photoshop and thought it would be fairly easy to construct in flash using tutorials. All went well except now the website is published, weird things happen. The homepage works fine but when you click on "portfolio" some of the buttons don't appear and when you try the buttons, some images don't appear. Occasionally some of the buttons take you to the wrong place also. When I test the movie in flash, everything works fine so I can't work it out. I am a complete novice so advice will have to be spelt out in black and white.

View 2 Replies

ActionScript 2.0 :: Dynamic Buttons - Set The Expiry Time Of The File, Each Time Has A Button ?

Aug 2, 2009

im making a flash upload thingy for my site, it has options to set the expiry time of the file, each time has a button which needs to be made from an array (which comes forma php script, not really relevent)... here is my code..

ActionScript Code:
if (vars.options == undefined){[code]....

i know the x values are too small but they should still all appear on the stage right ?, only the final item in the array appears...i think i might be replacing the previous one with the new one.

View 3 Replies

Professional :: Browser "Back" Arrows Do Not Work With Flash Buttons?

Apr 12, 2010

I've made several flash buttons for use in my navigation bars. They work great but the "back" arrows on the browser are always grayed out. It doesn't seem to matter what kind of browser I use. The site was made in Dreamweaver and the Flash buttons are imbedded within the pages. I posted the same question on the Dreamweaver forum and got some vague answers.
 
Is there some code I can put into my Flash buttons?
 
The site is [URL] or just type "Fire on McGinnis" into a search engine.

View 6 Replies

Professional :: Buttons Don't Work When Test Movie/Test Scene?

Aug 4, 2011

My buttons only work when I click on them on the stage while having the "enable simple buttons" option on. They do not work if I try to "test movie," "test scene" and publish it to a SWF. Nothing responds whenever I am in these modes. I am using Adobe Flash Professional CS5 Actionscript 2.0.
 
This is the code that I put in for the buttons:
 
[Code].....

View 5 Replies

ActionScript 2.0 :: Movie Clip Buttons - Target / Make The Buttons On The Other Frames Work

Aug 7, 2009

I have a movie clip with 15 frames. Each frame has buttons on it (mc's)... I was going to put the actions on the main timeline/stage and navigate within the MC from the main timeline. Is that possible? I can get the buttons on the first frame of the MC to work, but I can't seem to figure out how to target/make the buttons on the other frames work? I was thinking I could identify the path of the MC with the frame labels, but that doesn't seem to work. like: _root.RMChanger.(frame label).buttonOnFrame = function

I have to move a text box in and out over the MC backgrounds on the main stage... which is why I was thinking to do it this way? I've been switching back and forth bwtween AS2.0 and 3.0

View 9 Replies

ActionScript 2.0 :: Get The Mc To Move But The Buttons Remain Inactive And Also The Rollover States On The Buttons Don't Work

Jul 8, 2005

I am having trouble with a job I am doing at the moment which has an mc with buttons within it. I want it so that when I roll over the mc it tweens from a small version to a larger version, and on this mc there are some buttons. At the moment I can get the mc to move but the buttons remain inactive and also the rollover states on the buttons don't work. I have attached a simpler version of what I am trying to do to this post.

View 3 Replies

Flash Buttons - Manu Buttons Does Not Work On Some Computers ?

Dec 4, 2009

I'm having problems with the flash buttons on the flash website i made for a client. or some reason the buttons in the top and bottom menu work on some people's computers but on some they don't. I don't know what to do, i had this code for all the buttons,

on (release) {
getURL("http://legaldepartment.ca/","_self");
}

and they worked on my computer but on others the buttons didn't work at all so i added this code to each button also

on(press) {
_root.getURL("http://legaldepartment.ca/","self");
}

and they still work on my computer and some other people's computers but still some they don't work on some people's computers.

View 2 Replies

ActionScript 1/2 :: 2 Buttons Won't Work That Were Created Exactly Like Many Others That Work

Jun 1, 2011

I am using Flash CS4 with actionscript 2 to create an interacitve portfolio.I have 2 text buttons that work when I test them with "enable simple buttons." When I publish to IE these buttons won't work.  I have created over 50 buttons using the same methods, they all work.

View 8 Replies

Professional :: Displaying Time - According To Time Line

Feb 15, 2011

I have a time line of 1441 frames my frameRate is 24 fps so it takes 1 minute exactly to complete the timeline animation I want to Display the Remaining time as file starts I need formula to place in ENTER_FRAME event which displays the time left

View 2 Replies

ActionScript 3.0 :: Button Actions Only Work The First Time Used Then Nothing?

Sep 14, 2011

This is what I have...I Have 2 buttons in MC named mcMovieTrans the AS for these buttons are in the MC's timeline, the code is:

 stop();
function playLifeboy(event:MouseEvent):void
{
gotoAndStop(3);[code].....

This is where the problem occurs because when this action takes place and it returns to the parent MC (mcMovieTrans) The buttons actions dont work anymore.And I get this error message:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at capQinc_fla::mcMovieTrans_89/frame1()[capQinc_fla.mcMovieTrans_89::fr ame1:15]
at flash.display::MovieClip/gotoAndStop()
at capQinc_fla::mcKraveMovie_97/frame90()[capQinc_fla.mcKraveMovie_97::f rame90:1]

View 4 Replies

Path Function That Is On A Different Time Line For It To Work

Sep 25, 2009

I am trying to link a button via AS but I need to use a function that is on a different time line for it to work. I have no idea how I am going to do.

[Code]...

I am trying to use the "var flvControl" but that function is located on a different timeline.

View 7 Replies

ActionScript 3.0 :: Functions Only Work Half The Time?

Jul 24, 2009

Without getting in to the specifics, I have a .fla file that has several functions that animate movieClips already present on the stage.

When I compile/view the SWF while working on it, the functions only "run" half the time. The other half of the time, Flash never runs the functions, it just pretends the call never happened. Sometimes they work, and sometimes they don't. I have a feeling it may have to do with Flash's garbage collection, but I don't know how that works.

View 4 Replies

ActionScript 3.0 :: Upload Page Won't Work First Time Used

May 29, 2010

The first time I load the page nothing happens but if I reload it it works perfectly. I just learnt AS and Flash but this is the code I've managed to produce:

Main class

ActionScript Code:
import ProgressBarExample;
var frList:FileReferenceList = new FileReferenceList();
var pendingFilesA:Array;

[code]...

View 0 Replies







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