ActionScript 3.0 :: AIR Load Module From A Website?
Apr 13, 2009
how to load a module from a website? I am trying to create a AIR application that loads a module from my website.i have to create a crossdomain.xml that "resides at the root directory of the server that is serving the data" . This is my website:[URL] that is actually a sub-domain. And here i have a folder in which i have that module that i am supposed to load in my AIR app. Where should i put that crossdomain.xml? in that folder? or at the root of[URL]or at the root of [URL]. Then, how do i give access to my AIR app to load the module from my website? if i use
Code:
Security.allowDomain(SERVER_ADDRESS);
i get this error SecurityError: Error #3207: Application-sandbox content cannot access this feature.
at flash.system::Security$/allowDomain()
I could use an example ... the code for the AIR app, the module, and where to put that crossdomain.xml file (and what to contain).
View 1 Replies
Similar Posts:
Jan 11, 2011
Currently optimizing an application at work. There are many files in some of the module projects that are not used by the exported (release build) Module.swf's. Are these unused files included in the swf's?
View 1 Replies
Jan 2, 2012
I have created a modular application. I have two modules, for example Module1 and Module2.I have loaded these modules in my application. I am using Parsley in my application. I have loaded separate different context builder in both modules.
But when I am dispatching event from Module1, I am able to listen that event in that Module1 but I am trying to listen that event in another Module2. I am not able to listen that event in that Module2 through Parsley.
View 2 Replies
Sep 6, 2010
I'm trying to build my flex modular app, and got the following scenario
Portal (which includes, 2 modules:)
-Mod1 (.swf)
-Mod2 (.swf)
Also, I have Mod1-API (.swc). The Mod1-API, defines interfaces which are implemented on the Mod1 (.swf). Both the Mod1 and Mod2 swfs import the Mod1-API swc. I'm trying to call the API method on the Mod2. On Mod2 I've the interface, since it is shared via the Mod1-API project. What I'm trying to achieve is the real implementation class loading on Mod2, via reflection, using the getDefinitionByName method, but it says its not defined. How from the mod2 load a class that is on the Mod1 project, returning just the interfacce to the mod2 so it can call methods just like an ordinary API method?
View 1 Replies
Jul 19, 2011
I have a Button that when clicked loads a Flex module in my AIR application. However,occasionally the Module fails to load the first time the button is clicked, but it works the second time it's clicked. When I debug it in the debugger the READY event is not fired so the remaining logic is never called.
var moduleInfo:IModuleInfo = ModuleManager.getModule(managedModule.url);
moduleInfo.addEventListener(ModuleEvent.READY, function(event:ModuleEvent):void {
trace("ModuleEvent.READY called.");
[code]....
View 2 Replies
Jan 25, 2010
I have created a module in Flex like below:
modules/ModuleBase.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml">
[code].....
View 1 Replies
Jan 20, 2011
I've created an application that includes a number of Modules and uses Parsley framework. Ant is used to build the application.Recently I thought of using Resource Bundles and implemented it in the system by creating a locale/en_US folder under the src. I added a portal.properties file with all my strings defined.In my modules, I added the metadata
<fx:Metadata>
[ResourceBundle("portal")]
</fx:Metadata>
In the ant build file, I added the below lines within mxmlc.
<locale>@{locale}</locale>
<source-path path-element="${myapp.flex.app.locale}/{locale}"/>
<include-resource-bundles>portal</include-resource-bundles>
The build works fine and when I deploy the application and open it in my browser, I'm greeted with many errors thrown by the Flash player.But if I dismiss the messages, its working fine. My strings are replaced with the values in the property file, but how do I stop the runtime errors being thrown up?I get the below error.
Error: Unable to load resource module from portal at MethodInfo-637()at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()[code].....
View 1 Replies
Feb 16, 2011
I have a Flex module created in Flash Builder 4 as a swf file. I am trying to load and run in within a Flash application. I can get the module loaded but I can not get the flash application to access any module functions. Here is how I load the module in Flash and the error I get. If I change the module to an application type swf then it loads and runs but now I have two applications on top of each other. I would like the loaded module swf to be able to have access the Flash stage object.
ReferenceError: Error #1069: Property application not found on MyModule__mx_core_FlexModuleFactory and there is no default value.
var loader:Loader = new Loader();
[code].....
View 1 Replies
Mar 5, 2010
I want to put a map in a flash website that was written in Actionscript 2. The google maps for flash api requires actionscript 3. I wrote a actionscript 3 app to load the map. Can I have that swf loaded in the actionscript 2 website and can you give me an example of the actionscript 2 code?
View 1 Replies
Jan 21, 2010
I have an issue with website load.
[URL]
the content won't show untill you refresh 3-4 times.
View 6 Replies
Feb 18, 2010
I need to load a full website into a flash movieclip till now i have this but it just gives me an error[code]...
View 1 Replies
Apr 7, 2010
We can easily put a flash inside a html, but can we do it reverse?I want to create a object to display normal website page, is it possible in AS3?
View 2 Replies
Sep 14, 2010
Can you load an RSS Feed onto a web site with only Flash AS3 or do you need something else like flex?
View 1 Replies
Feb 16, 2009
I have a web banner inside a website, I want to when i click this banner, to open up a external swf on top of the website.So not inside the banner but somewhere else on the side.For example when i click the web banner, a bird flies across the website.So the swf has transparent background. Then in a few seconds the external file unloads.
View 9 Replies
Nov 24, 2009
I can load RSS feed from twitter in flash, but when I put it in my website it doesn't load.
View 3 Replies
Jun 13, 2010
I have a flash website that's been running fine, but since I installed Wordpress on that server, the SWFs won't load from Internet Explorer. It still works fine in Firefox on both the Mac and Windows platforms. The Flash website is not associated with the WP blog at all, but it exists along side. I tried moving the blog folder up a level, farther away from the Flash site, but it didn't help. IE will see the index page, and the html elements, but no longer will load the flash. It's was working fine before. I should mention that there is also a b2 evolution blog installed in another directory on the server, if that makes any difference.
View 1 Replies
Feb 13, 2012
I have a slideshow .swf file. When I load it into my website it shrinks it. Why?This is the embed code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="165" align="right" id="FlashID" title="diapo4">
<param name="movie" width="550" height="165" value="../images/diapo4.swf" />
<param name="quality" value="high" />[code]....
View 1 Replies
Sep 15, 2009
I have been designing Flash Websites for years. And in the last 3 months almost all my flash websites are having the same problem, sometime it happens and sometime it doesn't. Heres what happens: When you go to the site not all the buttons and or movies load, or when you click on a button the first time it takes you to another page on the website, but if you click that same button again it goes to the correct page. Its very fickle.
I know in my actual FLA. file everything is correct, where the button goes to etc. I have to load the sites a couple times in order for all the content on the website to show up. does anyone know why this is happening? and if so how to fix it? here are some of the websites it happens on. It may have the problem for you it may not.
[Code]...
View 0 Replies
Apr 24, 2011
i've made a website and its a very large file. 14.3 MB to be exact and I it takes forever to load. Does anyone know how I can make this load faster??
View 6 Replies
May 13, 2011
So, I have to make a link to an external URL on a flash website, but I want it to appear in my flash website. So like the top banner of my flash website appears on top of the external link so that way users can just click on a link on my top banner and go back to my home page of the site.
View 0 Replies
Nov 16, 2011
I had loaded my flash into the server and last week it able to load my movie but yesterday i tried and it is not working anymore.
View 1 Replies
Jun 8, 2004
I'm trying to load text from another domain into my website. Heres the code I'm using:
[Code]...
With no luck. I verified that the URL is correct. When I point to the text file on my local drive like this:
[Code]...
PS - I've tried setting up a crossdomain.xml file on the domain where I'm trying to pull the data from
View 6 Replies
May 12, 2010
I'm a bit of a newbie at Flash and building my first website. I've built all the pages individually as different files and now I want to use AS to connect them all and link from my main page to the other files using buttons.
I thought I was on the right track with this code, but it returns an output error (both below).[code]...
View 1 Replies
Jun 17, 2011
I would love to have the ability to load this into my flash component That is live streaming trance, from di.fm. Is there an easy way? or a way at all?
View 4 Replies
Jan 25, 2012
how to load html page or web link in flash as3.
View 3 Replies
Feb 9, 2012
I can view it in my browser by going directly to the file however when it is embedded the photos will not load. The images it loads has to be in the same directory as the .swf file and as i stated it clearly works when going directly to the file but not once it has been embedded.
View 1 Replies
Jul 21, 2011
I'm having trouble with correctly implementing an input text field where the user can enter a URL that will open a new browser. Right now it IS working: enter URL, press enter, the browser opens the website... but only on the FIRST run-through. Once anything else is entered into the field, another browser window opens, but only goes to the default homepageI am stumped as to why this is occurring.My code is probably quite messy, too.
ActionScript Code:
var userInput:String;
function enterKey(evt:KeyboardEvent):void {
[code].....
View 5 Replies
Apr 19, 2009
Is it possible to load a Flickr slideshow into a Flash website?
I know you can load it into an HTML page, but I want to load it into my 100% Flash website. However, I can't get this to work. I picked apart the HTML embed code and pieced it back together as a URL that gets me exactly what I want, but Flash will not do anything with it.
Here is the code I am using:
Code: Select allvar loader:Loader = new Loader();
btn_mc.addEventListener(MouseEvent.CLICK, btnClick);
function btnClick(e:MouseEvent):void{
loader.load(new URLRequest(root.loaderInfo.parameters.flickrURL +
[Code].....
View 1 Replies
Jul 15, 2008
how to extract images from website and dynamically load into swf...
View 1 Replies
Jun 7, 2011
i want preloader script that load website dynamically (load 2 to 3 swf file) and i also want some animation in that preloader
View 1 Replies