Actionscript :: Call Functions Inside The Swf File Loaded In SwfLoader Of Flex App?

Nov 18, 2010

I have a swf file sample.swf which has its actionscript class in Main.as. This Main.as has various objects declared as public in it. For instance lets consider an object myData of class MyData (in MyData.as).

I am loading this swf file in my AIR app using swfLoader. I want to know how do I access myData.func() using swfLoader.loaderInfo.content.

View 2 Replies


Similar Posts:


Flex :: Add Classes And Functions To Loaded File?

Dec 17, 2009

I have a flex application that loads swf files and displays them using the SWFLoader object.is there a way to provide different classes and functions for the swf application to use? [code]...

View 1 Replies

Flex :: Take Screenshot From Loaded Swf From Swfloader?

Dec 27, 2009

can i save a screenshot from a loaded swf using the SWFLoader class ?

View 1 Replies

Actionscript 3 :: Call Functions Inside Flash?

Jan 13, 2011

Is it possible to call javascript functions inside flash (as3)? How about not in the same domain? Can you provide an example snippet for samedomain and not same domain?

View 1 Replies

ActionScript 2.0 :: Call Functions From Loaded Swf?

Apr 21, 2010

I am having problems calling functions in a SWF (B.swf) which I load into my first SWF (A.swf).

Nothing seem to happen when I call the functions, values that are supposed to be returned from the function call are undefined.[code]...

View 1 Replies

ActionScript 2.0 :: Call Functions Of A Loaded Swf?

Jul 19, 2007

I have placed a movie clip on the stage, with the variable name mcThumbnail. The following code in entered in the first frame (the only frame of the timeline..).[code]...

View 1 Replies

Flex :: Can A .swf Loaded With SWFLoader Propagate Events To The Parent Application

Aug 2, 2010

I am building a compartmentalized Flex application which uses <SWFLoader > to load additional Flex applications inside it. I am currently planning on using the LocalConnection class to have these two applications talk to each other, but I'm wondering if there's any kind of event driven way to have actions in the internal application propagate to the parent application, and/or any way for the parent application to trigger events in the internal application?

View 1 Replies

WebKit Browsers :: Error In Flex Webapp With TabNavigator Loaded Using SWFLoader?

May 19, 2011

I use a flex app (A) to load another flex app (B) using SWFLoader (both built using Flex Builder 3 sometime ago).Everything works fine as expected across all (IE, FF, Chrome, Safari) desktop browsers.However, if I use a TabNavigator within the flex app (B) then when you click on any of the tabs it unloads the flex app (B) and re-starts flex app (A). This behaviour appears to be limited to Webkit based browsers (Chrome & Safari) the rest of the browsers (IE, FF) work fine.

View 1 Replies

Actionscript 3 :: Pause/play/stop A Dynamically Loaded SWF Using SWFLoader Component In Flex 4?

Mar 24, 2012

I have a situation where I am loading an SWF (using URL as source) using the SWFLoader component in Flex 4, and now I need to implement Pause/Play and Stop functionality.

View 1 Replies

Flex :: Unload Swf File In SWFLoader?

Mar 10, 2011

In Flex 3 I have a SWFLoader[url]...

and after some time I invoke player.unloadAndStop(). And I always get this error:

ReferenceError: Error #1056: Cannot create property __tweenLite_mc on _swftest_mx_managers_SystemManager.

View 1 Replies

Flex :: Swfloader With A Swf Which Loads Another Swf File?

Mar 23, 2011

I have one Swfloader. This swfloader loads file A.swf.On creationComplete event, File A.swf loads another swf(file B.swf).

Everything works fine when I run the application once in the same machine.But when I run two or more instance of the application, the first works fine (both file A and B are loaded) but the second swf (file B) is not loaded by file A.why the first swf (file A) doesn't load file B, when the application is running in multiple instance ?

View 1 Replies

Flex :: Flex: Swfloader - Flash File Overlaps It's Configured Size?

Dec 7, 2009

i'm using swfloader to load swf file in the middle of the screen using the following command:

<mx:SWFLoader id="game_swf" source="crazy_counting.swf" x="198" y="0" width="721" maxWidth="721" height="531" maxHeight="531" />

now stage of the flash file takes the exact size that i stated by the flash file itself is overlapping the stage with some graphics

View 3 Replies

Flash :: Pass Parameters In Flex 3 To Variables In A Swf File Using Swfloader?

Apr 28, 2011

I've created a Flash Animation (CS5, ActionScript 3) and converted it to SWF. The flash animation needs the values of 3 variables (defined in the swf timeline) BEFORE it starts running in my Flex application. I've embedded the swf file using swfloader in Flex, but I need to pass the parameters from Flex into Flash before the animation starts. How do I do this?

The way I have my flex code setup below, the variables are not being updated. I get an exception every time it gets to the changeParams function because it can't find "Type", "Num1", etc.

Part of My flash code:

//These 3 variables need to be populated via Flex BEFORE the animation starts...
var Num2:int;
var Num1:int;

[Code]....

View 2 Replies

Flex :: Extend SWFLoader Component To "fit" Any Sized Image Inside It?

Feb 21, 2010

SWFLoader's scaleContent is not able to do what I'm trying to achieve:

<mx:SWFLoader id="img" width="600" height="400" scaleContent="true"/>

When an image of size 100x80 is loaded inside it, the image does does not resize to 600x400. That's because scaleContent = true.

Then, I set maintainAspectRatio = true. The image did resize to 600x400 but obviously, it was totally out of proportion.

So how do I always fit any sized image to the current size of the SWFLoader while maintaining the aspect Ratio? The resized image may be cropped, which is ok.

SCENARIO: An image of size 1500x10 is loaded inside the above SWFloader. In this case the height(10) should be resized to 400 and the width(1500) should automatically resize depending on the height. A lot of the image will be cropped, which is fine.

View 1 Replies

ActionScript 3.0 :: Flash File To Call Functions - How To Use DLL

Feb 9, 2012

I have a Windows DLL that I want my Flash file to call functions from, I've only seen native extension tutorials with Android and iOS, but not many for Windows. I have a tiny bit of programming experience with C++ and C if that helps (haven't got passed the Pointers yet, but I can read about them).

View 2 Replies

ActionScript 3.0 :: Call Main SWF From Inside Loaded SWF?

Jul 18, 2011

this website I'm designing loads swfs. inside one of these loaded swfs is a button that is supposed to remove the loader child from the stage and load a page in the main swf. How would I go about scripting that without using OOP? or is there a short external class I can create?

View 2 Replies

Javascript :: Get Access To Functions Which Are Inside This JS File?

Jul 21, 2011

I'm loading website by using htmlLoader.loadString(someHtml). There are included JS sources.Is there any chance to get access to functions which are inside this JS file?

I also set property placeLoadStringContentInApplicationSandbox to true.

View 2 Replies

Javascript :: Call Functions From Flex?

Jan 20, 2010

I am using ExtrernalInterface.call(javascript_function, args); to call javascript functions from Flex. But this fails in case of browsers that have javascript disabled. Is there any other way to call javascript functions from flex?

View 3 Replies

ActionScript 3.0 :: Access Functions In The Loaded Swf File?

Sep 10, 2009

i don't know why the calling of the "currentFrame" function is not working

ActionScript Code:
function loadMovie(MovieName:String,targetName:MovieClip){
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest(MovieName);

[Code].....

View 4 Replies

Ajax :: Flex - Bridge On Safari - Cannot Call Any Of Public Functions

Jul 25, 2009

My flex project uses FA-Bridge, and apparently in Safari browser I cannot call any of my public AS functions that have arguments passed in. For example I can call this AS function from javascript:

[Code]....

In the above call safari throws an error # 1063, (i.e. Argument count mismatch) in the safari javascript console, and points to line 561 in FaBridge.js. It thinks I didn't pass in the requied parameters. Now the above issue exists only on Safari. Both of the above approaches work on IE, Firefox and Chrome browsers. Note: I am NOT using swfObject for embedding my swf.

View 1 Replies

C++ :: Communicate Between AIR(Flex) And Applications - Call Functions And Pass Arguments To Each Other

Sep 30, 2009

I need to be able to communicate between two applications that reside on the same machine. One is using Flex and the other is in C++. I would like to be able to call functions and pass arguments to each other. What is the best way to communicate between them?

View 3 Replies

ActionScript 3.0 :: Call Swf File Inside Xml File?

Jan 23, 2012

I have downloaded a template from [url].... And there is a xml gallery for images. I want to use my movie in swf instead of one single image from slide show.[code]...

View 1 Replies

ActionScript 3.0 :: Calling Parent Functions From A Loaded Swf File?

May 29, 2009

I have a main Flash file that loads up other SWF files using Loader objects.  I want to be able to call methods of this main object from within the loaded SWF files.  For instance, I want the loaded file to be able to add an event listener to the stage of the main file.  I've found this example:
 
[URL]

Which appears to do what I want, but I can't figure out how to implement it in my setup.
 
My 'main file' that loads up other SWF's is called 'main.swf' and has a document class Main.
 
My loaded file is called start.swf, and has a document class "Start".

[Code]....

How can I reach the stage from a loaded SWF?  Or at least, how can I call a function in my Main Class from the loaded start.swf file so I can move the functionality I need to the main.swf file?

View 5 Replies

ActionScript 2.0 :: Call Other Functions From Generic Mouse Event Functions?

Nov 25, 2010

Is it not possible to call other functions from generic mouse event functions?

Code:
_root.myButton.onPress = function(){
hide();

[code]......

View 6 Replies

Flex :: Functions Called In Incorrect Sequence Or Earlier Call Was Unsuccessful

Mar 8, 2012

in my application, I did some trace statements of a file For example if(oldFile.parent.toString()!=file.parent.toString()) There are some other file print statements , and it seems to encounter this error stated below. But the error does not appear every time. For example i ran my application for 20 times, it will encounter this error once. Error: Error #2037: Functions called in incorrect sequence, or earlier call was unsuccessful. at Error$/throwError() at flash.filesystem::File/resolveComponents() at flash.filesystem::File/get parent()

View 1 Replies

ActionScript 3.0 :: SWFLoader Does Not Start Playing Loaded SWF

Oct 15, 2008

I'm building an application that's basically a frame in that another SWF file is displayed. My application loads SWF files generated by a server and displays them. As memory consumption increases over time, it it necessary that I unload the current SWF from time to time and replace it with a new SWF. I use SWFLoader to load the remote SWF file. I create a new SWFLoader object for each new SWF and remove the old SWFLoader as soon as the new SWF can be displayed. Now my problem: SWFLoader sporadically does not start playing the loaded SWF. All of the SWF files that I load start with the same set of instructions. When all goes well, the SWFLoader gets some ProgressEvents and then an Event.INIT. After that the SWF starts playing. In some cases, however, I only get the progress events, but the INIT is never fired. In that case the SWF doesn't start playing. The number of bytes received reported by the progress event is the same as in the case when it goes right.

View 1 Replies

Flash :: Swfloader: Catch All The Exceptions From The Loaded Swf?

Feb 9, 2010

I am loading a swf into another swf using swfloader, I want to catch all the exceptions thrown by the inner swf, is it doable?

View 2 Replies

Can't Seem To Listen For UncaughtErrorEvent For SubApplication Loaded By SWFLoader

Jul 27, 2011

I have a main Flex Application ('A.swf') loading a SubApplication (defined in' B.swf') via a SWFLoader and I need to listen for UncaughtErrorEvent from the SubApplication. I'm not able to get my event listeners to be called when I throw an error from within the SubApp ('B.swf').After reading the asDoc for UncaughtErrorEvent and UncaughtErrorEvents I have added an event listener to A.swf's loaderInfo (The 'outter' main app) and also to B.swf's loaderInfo (though the Docs say not to do it here it is part of the event sequence in the capture and bubble phase...) as well as the SWFLoader internal FlexLoader.uncaughtErrorEvent (per Docs) like so:[code] The event listener setup on the Loader.uncaughtErrorEvents is not firing when SubApplication in B.swf throws an error. Instead the listener on the main app's (A.swf) loaderInfo fires. Moreover, the event recieved by A.swf's loaderInfo has an eventphase equal to 'EventPhase.AT_TARGET' which the asDoc says should only be dispatched in the capture and bubble phases.

View 2 Replies

ActionScript 3.0 :: Access Children From Loaded SWF With SWFLoader?

Dec 28, 2009

I'm trying to load a SWF I created with Flash CS4 into Flash Builder with the SWFLoader class, but I can't seem to access the loaded SWF's children. Everytime I try to change the property of a child it'll ignore it.
I tried loading the SWF with the Loader class, but it doesn't allow me to add it to the stage. How can I load the SWF and access it's children?My code atm (m is a child of the loaded SWF (SWFToLoad)):

ActionScript Code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

[code]....

View 2 Replies

Linux :: Call Shell Command Inside Of A Flash File?

Jul 20, 2010

I want to create a basic GUI for a touchscreen panel running linux grml with fluxbox so I'm very restricted. The Gnash player is also available. Is there a way to call shell/bash commands inside a Flash file (swf)?I want to create a GUI to control the mplayer and volume with the touchscreen... If it's not possible with Flash, what do you think is the easiest way?

View 1 Replies







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