Profile

Member Since
February 24, 2012

Search Members

  

KahunaCoder

8
@

Badges

This user hasn't earned any badges yet.

Posts

Viewing 1 to 8 (8 Total)

Re: import swf movie in my project

Yep...follow this thread:

http://www.haxenme.org/community/forums/programming-with-haxe/trans...

Basically, you have to update.

Posted on March 14, 2012 at 11:43 AM

Re: Transparency Issue with SWF/Flash

Awesome! Thank you for taking the time to look into it. Upgrading now. smiling

Posted on March 03, 2012 at 12:22 AM

Re: Using MovieClip from SWF in NME problem [SOLVED]

Hehe! You're not the only one...I did that myself! smiling

Posted on March 02, 2012 at 9:01 AM

Re: Transparency Issue with SWF/Flash

Oh just to let you know...The current build of TestNME.swf in bin currently has the alpha value for the Pinball object set to some other number than 1.

Posted on March 01, 2012 at 11:34 PM

Re: Transparency Issue with SWF/Flash

Hey there singmajesty...thanks for taking your time to look into this. Here's a link to my test project:

http://www.kahunastudios.com/FlashDemos/TestNME.zip...

Thanks!

Posted on March 01, 2012 at 11:31 PM

Transparency Issue with SWF/Flash

Hello all. I've tried to search the forums and googled this issue but couldn't find anything on it yet. I noticed another developer here has had similar issues regarding transparent pixels being rendered but his question has gone unanswered. Currently, I am instantiating objects from an imported SWF file. I can import the SWF just fine, but when the game renders the object, the transparent pixels render black. I am running this through Flash. I can post pictures and paste the code I'm using to create my object later on if needed. I'm just wondering if this is an known issue or if I'm missing a step in the initialization process? Thanks!

Posted on February 28, 2012 at 10:14 AM

Re: drawTiles RGB parameter bug?

I'm currently not at home to check this out..but what is your alpha problem? I know I came across one this past weekend when I tried to instantiate an object from a SWF. The blank area in the movieclip object was being rendered black. I'm not sure if that's similar to your problem?

Posted on February 27, 2012 at 1:35 PM

Re: import swf movie in my project

You'll want to add a library path to your project's nmml file which points to your swf like so:

<library path="assets/TestNME.swf" rename="assets/TestNME.swf" />

From there, you can instantiate your class objects from your swf file.

In my swf, I have a Pinball movieclip and you can add it to the stage like so:

var ball = new Pinball();
addChild (ball);

BTW, I'm running NME 3.2.

The only issue I'm seeing right now is that the transparency in the movieclip is being rendered as a solid, black color. Anyone know how I can fix this? Thanks.

Posted on February 25, 2012 at 10:44 PM