SWiSHzone.com Support Forums: ANSWERED:My First Effect - SWiSHzone.com Support Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ANSWERED:My First Effect Take a look and tell me what you think. Rate Topic: -----

#1 User is offline   ArthurH 

  • Member
  • PipPip
  • Group: Members
  • Posts: 24
  • Joined: 21-January 09
  • Gender:Male
  • Location:Kansas

Posted 10 March 2009 - 07:43 AM

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

0

#2 User is offline   David Petley 

  • Advanced Member
  • PipPipPip
  • View gallery
  • Group: Admin
  • Posts: 6,632
  • Joined: --

Posted 10 March 2009 - 08: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
http://blog.swishzone.com/ ...for cool tutorials, samples and new components
NEW! Project Broadcast ...broadcast audio content via the flash player, be your own DJ.
0

#3 User is offline   ArthurH 

  • Member
  • PipPip
  • Group: Members
  • Posts: 24
  • Joined: 21-January 09
  • Gender:Male
  • Location:Kansas

Posted 10 March 2009 - 08:32 AM

View PostDavid Petley, on Mar 10 2009, 09:06 AM, said:

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.
0

#4 User is offline   Wolf Gross 

  • Advanced Member
  • PipPipPip
  • Group: Moderator
  • Posts: 19,916
  • Joined: --
  • Gender:Male
  • Location:Perth/Australia

Posted 10 March 2009 - 08:45 AM

...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
Posted Image
Web Wolf Wonder Web Works

SWiSHsites modified
0

#5 User is offline   ArthurH 

  • Member
  • PipPip
  • Group: Members
  • Posts: 24
  • Joined: 21-January 09
  • Gender:Male
  • Location:Kansas

Posted 11 March 2009 - 12:16 AM

Something Like that yes, but im trying to go from a black box, to an image, then back to the black box.
0

#6 User is offline   crslz 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 1,475
  • Joined: 09-June 05
  • Gender:Male
  • Location:Belgium, West-vl (dutch language)
  • Interests:html, swish, php, flash, photoshop, 3D design, hardware, ubuntu, windows..

Posted 11 March 2009 - 02:05 AM

- 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
0

#7 User is offline   David Petley 

  • Advanced Member
  • PipPipPip
  • View gallery
  • Group: Admin
  • Posts: 6,632
  • Joined: --

Posted 11 March 2009 - 08:14 AM

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 ;)

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)


http://blog.swishzone.com/ ...for cool tutorials, samples and new components
NEW! Project Broadcast ...broadcast audio content via the flash player, be your own DJ.
0

#8 User is offline   ArthurH 

  • Member
  • PipPip
  • Group: Members
  • Posts: 24
  • Joined: 21-January 09
  • Gender:Male
  • Location:Kansas

Posted 13 March 2009 - 12:07 AM

This is Perfect! This was exactly what I was looking for. Thank you for taking the time to figure out my little mess.
Arthur
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users