Archive for the 'cs4' Category

Is now a good time to start using Event.ADDED_TO_STAGE vs. your class constructor for initialaztion?

I have always had a habit of doing all my init stuff in the class constructor as do most other people. But today I found a GOTCHA in Flash CS4 when publishing an AIR file.  I was trying to use a ProgressBar and set it’s value manually. I could not see the bar change it’s value even though there was no errors. Nothing I did made it work. This was a problem since there was no errors letting me know that there was a problem, the progress bar just did not work and that’s all I had to go off of.  Later I tried to place my document class code on the timeline which made the progress bar work,  leaving me even more confused and fustrated as to the problem.

In the End I found this had to do with the document class trying to set properties of the ProgressBar before the document class had a chance to be added to the stage.

Aside from my story, this may or may not ever be a problem for you , but it begs the question should this be a standered and would you follow it?

How to create and load fontSwf files and use the loaded swf’s embedded font at runtime.

I just made a video tutorial that shows you how to:

  1. Create a swf with an embedded font.
  2. Create an application and loads that swf and pulls the embedded font from the loaded swf.

This is really simple and really smart if you need to have multiple fonts in your application.

FYI: once again for best video quality use the fullscreen button.

Todays Meeting will be broadcasted via CONNECTNOW

Not only will I be showing the group today Flash’s CS4 IDE, but I will be also doing so via the built in Connectnow that lets you share your screen with people.  The nice thing about this connect now is that it will be a great way to get help or give help when needed on a project.

Feel free to hop on now as I will be testing and playing with it before the meeting. I would also like your input on the quality and use before the meeting if possible.

https://connectnow.acrobat.com/joshchernoff

Thanks
- Josh Chernoff | AS3 Apex