Flash Ripples
Posted: 08 March 2008 05:12 AM   [ Ignore ]
Rank
Joined  2007-07-02
Total Posts:  50
New Member

I have been trying to figure out what was the problem that the Flash ripples application doesn’t show the picture below. But I couldn’t figure out even after spending hours scrutinising the codes.
Has anyone successfully getting the picture below the ripples canvas to show up?

I have seen a video by Joobs, showing that he the picture is showing up in his ripples application. So there should be some ways right?

Profile
 
 
Posted: 08 March 2008 09:23 AM   [ Ignore ]   [ # 1 ]
Avatar
RankRank
Joined  2008-03-02
Total Posts:  107
Jr. Member

I tryed to repair ripples my self.. without any success. I guess that the problem lies in fact that ripples was coded for AS2, and now is just fast rewrite to AS3. The thing is that BitmapData.loadBitmap is gone in AS3. And right now I’m thinking about making my own ripples, as it would be less paintfull :D
[edit]

I found a dirty fix, It shows the image under effect.. but it doesn’t apply ripple to it.
To show the image (which is placed with flash on main stage) put this in header

import flash.display.BlendMode;

and this on the end of the constructor in RippleCanvas (just at the end of RippleCanvas function)

this.blendMode BlendMode.ADD;

I’m steel diging on how to apply ripple as an effect to image .. so be tuned wink

Profile
 
 
Posted: 10 March 2008 03:06 AM   [ Ignore ]   [ # 2 ]
Avatar
RankRankRankRank
Joined  2006-11-09
Total Posts:  1017
Administrator

Hey guys I have some updated ripples source.. it is not working with touch but it should be a better start than what is currently on SVN…

I have attached source and example below… It should be pretty easy to add touch events to the equation.. and I will post the updated version when I get free time…

Also make sure you check out this thread: http://nuigroup.com/forums/viewthread/1471/

File Attachments
rip.zip  (File Size: 756KB - Downloads: 349)
 Signature 
Profile
 
 
Posted: 10 March 2008 06:34 AM   [ Ignore ]   [ # 3 ]
Avatar
RankRank
Joined  2008-03-02
Total Posts:  107
Jr. Member

Nice, I see it’s an compleat rewrite .. great work c.moore and thnx. 4 posting it :D

Profile
 
 
Posted: 18 March 2008 01:17 PM   [ Ignore ]   [ # 4 ]
Avatar
RankRank
Joined  2008-03-02
Total Posts:  107
Jr. Member

I finished your code, so now it supports touch events, I also added fullscreen mode and resize on start.
It should be somehow faster then other ripple apps, but that I’ll test later this evening..
One thing I’m not sure, is it using hardware or software scaling this way, from adobe docs:

To take advantage of hardware scaling, you set the whole stage or part of the stage to full-screen mode.

does it means that hardware scaling is applied only with stage.fullScreenSourceRect ?

You should edit classpath as I included my local path..
Anyway here are compressed files:

File Attachments
ripples.rar  (File Size: 251KB - Downloads: 591)
Profile
 
 
Posted: 27 March 2008 10:34 AM   [ Ignore ]   [ # 5 ]
Rank
Joined  2008-03-26
Total Posts:  3
New Member

when i run the program i get this error:

1046: Type was not found or was not a compile-time constant: TouchEvent.

Profile