A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: Is this such a tough question to answer?

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Posts
    23

    Is this such a tough question to answer?

    My swf file(embedded in html page) is not showing up in my AIR application.
    Someone who is facing the same issue has explained it in detail. Please refer below:
    http://stackoverflow.com/questions/1...yed-inside-air

    People have raised similar issues in various different forums, but no one has answered yet.

    Please help

  2. #2
    Junior Member
    Join Date
    Feb 2010
    Posts
    23
    My project is on hold because of this problem.

    Someone please respond.

  3. #3
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    923
    you can try and use this trick to inject empty sprite into text field with your html and use it to addChild the Loader with your swf. not sure if HTMLLoader would allow this but try EDIT in fact, it is probably browser-based and so not supported. Well see if you can get away with text field based app.
    Last edited by realMakc; 06-03-2013 at 06:50 AM.
    who is this? a word of friendly advice: FFS stop using AS2

  4. #4
    Junior Member
    Join Date
    Feb 2010
    Posts
    23
    Good to see someone replied

    I dont think it will work out, since I am using htmlLoader.load() instead of htmlLoader.loadString()

    Or may be I have not got your point, but thanks for your help.
    Last edited by truth_seeker; 06-09-2013 at 10:17 AM.

  5. #5
    Senior Member somlemeg's Avatar
    Join Date
    Aug 2000
    Posts
    168
    Have you read and followed this?:
    http://help.adobe.com/en_US/as3/dev/...5EEFB2467.html

    According to it a swf inside an html file will not be displayed if the wmode is set to window, while the NativeWindow object has enabled transparency.

  6. #6
    Junior Member
    Join Date
    Feb 2010
    Posts
    23
    I am not using transparency in my htmlLoader.
    Have also tried both wmode - transparent and opaque

    No luck

  7. #7
    Senior Member somlemeg's Avatar
    Join Date
    Aug 2000
    Posts
    168
    So you have placed the swf in the application directory and made sure that it's referenced like in the article?

  8. #8
    Junior Member
    Join Date
    Feb 2010
    Posts
    23
    No.
    The swf is embedded inside html page that is loaded from an external link.
    Please refer to the stackoverflow link I posted above. I am facing the same issue as described in that link

  9. #9
    Senior Member somlemeg's Avatar
    Join Date
    Aug 2000
    Posts
    168
    Then perhaps there are some security restricitons in air. If it displays "movie not loaded", it is usually because it cannot load the movie.

    What version of air are you using?

    Perhaps you can try to load the external SWF with AS that is on the device.
    Last edited by somlemeg; 06-10-2013 at 10:01 AM.

  10. #10
    Junior Member
    Join Date
    Feb 2010
    Posts
    23
    AIR version 3.7

    The external SWF file loads variables from php files(using relative path) that is hosted in the same domain. So even if I load the external swf using the Loader() Class, I think it fail to load the php variables.

    And what if this external swf runs on AS2? Will that be a problem?
    Last edited by truth_seeker; 06-10-2013 at 11:05 AM.

  11. #11
    Senior Member somlemeg's Avatar
    Join Date
    Aug 2000
    Posts
    168
    I don't think that is a problem, you can load an AS2 file from AS3, but not an AS3 file to AS2.

    I have little experience from adobe air. If I where you I would start by trying to debug the problem by embed a simpler swf from the app directory. If that works, embed a simple swf from the server, and so on, to see where the problem may be and perhaps make it easier to find a solution.



    EDIT: the external SWF's loaded into an SWF on IOS does not seem to support code in them.
    http://blogs.adobe.com/airodynamics/...r-apps-on-ios/
    Last edited by somlemeg; 06-10-2013 at 11:36 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center