Author Topic: Flash CS4 Actionscript halp plauks!  (Read 420 times)

Offline failboat

  • Member
  • Posts: 874
  • pls no
Flash CS4 Actionscript halp plauks!
« on: August 03, 2010, 02:24:14 PM »
So, i am currently engaged in a silly little flash project, and i have trouble with this actionscript shit.

I have this button, with the script

stop()

playButton.addEvent Listener ( MouseEvent.CLICK, myStartHandler )
function myStartHandler( evt ){
   gotoAndPlay(1);

}


but that only makes the small clip play once everytime i click it, and nor does it restart the music.

The clip is consisting of two pictures, one regular one and one gloomy "glow" one, the glowing one is fading and "pulsating/pulsing" (lol, unno the right word for it), and i got a audio layer for it to.

The playback works fine without the actionscript, the movie pulses to the music as i want it to, but i need to make a start button for the whole thing.

So, anyone with earlier experience in flash cs4 which can help me out?

Offline Xiong Chiamiov

  • Member
  • Posts: 3012
  • I'm gonna tolerate and love the SHIT out of you!
    • changedmy.name
Re: Flash CS4 Actionscript halp plauks!
« Reply #1 on: August 04, 2010, 01:41:39 AM »
Uh, why didn't you try a programming forum?  Or a programming-related irc channel?  Or StackOverflow?  Or someplace that is vaguely related to programming in any way?
Projects of interest: nagi | sheska | bdg
Posts made between 2009-05-09 and 2011-08-26 were in the capacity of staff.  Please read accordingly.

Offline luciusrenata

  • Member
  • Posts: 15
  • KING DOUJINSHI
Re: Flash CS4 Actionscript halp plauks!
« Reply #2 on: August 05, 2010, 10:19:50 AM »
Ummm... dont put the sound on the timeline (assuming thats what you did)

If you want to use eventhandling, it may be better to instantiate a sound object in actionscript and then use the stop and start properties of that class. 

also I agree with Xiong, this is probably not the best place for great advices on this subject, so caveat emptor, i am not sure if my solution will help, or just make your computron asplode... ;D

good luck! 

also check the AS4 code reference documents.  don't bother with the CS4 help cos it's poopcrap.
THIRTY THIEVES
     -and the-
THUNDER CHIEFS!!