SWiSHzone.com Support Forums Home

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> ANSWERED:My First Effect, Take a look and tell me what you think.
ArthurH
post Mar 10 2009, 07:43 AM
Post #1


Member
**

Group: New Members
Posts: 16
Joined: 21-January 09
From: Kansas
Member No.: 55701



I have been trying for an effect like this for sometime now. I finally got something.

I do have one question that would finish this off. Im trying to get it to fade back out when you roll off.

Right now when you roll over the Over State starts a Glow effect, but as soon as you roll off the button goes black immediately. Can it be made to fade out like it faded in?

Also I had to mess with objects to get the effect to show up like it does on all 3 buttons. Is there a "cleaner" way to do this to anyone's knowledge?


Thanks
Arthur
Attached File(s)
Attached File  Index.swi ( 100.66K ) Number of downloads: 31
 
Go to the top of the page
 
+Quote Post
David Petley
post Mar 10 2009, 08:06 AM
Post #2


Advanced Member
***

Group: Admin
Posts: 6177
Joined: --
Member No.: 7



Hi Arthur,

I don't think it is possible the way your buttons are structured right now. A button has only over | down | hit states, and you want an 'onRollout' event/action occurring.

I will try and take a look at other ways you might achieve this a bit later today.

davidp


--------------------
IPB Image
Go to the top of the page
 
+Quote Post
ArthurH
post Mar 10 2009, 08:32 AM
Post #3


Member
**

Group: New Members
Posts: 16
Joined: 21-January 09
From: Kansas
Member No.: 55701



QUOTE (David Petley @ Mar 10 2009, 09:06 AM) *
Hi Arthur,

I don't think it is possible the way your buttons are structured right now. A button has only over | down | hit states, and you want an 'onRollout' event/action occurring.

I will try and take a look at other ways you might achieve this a bit later today.

davidp



That would be great! As I said before this was my first attempt ever at working with effects, objects, and movies. I had previously been working off pre-made templates from SwishZone and other sites. As I am a complete newb to the way a lot of this stuff works together, my first effect, while achieving what goal I was after, looks pretty mashed together. Im sure with a little knowledge I can find a better way of getting the same effect but with less complicated structuring.

Thanks for the quick reply.
Go to the top of the page
 
+Quote Post
Wolf Gross
post Mar 10 2009, 08:45 AM
Post #4


Advanced Member
***

Group: Moderator
Posts: 17192
Joined: --
From: Perth/Australia
Member No.: 25



...something like this?
Attached File  fade_in_out.swf ( 128.93K ) Number of downloads: 61

Attached File  fade_in_out.swi ( 134.31K ) Number of downloads: 17


wolf


--------------------

Web Wolf Wonder Web Works

SWiSHsites modified
Go to the top of the page
 
+Quote Post
ArthurH
post Mar 11 2009, 12:16 AM
Post #5


Member
**

Group: New Members
Posts: 16
Joined: 21-January 09
From: Kansas
Member No.: 55701



Something Like that yes, but im trying to go from a black box, to an image, then back to the black box.
Go to the top of the page
 
+Quote Post
crslz
post Mar 11 2009, 02:05 AM
Post #6


Advanced Member
***

Group: Members
Posts: 1374
Joined: 9-June 05
From: Belgium, West-vl (dutch language)
Member No.: 20298



- insert a black shape above the image (size shape = size image)
- fade out the black shape
- now you see the image
- now fade in the black shape

grtz
Go to the top of the page
 
+Quote Post
David Petley
post Mar 11 2009, 08:14 AM
Post #7


Advanced Member
***

Group: Admin
Posts: 6177
Joined: --
Member No.: 7



Hi Arthur,
I have attached a file I made this morning which might help.

Looking back, the steps were -

1) Draw a square, copy it twice and align all 3 as needed (these will end up being your buttons).

2) Copy those 3 rectangles, and 'Paste' ...this will place the copied squares in a different location on the layout (easier to see what you are doing).

3) Group the copied rectangles as a shape, name it (you will see in my movie that I have used 'groupedShape01' ...I like sensible names wink.gif

4) Modify your fill to radial gradient, putting the glow color at LH end and fading to 0% alpha at the other.

5) Use the 'Fill Transform Tool' on the layout panel to modify the gradient to your needs.

6) Now that you have your fill right, copy your grouped shape twice, naming them appropriately (I have used groupedShape02 & 03).

7) Select each of your new grouped shapes and in turn use the 'Fill Transform Tool' to modify the gradient to your needs, dragging the center point across to be over the correct button.

8) Convert each of your grouped shapes to Movie Clips.

9) Look at the timeline of the grouped object in each movie clip to see how I have added the fade in and fade out effects and controlled the playhead by adding stops in the timeline.

10) Now it is a matter of converting each of the original squares you made into buttons and adding the onRollover and onRollout events which will control the movie clip playhead to fade in and out the glow.

11) When you are satisfied that the buttons work, drag each of your movie clips into alignment with the buttons.

This leaves your buttons ready to take your onPress and onRelease events.

I think that about covers what I did, hope it (along with the attachment) helps.

davidp


Attached File(s)
Attached File  firstEffect.swf ( 530bytes ) Number of downloads: 63
Attached File  firstEffect.swi ( 23.55K ) Number of downloads: 25
 


--------------------
IPB Image
Go to the top of the page
 
+Quote Post
ArthurH
post Mar 13 2009, 12:07 AM
Post #8


Member
**

Group: New Members
Posts: 16
Joined: 21-January 09
From: Kansas
Member No.: 55701



This is Perfect! This was exactly what I was looking for. Thank you for taking the time to figure out my little mess.
Arthur
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st November 2009 - 02:31 PM