« Growing up is hard to do | Main | All Girl Arcade »

Random Things I've Learned

Just a random dump of things I've learned the past couple of months, not all Flash related.I'm going to try to do this more often because its good to go back and remember the stuff that stumped you or you didn't know.

So just a few:

1. Don't try to snapshot a NetStream. Long gone are the days of creating a bitmap, and doing a transition with it. Release 115 of the player plugged what they considered a security hole. People had a shitload of pretty hackilious workarounds but from what I've seen the only way you can do it now is to pony up the $$$ for FMS and set a flag that allows you to do it. You get a nice little Bitmap related security sandbox error. I know this is old news for many people. It was new to me :(. Decent discussion on it - on Justin's blog

2. Namespaces in xml. I recently worked on a project where I thought I'd be all professional and shit, and extend the RSS format with custom namespaces. Then i realized, how the hell do I access these? So here you go:
var nameSpace:Namespace = yourXML.namespace("customNameSpace");
var tag:String = yourXML.nameSpace::customDescription.text();
//--------------
Where the tag would look much like Description here

3. Best workaround ever.... trying to get focus on a stage to capture a keydown event. I had some screens that had input fields, therefore the focus was put on the field and the key event was captured. As soon as I had a screen without a textfield, no event would be captured. Solved it by putting a textfield in a MC offstage and putting focus on that. I'm sure there is something a bit more classy, elegant, what you will but that did the trick for me. Ummm... lame.

4. Here's a heartache one. Mac OSX - run apps from the trash. Basically if you create an app and test it on the mac and then drag it to the trash - and bring the app over again, if there is an instance in the trash, it will run that one. I definitely added an array of new curse words to my vocabulary after learning that one.

4. Um using the list component in flash - i had an array of value objects and then did the whole list_mc.dataProvider = new DataProvider(myArray). I then set the labelField to a prop on the value object. I got a nice little " where the F is your iconField" error. Perhaps it wasn't as colourful as that... I'm sure I'm doing something retarded, cos I rarely use the components, but something as easy as that shouldn't really bitch at me that way. Or maybe it should, I likely deserve it for the most part.

5. Make sure you have your project bookends firmly in place - planning and qa.

6. Omniture released a new version of their actionsource component for AS3 - looks super easy to use. No more clicky clicky sound in the browser.

Posted by bitch at April 10, 2008 02:45 PM

Comments

I found that out the hard way ("Mac OSX - run apps from the trash"). I ran over and over thinking it was my latest one. So I thought it had errors. I tried fixing them and nothing would happen, till I found out that I was testing the trash version not the actual one. Hrs lost :(

Posted by: joshspoon at April 10, 2008 06:19 PM




Remember Me?