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).
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?
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.
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?
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.");
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
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].....
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();
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?
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.
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.
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.
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.
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]...
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?
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.
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 {
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 +