Shoutbox

Flash 8 - Help Please! - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Flash 8 - Help Please! (/showthread.php?tid=79410)

Flash 8 - Help Please! by Exca on 11-27-2007 at 02:41 PM

Hi guys, I'm buidling a website and i'm getting on. Made my design with photoshop, photoshopped a preloader and made it work, and now i'm about to add the content. http://users.pandora.be/dj_exca/definitief.html . Didn't include the buttons and content-shapes yet...

I know this code does the trick to go to different pages:

code:
whateverbutton.onRelease = function () {
gotoAndStop(3);
}


But that's only for static pages. What if I want to use tweening effects while going to different pages? That would be

code:
whateverbutton.onRelease = function () {
gotoAndPlay(3);
}


But then it would play from frame 3 and continue to the end till it passed all my different pages. This is not what I want it to do :) when clicking a button i'd like it to play a certain framerange (which includes my tweens building up the page) and then let it stop on the frame where everything is finally loaded

To make it even harder; I'd want my previous page to fade out, with presetted motion tweens, which is a different range of frames.

To make a story short: I'd need a actionscript which plays, after clicking, a certain framerange, and when done with that, play a second framerange without interrupting and then stop at the last frame.


Thanks for the help in advance...
RE: Flash 8 - Help Please! by Spunky on 11-27-2007 at 02:46 PM

make an actions layer and on the fram you want it to stop, put the stop() command. The way I used to do it is by putting all tweens into movie clips and have the site a around 4-5 frames ;)


RE: Flash 8 - Help Please! by Exca on 11-27-2007 at 02:56 PM

Okay, thanks. But what if for example the 'Bio' page is frame 20-40, and the 'Book' page is frame 50-70. If i'd click the Book page, being on the Home page which is 0-20, it would pass the Bio page.

Also, i need it to play 2 frameranges; 1 to fade out what's already on the screen and 1 to fade in what has to come. Else i'd have to make a different movieclip for every possible combination which is quite sick ;)

tnx


RE: Flash 8 - Help Please! by Spunky on 11-27-2007 at 03:05 PM

I did actually do this... you need to fade in and out each page (say 10 frames in - 10 frames out).

Each link needs to play the fade out, jump to the start of the fade in for the next page and then stop on the actual page. I used variables to set which frame to go to, then fade out and then goto that frame in the variable... It sounds complicated, but it's not too bad


RE: Flash 8 - Help Please! by Exca on 11-27-2007 at 03:17 PM

well, it's still sick! :P there must be a simple code for this which saves 90% of the work

edit: didn't read that well, sound's that's what I need.

Can you provide me the action code of that? tnx


RE: Flash 8 - Help Please! by Spunky on 11-27-2007 at 03:30 PM

I can't write it right now as I've got to go to work soon. Someone will know what I'm getting at and will probably post some code


RE: Flash 8 - Help Please! by Exca on 11-27-2007 at 06:37 PM

Okay thanks, i'll wait for that :)


RE: Flash 8 - Help Please! by Deco on 11-28-2007 at 09:39 PM

I didn't quite understand what you want to do... but seems to me you'd be a lot better off making the stuff you want animated first into a movie clip.. then put that movie clip in a frame you want to be the bio page .. when the bio page comes in by the user clicking on the menu button.. your animated movie clip will play.

something like this

(action script on frame 2 for instance)

this.onEnterFrame = function() {
mcAnimatedPictureOfMyself.play();
}

Maybe I got it all wrong but this is a lot easier to control than jumping from frames to other 20 frames for anothr page.

Have fun!


RE: Flash 8 - Help Please! by Exca on 11-29-2007 at 03:56 PM

this.onEnterFrame = function() {
mcAnimatedPictureOfMyself.play();
}

The button must first fade out what's already there. So I could place this code at the end of that fadeout. But then it would only be able to go to 1 movie, while there are 6 different movies to play, related to the button you pressed.

Maybe i'm just making it too hard :p


RE: Flash 8 - Help Please! by Exca on 12-02-2007 at 08:19 PM

http://users.pandora.be/dj_exca/better.html

Got it working :) now i just have to add the content


RE: Flash 8 - Help Please! by NanaFreak on 12-02-2007 at 11:47 PM

might wanna have a mute button for the music...

also on the contact form make the text align left ;)

otherwise really nice!


RE: Flash 8 - Help Please! by Lou on 12-02-2007 at 11:51 PM

If I were you, I'd add something to stop the music from playing:P.


RE: Flash 8 - Help Please! by Exca on 12-03-2007 at 09:59 PM

Well i'm still busy finishing it :D there certainly will be a build out musicplayer. Contactform stays centered


RE: Flash 8 - Help Please! by kezz on 12-04-2007 at 02:25 AM

looking very good so far, the transitions are great. Is the site meant to reload to the homepage about 10 seconds after a section is loaded?


RE: Flash 8 - Help Please! by Exca on 12-04-2007 at 06:58 PM

No that should not happen. It would do that if the loop option was on, but as far as i remember i turned it off. Doesn't loop here in every case...


RE: Flash 8 - Help Please! by vaccination on 12-04-2007 at 07:02 PM

Looks really good, I like it.