Professional :: Can't Get Close Button To Work

Dec 9, 2011

am using flash cs5.5, action script 3 and can't get my close button to work. the code is below. if you are able to help me that would be wonderful.
 
tried this:
 
// add an EventListener to the button
Vid.addEventListener(MouseEvent.CLICK, buttonClick);
// the function that runs when after button was clicked

[Code].....

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Getting A Close Button To Work Within A Mc Popup Box

May 24, 2011

Have been having difficulty with this issue of getting a close button to work within a mc popup box (it is doing my head in !) Basically I have a Button on the stage that launches a popup mc. To close this popup, I have a 'x' for the user to click on to close this box. I don't want the box to become 'invisible' or for the whole box to close when clicked on (I have tried both but not what i am after). It is important for user to be able to relaunch this box by clicking on the button after closing previously.

It would be great if anyone would be able to view the fla atatched and explain what needs to be included, and perhaps upload a working verison.

View 4 Replies

IDE :: RemoveChild - Make The Close Button Work On Project?

Feb 3, 2010

trying to make the close button work on this homework project. This app scatters photos on the stage, randomly and at random angles. They are drag and droppable and the clicked photo comes to the fore. Each photo has a close button intended to remove the photo from the stage, this last is what won't work. I know its a common topic, but nothing I've tried has worked so far. onClickCloseBtn is the problem.

Code:
package
{
import flash.display.*;[code]........

View 1 Replies

ActionScript 2.0 :: Code Does Not Work After Using The Close Button To Unload The Movie?

May 21, 2007

i have a movie called with:

Code:

_root.attachMovie("biography", "biography", _root.mylogo.getDepth()-1, {_x:Stage.width/2, _y:Stage.height/2});
and within each i have a close button with:

Code:

close_bt.onPress = function() {
unloadMovie(_root.biography);
};

but now i have a problem, im trying to use:

Code:

if (!_root.biography) {
_root.attachMovie("biography", "biography", _root.mylogo.getDepth()-1, {_x:Stage.width/2, _y:Stage.height/2});
}

to call the move again if there isnt already an instance of it but it only works the first time the movie was called, it wont work after i use the close button to unload the movie..

View 6 Replies

Professional :: Close Button On Transparent FLV For Embedding

Jun 15, 2010

I have rendered out a FLV with alpha enabled and using wmode options correctly, i am able to get my flash content embed on top of my pages, over the content.

1) I need the embedded flash content to have a close button, otherwise what i am seeing is a flash movie playing on without an option to close. Tried a button with on (release){getURL("java script:window.opener=self;self.close();");}
 
Is it that I have to place the FLV (alpha enabled) within a movieclip? and add a button there?

2) Also I need to start this content in the webpage using a mouse over over a button.

View 2 Replies

Professional :: Make A Flash Pop Up Ad With Close Button?

Feb 17, 2011

how to make a flash pop up ad with close button? I also need it to close after the movie ends.
 
Similar to this ad.

[URL]
 
Any actionscript for a close button and self closing window would help.

View 5 Replies

ActionScript 2.0 :: Close Browser By Clicking On Close Button Embedded Swf?

Jul 27, 2009

i want to close browser by clicking on close button embedded swf. I have tried fscommand("quit"), but which is not working on browser.

View 9 Replies

AS3 :: Professional :: Getting Button Mc / 'this' To Work?

Apr 5, 2011

Im trying some AS3 for the first time. I have a mc without a instance name, sitting inside _root.first_mc.2nd_mc and its timeline I have a frame label at frame ten called "on" and at frame twenty called "off". in the first frame of its actions I found a peice of code that is meant to replace the old onRollover etc.

[Code]...

I run the code and I get no errors, the code isnt actually functioning. Do I have to do full mc naming instead of .this? Or am I doing something else wrong?

View 6 Replies

Professional :: Can't Get ONE Button To Work?

Sep 22, 2011

I am loading 4 external SWF's inside a Master Movie file. I've got 3 of the 4 working. The last one is giving be fits and I can't see the problem. I am housing the external SWF's inside a manually created container (AS2). This last button is being a rebel and it's driving me nuts. I've checked and double-checked to ensure the instance name matches the button name in the code....as well as the name of the external swf. It's all correct, to me. The .swf is in the same folder as the .fla, by the way.AS2 code:

stop ();
jukebtn.onPress = function ()
{

[code]....

View 6 Replies

Professional :: Button Lnks Don't Work?

Feb 25, 2010

For some reason I can't get my buttons to link to a URL. The file was created in Flash CS3 and I'm working in CS4.  I'm still a newbee. Seems by the time I finally figure Flash out, it's time to learn it all over again. Getting familiar with AS, but still have along way to go. Anyway when I apply either these scripts to a button the url launches without ceremony or not at all when I preivew it. Probably something brain dead, I'm sure.
 
AS2.onRelease = function() {    getURL("http://www.http://www.linkedin.com/connections?trk=hb_tab_cnts.com");};
AS3linkedBtn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {navigateToURL(new URLRequest("http://www.http://www.linkedin.com/connections?trk=hb_tab_cnts.com));}
 
Errors: Line 2 - The class or interface 'MouseEvent' could not be loaded. Line 1 - Statement must appear within on handler

View 8 Replies

Professional :: Can't Get Any Button To Work On Some Frames?

May 6, 2010

I have a movie that I have been working on.There is a simple animation/intro and then a main frame with several buttons set up to jump ahead to other frames.There are 4 buttons and they all work just fine and go to the respective frame with no problems.
 
My problem is in trying to add a button to one of those frames.  I can't get any button to work on any of those frames at all.  I tried to add a "home" button that jumps back to the main frame, but that wouldn't work.  So, I tried to copy the main frame and move it ahead on the time line but that didn't work either.  I tried to add buttons for the other frames as well and no button would work (regardless of where it was referenced) on those other frames.Here is the error message I keep getting:
 
Cannot access a property or method of a null object reference.

View 9 Replies

Professional :: Flash Button Just Does Not Work

May 31, 2010

I have been trying to work out my flash button. But it just doesn't work.. In flash, I made a button symbol. I did the four stage.up, over, down and hit. And I set the actionscript
on(release) {
getURL("[URL]","_blank");
}
When I tested the movie, it said 1087: Syntax error: extra characters found after end of program.

View 1 Replies

ActionScript 3.0 :: Socket.Close Does Not Work In Windows Browsers?

Nov 11, 2009

I have an FTP program written that uploads ByteArrays through sockets. It works great on my Mac! I open a command connection, then a data connection, send the ByteArray and then use socket.close() on my data connection. This causes the server to disconnect me and sends the 226:transfer succeeded message back through my command connection. The problem is that in IE8, FF 3.5, and Safari 4 on Windows the socket.close() func does not make the server close the connection. The fact that it works in all of my Mac browsers, and the IDE, but not in Windows browsers makes me think that it's something to do with the Flash Player.

My FP version check data:
MAC 10,0,32,18
WIN 10,0,32,18

View 1 Replies

ActionScript 2.0 :: Swf Loads But The Script To Close The Menu Does Not Work

Nov 12, 2007

I have a swf that is being loaded into another swf without a "container" clip (which i am not quite sure how to implement). The loaded swf has _root references so in the very first line of script i placed this:

[Code]...

I also have embedded MC that refer to this _root script. So my problem is that the swf loads but the script which is supposed to close a menu when one menu is opened does not work, they just all stay open when i click other menus.

View 14 Replies

Professional :: _self Does Not Work On Flash Button?

Mar 8, 2011

Im using this code on a nav menu i have created.

on (release) {
getURL("http://mysite.com", "_blank");
}

[code].....

View 9 Replies

Professional :: Making A Back Button Work?

May 18, 2011

Flash CS5 on Windows 7 I have a problem with a project I am creating. I have created 3 buttons which when clicked open other movieclips for each button. On each of the movieclips that the buttons send them to, all have a back button to return them back to the original view.
 
This back button works fine apart from once they are back at the original view, the 3 buttons stop working.

View 4 Replies

Professional :: Cannot Get A Simple Flash Button To Work?

Jul 20, 2011

I do not know action script, and, have created a button in flash that pops up information when you rollover the button.The button works fine, but, the entire area - where the information pops - is also poping up when I rollover that area.

View 4 Replies

ActionScript 2.0 :: Put A Close Button In The Window MC To Close The Window?

Mar 23, 2007

*let say i have a mc called A. it can call a MC with an instance name called window_btn.window can be drag and double click.i want to put a close button in the window MC to close the window.

how to call the close button in the MC?

View 14 Replies

Professional :: Button Does Not Work Inside Movie Clip?

Oct 6, 2010

On the about page of my Flash website, I wanted 7 buttons to navigate to various labels. I just finished the first button. I made it while I was inside the about_mc. It worked well but would NOT navigate. I took the button OUT of the Movie clip and made a separate layer on the about page for buttons and pasted it there and it worked perfect. When I made it inside the mc, is there some different code I should have used other than the standard code for making a button navigate to a frame. I built an addeventlistener and a function. BUT they only worked when the button was "ON TOP" of the mc NOT when it was INSIDE the mc. I have a transition tween on the about_mc and therefore the button does not tween when it is on TOP of the mc only when it is inside the mc.

var aboutTween:Tween = new Tween(about_mc, "y", Elastic.easeOut, -200, 146, 3, true);
laborLaw1_btn.addEventListener(MouseEvent.CLICK, laborLaw1);
function laborLaw1(evtObj:MouseEvent):void{ gotoAndStop("laborLaw1_fl"); }

[code].....

View 2 Replies

Professional :: Can't Make Music On / Off Button Work For Movie Built In CS5

Aug 10, 2010

This Message Used To Be Entitled:"Can't make music on/off button work for my movie built in CS5..."But after literally WEEKS of being on this forum (& desperately seeking the answer in numerous ways) do you mean to tell me there is ABSOLUTELY NO ONE ON THIS FORUM that knows how to make a music/sound button work correctly? [code]Perhaps it's a simple adjustment,.

View 11 Replies

Professional :: Flash Player 11.3 - Button Cursors Do Not Work Server Side

Oct 13, 2011

I have Flash CS5.5 I just uploaded an swf with a few button instances I got the msg that I needed to update my Flash player so I did. After that when I went to test the swf I get no button cursors on any buttons in the swf. The buttons work when I press on them but there is no cursor. If I publish the file locally the cursors are there, I made a few different fla's with test buttons to make sure and they all do the same thing. The publishing settings are set for 10.2 , this seems to have happened once I got the new Flash player 11.3.

View 2 Replies

Professional :: Make Drag And Drop Work On A Check Answers Button?

Feb 20, 2012

I ve got a drag and drop code working, but what I really want to do is have a check answers button that tells the user, you have none correct, or two correct or all wrong... I have one target area, and 3 correct answers (out of 7) so I would like to let the user put as many ansers on the target as they want and then check if they have any correct, also a reset code would be nice to put everything back where it started... I tried to break my code up but the events then went mad, Here is what i have so far, it works instantly and lets crrect answers stay and incorrect bounce back..
 
stop();
yes1.visible=false;
allcorrect.visible=false;
doit.text="drag over the words that mean Vision";

[Code].....

View 1 Replies

ActionScript 2.0 :: Main Page And Directions Pages Work Fine, Others Get Stuck When The % Reaches Close To 100%?

Mar 30, 2003

I am a rookie with this, I copied and pasted from a tutorial. the main page and directions pages work fine, but for some reason the others get stuck when the % reaches close to 100%.

View 2 Replies

Professional :: Button Cursors Do Not Work Server Side After Flash Player Upgrade

Oct 13, 2011

I have Flash CS5.5 I just uploaded an swf with a few button instances I got the msg that I needed to update my Flash player so I did. After that when I went to test the swf I get no button cursors on any buttons in the swf. The buttons work when I press on them but there is no cursor. If I publish the file locally the cursors are there, I made a few different fla's with test buttons to make sure and they all do the same thing. The publishing settings are set for 10.2 , this seems to have happened once I got the new Flash player 11.3.

View 1 Replies

Professional :: If Install The Home Buton The Main Page The List Button Does Not Work

Feb 2, 2012

I am working on an iMAC running 10.6, and Flash CS5. I created a flash file with a list button ( with 10 inner sellections) on the main page. Each sellection within the list button loads a separate movie file from the library. Everything works great unitl Iinsert the Home button. If I install the home buton the main page, the list button does not work. If I install the home button in a movie, I don't know how to write the action script to go back to the main page, and I woul have to install a home button into each movie.

View 2 Replies

Close Button Not Working

Jan 31, 2008

I have a picture with an invisible button, once clicked on the button runs a movieclip with an instance - box1, once its opened a close button appeared, called closeBtn1 and the idea is when thats clicked, for box1 to gotoAndPlay frame 80, but no matter where I put the code it doesnt seem to let the closeBtn work! Even trace actions aren't getting recognised![code]as u can see I'm trying to trace even if the closeBtn gets rolled over but to no avail.I have also tried it from scene level and still no joy.

View 7 Replies

IDE :: Close Button In External Swf?

May 14, 2009

Is is possible for a loaded external swf to unload itself? I need a loaded swf to play to a certain frame and then display a close button.

View 1 Replies

ActionScript 3.0 :: Close Swf Button

Jun 27, 2011

I have a button that loads an external swf.this is the code

Code:
map_btn.addEventListener(MouseEvent.CLICK, clickFunction);
function clickFunction(evt:MouseEvent):void {
tint_mc.gotoAndPlay("on");[code]....

Now i want that same button to unload that swf-file.I tried removeChild, but then this error appears:

ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.at flash.display:isplayObjectContainer/removeChild()
at menu_fla::MainTimeline/clickFunction2()

View 2 Replies

ActionScript 2.0 :: Close A Mc Using Button?

Dec 15, 2003

would there be sum sort of actionscript that can be appiled to a button which closes a mc?

View 5 Replies

Professional :: Flash Exe. Won't Close

Nov 17, 2007

I have a bug in my Flash cs3. After I close the program, it is still running.What I mean is, if I check task manager (Ctrl, Alt, del) Flash.exe is still running. Also, I can no longer re-open Flash unless I end the process in task manager first.

View 5 Replies







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