ActionScript 3.0 :: Button Won't Work After External Swf Opens?

Sep 11, 2009

I have a movieclip that gets loaded from the menu (addchild) from that movieclip I press a button which makes the loaded movieclip go to frame 15, on that frame the external swf loads. THEN when I press a button after that the button animation just flickers and no reaction when I click it.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: External Swf Opens But No Play?

Sep 24, 2009

I load the swf (picture gallery) into an empty MC via AS2, but I only get the image without its functionality.

View 3 Replies

AS2 :: Disable Button When It Opens A New Frame?

Jul 17, 2009

I have a movie and after the intro the enter button takes me to the next frame (11) and stops. there i have a drop down menu with button instances on each of the drop downs. The drop down is in a movie clip so i am using on (release) {_root.gotoAndPlay("s1"); } on the button instances to take me to root level to say frame 12 and stops. Each button instance has a different frame label to go to, s1, s2 etc - the idea being that back at root level i can have the content of each of the buttons on each of the frame labels (s1 at frame 12 , s2 at frame 13 etc) .... this works fine except the drop down menu in each of these new frames retains the action script on the drop down button instances - this is fine for all the buttons that will take me to another content page at root level - what i dont want is the AS to remain on the button for the page i am currently on - cos if you click on it it takes you back through the intro etc to get to its frame label again .

View 3 Replies

Actionscript 3.0 :: Button That Opens URL In Same Page

Jun 1, 2009

[code]I want it to open the site in the same page, not a new one.

View 2 Replies

IDE :: Disable Button AS When It Opens A New Frame

Jul 16, 2009

i have a movie and after the intro the enter button takes me to the next frame (11) and stops. there i have a drop down menu with button instances on each of the drop downs. The drop down is in a movie clip so i am using [code]on the button instances to take me to root level to say frame 12 and stops. Each button instance has a different frame label to go to, s1, s2 etc - the idea being that back at root level i can have the content of each of the buttons on each of the frame labels (s1 at frame 12 , s2 at frame 13 etc) .... this works fine except the drop down menu in each of these new frames retains the action script on the drop down button instances - this is fine for all the buttons that will take me to another content page at root level - what i dont want is the AS to remain on the button for the page i am currently on - cos if you click on it it takes you back through the intro etc to get to its frame label again.as i have been typing this i have thought i am gonna have problems the more "content" frames i have at root level (have only done one content frame so far)say i am on content page 3 (s3, frame 14, if i want to view anything prior to this frame its always gonna go back to the intro and play over again to get to s3 isnt it?

View 1 Replies

ActionScript 2.0 :: Button Won't Work When Loaded As External Swf?

Jul 7, 2004

i am using Kirupa's Transitions Between External SWFs tutorial to design my site. One of the external swfs i am using has a pic scroller with thumbnails, but when a thumbnail is clicked, nothing happens. When I load the pic scroller movie by itself, it works fine.

check out these links to see what i am talking about... (only the first two thumbnails of pic scroller have actions)

movie with transitions

pic scroller alone

The actionscript that is actually on the thumbnail button is:

on (release) {
loadMovie("detective.swf", "_root.content");
}

i am guessing there is something wrong with that _root part? Also, you have to click on 4 movie clips before you actually get to the button, so that might be causing some problems.

View 1 Replies

ActionScript 2.0 :: Have A Button That When Pressed It Opens An Url In A New Window

Aug 23, 2010

Using CS3
AS 2.0

I have a button that when pressed it opens a url in a new window. Works on Safari great, but not in Explorer.

Code...

on (release) {
getURL("http://www.name of website", "_blank");
}

View 3 Replies

Professional :: Button That Opens Up A Movie Clip?

Jun 8, 2010

i have another totally newbie question here, sorry everyone, In one of my frames i would like to have a button that opens up a movie clip, but i would like it to do this on a mouse-over action instead of a click, i have tried using the onRollover action, but i can't get it to work, it's got to be a daft mistake i am making but i have spent ages trying to figure it out, and once again i am stumped.

View 3 Replies

ActionScript 2.0 :: Button That Opens Desktop Icons?

Nov 11, 2010

Just wondering how to make a desktop in flash with buttons that link to the corresponding desktop icon.

View 2 Replies

ActionScript 2.0 :: HTML Page Opens Flash Site - Loads External Swf File

Jul 11, 2005

I have an HTML page with buttons. Each button needs to have a getURL to open the Flash site, but then somehow, needs to also load the appropriate swf into that Flash site... My reasoning is because I have some scripts under my site that need to be in HTML (or PHP) for search engines, that way I don't have to do the whole site in HTML.. I hate having a HTML index page, but it's the only solution I could come up with. So, when a visitor selects any of the navigation buttons, I don't want them to have to select that button again, when the Flash site loads. how to do this for Flash 7 / AS 2.0? Or if there are any posts here about it?

View 2 Replies

ActionScript 2.0 :: Button Wont Work When Loaded As External Swf?

Jul 7, 2004

i am using Kirupa's Transitions Between External SWFs tutorial to design my site. One of the external swfs i am using has a pic scroller with thumbnails, but when a thumbnail is clicked, nothing happens. When I load the pic scroller movie by itself, it works fine.

check out these links to see what i am talking about...(only the first two thumbnails of pic scroller have actions)

movie with transitions

pic scroller alone

The actionscript that is actually on the thumbnail button is:

on (release) {
loadMovie("detective.swf", "_root.content");
}

i am guessing there is something wrong with that _root part? Also, you have to click on 4 movie clips before you actually get to the button, so that might be causing some problems.

View 1 Replies

ActionScript 3.0 :: Make A Simple Button That Opens A Webpage?

May 24, 2011

I am trying to make a simple button that opens a webpage.This error comes up and I don't know where I'm going wrong...
 
1061: Call to a possibly undefined method addEventListener through a reference with static type Class.
 
(it says it's line 6 which I have highlighted in red)
 
<<my actionscript code is below>>
import flash.events.MouseEvent;var getPage:URLRequest = new URLRequest("http://www.google.com");
//---B Button---\

[code]....

View 5 Replies

Professional :: Button Opens Wrong Scene Flash Cs5?

Jun 16, 2011

I have a project set up as scenes.In scene 1 there are two buttons visible from the frame 1licking on these takes us to scene 3 or 4. They work fine. I used code snippet "Click to Go to Scene and Play" the action script is on a keyframe on frame 1 as that is the first frame the buttons appear.From frame 120 a third button appears. So on this frame I have actionscript go to and play scene 5.Problem is it goes to scene 3 instead, like the firstbutton. The buttons are not near each other on screen so its not a case of accidentally clicking wrong button.I think maybe I should've set up my project as movie clips within 1 timeline  but I'm too far down the scene route now to change it at this stage.the buttons are all invisible so maybe the third button should also be present from frame 1 and just disabled until frame 120?

View 1 Replies

ActionScript 2.0 :: Make A Button That When Pressed Opens A Window?

Aug 4, 2003

i am trying to make a flash site, and anyway i got some problems i want to make a button that when pressed opens a window (set size of 500 400) what actions should the button have?

View 4 Replies

ActionScript 3.0 :: Package Class That Opens A MovieClip On A Button Click?

Jul 13, 2009

I have a timer on my main flash document, and a package class that opens a MovieClip on a button click.
 
I want to stop the timer when the user starts the movieclip and then restart it when they close the movieclip. I don't know how to send information back to the main flash document from the package though.
 
Calling an object's method from the main flash doc is object.method(); But I need to do the reverse. I know this a low level super easy question, but I cant find the answer. Something like _MainDocument.function(); would be my guess. Or is there a addEventListener(class Deconstructs, doSomethig) ?

View 4 Replies

ActionScript 3.0 :: Toggle_window - Window Opens And Closes Not By Clicking On The Button But On The Window Itself?

Jun 12, 2009

i would like that my window opens and closes (opens: scale out; closes: scale in) not by clicking on the button but on the window itself.here are 3 applications of mine (schuifwindow, scroll and fotoalbum).
 
Grtz,Jan the man
 
here are 3 applications of mine (schuifwindow, scroll and fotoalbum).
schuifwindow www.truevision.be/other/btn_home.flascroll www.truevision.be/other/scroll.flafotoalbum www.truevision.be/other/foto_album.fla only picture one (left up corner) has a X button (i dont want to use this button)

View 5 Replies

Professional :: Button File Opens In Saved Location / But Won't Open In New Location

Aug 21, 2011

I created a simple button that displays an error messeage: "error opening 'url" when I test the movie, but does play and opens in browser after publishing. However, it won't open in the browser in a different location. I pasted the html code in a web page but it doesn't work there nor opens in the browser in a differnet location from where it was originally published and saved. Why is that?

View 13 Replies

ActionScript 3.0 :: External Interface Call Doesn't Work With Function That Is On External JS File

Apr 17, 2012

I am using in AS3 "External Interface ". When I call the JS function that is on the same page as swf everything works fine.

I added a link in the html page to an external JS file, when I move the JS function to the external JS file the website crushes.

I would prefer to have all my JS functions on an external file so I can use them in the future in other project and it also makes it easier for me to update the site.

how to call a JS function that is on an external file from AS3?

View 6 Replies

ActionScript 2.0 :: Preloader For External Swf's - Doesn't Work For The External Movies?

May 22, 2005

... I've had my preloader successes already, but something still doesn't work for the external movies... I'm loading the main movie - which contains several chapters, loaded as external swf's - with the following preloader on the first frame, rest content from second frame on:

[Code]...

View 5 Replies

ActionScript 3.0 :: Unloading A Loaded External SWF With A Close Button On The External SWF To Unload?

Aug 15, 2011

[URL]I have: main.swf (a menu) and I have module.swf (content)If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent. So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.below is the code I used to load the file but I cant, for the life of me, find a way to unload it. 
 
var bigboreLoader:Loader = new Loader();btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
function bigborecontent(event:MouseEvent):void{var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf"); bigboreLoader.load(bigboreRequest); stage.addChild(bigboreLoader);
 
I am certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. I found the code below:
 
Main FLA: 
function removeF() {
removeChild(bigboreLoader);
}

[code]....

View 10 Replies

ActionScript 3.0 :: Loading In And External Swf And Unloading It From A MC Button Inside The External Swf?

Nov 2, 2010

I used to do this fine with AS2 and now i'm struggling to get it to work in AS3.my code is as follows:

PW1.addEventListener( MouseEvent.CLICK,loader1 );
//==================== PS function =============================================
var ldr:Loader = new Loader();

[code].....

View 3 Replies

ActionScript 2.0 :: Trigger External Swf To Load Into Main Swf From Button In Another External Swf?

Apr 22, 2007

I am trying to get a nav button in one movie (main_nav.swf) to target a my main movie (index.swf) and load a sub nav movie (metals_subnav_infinite.swf) into it. The sub nav movie will do a similar task - loading a portfolio swf into main movie (index.swf). Here is the file breakdown of my working files:index.swf - main final movie which loads "main_nav_infinite3.swf" on startmain_nav_infinite3.swf - loads main nav "main_nav.swf" and scrolls it infinitely (infinite menu)main_nav.swf - main nav with buttons that trigger sub nav "metals_subnav_infinite.swf" to load into index.swfmetals_subnav_infinite.swf - loads sub nav "metals_subnav.swf" and scrolls it infinitelymetals_subnav.swf - sub nav with buttons that trigger "folio.swf" (have not created this file yet!) to load into "index.swf"The script I was focusing on is in main_nav.fla and it is:

metals_mc_bn.onRelease = function() {
reActivateMenu();
this.gotoAndStop(3);

[code].....

View 2 Replies

ActionScript 2.0 :: Box Opens Up Itself?

Oct 11, 2007

I'm wondering if its possible to have a box open up once clicked.I want to do a enter page with a gift box sitting there, and then once clicked open itself up and page content comes out.Can anyone point me in the right direction? I can show an example of the box I want to use.

View 14 Replies

AS3 :: External Preloader Won't Work

Aug 14, 2010

I'm trying to create a preloader for a site I am creating. Originally I was going to make it an internal preloader, but I ran into that issue where the preloader doesn't start until 50% (or more). After searching these forums for a solution to "that" issue, I found it suggested that the best way to fix it is simply do an external preloader instead.

When testing the preloader using the bandwidth editor, I see that the preloader animation isn't starting now until it's at 100%, instead I simply get a white screen. Once it reaches 100% the preloader animation runs through and then...nothing. My main.swf doesn't load. It just stops.

Here is my code:

Code:
var fileToLoad:Loader = new Loader();
var fileURL:String = "testmovie.swf";
var fileRequest: URLRequest = new URLRequest(fileURL);

[code]...

preloader is my movieclip with the animation, and preloader.loading_txt is a textbox inside that mc which displays the % loaded. I wanted to make it so that once the preloader (and its animation) reach 100%, the preloader mc then plays frames 101 - 124 (which are a small transition animation into the main site). Once it reaches 124 it's supposed to call the main.swf to load.

View 1 Replies

ActionScript 3.0 :: Swf Does Not Work As An External Swf?

Oct 12, 2009

it works fine independently as a stand alone But Now i need to get it to work as an external movie swf within my main swf movie. I have managed to load it into the movie but the panning no longer works. Im guessing this problem is something to do with the levels but i have no idea what.

View 2 Replies

ActionScript 3.0 :: Link Opens New Tab

Jul 20, 2009

I want to use a flash file I made as a menu for a website, but when I click a link it opens a new tab rather then navigating to a new page in the same tab. I'm using this [code]...

View 1 Replies

Stage Is Grey When Swf Opens In A Pop-up

Mar 16, 2011

My swf has a black coloured stage.

But when I open the html page in which the swf is embedded, as a full-screen pop-up window, using javascript, the stage colour of the swf is always grey - not the black I set. This happens with whatever colour I set as the stage colour.

View 1 Replies

ActionScript 3.0 :: Add Which Will Make Sure Is Opens In The Same Tab?

Jan 26, 2010

I am building a website and have this URL request within a .swf which is embedded within an html page.var link:URLRequest = new URLRequest ('Profile.html'); As you can see here, it is linking to another page within my website, but this opens in a separate tab in all browsers. Is there a line of code to add which will make sure is opens in the same tab?

View 3 Replies

Doesn't Work When Loaded Into External Swf?

Aug 30, 2011

I've only been working with flash for about 3 weeks and I'm fairly new to programming soI'm using Flash CS5 with AS3 btw.

Code:
///////////////////////////
// Custom Mouse Controls

[code]....

View 2 Replies

ActionScript 1/2 :: Buttons Don't Work On External .swf

May 31, 2009

I have a container .swf file which takes care of loading a menu.swf and maincontent.swf.  I finally got these working together and loading at the same time, but now I ran into another problem.  None of the menu buttons work.  It loads and XML takes care of creating the buttons and adding dynamic text to them.  I also have it set up so that the mouse's hover position over the clip scrolls it horizontally (because there are too many buttons to show at once).  All of this functionality works correctly.  However, the buttons' rollovers, clicks, etc. do not register.
 
The cursor turns into the hand cursor over the entire movie clip into which the menu is loaded, and I'm assuming there is some problem with the events only targeting the clip it is loaded in, and not the buttons themselves.  It works fine when testing it by itself.  I've just recently begun working with Flash, and I learned AS3.  However, I was given pre-existing commercial software to work with which was written in AS2, and now I've converted all of my work, and this is the problem I am running into.  By the way, it seems to always come up from what I've seen, though I don't understand much about it -- _lockroot is set to true.

View 3 Replies







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