Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Highlighted
New Developer
Posts: 7
Registered: ‎03-02-2012
My Device: Storm 9530, Curve, Playbook
My Carrier: Airtel

<img> tag help !!!

In AIR, I have a "lock.png" situated under the "src" folder. No complicated folder structure there.


Now using


label1.htmlText = "<img src='lock.png' />" OR

labl1.htmlText = "<img src='lock.png' width='300' height='350'>"

 


I am unable to produce display the image. Any hints where I am wrong ?


(Tested on a simulator as well as on Playbook, using multiple combinations of "src/lock.png", "/lock.png", etc etc) 

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: <img> tag help !!!

Try adding the embed syntax.
Contributor
Posts: 23
Registered: ‎05-04-2012
My Device: Playbook, 9670, 9800, 9350
My Carrier: Telus

Re: <img> tag help !!!

lock.png should be in the bin folder in this case (runtime loading of the asset).

 

Embed would be better as noted since you don't have to remember to package the asset with the project on BAR creation.

 

 

New Developer
Posts: 7
Registered: ‎03-02-2012
My Device: Storm 9530, Curve, Playbook
My Carrier: Airtel

Re: <img> tag help !!!

Tried using the bin path, didnt work.
Will try embed in the next few days and get back with the results. Thanks