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


Similar Posts:


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

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

Professional :: Loaded External Swf Does Not Work Properly?

Oct 13, 2010

I'm trying to create universal loader of flash games on one entertainment site. What I want is to make some kind of container (SWF A) which will load another flash to it (SWF B) (by some params).
 
SWF B could be anything - AS1 / AS2 or AS3 flash. SWF A is programmed with AS3. Problem is that not all SWF games, which I try to load, works fine. Some games lost their click events, some games does not load at all, some games are corrupted. When I run that games separately (not using my loader), games work just fine. Why is this happening? Why some flash games are not working properly after loading by another flash?
 
I'm using Loader object to handle this, without any special settings - same as on examples on AS3 Bible book...

View 9 Replies

ActionScript 2.0 :: Loaded An External Movie And Its Buttons Don't Work

Feb 19, 2003

i loaded an external movie and its buttons dont work but when i test the movie by itself the butts work fine

View 3 Replies

ActionScript 3.0 :: Preloader In External.swf Does Not Work When Loaded Through Main Swf

Jul 11, 2009

this is my final bug then I can finally launch this bloody site. here's my problem, I am loading an external .swf, which contains a pre-loader. the preloader in the external .swf works fine when I test it online by itself (not being loaded via main.swf) But when I test the external.swf through the main.swf the preloader does not work. the external.swf just plays through like it does not recognize the stop in the first frame to initialize the preloader skipping it altogether.here is my code:

[Code]...

View 3 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 :: Invisible Button Doesn't Work In Loaded Swf

Aug 12, 2009

i have a main loader swf file called loader.swf and it loads 10 swf files inside a container. the 10 swf files have invisible buttons and when i test the 10 swf files alone the invBtn-s are work fine, but when i load them with the loader.swf the invBtn-s simply don't work or react the mouse or anything...

View 1 Replies

ActionScript 2.0 :: Get Loaded Movie Clips To Work With Button Functions?

Jul 16, 2009

im using this function to load my movies

[Code]...

i then place them into a grid (i load them into a created movie clip called thumbnail) and they are supposed to trace their name (or anything) when rolled over, but i cant put a working rollover on them, nothing happens with perfectly fine code. how to get loaded movie clips to work with button functions?

View 6 Replies

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

ActionScript 2.0 :: Button Stopped Working On Loaded External Swf?

Feb 17, 2011

the swf that I am loading has a button in it that when I click on it, it will print the screen and it will email it to an email address.Everything works perfectly fine if I use the application(swf) on its own.however, I created a swf file that will load the above swf file in it when a button is clicked. the loading part is fine and it works as it should be. but the button for printing the screen stops working once the swf has been loaded!

View 3 Replies

ActionScript :: Making A Loaded External Image Into A Button?

Jun 15, 2009

My name is Steve Oatman I am a student atAIO for a Web Design Diplomaclass: Interactive Telecommunications IMD412 XAProfessors to bussyI have a flash web site that I am putting together. I am using AS to load some images from an external source. These images are being loaded into a movieclip. These images need to become buttons once they are loadedThe images will link to the particular menu category pages beef, chicken, etc.The images are loading fine they just are not responding like a button or link.I am getting two error referencing the buttonMode and usehandCursor. Below is just one image that I am working on till I get it to work.I am getting these two Compiler error code:1119: Access of possibly undefined property buttonMode through a reference with static type flash.display:Loader.1119: Access of possibly undefined property useHandCursor through a reference with static type flash.display:Loader.This is what I have.

var myLoader01:Loader = new Loader();
myLoader01.load(new URLRequest("entrees_images/beef/beef01.gif"));addChild(myLoader01);myLoader01.x =

[code].....

View 3 Replies

ActionScript 3.0 :: Enabling Parent Button While External Swf Is Loaded?

Jul 25, 2011

how to load an external swf into my main timeline. As far as I understand this main timeline is the "parent". Hence the loaded, external swf should be the "child" (a quiz).Now the child (a quiz) loads into the flash file and is played properly, but I cannot access the button on the parent anymore. Unfortunately, I really need the home button on the parent to exit the quiz and allow for new navigation within the flash document.

my AS3 Code:

import flash.events.MouseEvent;function onClick611 (event:MouseEvent) :void{  gotoAndPlay("home_einf")}home_btn.addEventListener (MouseEvent.CLICK, onClick611);
import flash.net.URLRequest; import flash.display.Loader;import flash.events.Event; import flash.events.ProgressEvent;

[code]....

View 2 Replies

ActionScript 3.0 :: Replace A Loaded External Swf File From Button Within Itself?

Oct 17, 2011

I've got button events that load swf files into the main movie. Within the loaded swfs are additional buttons. When these buttons are clicked I want the targeted swfs to replace the current swf. I guess I don't understand how to reference the Loader var within the main movie.

Currently, when the links are clicked in the loaded swfs, the movies are loaded on top, rather than replacing them.[code]...

View 0 Replies

ActionScript 2.0 :: Adding Custom Scroller Button On External Loaded Text?

Jul 9, 2007

I have been following all the wonderful tutorials in this forum to learn about AS and flash. This time I tried to combine 2 tutorials and make a text field with external loaded text and custom scroller button, but I failed.....

I tried to look for different tutorials to find the answer, but It didn't work out either...

View 1 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 :: External XML Works Loaded Offline Not Loaded Online?

Apr 15, 2009

Code:
var slideNo:Number;
slideNo = 0;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);

[code]....

View 3 Replies

Flash :: Loading / Unloading External SWF Using Buttons From Loaded External Files

Feb 23, 2011

I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:

[Code]....

View 1 Replies

ActionScript 3.0 :: Kill Button On A Loaded Swf That Removes Itself (loaded Swf)?

Jan 21, 2009

I have a swf loading another swf. The loaded swf has a button (mc) whose purpose is to unload (kill) itself (the swf).

View 3 Replies

ActionScript 1/2 :: Load An External Xml In An External Loaded .swf

Jul 24, 2009

I've got a small (more than 100 hours of thinkwork up till now!) problem I can't seem to solve:

I want to populate an external loaded swf with an dynamicly loaded xml fil (loaded from my config.xml).

[Code].....

how do I get the external xml into the external swf as a variable for the actionscript in the external loaded swf (So I just want to put the path in the script in my external swf...).

View 5 Replies

ActionScript 3.0 :: Can Swf Be Loaded And Work?

Jul 4, 2007

I have flash player version 8 files(AS2) and Flash Player 9 file(AS3) as main clip - can I load these AS2 files into AS3 file and have them working as they should?

View 9 Replies

IDE :: Get A Url To Work In A Xml File That Is Being Loaded Into Swf?

Jun 17, 2009

I have been trying to get a url to work in a xml file that is being loaded into my swf. I have tried using cdata and i was able to get it to wokr once but then it wouldn't work when i placed it lower in the file.

<comment><![CDATA[Blah blah blah Read more here: This mthe first news. Look at <a href="www.blabla.nl">www.blabla.nl</a>. ]]>
</comment>

View 2 Replies

Actionscript 3 :: Stopping An Externally Loaded Swf From "playing" When Another External Swf Is Loaded?

Nov 8, 2011

I have a homepage with five "links" to each swf. Now the first swf I have a custom cursor that hides the mouse. When I click on that link it plays and when I quickly go to the homepage again it hides the mouse there when it's not supposed to do it.

Same with every other link. When I was busy with the first swf and want to go to the last swf of the five, my mouse just disappears! It is almost as if it keeps on "playing" without seeing the swf...

Here is the code that I have so far!

var currentpage:uint = 0;
//one loader object per project:
var loadingobject1:Loader = new Loader();
loadingobject1.x = 445;

[Code]....

View 1 Replies

ActionScript 2.0 :: FLV Scripts Don't Work When SWF Is Loaded Into Another SWF

Apr 30, 2010

I have a SWF that loads and plays an FLV. There is additional functionality like pause and mute and some animation that plays when the video is done. It works perfect, but when I load this SWF into a container SWF, most of it stops working and I don't know why. Maybe it's the NetStream code.

Here is my entire script:

Code:
_root.videoPath = "xxxxxxxxxxxxxx.flv";
_root.playingVar = 1;
_root.panelVar = 0;

[Code].....

View 3 Replies

ActionScript 2.0 :: Buttons Do Not Work When SWF Loaded In Another

Aug 29, 2009

I have a swf in which I load another swf, but when I do so, the buttons to enlarge a picture (large_btn) or to pause (pause_btn) or start (start_btn)the slideshow won't work. When I test the last swf only, everything works normally.

The code is in an AS-file.
Here's what I got sof ar:
ActionScript Code:
//Buttons
_root.large_btn.onRelease = function() {
var enlarge;
var frame = mainloader_mc._currentframe;
[Code] .....

View 0 Replies

ActionScript 2.0 :: Mc Didn't Work After Being Loaded Into Another Mc?

May 6, 2003

What I did:1) created scroll.fla of document size 200px by 200px>> exactly the tutorial posted by Jesse Stratford at when ctrl+enter (preview), text can be scrolled. It works!2) created main.fla of document size 400px by 250px>> contains a movie clip (a box of size 200px by 200px) with instance name = 'box' and a button>> once clicked on the button, scroll.swf is loaded into a "box">> works perfectly fine, except, when scroll.swf is loaded, the text inside scroll.swf cannot be scrolled.

View 1 Replies

ActionScript 2.0 :: Loaded SWF Will Not Work Correctly

Dec 28, 2008

Tried to load one .swf file into another using loadClip method:
var MCL:MovieClipLoader = new MovieClipLoader();
MCL.loadClip("1.swf", "loader");

The .swf file is loaded but controls inside it won't work (I have some buttons and stuff in it). Separately everything works just fine. Also, what is the difference in loadClip usage between AS 2 and 3? The code above generates some compiler error messages in AS 3 mode, like
"1180: Call to a possibly undefined method MovieClipLoader" and
"1046: Type was not found or was not a compile-time constant: MovieClipLoader."

View 1 Replies

ActionScript 3.0 :: Swf Loaded Scale Doesn't Work

Apr 28, 2010

i have external swf with a size of 750x500, then it loads to main swf where it size is 750x700 now i want my external swf loads to main with its fix size which is 750x500, how should i do that?i've tried stage.stageWidth etc and swfLoader.width etc, but doesnt work.

View 7 Replies

ActionScript 2.0 :: Dynamic Loaded Buttons Won't Work

May 15, 2010

I try to make a dynamicly loaded menu.I load four buttons to the stage and applie code to each of the buttons. But it's only the last button loaded, that responds to onRollOver/onRollOut If I roll over the other buttons it's the last buttons that reacts all the time.I just can't see what's wrong. Here's the code:

Code:

buttonCount = 4;
for (var i:Number = 0; i<buttonCount; i++) {
btnRef = "button"+i;

[code]....

View 1 Replies







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