Sep 28
Here is a Flash vs Silverlight comparison on the fantastic iPhone Dragging Effect.
it is a Text Dragger like the well-known dragging effect from iPhone or iPod touch. Simply drag the text up and down by holding down the mouse button.
Let’s enjoy it and leave comments!!
Comparison
Flash implementation: 35 minutes
Silverlight implementation: 1 hour 40 minutes (Implemented First)
Source codes
IPhoneScroll [Flash 9, AS3] (101.3 KiB, 2,778 hits)
IPhoneScroll [Silverlight 3, C#] (54.8 KiB, 3,702 hits)

September 28th, 2009 at 1:41 am
[...] more here [...]
September 28th, 2009 at 6:27 am
I’d say displaying the implementation times at all are fairly misleading, given you created the SL one first.
September 28th, 2009 at 9:32 am
I happen to agree with Michael. You should also publish what you think about each implementation. I really like what you’re doing here but I think that many folks would benefit a lot from something a little deeper then how long did you took to implement each.
Since the voting no longer exists, you should post you opinion on wich implementation you think was easier/better and wich result you think is better.
September 28th, 2009 at 11:13 pm
You are not propertly using Silverlight for graphic operations. Firstly, you should be taking advantage of the EnableGPUAccelleration parameter in the object embed on the page (Might have misspelled it - look it up :)… Also, you are not using the bitmap caching would makes this sort of thing smooth as butter.
Please if you are going to compare technologies know how to use them.
September 29th, 2009 at 6:29 am
Bill, by saying that somebody should know something he’s writing about - you should know that turning on bitmap caching degrades font rendering quality of that part. So there should be any real reasons to do it, which I don’t see in that sample, because it’s quite smooth enough.
September 29th, 2009 at 7:39 am
Hi Kelps, actually, i just mark down exactly how much time I spent on doing the application. I agree that I can add some more explanations on the time that I spent.
Bill: thanks for the suggestion. Actually, my intention in this blog is just to provide some “solutions” for solving different problem. If performance is an issue for the readers, I will really spend some time to make a better comparison.
Max: thanks for the comment. I am thinking to create more iphone effect in the coming posts.
October 2nd, 2009 at 6:03 pm
[...] Terence Tsang released his first iPhone scroll effect control. It is a Text Dragger like the well-known dragging effect from iPhone or iPod touch. Simply drag the text up and down by holding down the mouse button. [...]
October 4th, 2009 at 9:40 pm
[...] Silverlight 3 and Flash: iPhone Dragging Effect [...]
October 6th, 2009 at 1:59 am
Flash is more responsive…
October 7th, 2009 at 6:01 am
There is one difference - if you grab the page and move the mouse outside the control rectangle, the flash version will continue working, while the silverlight one will just freeze and behave strangely. Is this fixable in silverlight/firefox?
October 7th, 2009 at 6:12 am
Hi Terence. This is awesome. I just tested the flash version and I was wondering whether it was possible to use multiple scroll elements in one swf containing different text and images?
October 11th, 2009 at 8:06 pm
Hey! Very cool effect! Just wondering if you could tell me what I need to change in the AS script for it to work horizontally. I´d really like a hand on that since I´m not that experienced in ActionSCript coding. Thanks a lot!
October 26th, 2009 at 9:57 am
Gigi Wrote: There is one difference - if you grab the page and move the mouse outside the control rectangle, the flash version will continue working, while the silverlight one will just freeze and behave strangely. Is this fixable in silverlight/firefox?
I agree. In Flash/AS, you can do onReleaseOutside( … I haven’t used Silverlight, so I don’t know if it has that or anything similar. In any case, I’ve noticed that in all the examples in the gallery, the Silverlight examples have this sticking/freezing if you move the mouse or drag something to the outer edge. Is this something you forgot to add to the Silverlight examples, or does Silverlight simply not have an event handler similar to “onReleaseOutside”?
Just curious. Thanks for the neat site by the way. I’ve bookmarked it.
October 27th, 2009 at 11:41 pm
Gigi and Hooman: that’s my question too, i have no idea how to check on release outside the plugin. It seems there isn’t any standard method to handle that. Anyone know if there is some hack on that?
October 29th, 2009 at 6:21 am
How to apply this effect for a limit height in a window, not for the whole height of the browser.?
Ive tried, and see that the textbox is get over the bounce of height limit/
Thank you.
November 2nd, 2009 at 9:11 pm
Hello,
Thanks a lot for sharing your work! I am planning to implement this functionality for a new site I am developing and will need to have this drag effect both vertically and horizontally. I was able to make it work horizontally already. I’ll let you know when I have the final website running and give you the proper credits.
Cheers,
Felipe
December 18th, 2009 at 6:38 pm
[...] The cool iPhone Dragging effect by Shine Draw [...]
December 29th, 2009 at 5:18 pm
It would be great to combine this with the Image Gallery: you’d move an image to the left to see the next one, and to the right to see the previous image.
Move it fast (give it a swing) and it would continue scrolling, until you break by clicking on it.
January 13th, 2010 at 6:46 am
Anyone grabbed an unlocked iphone off ebay? That means i can use it on any network right?
January 15th, 2010 at 5:21 pm
i’m missing something here. for the flash scroller, where is the content coming from? there are no files and i dont see any reference to it in the AS. i’m talking about the text, “Microsoft Silverlight is a web application framework…”
January 18th, 2010 at 1:47 pm
Doing some browsing and noticed your blog appears a bit messed up in my K-meleon internet browser. I think I’m the only one still using it….
January 24th, 2010 at 8:54 pm
i can’t open the project or solution in the visual studio .
help me please.
error ***The project type is not supported by this installation***
January 30th, 2010 at 6:31 pm
OMG! Silverlight fonts a fucking twisted. How can i insert normal fonts in to silverlight application?
February 18th, 2010 at 8:40 pm
I was playing with this, I added some buttons into the myScrollElement movie, then outputted this file as as swf, to load into a UI loader in a parent swf.
I was trying to add an event handler to the button within myScrollElement but I can’t figure out the target path.
Have you code to do this? I can target as far as myCanvas but I can’t seem to figure out the next level of instance names below that MC.
Dara
February 23rd, 2010 at 12:52 pm
Thanks Terence for creating this! Do you know how one can make the iPhone scroll go horizontally? I’m trying to figure out how to do this and I don’t have a lot of ActionScript skills. Even though I’m trying to figure out to make it horizontal it’s a lot closer to the solution I’m looking for.
March 1st, 2010 at 2:13 am
Is it me or does the flash based version work a little–just little–better?
April 6th, 2010 at 10:27 am
Try & Preserve your iPad for No fee! -> http://bit.ly/cFBuis
April 20th, 2010 at 3:24 pm
http://tech.chitgoks.com/2010/03/14/iphone-4g/
May 27th, 2010 at 7:35 pm
hi
thats a great work i was doing something similar too but i think yours feel somhow more softh hope you dont mind if i use some of your code in mine .
Look this is what i have so far http://www.motion.com.mx/tests/iphoneScroll/GalaScroller4.swf
May 27th, 2010 at 7:38 pm
i mean softher :P
May 28th, 2010 at 7:01 pm
How about Flash and Silverlight on the iPhone?!
http://www.artefactgroup.com/blog/2010/05/jobs-be-damned-flash-on-the-ipad-silverlight-too/
June 2nd, 2010 at 7:10 am
I can see that you are an expert at your field! I am launching a website soon, and your article will be very useful for me. Thanks for all your help. With best wishes x
July 16th, 2010 at 10:41 am
thanks for sharing..
very interesting..
July 20th, 2010 at 8:45 am
One drawback of Silverlight is that if you drag the mouse outside of that blue box the image is not scrolled back.
August 2nd, 2010 at 3:41 am
Wow That Great .. Such a Great Tool Silver Light
August 17th, 2010 at 10:41 am
非常好的效果,收藏一下,每次来浏览你的网站,你的文章都不是为了区分flash和silverlight那个效率更高,而是热衷于你的代码,你总是能够在代码上给我带来新的启发。