Flash - SWF Loader And Flex's SWFLoader: Child SWF Sandboxing Policy?

Jan 7, 2010

[URL] With regards to a parent SWF loading a child SWF via the Loader class, is it possible to prevent the loaded child SWF from:

Making any network calls, or Making calls to specific domains Basically, I'm looking for a programmatic version of allowNetworking:

[URL]

Additionally,Are there any Flash Player version and Actionscript version discrepancies?Are there any discrepancies if using Flex's SWFLoader is used instead?

View 1 Replies


Similar Posts:


Flex :: SWFLoader - Child Apps Couldn't Access Certain Objects That Were Instantiated By Another Child App?

Aug 23, 2010

i have problem with swfLoader in flex, when i close following code in click method i can easly add many swf to main application

<mx:VBox id="content" width="100%" height="100%" ></mx:VBox>
public function doIT():void
{[code]....

when i close adding those swfs in loop i have the same error, it looks like child apps couldn't access certain objects that were instantiated by another child app, so what can i do?

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 :: Flex SWFLoader Speeding Up Animation?

Nov 30, 2011

I am using SWFLoader to load a little animation into my flex environment but for some reason the animation is sped up a lot. This is the case with all of the animations I tried. Is there a way to slow it down or fix this?

View 1 Replies

Flex :: Removing Flash Meta-policy Communication Warning?

Jun 6, 2009

I am communicating to an external server via a URLLoader and receiving the following warning: Warning: Domain domain name does not specify a meta-policy.Applying default meta-policy 'master-only'.This configuration is deprecated.

The provided link redirected me to another page, which didn't really explain how to remove this warning. It looks like it might involve modifying the crossdomain.xml file on the server, but I'm not sure exactly how. how to remove this warning?

View 1 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

ActionScript 3.0 :: Sandboxing SWFs Loaded From The Same Domain

Jan 31, 2010

I'm building a Flash arcade system that people can deploy to their own websites, which loads its Flash content into a security sandbox. Basically, I'm interested in finding a way to prevent a loaded SWF from accessing the stage.

As you know, once an object in a loaded SWF has access to the stage, it can use event listeners to secure itself to the display list, circumvent Loader.unloadAndStop(), and potentially conduct malicious activities such as key logging. I'm looking to prevent that.

Flash automatically puts SWFs in a sandbox when they're loaded in a domain or subdomain that is different from the parent SWF's. However, the market I'm targeting with this arcade system will probably not have a clear grasp of these concepts, and it's very likely that they will load a SWF into the arcade from the same domain, and that SWF can be malicious. Therefore I'm trying to sandbox content loaded from the same domain as the loader SWF.

View 5 Replies

Child Of Child Movie Clip Are Null In Imported Object From Flex To Flash Right After Being Created?

Dec 16, 2010

I have an Movie Clip in Flash that have subobject of button type which has subobject of input text and movie clips. Right after creation core Moveclip all subobject are set to null, when I expect them to be valid objects.

[Code]...

MC_Core_design was created in Flash and exported to Actionscript. I've done this for button_1 class aswell. The code was written using Flex. When I comment out both lines that result in error I get correct view of the core Movie clip with all subobject. How can I set subobject properties right after object creation?

View 2 Replies

Flex :: SWFLoader - How Integration Is Done

Oct 10, 2010

Flex is good at produce code, whereas Flash is good at animation, how the integration is done? If I want to insert the animation produced by flash, what's the recommend way to do the integration? Do I need to use SWFLoader?

View 1 Replies

Flex :: Control SWFLoader Volume?

Jul 2, 2009

I am doing a elearning project in flex and it consist in a secuence of swf files and a player that load it based in a xml file, the problem is all swf files contents narrations and I need to control the volume of narrations from the player interface, anybody know how I can control the volume of a swf file from flex??

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

Flex :: Swf - Hide Component From SWFLoader

Jun 15, 2010

How can I hide a component and what AS3 code to use to hide a Flex Component from an external swf file?

View 1 Replies

Flex :: SWFLoader Border Resize?

Aug 29, 2010

I have a MainPage, on initialize I am calling a method which would create a SWFLoader object (aka LoginPage) and loads it in the MainPage. When we run the MainPage in 800x500 window, the LoginPage loads in that window size, however when we maximize the window the content of the LoginPage gets resized to 1027X660, but the border remains 800x500, and the remainig area of the window stays blank.

View 1 Replies

Flex :: Difference Between SwfLoader And ModulLoader?

Feb 18, 2011

what is difference between swfLoader(load application) and ModuleLoader(load module)?

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 - Transparent Background For SWFLoader?

May 20, 2009

I created a "Loading" spinner in a SWF. I display this spinner in my main application SWF using SWFLoader.How do I make the SWFLoader transparent? Currently it uses Flex's default background color even though I've set backgroundAlpha="0".

My spinner SWF's main MXML: (Note the use of backgroundAlpha)

[Code]...

View 2 Replies

Flex :: Swfloader - Load A .swf And Use Its Library?

Jun 12, 2009

I have a symbol in a .swf's library, with a linkage name of "Pana". The Pana symbol is just a 100 frame animation that I would like to have timeline control over in Flex. So how can I load the .swf and then add the Pana symbol to the display list and control it's timeline?

View 2 Replies

Facebook :: Flex Ignoring Policy File

Oct 26, 2011

I'm loading in profile images from both facebook and twitter into a flex application. Based on the answer from this question, I'm loading the domain policy from the redirected url. However, now I'm seeing this error: Error: [strict] Ignoring policy file at [URL] The crossdomain.xml file from that URL looks like this:

[Code]...

The error states that there is a missing Content-Type. How do I get around this? I, obviously, can't update facebook's files.

View 1 Replies

ActionScript 3.0 :: Hide Flex Component From SWFLoader?

Jun 20, 2010

How can I hide (visible=false) a component and what AS3 code to use to hide a Flex Component from an external swf file?I have found out this doc, but I have no idea on how to implement it:

View 1 Replies

Flex :: Control SwfLoader And Sound Content

Aug 25, 2009

i am doing a project and i am loading .swf files in a FLEX 3 SWFLoader. i made a HSlider as a seeker to control the .swf file (forward and backword); BUT... if the swf file has sound and i drag the seeker forward or back word the sound does not effect i want to control the sound as i control the swf file note:: the sound is in the .swf file not loaded

View 1 Replies

Flex :: Detecting The Size Of SWFLoader Content?

Sep 23, 2009

I want to load in a SWF and set it to fit in the window, whilst keeping it's aspect ratio.When I do this by setting the height and width of the SWFLoader, the SWF will resize to best fit in the space (as it is keeping it's aspect ratio).However I can't find a way to detect the height and width of that SWF now it has been resized. The size of the SWFLoader reflects what I set it to, and the SWFLoader.LoaderInfo size seems to be totally random.

I have also tried the loaderInfo.content, but again I don't get a value that compares to the size of the SWF I have loaded (or at lease the size of what is visible).The only thing I can think to do is to know the height and width before and then figure out the aspect ratio, so if I resize the width to 50% of the window, I can do the maths on the height to make the swf loader the same height as it's scaled content.

View 1 Replies

Flex :: AIR SWFLoader CPU Usage Takes Over 50 Percent

Mar 5, 2010

I have an AIR application, I use SwfLoader to load another swf file to display in this app. The problem is the CPU Usage always takes over 50%, but it only takes 15% when the swf file runs in standalone mode.

View 1 Replies

Flex :: Play Youtube Video Using SWFLoader?

Nov 2, 2010

How can i play youtube video using SWFLoader?

Currently, i can play only 1 video at a time (suppose its name is A), if i try to play video B it doesnt play it. but if again i play vidoe A, it works.

View 1 Replies

Flex :: Specify ApplicationDomain.currentDomain When Loading Via SWFLoader?

Jan 26, 2011

I'm using Flex Builder 3 to build what will be a fairly large project. I'm suffering from modules stepping on each other and a conflict between application/module. My structure looks something like the following:

[Code]...

View 1 Replies

Flex :: Modifying Variables In A Running Swf From An SWFLoader?

Jun 23, 2011

I have a flex application that's compiled with flex 4.1.I want that flex application to load an swf that contains the variable score and i want to be able to modify this variable.I wrote two versions of swf, one compiled with as2 code and the other with as3. this is my flex application:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"[code]......

View 1 Replies

Flex :: Alert Gives PopUpManager Error When Used With SWFLoader

Jul 13, 2011

I am using SWFLoader to load a swf file. The code is below:[code]

View 2 Replies

Flex :: Memory Leak When Using SWFLoader In Adobe AIR

Aug 11, 2011

I'm trying to load windowed sub-application in another windowed application, The requirement is to replace one loaded application with another on user action.

I tried the documented method of unloadAndStop() on the swfLoader in the main windowed application, but somehow during memory profiling I could see the instances of those applications were maintained in the memory even after explicitly running garbage collection.

Where as If I make those windowed application as modules, and then try to load them using the Moduleloader things work smoothly and unloaded modules are removed from memory.

View 2 Replies

Flex :: Event Sets The Dimensions Of A Swfloader?

Aug 18, 2011

I am trying to scale a swf that has been loaded via a swfloader. When I get the complete event or the init event the dimensions of the swfloader are still zero. I don't see a value in the dimensions until I do a resize of the browser window. The swf is just an animation. Trying to resize the actual swf content gives inconsistent results.

View 1 Replies

Flex :: Getting Handles To Dynamically Created Swfloader?

Dec 31, 2011

How I can change frame of dynamically created swfloader in Flash Builder 4.5?

View 1 Replies







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