Skip navigation
Z4g0s
Currently Being Moderated

Flex 4.5 problem using image in Mobile Application (Android)

Feb 2, 2012 3:09 PM

Tags: #image #mobile #source #flex4.5

I have a problem using flex and mobile application...

 

I have an image with path = "/mnt/sdcard/images/20120202172020990.jpg"

 

Simply using

     <s:Image id="image" source="/mnt/sdcard/images/20120202172020990.jpg" />

 

Get me an empty image on device, still using it on computer (desktop build / debug) it works fine...

 

I have enabled every kind of permission in the app.xml

 

Why I got this error?

 
Replies
  • Currently Being Moderated
    Feb 2, 2012 9:00 PM   in reply to Z4g0s

    Hi,

    Pleae include more detail,where you are checking the application mobile?

    And how you have placed application there?

     

     

     

     

    Thanks,

    Shardul

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 2, 2012 9:22 PM   in reply to Z4g0s

    Hi.

     

    Embed the image and try.

     

    For Embedding use [Embed(source="....image path...")]

     

    Disadvantage of using this is, image will get with the swf, so size of swf will be larger.

     

    Thanks,

    Jawad.

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 5:49 AM   in reply to Z4g0s

    Yea you are right but you can also use ,

     

    <s:Image id="image" source="//mnt//sdcard//images//20120202172020990.jpg" />

     

    use double slash ('//')

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points