|
-
Script kiddie
Bleh... you're gonna get to see my coding practices now, aren't you? 
http://www.birchlabs.co.uk/CopyPixelsSource.zip
(there are no comments, have fun...)
Sprite sheet's here:

The transparent arrows are there because the arrows fade out, and it's faster to copy the pixels of a pre-rendered transparent arrow than apply a ColorTransform to it every time it's needed.
-
Okie dokie. I'll see if I can understand how it all works. Thank you =)
-
Hmmm, I get the following error when I try to run/test it in Flash CS3 Pro:
>>
ArgumentError: Error #1063: Argument count mismatch on ArrowSheet$iinit(). Expected 2, got 0.
at CopyPixelsSource_fla::MainTimeline/CopyPixelsSource_fla::frame2()
>>
Anyone know what the problem might be? =/
-
Thank you webgeek. I changed the forth line from:
var arrowSpriteSheet:ArrowSheet = new ArrowSheet();
to:
var arrowSpriteSheet:ArrowSheet = new ArrowSheet(0,0);
Still not sure why it needed arguments, but it works for me now.
I've looked through it and I believe I understand how the technique works now. Thank you very much, VENGEANCE MX =)
Last edited by FaeKitty; 06-02-2007 at 08:58 PM.
Got Milk?
FaeKitty >^.^<
-
 Originally Posted by VENGEANCE MX
Bleh... you're gonna get to see my coding practices now, aren't you?
http://www.birchlabs.co.uk/CopyPixelsSource.zip
(there are no comments, have fun...)
Sprite sheet's here:
The transparent arrows are there because the arrows fade out, and it's faster to copy the pixels of a pre-rendered transparent arrow than apply a ColorTransform to it every time it's needed.
Thanks for posting this demo as I'm still learning the whole copypixel() thing.
My question is somewhat off topic, but possibly still related... Lets say for some reason you wanted to be able to detect if the user clicked on one of the arrows. How would you go about doing that?
I've only ever used the movieclip approach where I can simply add a mouseevent handler.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|