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
Developer
Torres90
Posts: 102
Registered: ‎01-12-2011
My Device: Blackberry Playbook
My Carrier: DiGi twitter@TylorPin
Accepted Solution

I got 60 images in my app, how to compile it into bar file?

From what I got through searching, only the command line works, but not the export release build in flash player burrito. But command line does that mean i hav to add one by one until 60? I can put those files inside a folder, but that would mean inside my code the setImage reference would all hav to be changed. Is there any simpler way?

Click "like" if my reply helps and click "Accept as Solution" if it solves your problem!

twitter @Twopinstudio
my vendor page https://appworld.blackberry.com/webstore/vendor/7126/?lang=en
Please use plain text.
Developer
JRab
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: I got 60 images in my app, how to compile it into bar file?

hey torres,

 

i think shifting them into a folder and just going into your coding and doing a "find and replace" to quickly change the locations is a small price to pay from writing all of it out in command line. so id defintely go the folder route. good luck!

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Please use plain text.
WMC
Contributor
WMC
Posts: 20
Registered: ‎01-26-2011
My Device: BlackBerry PlayBook
My Carrier: None

Re: I got 60 images in my app, how to compile it into bar file?

The best way to do it is to create an assets folder and just add assets in the cmd line instead of each img file name.


This does mean that your code will change to "assets/img.png" though.

--
PlayBook Apps: MathBook
Recycle Challenge

Please use plain text.
Developer
dmbproduction
Posts: 53
Registered: ‎02-22-2011
My Device: Blackberry Torch 9800
My Carrier: The one I'm on

Re: I got 60 images in my app, how to compile it into bar file?

unfortunately the easiest way of building your package would be to have all your images in a folder that way when it comes time to using the command line you simply add the folder to the command line... if you don't want to change your code reference path you'll have to add the images one by one to the command line

 

Could you do a Search and Replace to change the path?

David

Twitter: dmbproduction
Playbook App: Food Journal
Please use plain text.
Developer
Torres90
Posts: 102
Registered: ‎01-12-2011
My Device: Blackberry Playbook
My Carrier: DiGi twitter@TylorPin

Re: I got 60 images in my app, how to compile it into bar file?

60 images with different names.. and it's all scattered throughout the application. How to search?

Click "like" if my reply helps and click "Accept as Solution" if it solves your problem!

twitter @Twopinstudio
my vendor page https://appworld.blackberry.com/webstore/vendor/7126/?lang=en
Please use plain text.
Developer
JRab
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: I got 60 images in my app, how to compile it into bar file?

hey torres,

 

just do a search for .setImage(" and replace with .setImage("images/ just like that with that one quote. and it should do replace without a problem! good luck!

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Please use plain text.
Developer
dmbproduction
Posts: 53
Registered: ‎02-22-2011
My Device: Blackberry Torch 9800
My Carrier: The one I'm on

Re: I got 60 images in my app, how to compile it into bar file?

you could try ctrl+F or option+F on the mac i believe.... you could also highlight the path and try refactor

David

Twitter: dmbproduction
Playbook App: Food Journal
Please use plain text.
Developer
Torres90
Posts: 102
Registered: ‎01-12-2011
My Device: Blackberry Playbook
My Carrier: DiGi twitter@TylorPin

Re: I got 60 images in my app, how to compile it into bar file?

that's brilliant! I never tought of that!

Click "like" if my reply helps and click "Accept as Solution" if it solves your problem!

twitter @Twopinstudio
my vendor page https://appworld.blackberry.com/webstore/vendor/7126/?lang=en
Please use plain text.