ActionScript 2.0 :: Tell The New Pop Up To Close The Old One And Then Open?
Mar 4, 2005
im having a big problem with my pop ups. at the moment i am using the code form this tutorial [URL]. The windows pop up, the problem lies in that the pop ups wont replace each other. if one pop up is open, trying to open another one just makes the old pop up active, it doesnt open the contents of the new one. this is a big problem since the pop ups are for my portfolio to show the work at larger sizes. is there a way to tell the new pop up to close the old one and then open? would this be some sort of if... else statment? or is there some other code i should use for the pop ups? either way,
View 1 Replies
Similar Posts:
Feb 28, 2011
I opened from my main swf a new one with addChild. Now in the 2nd swf i need a button to close this swf and open another one ... I done this way because the button i puted in the main swf does n´t work (maybe because i´m using in both swf liquid layout with a resize function). How can i do to close the 2nd swf and open another one.
View 2 Replies
May 24, 2009
I wrote this code that loads and unloads object to the screen. But have small issue. When i press the CityButton it loads the object... i dont want the villageButton or anything to be selectable until the CityButton is pressed again which causes the loaded city object to be removed.
/*//this is the button events for each name*/
cityButton.addEventListener(MouseEvent.CLICK, clickHandler);
villageButton.addEventListener(MouseEvent.CLICK, clickHandler2);
[code].....
View 1 Replies
Mar 4, 2005
The windows pop up, the problem lies in that the pop ups wont replace each other.if one pop up is open, trying to open another one just makes the old pop up active, it doesnt open the contents of the new one. this is a big problem since the pop ups are for my portfolio to show the work at larger sizes. is there a way to tell the new pop up to close the old one and then open? would this be some sort of if... else statment? or is there some other code i should use for the pop ups?
View 1 Replies
Dec 5, 2011
I trying to close a message box with a okay button inside its movieclip but i keep getting "1119: Access of possibly undefined property btnOk through a reference with static type flash.display:SimpleButton." error message when testing.Below is my code. anyone please help.
Code:
//open message box
btnPassport.addEventListener(MouseEvent.MOUSE_DOWN, btnPassportClicked);
function btnPassportClicked(event:MouseEvent):void {[code]...........
View 2 Replies
Jan 11, 2010
I am stumbling across this issue as I open and close a sound stream. This is the code I use, not sure if closing and opening a stream on the same function is a good idea.
[Code]...
View 4 Replies
Apr 7, 2011
I have an HD video that I shot of curtains or drapes opening and closing. I would like to make something in Flash where someone could click one side of the curtain and pull it open. When they release the mouse it should close back. In the video both sides open at the same time so I'm not sure if I can make the sides independent or not. If I can do this I may also want to make a version where the curtain stays where they released it.After I make a web version I am going to try to turn it into an app for a smart phone. The online use with a mouse is way more important at this time.
View 6 Replies
Nov 4, 2011
Relative newb to Flash and not sure what the issue is but I have a shelf opening and closing effect The timeline is 45 frames long and when the shelf is out it has this AS3 code in it:
import flash.events.MouseEvent;
stop();
ShelfOpen,addEventListener(MouseEvent.CLICK, closeShelf);
[code]......
View 4 Replies
Nov 6, 2010
I have a NetStream publishing properly using multicasting for fp 10.1. My problem is that I can not close the steam and open it back up. I call .close() on the netstream object and receive this message:
NetStream.Unpublish.Success
I then call .publish("same stream name") and receive this error:
Netstream.Publish.Badname
View 2 Replies
Nov 4, 2010
Is there a way to programmatically close an open file dialog?
My current problem is this: I have a small file download program. When the user clicks a button, it will pop-up the Save As dialog. The problem is, if the user closes the Firefox window, the dialog stays open. And when the user wants to close that dialog, he or she can't anymore. It won't respond. The only way is to kill the plugin process (on Linux anyway).
So is there a way to monitor opened file dialogs?
I've tried to get the browser to notify the Flash app that it's closing, which works great. The problem is even if the app knows it should close the file dialog, it can't...I've tried setting the FileReference to null, using delete on it, calling the garbage collector, etc., nothing seems to have any control on that dialog.
View 3 Replies
Jan 21, 2010
I created this web page in Flash AS3 and I need codefor a button that will open and close pop-up swf file on stage, not in a new window.
View 1 Replies
Feb 10, 2010
I'm making a site where I need the music player to go on and off the screen wehn you hit a close/open button. Click here to view the Radio opens but can't close. This is the code I use:
[Code]...
View 6 Replies
Dec 11, 2009
After working for a prolonged time on a programming problem, I start to get coding tunnel vision. It makes it harder to draw back and look at the problem from farther away. Hence my question: I am using a Drupal 6 site. When a menu option is clicked, the page opens and a Flash SWF file needs to played in a ThickBox. After 8 seconds, that Thickbox closes.
Opening the SWF file in the Thickbox when a link is clicked is no problem, just like closing the Thickbox afterwards; that's basic javascript. For that I use these:
[Code]...
But opening the Thickbox on load? I can add a link for the user to click, but it should open automatically. I figured out the PHP to have it only open on one specific page. From the Thickbox manual, I learned to open links to images - but not how to open it when the page loads.
View 2 Replies
May 19, 2010
I am a super noob at actionscript. And I want my button to open a movieclip and then close the movieclip when clicked on again. I have no idea what to add after that here is the code I have for the button so far.....this button opens it.
on(release){
this.linemc5.gotoAndPlay("ear");
}
and this is another button I made that can close it, but I want it to be in the same button rather than seperate.
on(release){
this.linemc5.gotoAndPlay("earclose");
}
View 2 Replies
Sep 28, 2011
I've got a drop down menu. I want to click a tab to make it drop then, if it's open, click it again to close. I've tried a million variations on the script below:
var btn_grp1:String
function main1Down(event:MouseEvent):void {
if (btn_grp1 != "dwn") {
[Code]....
This works too (once). So the drop down buttons all disapear again, but it won't re-set. The drop down menu stays up from then on.
BTW i'm not set on this method, it just seemed the most obvious i.e. if menu hidden, then show it, set some variable to down (showing), else hide the menu, set var to up (hidden). Not working though.
View 2 Replies
Mar 25, 2009
I have a picture on the stage that has multiple items that have hotspots/links over them that should open a child swf on top of the background and show details about the items. then have a button in the child swf itself that removes the child from over the background so the user can click on another item etc.I found this code in someone's post and I am trying to modify it so that works for multiple swf files...it currently works for a single swf.I wan to pass the name of the button in front of the .swf in the URLRequest to have the same name as the instance name of the referring button. But I can't figure it out. Here is the code I am using on the stage
View 2 Replies
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
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
Aug 3, 2009
So I tried to code something in AS3, it works technically, but not so smoothly. Try opening the three graudge doors here: [URL]..
They don't relly want to open and seem to open when the mouse moves out of the movies clip which is not how it's programmed:
[Code]...
View 7 Replies
Mar 2, 2005
My query is how would I open windows open or save as dialog box through flash?
View 2 Replies
Jun 6, 2010
I need to made a Browser windows before that i open the Flash movie, like this one: [URL] So i need somme kind of pop up to run when somme one opens the site, and then see the movie.
View 6 Replies
Nov 3, 2009
I'm having problems getting the tutorial to work so I decided to look at the source fla. But the Source file won't open on my computer, get the message "failed to open document".
View 3 Replies
Aug 14, 2011
My CS5 flash crashed when I changed the name of the root folder while it was open. Swf is working fine, but .fla file wont open, I get a "Failed to open document" message. This is a disaser because I've lost two days of work. Is there anything that could be done to fix this problem?
View 2 Replies
Mar 6, 2004
1) how do you open a new window if you have thumbnail pics in the flash movie but want the full pic to open up in a new window? Is this Javascript inside flash?
2) How do they do the menu bar here at this site:[URL]
View 1 Replies
May 17, 2009
I am trying to have multiple links off site but have hit a brick wall. If I have the code listed below, it opens the second link as soon as you open the links page, If I have the"function onLinkClick (evt)", above btn6_btn I end up with the duplicate error message. Is there a way to have multiple link buttons on a page. I have played with this for hours.
[Code]...
View 15 Replies
Jul 13, 2009
I work with 3d animation. Im have a problem with a personal website Im doing, I have a link in a button inside a flash movie to open a new window and play a youtube movie:
on (release) {
var jscommand:String = "window.open('http://www.youtube.com/v/b0L4XLODhAA&hl=en&fs=1&','win','height=344,width=4 25,toolbar=no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);");
}
This works fine in Firefox but in IE it doesnt work, I then change the /v/ in the youtube link with /p.swf?video_id= and now I have the window open showing the small youtube thumbnail of my video but once a click play, nothing happens, I check it and is not loading anything.
View 8 Replies
Sep 27, 2005
Is there a way to open the "open file dialog box" in a swf using javascript.
The swf is on a webpage.
View 1 Replies
Mar 10, 2012
I have a pop up box on a button which does open and close but I would like to add an X to the corner which would also close the box.
View 2 Replies
Sep 13, 2004
Does anyone know the syntax for closing a swf window using a button, similar to closing a popup window? I am creating a small game, and am giving the user the option to "play again" or "quit" at the end of the game, so i want the quit button(standard library on(press)) to close the swf file.
View 2 Replies
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