At 1/12/13 09:26 PM, pirateplatypus wrote:
At a glance I didn't notice anything odd or confusing. If you were a bit more specific I'm sure multiple people here would be willing and able to help make sense of it. (I'd be willing, I can't vouch for my ability though.)
I did notice one thing he absolutely shouldn't be telling people to do. Just 'finding' images online for use in your game is a great way to get sued. He really should have either made original art for the tutorial, or used royalty free art.
Though the NASA image is probably in the clear. Works made by US government employees while conducting their normal tasks are in the public domain int he US.
I understand what's going on macroscopically, but don't see why a number of things work in the language itself. I'll list what seems confusing in that example:
1. The fact that Embed and source aren't keywords in FlashDevelop, which has every single keyword imaginable
2. The fact that you're creating a variable of a certain data type and then assigning a completely different data type to it
3. The fact that the image is automatically stored in that variable without you telling it to do so
4. The fact that suddenly that variable becomes a class with variables inside it that you never specified were there
5. The fact that there is no semicolon or anything resembling a normal syntax on the embed line
Mind you, I'm used to low-level programming, so the fact that something is this easy kind of raises my suspicion.