SWC files compiled from ActionScript library projects in Flex Builder aren’t usable in Flash. But if you’re really stubborn and crazy enough, you can make it work.
Primary condition however, is that you can’t use any classes in your ActionScript library project that have dependencies in the Flex component framework. But stuff like making the ArrayCollection [...]
Monthly Archives: July 2008
Forcing your Flex code into Flash
Dynamically adding content to resource bundles
Suppose you have a Flex application or website that’s fully localizable (via resource bundles) and you want to make a part of the interface text editable via a content management system (such as Drupal for example). One solution I came up with was to keep my content in resource bundles and to dynamically load [...]
Flex browser history and deep linking
Nowadays, there are several options to make your Flex website support the browser’s back (and forward) button and to enable deep linking, such as with SWFAddress
or Urlkit and in Flex Builder 3 you have the built-in BrowserManager. But sometimes these libraries may seem a bit complicated, require some learning or are simply not flexible [...]
Stop music onBlur
When your Flash or Flex website has music playing in the background, I think it’s cool to fade out the music when the user tabs away from the page (and fade it back in as he returns). Also when a user has more than one window open, you might want to avoid overlapping sounds. You [...]

