Actionscript 3.0 :: Loaded External SWF?

Jun 11, 2009

Can an external SWF, loaded using the Loader class, pass info to the host SWF?I am loading an external video player into an interface(host) and would like for the video player to tell the host that the video is done playing so that it can move on to the next one.

View 5 Replies


Similar Posts:


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

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

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 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 :: 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 3.0 :: Text Is Loaded From External Text Files And Styled With An External Css File?

Jun 7, 2009

I've managed to piece together a flash website with my limited as3 knowledge. The text is loaded from external text files and styled with an external css file.

It's working perfectly in Firefox and Explorer but it only works SOME of the time in Safari (on my mac).It's hit and miss. Sometimes it styles the text sometimes it doesn't.

[Code]...

View 1 Replies

JavaScript :: How To Know If External SWF Loaded

Mar 20, 2012

I have javascript that loads external swf, appending tags "object" and "embed" when page has been loaded. I need to handle event when swf is completely load.

View 1 Replies

ActionScript 2.0 :: Being Loaded As An External Swf?

Mar 8, 2006

I'm having issues with my flash based contact form that uses PHP. My site is set up with a main movie and each page is loaded into that main movie as external swf's. The contact form loads in fine, it allows me to type my name, email, and message and then send. It even responds saying that the function worked and takes me to my success frame label. The email sends but when I open it up in my inbox none of the information is there. My labels are there from the PHP file but none of the information I entered into the form shows up. However, when I reset the paths in the actionscript and just view the swf online directly (not loading it into the parent movie) it works just like above but I can see the information I entered into the contact form, in the email. it works perfectly. so somewhere my actionscript is wrong when it's being loaded as an external swf.

[code]...

View 1 Replies

ActionScript 2.0 :: External SWF Not Being Loaded Where It Should Be

Jun 14, 2006

I am trying to load an external swf-movie into my main swf, thou the swf loaded isn't being placed where I want it. So I created a main swf and in that swf I made a new layer and made a rectangle called holder, which holds the different movies being loaded. And then I created a layer made a smaller rectangle called loader which is suppose to load the external swf, but the loaded movie isn't being loaded into the loader-rectangle, it's being placed somewhere else in the main swf, I don't understand why.

However, here comes the code:
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
mclL.onLoadProgress = function(target,loaded,total) {
loader.percent.text = Math.round((loaded/total) * 100) + "%";
} mclL.onLoadInit = function() {
loader._visible = true;
loader.percent.text = "";
} mcl.addListener(mclL);
mcl.loadClip("news.swf",loader);

View 5 Replies

ActionScript 3.0 :: Accessing Loaded External Swf?

Mar 30, 2009

I am using a zoom component which i purchased recently to load different external swfs on different button clicks. But instead of loading separate external swfs I would like to load a single swf and go to frame labels - "one", "two", etc. - I've been reading about casting the external swf as a movie clip, but I am confused how this would work with the code I have at the moment.

var image:String="introlocal.swf";
function loadContent () {
var myLoader:Loader = new Loader();

[code].....

View 1 Replies

ActionScript 2.0 :: F8 Unloading An External Swf Once Loaded

Mar 31, 2009

I have a main movie menu which has sub movies loaded into levels 1 then section 2 into level 2. I have the subs loading on button but i cant get the subs to unload levels 1 and 2 once they have played.

View 7 Replies

Preloader Will Not Show / When External Swf Is Loaded

Jun 1, 2009

I have my main movie, and from there an external movie is loaded which has a scrollpane on it. Problem is the preloader will not show when the external swf is loaded...when the button is clicked, nothing happens for about 3 seconds and then eventually the scrollpane comes up. I have the preloader on Scene 2, and it works for all my other external swfs so I know its the scrollpane issue.[code]I have tried have the "export to first" frame linkage thing but that doesnt work... does anyone know how best to do this?

View 2 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 :: Check An External Swf Is Loaded?

May 31, 2010

I'm loading an external .swf via typing the swf name into an input text field and hitting a submit button.

The swf loads fine, but I'm trying to incorporate updating a status text field on a successful load or if there is an error during loading.

I can't find my mistake in the code - to me it should be making load_status_txt display "ok", but the swf just loads with no status update. All the text fileds are fine, because if I code load_status_txt.text = "hello" straight after addChild(loader); - load_status_txt displays "hello"[code]...

View 3 Replies

ActionScript 3.0 :: Communication With External Swf Loaded Into Mc?

Sep 6, 2011

wf which loads an swf into a movieclip called content_mc here is the code located in the blank swf
 
startLoad ("startPage")
var loadedSWF:Loader
var content_mc:MovieClip=new MovieClip();
function startLoad (SWFname:String){
loadedSWF = new Loader ();

[Code]...

View 12 Replies

ActionScript 3.0 :: External File Is Loaded Or Not?

Sep 27, 2011

I have one text file which i am loading externally from my local machine. I am trying to read some variables from this file.
 
my problem: if the text file somehow fails to load in flash then it should load variables from HTML file from which my swf is running. But i am not able to check if this text file is loaded or not.
 
my code: (working if text file is present)
 
///Local Variables Loading//////
var myLoader:URLLoader = new URLLoader();
myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;

[Code].....

View 2 Replies

ActionScript 3.0 :: External Swf Classes Loaded?

Mar 5, 2012

I have external swf (ext.swf) that is loaded in my FlashDevelop as3 project.When I make check (objectsList[0] is Class1) I am getting false even though the objectsList[0] element is Class1. The Class1 is in the ext.swfBut when I write command like (objectListInExternalSwf[0] is Class1) in external swf and then use that swf in my project and make check (objectsList[0] is Class1)My question is: do I have to use all the classes in my external swf so the compile

View 1 Replies

Actionscript 3 :: External Swf Classes Loaded?

Mar 5, 2012

I have external swf (ext.swf) that is loaded in my FlashDevelop as3 project.When I make check (objectsList[0] is Class1) I am getting false even thoughthe objectsList[0] element is Class1. The Class1 is in the ext.swfBut when I write command like (objectListInExternalSwf[0] is Class1) in externalswf and then use that swf in my project and make check (objectsList[0] is Class1)I get true. My question is: do I have to use all the classes in my external swf so the compilerhave to put them in the swf so they can be used in other projects where the swf is loaded as external?

View 1 Replies

ActionScript 2.0 :: External Loaded Swf Can't Read It

Jan 16, 2009

My problem is that all the action script contained in the musicplayer.swf seems not to work when I load the whole musicplayer.swf in the main movie.[code]...

View 9 Replies

ActionScript 3.0 :: Instance Name Of Loaded External Swf?

Jun 24, 2009

I have successfully loaded an external swf. When load is complete, I add the loader target content to a movieclip but I've got problem accessign it after.

ActionScript Code:
// siteLoaderComplete
function siteLoaderComplete(e:Event)
{

[Code].....

The only problem is that it that right now, it add a child with a instance name of 'instance5' in site. But how can I change 'instance5' for another term like 'myContent'??

I need to be able to access content from the loaded swf.

View 1 Replies

ActionScript 3.0 :: External Swf Loaded Into A Parent Swf

Jul 27, 2010

I have a external swf loaded into a parent swf. It loads fine and plays. I have an EventListener in the external swf, I would like to have trigger a function in the parent swf. Is there a way to do this in AS 3.0?

View 2 Replies

ActionScript 3.0 :: External Swf Could Not Use Loaded Content

Aug 23, 2010

I have main preloader that loading external swf into it. external swf call method load picture from url. when event complete picture does not appear. but if external swf is the main swf it will appear nomally. I tried to use init but it still not working When I debug loader.contentLoaderInfo.content that call from external is gone.

View 1 Replies

ActionScript 3.0 :: Display Loaded External FLV?

Jan 7, 2011

I have my FLV loaded successfully from an external source, just having trouble displaying it.

[Code]....

Guessing that error is telling me addChild is expecting a different type.

ActionScript Code:
import flash.events.Event;
var videoToLoad:URLRequest = new URLRequest("http://ourmediaserver.com/media/video.flv");

[Code]....

View 1 Replies

ActionScript 2.0 :: Limitations To External Loaded Css?

Jul 22, 2005

are there some limitations to the css that can be used in an externally loaded style sheet and externally loaded textfile? I'm using the kirupa tutorials:URL...The "width" property doesnt seem to make a difference, or text-align. font-family and size and color seem to render ok, though.URL..

View 2 Replies

ActionScript 2.0 :: Testing If An External Swf Is Already Loaded

Mar 31, 2003

I'm having a bit of trouble using a function that loads external swf's into the main movie. The function works fine, but I want to expand it to test if a movie is already loaded. Here is the actions for the button that loads the movie:[code]Any ideas on how I can incorporate some sort test to see whether a movie has been loaded already? I want to avoid clicking on the button multiple times and having it reload each time.

View 3 Replies

ActionScript 2.0 :: External .swf Loaded, But Does Not Show Up?

Nov 8, 2005

I followed this tutorial on here for making a reusable actionscript preloader (link: http://www.kirupa.com/developer/acte...cliploader.htm). Works fine when loading a .jpg, but when attempting to load a .swf it doesn't work. It says it's loaded, but the .swf doesn't play!!! In fact, the .swf doesn't even show up!!! Is there some code I need to add to make a .swf play when loaded? Here's the code which went into a frame in the actions layer. It's the exact same code as in the source example for the tutorial, I just chopped out the buttons part of the code, and the fade in part and replaced the jpg URL, with my .swf URL. Sorry if it's really simple, I'm not an expert at AS.

[Code]...

View 1 Replies

ActionScript 2.0 :: External Mc's Loaded Sequentially?

Jun 4, 2007

I have a 3 frame movie clip called "morePix" shaped like a forward arrow. The morePix.onRelease() function loads an external movie using MovieClipLoader(). When the movie loads a back arrow comes up. Eventually I will have about 5 external movies loading into this MovieClipLoader() and I will want the forward and back arrows up until I get to the last movie. I'm trying to figure out how to create a loop or an array to load these movies. I hope that makes sense. It seems easy but I'm stuck. Here's the code I have so far...

morePix.onRollOver = function (){
this.gotoAndStop(2);
}

[code]....

The sequential movie clips will be pics3, pics4, etc. this is in Flash MX 2004

View 2 Replies

ActionScript 3.0 :: Position An External Swf Being Loaded?

Apr 9, 2009

I have an external swf loading on a button and it appears at the bottom right corner of my main, this is a problem cuz its about the same size as my main and so its cut off the screen. Is there a way to position the X and Y coords when it loads?

View 1 Replies

ActionScript 3.0 :: Invisible Loaded External Swf?

Apr 16, 2009

my AS loading my external is this

Code:
stop();
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;

[code]....

View 10 Replies







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