[advance question] loading a swf in adobe Air, which loads an image with "componentloader"

Good evening all,
I think this is a complex issue.
I have adobe air application which loads a SWF I made.
Inside this SWF I have used the "component LOADER" to load
something with "ContentPath=image.jpg" for example.
But the swf loaded in the Adobe air works, but does not load
the "ContentPath image"...
(it does load and display it when it this swf is run outside
adobe Air)
I need it to be dynamic like this, so if eventually I Include
it in the package it won't help much...
I just intend to replace an image background from this loaded
swf file!
Thanks!
Edit:
At this time of the editing, I fear and realize
something....I have been using Actionscript2 for the .SWF file,
could it be why it does not works???
If its problematic, is there a simple way like telling it to
read actionscript2, rather than transforming everything??
edit2:
I found this on the official AIR FAQ:
Will Flash version 8 and below SWF files run in Adobe AIR?
Yes. However, the Adobe AIR APIs are only exposed to Flash
content via ActionScript 3 / AVM2, and thus Flash 8 / AVM1 SWFs
will be able to run, but they will not have direct access to the
Adobe AIR APIs.
source:
source
faq Adobe
it seems it should works!!??
Edit3:
nope I confirm at least some code made in Actionscript2
works.
I am sure this code needed to be changed for working in
actionscript3, so "actionscript2" code works in Adobe Air.
The problem of not loading my image must come from something
else!!??

Good Morning all!
Hilarious....
I tried so much to think maybe Adobe Air does not like a SWF
using actionscript2, or it does not load any "external image from a
swf", etc...
None of that!
I just in FLASH in the ComponentLoader....I did put simply
the ContentPath at "myimage.jpg"....
Of course I had to use the absolute path like
"c:\\myfolder\\myimage.jpg"
Of course aswell it works now!!!

Similar Messages

  • Question:- How to update the Adobe Air Application Version.?

    Question:- How to update the Adobe Air Application Version.?

    Change the namespace declaration in the application descriptor.
    For example, to update version 1.0 to 1.5, change:
    <application xmlns="http://ns.adobe.com/air/application/1.0." ...
    to:
    <application xmlns="http://ns.adobe.com/air/application/1.5"

  • Cant install or uninstall Adobe Air. Keep getting error message "This application requires a version of Adobe AIR which cannot be found"

    I am running Windows 7 and use Adobe AIR for Flixster.  When I tried to open Flixster I recieved an error message saying i needed to install Adobe AIR.  I looked and saw that according to control panel, Adobe AIR is installed.  I attempted to uninstall but get this EXACT message:
    "This application requires a version of Adobe AIR which cannot be found.  Please download the latest version of the runtime from http://www.adobe.com/go/getair, or contact the application author for an updated version."
    I have tried going to the mentioned website but i get an error message saying installation failed and may need administrative privilages but I AM the administrator! 
    I then tried multiple solutions on the forums including the command prompt uninstall and still no luck.  contacted customer support who told me i can only receive assistance through these forums.
    Very frustrating.  Please Help.

    I have the same issue with a customer of ours:
    Try to uninstall AIR – same message.  (When I reinstall,  the install says it’s successful.) I try to run our app, same message. I downloaded another AIR app, same message – so it’s not our app it’s AIR.  We logged in as Administrator, same message.  It’s a Windows7 machine. I did a system restore to 2 days ago and started over and still the same issues. I tried running the Windows Fixit to uninstall https://support.microsoft.com/en-us/mats/program_install_and_uninstall – didn’t work.

  • This application requires a version of Adobe AIR which can not be found

    After installing Adobe AIR 3.7 on a new computer with Windows 7 Ultimate 64 bit and try to use applications that need this program, I get a warning window with this message: This application requires a version of Adobe AIR which can not be found. Download the latest version of runtime at http:// .......
    When trying to uninstall it stops me with the same message described above. I managed to uninstall it by using a specific software to uninstallations, which it does, but to re-install the same thing happens. Also try it with AIR 2.6. Can anyone help me with this problem?
    The install.log file:
    [2013-05-11:01:07:44] Runtime Installer begin with version 3.7.0.1530 on Windows Vista x86
    [2013-05-11:01:07:44] Commandline is:
    [2013-05-11:01:07:44] No installed runtime detected
    [2013-05-11:01:08:36] Relaunching with elevation
    [2013-05-11:01:08:36] Launching subprocess with commandline c:\users\provini\appdata\local\temp\air6057.tmp\adobe air installer.exe -ei
    [2013-05-11:01:08:38] Runtime Installer begin with version 3.7.0.1530 on Windows 7 x86
    [2013-05-11:01:08:38] Commandline is: -stdio \\.\pipe\AIR_4720_0 -ei
    [2013-05-11:01:08:38] No installed runtime detected
    [2013-05-11:01:08:38] Starting silent runtime install. Installing runtime version 3.7.0.1530
    [2013-05-11:01:08:38] Reinstalling c:\users\provini\appdata\local\temp\air6057.tmp\setup.msi
    [2013-05-11:01:08:40] Runtime Installer end with exit code 0
    [2013-05-11:01:08:40] Elevated install completed
    [2013-05-11:01:08:44] Got an unexpected fatal error while quitting: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Unhandled exception TypeError: Error #1009" errorID=1009]
    [2013-05-11:01:08:44] Runtime Installer end with exit code 5

    I'm sorry you're running into installation issues with AIR.  Microsoft has released a utility that can help resolve installation problems.  Would you mind giving this a try and let us know how it works for you?  When running the Fix it, go through the uninstall process and try to remove Adobe AIR from your system.  Once finished, download the latest version of AIR and install again.
    Microsoft Install and Uninstall Fix It
    Another alternative is to create a new, temporary user account and install AIR from there.  Once installed, go back to your normal account and try running your AIR app again.

  • Application Is Running On A Version of Adobe AIR Which Is No Longer Supported?

    "This application is running on a version of Adobe AIR which is no longer supported. Please install the latest version of Adobe AIR from..."
    This is the message I get when I try opening an F4V. file. I never had this issue in the past. I tried going to the website to update my version of Adobe AIR, and it says I cannot, since it's already up-to-date. Any thoughts would be greatly appreciated.
    Thanks.

    Do you have access to the problematic machine? If so, maybe you could try to install Sysinternal's Process Monitor http://technet.microsoft.com/en-us/sysinternals/bb896645
    Run the tool, create filter to see just events containing your app name and try to find in the result any issue... you could also compare the log with same log from not problematic machine or with app made with older SDK which was working.
    That's all what I can do... it's a shame that nobody from Adobe is interested yet... maybe you could also submit a bug.

  • How to fix the constant noise in the left corner of the Macbook Air which is connected not with a fan?

    How to fix the constant noise in the left corner of the Macbook Air which is connected not with a fan?

    Unfortunately if there are various colours across the screen then you have broken the LCD Screen and it will need replacing. If the colours change when you press the area lightly then this is another symptom that you've broken the screen.
    Sorry to give the bad news!

  • If I upgrade my iOS from 5.1 to 6.0 then do I have to upgrade my Xcode also? So my question is all my old Xcode project which I have tried with Xcode 4.3.2 will be still there because I do not want to destroy them.

    I have xcode 4.3.2 and  iOS simulator Version 5.1 (272.21). But this course is on iOS 6. If I upgrade my iOS from 5.1 to 6.0 then do I have to upgrade my Xcode also? So my question is all my old Xcode project which I have tried with Xcode 4.3.2 will be still there because I do not want to destroy them.
    I have a MacBook Pro (Software Mac OS X Lion 10.7.5 (11G63b). Please let me know about upgrading iOS version so that I will be able to do the class project.

    To program for iOS 6, you need iOS 6 SDK. You need to download Xcode 4.5.x. But don't worry. All your previous projects are still alive and you are able to open them in the new Xcode.

  • Loading flash 8 SWF in adobe AIR, loses the stage width in flash 8 SWF

    Currently i am using a CS3 IDE to compile AIR application.I
    am trying to load the flash 8 SWF inside my AIR application.After
    loading the SWF, when i try to trace the stage width inside the
    flash 8 SWF , it says undefined.Not sure why..
    Googling few hours not able to get the solution.
    Please help me on this, urgently needed.
    Thanks in advance

    This is a fairly common question on these forums. Basically,
    AS2 and AS3(Flex/AIR) can't communicate directly. You will either
    need to use LocalConnection or use ExternalInterface and javascript
    to pass info between the 2.

  • SWF in Adobe Air Flex

    Dear webmates :
    I have created a simple application in Flex / Air  which embeds an HTML file, it was working fine, until the moment I used a swf animation inside that HTML... it is not being displayed in the Flex/Air app !! Why is that ? How am I supposed to make it work ? Please help..
    Notice that I do not want to run only the SWF, but I want the whole HTML which contains the SWF... thanks in advance !

    Are you using HTMLLoader to load this HTML page?  If not, I recommend to use it.  Check it out here, there is an example at the end of the webpage.

  • Questions about System Requirements for Adobe Air programs

         Earlier today I asked someone who runs Tweetdeck if they knew what the system requirements were for running Tweetdeck on my desktop (Windows)
    they gave me a link here: http://www.adobe.com/products/air/systemreqs/
    and I found this:
    Windows
    2.33GHz Intel® Pentium® 4, AMD Athlon® 64 2800+, or faster processor
    Microsoft® Windows® XP Home, Professional, or Tablet PC Edition with  Service Pack 3; Windows Server® 2003 or 2008; Windows Vista® Home  Premium, Business, Ultimate, or Enterprise (including 64-bit editions)  with Service Pack 2; or Windows 7
    512MB of RAM (1GB recommended)
    Here are my computer statistics:
    Operating System: Windows Vista™ Home Basic (6.0, Build 6001) Service Pack 1 (6001.vistasp1_ldr.101014-0432)
               Language: English (Regional Setting: English)
    System Manufacturer: Hewlett-Packard
           System Model: Compaq Presario CQ60 Notebook PC
                   BIOS: PhoenixBIOS 4.0 Release 6.1    
              Processor: AMD Athlon Dual-Core QL-65 (2 CPUs), ~2.1GHz
                 Memory: 2814MB RAM
              Page File: 1858MB used, 3993MB available
            Windows Dir: C:\Windows
        DirectX Version: DirectX 10
    DX Setup Parameters: Not found
         DxDiag Version: 6.00.6001.18000 32bit Unicode
    Will me only having a 2.1GHz processor really affect how my performance is with Adobe Air products/apps in general?

    Yes- I've had some lower price pc's using an Adobe AIR app and can tell the difference.
    Computers where performance was a huge issue was Compaq CQ56 & Toshiba Satellite C655D
    These computers are under 2.0 GHz and the app seems to freeze up on occassion or run slower.

  • Loading library.swf (unpacked from swc) using loader() and using it's assets

    I try to load libary.swf from an swc file in order to use it's library items.
    i load the library.swf using urlrequest and loader() and then use getDefinition() to fetch the class definition
    of the UIMovieclip element.
    i simply created the swc file by adding library assets to an swf file, converting them to a flex component and extending each compoent with the UIMovieClip class.
    when i load the swf file from a url (http) i get the following error:
    VerifyError: Error #1053: Illegal override of UIMovieClip in mx.flash.UIMovieClip.
    when i load the file locally, i get no error. any ideas why?
    <?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"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="init()">
        <fx:Script>
            <![CDATA[
                import mx.core.UIComponent;
                import mx.flash.UIMovieClip;
                private var _context: LoaderContext;
                private var _request: URLRequest;
                private var _loader:Loader;
                private var _library:Object;
                private var _executeFunction:Function = null;
                public function _setExecuteFunction(f:Function):void {
                    this._executeFunction=f;
                public function handleLibInitialized(e:Event):void {
                    this._library=e.target.applicationDomain;
                    var a:Class = this._library.getDefinition("lobby_page_component");
                    var b:MovieClip = new a() as MovieClip;
                    var c:UIComponent = new UIComponent();
                    c.addChild(b);
                    this.addElement(c);
                public function init():void {
                    Security.allowDomain("*");
                    var url2:String="http://url/for/library.swf"; <- http provides an error
                     var url2:String="/path/to/library.swf"; <- local path works
                                 this._context = new LoaderContext(false,ApplicationDomain.currentDomain);
                    this._request = new URLRequest(url2);
                    this._loader = new Loader();
                    this._loader.contentLoaderInfo.addEventListener(Event.INIT,this.handleLibInitialized);
                    this._loader.load(this._request,this._context);
            ]]>
        </fx:Script>
    </s:Application>

    hello,
    thanks for trying to help.
    if this is the case, why it happens only when i load the library.swf file from an http location instead of a local location ?
    how can i make sure that my adobe flash has the same UIMovieClip version?
    kfir

  • Adobe AIR Android + MediaPlayer: Video Plays with no Audio

    I am trying to play a video in my Adobe AIR Android App. I can't seem to get the video to play with audio in the application. I can get the audio to play in the native players on both my Samsung Galay and my Asus Transformer outside of my app, but when I load the video using StageVideo, the audio doesn't play at all.
    I tried just launching the video into the navtive browser or using StageWebView but that doesn't work either.
    I am a bit at a loss and need some advice.
    Here's the code below.
    MediaPlayerExample:
    var resource:URLResource = new URLResource(videoPath);
    container = new MediaContainer();
    addChild(container);
    container.y = this.headerHeight;
    videoElement =  new VideoElement(resource);
    videoElement.smoothing = true;
    container.addMediaElement(videoElement);
    container.width = this.stage.stageWidth;
    container.height = this.stage.stageHeight;
    mediaPlayer = new MediaPlayer();
    mediaPlayer.media = videoElement;
    mediaPlayer.addEventListener(TimeEvent.CURRENT_TIME_CHANGE, this._onProgress);
    this.videoHeader = new VideoHeader(this.stage.stageWidth);
    this.addChild(this.videoHeader);
    Any help would be great!

    Quicktime or Quicktime Pro (both of which iTunes uses) does not convert "muxed" ( muxed means multiplexed where the audio and video are stored on the same track) video files properly. It only plays the video and not the audio.
    See:iPod plays video but not audio.
    You need a 3rd party converter to convert the file with both audio and video.
    See this for help: Guide to converting video for iPod (Mac/Windows).

  • Create an Adobe AIR application that can sync with iOS application.

    Hi All,
         We have created a Flex Mobile application and we need to create a corresponding sync application using Adobe AIR for copy some contents from Desktop to Mobile Phone. Does anyone has any idea how to get started any pointers would be of great help. Also is Adobe would be the right technolgy to go with as we would be required to create similar application for Mac OS too.
    Thanks
    Vishal

    Thanks and see this article, the detail is not what is the command that allows me themassive installation of AIR application.

  • This application requires a version of Adobe AIR which cannot be found

    Hi All,
    Since I upgraded to Snow Leopard, all of my AIR applications (like TweetDeck) fail with the above message.
    I've tried uninstalling, cleaning and reinstalling AIR several times, but the problem it's still there.
    Any ideas?
    Thank you in advance.
    Edo.
    PS. Crash info attached.

    Scholarpack,
    Thank you for your answer.
    I don't think that's the problem, because no application runs.
    On the other hand, I tried to download an older AIR version (last one is 1.5.2.), but I couldn't find it. Do you know where can I get a previous version?
    Cheers.
    Edo.

  • Adobe Air cannot connect to internet with error code #2032

    When I was developing adobe air based product (Comm100 Live Chat, http://www.comm100.com/livechat/), I come accross such a problem: When I was trying to access internet from any Air application, I've been received error #2032. Have anyone met such situation before? How to solve it?

    Something's not right with your new Extreme. Return it to the Apple Store, or contact AppleCare and have them fix it.

Maybe you are looking for

  • Mac OS X 10.5.6 Fast User Switching Freezes Screen

    The past two Mac OS X versions (10.5.5 and 10.5.6) result in the screen freezing after initiating Fast User Switching. Version 10.5.4 worked as designed, but 10.5.3 had the same issue. Seems to be video display related. Using a 20" display does not r

  • Line in screen

    I have a ipod classic and after having it in my pocket there's a tih black line in the middle of the screen.It looks like a etch a sketch

  • Synchronize never finnish

    I updated my N95 to FW: 31.0.017 16-12-08 After reinstalling everything as usual with nokia updates, nokia maps 3, sports tracker and ovi did not functioned properly. The OVI Synchronize never stops when run. I let it run for 45 min. I then tried pre

  • Creating new slice existing drive

    Hi theres I have 40 GB HDD in which I created 10 GB partition for solaris. Now I want add another 10 GB partition from existing 30 GB. When I created new partition I am confused about how to recognize it as slice & then creating new filesystem on it

  • Import OMF to FCP

    Is it possible to import OMF files into FCP? The files were exported from Avid Xpress Pro I believe.