I did not updated this blog lately because I was working on some flash projects… and now I want to share with you the code that I use for most of my images when I load them externally.
I used this code a lot in MotorRocks.com and other sites…
import mx.transitions.Tween; import mx.transitions.easing.*; var listener:Object = new Object(); listener.tmc = target; listener.onLoadInit = function(mc:MovieClip) { new Tween(mc,"_alpha", Strong.easeOut,0,100,2,true); }; var loader:MovieClipLoader = new MovieClipLoader(); loader.addListener(listener); loader.loadClip("image01.jpg", holder); |
I think this is the easiest way to preload images and when loaded… to fade them in.
It’s a nice effect and you can use it on your projects if you want 😉
Thanks so much!
I have qusion. How You make protection on that web page?
protection ?
Sorry for my english 😉
I mean, how you did protection at this page(MotorRocks.com)?
If it is not secret…
Protection from what?
I don’t really understand…
If you are talking about how you can not copy the images if you right click on them… then you have to understand that it’s just flash… that is how flash works… you can’t copy the images from a flash site by just right clicking and then Save As 😉
I know what is it flash))
I have program, which save flash files. And it program can’t save your web page. Because i asked how you did it?
P.S. i didn’t want make copy of your page)) I just want to see how you use to make one good effect…
oh… I don’t really know why you can’t save the swf file with your software… maybe it’s because it is embedded with SWFObject
Thank for software!! Thanks. Thanks!
Yoy are very kind person. Thanks one more time 😉