Comments on: MGAS3FD 4: More embedding https://prototyprally.com/mgas3fd-4-more-embedding/ rapid prototyping of games using flash Tue, 14 Feb 2017 09:15:06 +0000 hourly 1 https://wordpress.org/?v=5.1.1 By: anon https://prototyprally.com/mgas3fd-4-more-embedding/#comment-14389 Wed, 05 Sep 2012 14:55:52 +0000 https://prototyprally.com/?p=256#comment-14389 It seems like most of the issues in these comments have yet to be addressed, still very confusing, and it’s been two years, though still super grateful for these tutorials!

]]>
By: iggyvolz https://prototyprally.com/mgas3fd-4-more-embedding/#comment-12573 Sat, 28 Apr 2012 21:24:29 +0000 https://prototyprally.com/?p=256#comment-12573 This is the fourth one, not the third.

]]>
By: joel https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1130 Mon, 02 Aug 2010 06:35:44 +0000 https://prototyprally.com/?p=256#comment-1130 Why is still the Sprite class there, if the bitmap class is the one you need?, you need both? , If we arent working with vectors anynmore, why do we need Sprite?

]]>
By: anon https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1129 Thu, 29 Jul 2010 02:42:18 +0000 https://prototyprally.com/?p=256#comment-1129 I’m picking up AS3 from learning C++, and I don’t really understand what’s going on with

[Embed(source=’../../assets/gardengnome.png’)]
private static const GfxGnome:Class;

Is GfxGnome being declared a class? You say “the GfxGnome class” in your article, so I guess it is…but then the ‘class’ is functioning as a static const at the same time? Or is it that GfxGnome is declared a class from within the Enemy class and is made to hold only one thing? ): I know very little about AS3 so an explanation would help greatly

]]>
By: Keith Weatherby II https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1128 Thu, 15 Jul 2010 23:00:20 +0000 https://prototyprally.com/?p=256#comment-1128 Basically I just made sure the import was correct and that it extended bitmap instead of sprite, and it worked fine. I don’t know what that other business is. I even resized them and made them semi-transparent. Maybe you mean that you shouldn’t have flash resize them just because it’s too slow for real time? Anyways I’m skipping all that extra class mumbo jumbo, this works and i’m fine

]]>
By: roskelld https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1127 Fri, 18 Jun 2010 16:47:35 +0000 https://prototyprally.com/?p=256#comment-1127 I’m using Flash Builder and the only thing that I’m struggling with is embedding the images. There’s no option to ‘Insert’ them into code from what I can see.

I’ve looked through the right-click options and I’ve even tried dragging and dropping them on to the as file, but so far my only solution is to manually type it in, which is workable, though not as elegant as a simple insert option.

And like others have stated, this tutorial could really do with a rewrite. It’s fantastic that you’ve took the time to write them. The net is a wealth of Flash information, but it’s almost too much for a fresh faced wannabe Flash coder to absorb, and this has the basis of being a great starting point for picking up the basics, syntax and general grasp of writing, compiling and understanding what goes into building a Flash game.

One request I’d like to add is if it’s possible for you to visualise what the code means. Grasping the process of how things embed into classes and such, it’s not clear through text explanations, but I feel it might be easier to under stand with some visual aid, perhaps a flow chart showing how things are linked.

Again, thanks for taking the time to write these, I’m glad the help is out there now I’ve finally decided to give coding another whirl.

]]>
By: Flashdevelop embed | ricivt.com https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1126 Wed, 19 May 2010 09:31:21 +0000 https://prototyprally.com/?p=256#comment-1126 […] link: https://prototyprally.com/mgas3fd-4-more-embedding/ […]

]]>
By: Malek https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1125 Sun, 16 May 2010 21:03:25 +0000 https://prototyprally.com/?p=256#comment-1125 Yes, this tutorial definitely needs to be rewritten. It’s very confusing and many things we not explained.
Many thanks, however, for these tutorials.

]]>
By: Marty https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1124 Thu, 06 May 2010 16:44:14 +0000 https://prototyprally.com/?p=256#comment-1124 This part was confusing. I would have had zero chance to figure this out w/o the source file, thanks.

]]>
By: Anonymous https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1123 Thu, 01 Apr 2010 16:56:36 +0000 https://prototyprally.com/?p=256#comment-1123 i think the problem i’m having above is because i’m using Flex 4.

i’ve managed to get it worked by adding a compiler parameter ‘-static-link-runtime-shared-libraries=true’ (without quote)

]]>
By: Anonymous https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1122 Sun, 28 Mar 2010 20:18:20 +0000 https://prototyprally.com/?p=256#comment-1122 hi, i got this error when following this tutorial.
I’ve check my code and it’s almos same with yours. And i don’t have any problem running previous tutorial

[Fault] exception, information=VerifyError: Error #1014: Class mx.core::BitmapAsset could not be found.
[Fault] exception, information=ReferenceError: Error #1065: Variable Enemy_GfxGnome is not defined.

do you have any idea why is this happening?

TiA

]]>
By: Anonymous https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1121 Fri, 19 Feb 2010 08:41:15 +0000 https://prototyprally.com/?p=256#comment-1121 @Chris: Right click the gnome, “Insert into document”.

]]>
By: Chris https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1120 Thu, 18 Feb 2010 03:37:43 +0000 https://prototyprally.com/?p=256#comment-1120 Hey, I’m stuck way in the beginning of this step where the .png Gnome image is being embedded. When I double click the gnome file in the project manager (on the right) it simply opens the file in the Windows Picture Viewer.

How can I get the gnome image to embed properly like the Leek? If I embed it simply by swapping the file names and extensions manually, I get an error that says “Unable to transcode”

Any advice?

]]>
By: Gdes https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1119 Wed, 17 Feb 2010 20:36:18 +0000 https://prototyprally.com/?p=256#comment-1119 reply to John
What you actually do is that you attach the embedded picture to the GfxGnome Class,and what I suppose happens is that it makes the GfxGnome class a bitmap object class.
So when you use the gfx Bitmap variable it can hold the GfxGnome class which is also a bitmap.
So in short you insert the bitmap object GfxGnome(the Picture) into the variable gfx which holds bitmap objects.

the odd thing here is that the program connects the embedded picture with the class beneath it,mostly AS3 doesn’t behave that way its as if a command that links the GfxGnome class and the embedded picture is missing,and it just does this on it’s own.

Just a side note ,constants are mostly written with all caps so –
you write-
private static const GFXGNOME:Class;
instead of-
private static const GfxGnome:Class;

]]>
By: Johnthegaylizard https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1118 Tue, 05 Jan 2010 20:10:57 +0000 https://prototyprally.com/?p=256#comment-1118 Yeah, I agree with most people: this is the most confusing part;

Why exactly do you need to create a class out of the gnome (in the static part)?

And why is needed to addChild in the Enemy, not in the main?

I’m pushing through!

]]>
By: kennboy1 https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1117 Mon, 28 Dec 2009 17:44:00 +0000 https://prototyprally.com/?p=256#comment-1117 Very Good, I didn’t get it all so I just downloaded the source code file before I started this part. It helped so much! Thanks and keep putting your file down at the bottom for us to download because without it, I would have been lost WAY ago! Thanks!

]]>
By: grapefrukt https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1116 Fri, 11 Dec 2009 10:58:20 +0000 https://prototyprally.com/?p=256#comment-1116 I’m planning to do a second sweep on all these tutorials eventually and correct any mistakes pointed out in the comments, so your feedback is much appreciated!

]]>
By: Eric https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1115 Fri, 11 Dec 2009 10:55:09 +0000 https://prototyprally.com/?p=256#comment-1115 only one thing: remember that many people are going to be moving through these sequentially, like me.

Since I try to follow all tutorials to the letter (not bringing in habits from other IDEs and APIs with which I’m already familiar), I didn’t know I was going to be deleting the leek picture.

I also didn’t know where to put the properties, or whether I had to change the extension once I added the Gfx properties.

The source code helps, but when you use a new word (property, in this case), I would suggest showing the whole class so the student can know that they’re headed in the right direction.

All in all, these have been great, thanks!

]]>
By: brainz88 https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1114 Thu, 12 Nov 2009 14:21:12 +0000 https://prototyprally.com/?p=256#comment-1114 Nice tut
clear enough to understand
thx

]]>
By: Fraser https://prototyprally.com/mgas3fd-4-more-embedding/#comment-1113 Sun, 08 Nov 2009 06:07:58 +0000 https://prototyprally.com/?p=256#comment-1113 This is my first experience of programming, so it was right about here that I started to think “Huh? Add the what to the what? Where am I supposed to put this code?” I was very relieved to see the project files download link at the end there!

Thank you for having the patience to think like a newcomer. 🙂

]]>