• Style Pro CMS Flash Template
    Paypal Shopping Cart
    iPhone/iPad compatible



  • Style Portfolio v.3 CMS Flash Template
    Paypal Shopping Cart
    iPhone/iPad compatible



Actionscript

Watch your Flash Player-HTML allow* Params

I noticed an interesting consequence of having an incorrectly defined allowNetworking HTML parameter for one of my Flash projects: Full screen stopped working in IE.The problem was that I gave the allowNetworking parameter a value of "always". Sadly, this is not an allowed value. For some reason, because it was not recognized, on Internet Explorer it meant full screen also broke.The lesson here is that you need to watch your allow* parameters (i.e. allowFullScreen, allowNetworking, and allowScriptAccess). Each have their own set of allowed values which are unrelated to the other.allowFullScreen: [true | false]allowNetworking: [all | internal | none]allowScriptAccess: [always | sameDomain | never]My problem was mistaking allowNetworking values with those of allowScriptAccess. Silly me.
Read more...

Flash CS4 External Libraries with Symbol Classes

If you haven't noticed, Flash CS4 Professional now supports the use of an External Library Path to reference class definitions in SWC files to be used, but not compiled, in your resulting SWF. What this means is that you can make "child" SWFs that are intended to be loaded into another "parent" SWF and have all, or most, of the class definitions limited to the parent SWF. This reduces the redundancy of those classes in each of the children saving you on bandwidth. Right now, however, Flash has a small problem when using such classes with library symbols.
Read more...

Extra First Line in a Multi-lined TextField (Flash Pro)

Part two of things I didn't know... And this has been something that has bugged me for years.Have you ever added text through ActionScript to a multi-lined text field created in Flash Professional (Flash Authoring) and frustratingly found that the text immediately starts one line below where you think it should? Me too! Thankfully glosrfc pointed out to me why that is...


Read Full Article

On-stage Bitmap Instances in Flash Professional

It's not often I run across something I didn't know as simple as this. In fact I'm a little embarrassed that I didn't know this, but it gives me comfort that some other people I talked to also didn't know.What is this of which I speak? Well it may or may not be fairly common knowledge that normally, when you place a bitmap from your library onto the workarea (a.k.a. "the stage" though technically, it's never really the stage, at least not the same stage ActionScript refers to) in the Flash Professional authoring tool, that bitmap becomes a shape, or a part of a shape consisting of other bitmap or vector graphics within the same layer or z-ordering group, once you publish your SWF. A quick test will reveal this behavior:Create a new FlaFile > Import > Import to Stage...Add the following frame script:trace(getChildAt(0));Test movieResult?[object Shape]If you didn't already know that, that's interesting enough. How then, you may ask, do you get an actual Bitmap instance on the stage in Flash? Until yesterday, I thought you couldn't except through ActionScript. But it turns out that is not true. Bitmap objects on the stage will become Bitmap instances rather than shapes if that bitmap image is exported for ActionScript (via library item properties).Edit the image imported in the above example to be exported for ActionScript and run again to get the following:[object Bitmap]In other words, that image on the timeline has become a true bitmap instance rather than part of a shape. The Flash GUI still doesn't give you options for things like instance names or anything at this point, but the object available in the display list is in fact a true Bitmap.
Read more...

Disabling Flash Player (Debugger) Error Dialogs

If you're a Flash/Flex developer, you've likely seen those Flash Player error dialogs resulting from unhandled ActionScript errors.These appear when you have the debugger version of Flash Player installed and you run a SWF with errors in the code that are not handled correctly, either through appropriate logic, try..catch blocks, or the correct event listeners. But what if you don't want them?
Read more...

More Articles...

Page 3 of 4

<< Start < Prev 1 2 3 4 Next > End >>