Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-10-2005, 12:07 PM   PM User | #1
mark87
Senior Coder

 
Join Date: Dec 2004
Location: Essex, UK
Posts: 2,636
Thanks: 0
Thanked 0 Times in 0 Posts
mark87 is on a distinguished road
Flash : Zoom/Blur

I have a picture of a corridor, and I want it so when you click on the picture it zooms in to it (to where it's black at the end of the corridor), and blurs at the same time (I can imagine what I want it to look like!).

I'm totally new to Flash really so how would I go about doing this?

The only tutorial I've found is this, http://www.tutorialized.com/tutorial...ur-Effect/7201 , but it doesn't seem to be what I want really.
__________________
markaylward.co.uk
mark87 is offline   Reply With Quote
Old 09-11-2005, 11:46 AM   PM User | #2
ro1bu85
New Coder

 
Join Date: Aug 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
ro1bu85 is an unknown quantity at this point
hi
this is very possible to achieve..
first make a tween with the image of the corridor getting bigger. It will go off the working area but thats ok, just make sure u have the blackness of the corridor in the middle.

now u have a zooming in effect. to make it blur you could try making the brightness a little darker or maybe fiddle with the alpha.

hope this helps.

if your doing it frame by frame, go into photoshop and use the blur tool. this will take longer tho.
ro1bu85 is offline   Reply With Quote
Old 09-11-2005, 12:20 PM   PM User | #3
mark87
Senior Coder

 
Join Date: Dec 2004
Location: Essex, UK
Posts: 2,636
Thanks: 0
Thanked 0 Times in 0 Posts
mark87 is on a distinguished road
OK done! Nearly!

At the moment my timeline looks like the pic attached...

Layer 2 is the normal image, Layer 3 is the blurred image. I've created a tween so it zooms in between frames 15 and 30.

How do I do it though so that frames 1-14 infinitely loop until the image is clicked, then frames 15-30 play?
Attached Thumbnails
Click image for larger version

Name:	TimeLine.PNG
Views:	257
Size:	8.2 KB
ID:	3817  
__________________
markaylward.co.uk
mark87 is offline   Reply With Quote
Old 09-11-2005, 04:49 PM   PM User | #4
person
New Coder

 
Join Date: Apr 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
person is an unknown quantity at this point
You could just make what you have done into a movie clip instead, put it on the first frame, and type
Code:
stop()
in the actions panel of frame one. It will play infinitely. Now make the image you want clickable into a button and type
Code:
on (release) {
   gotoAndPlay(2)
}
That will make it go to frame two when you click the image.
__________________
Shadowmelody
person is offline   Reply With Quote
Old 09-12-2005, 12:47 PM   PM User | #5
mark87
Senior Coder

 
Join Date: Dec 2004
Location: Essex, UK
Posts: 2,636
Thanks: 0
Thanked 0 Times in 0 Posts
mark87 is on a distinguished road
Cheers. Leading back to another one of my posts - http://www.codingforums.com/showthread.php?t=67876 - How can I also delete the 'scanlines' when the image is clicked?

This is creating the lines -
PHP Code:
 // Scanlines 
_root.createEmptyMovieClip("scanLines"1000); 
with (scanLines) { 
     
lineStyle(00x000000,30); 
     
moveTo(00); 
     
lineTo(Stage.width0); 

for(
i=0;i<Stage.height;i++){ 
     
duplicateMovieClip("scanLines","scanLines"+i,i); 
     eval(
"scanLines"+i)._y i*3

// By Frost_0ni 
I tried the following, but I think that there are many different clips named scanLines ? Will I need to loop through them to delete them somehow?

PHP Code:
on (release) {
    
removeMovieClip("scanLines");
       
gotoAndPlay(15)

__________________
markaylward.co.uk
mark87 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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 +1. The time now is 09:36 AM.


Advertisement
Log in to turn off these ads.