Jump to content


fash script


  • You cannot reply to this topic
11 replies to this topic

#1 Lifeis2evil

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 29 October 2006 - 10:33 PM

what script would i have to use if i want to make like a photo slide show but the person needs to click the first picture so it can go to the 2nd picture and so on

#2 Ben

    P2L Jedi Master

  • Publishing Betazoids
  • PipPipPipPip
  • 1,366 posts
  • Gender:Male
  • Location:VIC, Australia

Posted 30 October 2006 - 12:43 AM

I think people need to realise this is a macromedia flash help section, not a flash favor forum. If you really dont have any idea where to start, then start with the basics of flash, for example, buttons.

#3 Lifeis2evil

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 30 October 2006 - 07:58 AM

i already made a button... and i know what to do i just dont know the script

#4 Lifeis2evil

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 30 October 2006 - 08:08 AM

on (release) {
gotoAndStop(10);
}


it says error on (release) can only be used for buttons??

Edited by Lifeis2evil, 03 November 2006 - 04:44 PM.


#5 Lifeis2evil

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 03 November 2006 - 04:45 PM

not working?

#6 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 04 November 2006 - 04:38 AM

1- Create your graphic which will be the button
2- select the graphic and press F8, give it an unique name and set the type to button
3- while button still selected press F9 to enter the actionspanel
4- copy & paste this:
on(release){
trace("my button works");
}


#7 Tromac

    Young Padawan

  • Members
  • Pip
  • 56 posts

Posted 04 November 2006 - 08:26 AM

View PostLifeis2evil, on Oct 31 2006, 12:08 AM, said:

on (release) {
gotoAndStop(10);
}


it says error on (release) can only be used for buttons??
You have to put your on (release) script ON the button. i.e. have the button selected when you type the actionscript.

At the moment it sounds like you have your script straight on the keyframe.

#8 kray

    Young Padawan

  • Members
  • Pip
  • 11 posts

Posted 04 November 2006 - 03:03 PM

Make sure you have this in the frame

stop;

and make sure the image has been converted into a button by pressing f8 then add this code to the image

on (release) {
gotoAndStop(2);
}

im a little rusty but that should work (... hopefully)

but for every frame that has an image in it, make sure there is also a stop command in the frame.

#9 Lifeis2evil

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 06 November 2006 - 06:06 PM

Thanx For The Help =] ... I'll Try It When I Get Home
and let you know if it works =p

#10 Lee™

    Young Padawan

  • Validating
  • Pip
  • 151 posts

Posted 06 November 2006 - 06:24 PM

STEP BY STEP GUIDE - Created by Lee™

Import the first picture you want in flash:

Posted Image

Click the frame which the image is in:

Posted Image

Press F9 so the Actionscript panel appears, and type in the code:

Quote

stop();

Posted Image

Now click the image, and press F8, then enter the name "image1" for the picture and select "button". Press OK:

Posted Image

Now click the image again, and press F9 to open the actionscript panel, type in the code:

Quote

on(release){
gotoAndStop("image2");
}

Posted Image

Now select frame 2, make a keyframe in the timeline. On the properties tab, enter image2 as the Frame label:

Posted Image

Click in frame 2 of the timeline and press Delete on your keybored, so you delete the first image off frame 2:

Posted Image

Now import your second image to frame 2:

Posted Image

______________________________________________________________________

Repeat this proccess for each image you want in the slide show.

Ta-dah!


#11 Lifeis2evil

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 07 November 2006 - 01:33 AM

Thank You!!!!
Awsome Guide ;)

#12 Lee™

    Young Padawan

  • Validating
  • Pip
  • 151 posts

Posted 07 November 2006 - 03:47 AM

No probs bud. Btw incase your wondering, the guy in the homer simpson suit is my best mate... not me ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users