Be a Supporter!

effects

  • 149 Views
  • 4 Replies
New Topic Respond to this Topic
seal36
seal36
  • Member since: Jun. 22, 2006
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
effects 2009-07-23 14:57:51 Reply

im looking to fade in and out a scene, where do i find the effects panel?

silentsouless
silentsouless
  • Member since: Sep. 25, 2007
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to effects 2009-07-23 15:06:04 Reply

Here's what you do:

Create a black box the size of the screen, and tween the alpha so that it becomes visible and invisible.


Sigur Ros = win

seal36
seal36
  • Member since: Jun. 22, 2006
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to effects 2009-07-23 15:14:05 Reply

great, that works for fading in thanks a lot (here it is http://spamtheweb.com/ul/upload/230709/7 2779_twilight_arts_logo.php)

but how do you fade out?

silentsouless
silentsouless
  • Member since: Sep. 25, 2007
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to effects 2009-07-23 16:56:01 Reply

Tween from alpha 0% to alpha 100%.


Sigur Ros = win

Jereminion
Jereminion
  • Member since: Nov. 6, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to effects 2009-07-23 17:12:34 Reply

u can try this if ur doing a movie and want it on the 1st frame

u draw a big box

on the frame you write

stop()
box.alpha = 0

then on the event listener u just do

box.alpha+=.5
if(box.alpha>90){
gotoAndPlay(2)
}

i forget whether alpha is out of 100 or 1 in as3 but u need to look that up and how to use enter frame with event listeners

or in as2

onEvent(load){
box.alpha = 0
}
onEvent(enterFrame){
box.alpha+=.5
if(box.alpha>90){
gotoAndPlay(2)
}
}