Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash General Questions > Flash 8 General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-03-2005, 10:28 AM   #1
Mortimer Jazz
Thing
 
Mortimer Jazz's Avatar
 
Join Date: Jun 2001
Location: UK
Posts: 2,418
Default Flash 8 - blending modes

Just a quick play with some of the new blending modes in Flash 8.
You will need the beta player to view this file.

[edit: more further down the thread. Will add more links as I go]

http://www.nwebb.co.uk/nw_htmlsite/f...sh8_blend.html
__________________
............................
FLEX/FLASH BLOG
Previous Flash Tutorials

............................

Last edited by Mortimer Jazz; 08-04-2005 at 03:36 PM..
Mortimer Jazz is offline   Reply With Quote
Old 08-03-2005, 12:02 PM   #2
Headshotz
TEAM INTERNET
 
Headshotz's Avatar
 
Join Date: Jul 2005
Location: Batcave
Posts: 2,759
Send a message via MSN to Headshotz
Default

Wow, looks good
__________________
The author of windows file copy dialogue visits some friends:
"I'm just outside of town so I should be there in about 15 minutes"
"Actually it's looking more like 6 days"
"No, wait, 30 seconds"
Headshotz is offline   Reply With Quote
Old 08-04-2005, 02:47 PM   #3
Mortimer Jazz
Thing
 
Mortimer Jazz's Avatar
 
Join Date: Jun 2001
Location: UK
Posts: 2,418
Default

Flash 8 can also sample bitmaps and reproduce them. Sweet!
http://www.nwebb.co.uk/nw_htmlsite/f...sh8_bmap1.html
__________________
............................
FLEX/FLASH BLOG
Previous Flash Tutorials

............................
Mortimer Jazz is offline   Reply With Quote
Old 08-04-2005, 03:07 PM   #4
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

the second one is good. i imagine you are using getpixel? or are you using the bitmap data class?
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 08-04-2005, 03:32 PM   #5
Mortimer Jazz
Thing
 
Mortimer Jazz's Avatar
 
Join Date: Jun 2001
Location: UK
Posts: 2,418
Default

Hey Hangalot, how's it going.

I'm using both BitMapData and Rectangle (from the geom package) - which was something I saw protozoo do first (see comments on website) .
I'm sampling an area using flash.geom.Rectangle:
ActionScript Code:
function sampleBMD() {     for(var y=0; y<divY; ++y)     {         for(var x=0; x<divX; ++x)         {             var xPos = x*sqSize;             var yPos = y*sqSize;             this["rect" + x + "_" + y] = new flash.geom.Rectangle(xPos, yPos, sqSize, sqSize);             rectArr.push(this["rect" + x + "_" + y]);         }     } }

and then using BitMapData.copyPixels to past it in the new BMD with some randomisation.
ActionScript Code:
rrr = new flash.geom.Rectangle(xPos, yPos, sqSize, sqSize); bmap2.copyPixels(bmap1, rectArr[randNumArr[0]], rrr);

I want to swap everything over to classes, then I'll post the source somewhere, as it will be in a more useful state. I'm currently using the F7 IDE, not MTASC, and the compiler obviously grumbles about the new packages. I found out that you can get around it in many cases by prefixing with "_global", but I couldn't get filters to work that way.
__________________
............................
FLEX/FLASH BLOG
Previous Flash Tutorials

............................

Last edited by Mortimer Jazz; 08-04-2005 at 03:41 PM..
Mortimer Jazz is offline   Reply With Quote
Old 08-04-2005, 03:40 PM   #6
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

nice one, its good stuff. you coming over to mmug this month?
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 08-04-2005, 03:47 PM   #7
Mortimer Jazz
Thing
 
Mortimer Jazz's Avatar
 
Join Date: Jun 2001
Location: UK
Posts: 2,418
Default

Yeah may do. Depends if it clashes with my visit back to Bath or not.

As you can (probably) tell, I'm off work today - mad ear ache like you wouldn't believe. Trying to get as much F8 stuff looked at as I can inbetween bouts of intense head pain! Not to mention the pain of losing another days wages. *sniff*

ps see edit in above post.
pps How's the job going? ... oh and did you get my email last night?
__________________
............................
FLEX/FLASH BLOG
Previous Flash Tutorials

............................
Mortimer Jazz is offline   Reply With Quote
Old 08-04-2005, 03:50 PM   #8
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

just declare your classes as dynamic, that will get the compiler to shut up. no i did not get the mail last night...
and the job is great, much less money than contracting but really good/interesting. and i can have sickies and still get paid
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 08-04-2005, 04:07 PM   #9
Mortimer Jazz
Thing
 
Mortimer Jazz's Avatar
 
Join Date: Jun 2001
Location: UK
Posts: 2,418
Default

Quote:
Originally Posted by hangalot
and i can have sickies and still get paid
*Grrrrr*

Yeah of course. That sorted it - cheers.

Sent it to your gmail account l***el@gmail.com.
__________________
............................
FLEX/FLASH BLOG
Previous Flash Tutorials

............................
Mortimer Jazz is offline   Reply With Quote
Old 08-05-2005, 02:05 PM   #10
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

ain't getting no mail from ya.... weirdness.
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:36 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.