What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Flash 8 - Help Please!

Pages: (2): « First [ 1 ] 2 » Last »
Flash 8 - Help Please!
Author: Message:
Exca
Senior Member
****

Avatar
Not illiteral, just ignoring you

Posts: 509
Reputation: 12
36 / Male / –
Joined: Mar 2004
Status: Away
O.P. Flash 8 - Help Please!
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...

This post was edited on 11-27-2007 at 02:42 PM by Exca.
But that is my opinion!

[Image: djexcaround.gif]
11-27-2007 02:41 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Flash 8 - Help Please!
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 ;)
<Eljay> "Problems encountered: shit blew up" :zippy:
11-27-2007 02:46 PM
Profile PM Find Quote Report
Exca
Senior Member
****

Avatar
Not illiteral, just ignoring you

Posts: 509
Reputation: 12
36 / Male / –
Joined: Mar 2004
Status: Away
O.P. RE: Flash 8 - Help Please!
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
But that is my opinion!

[Image: djexcaround.gif]
11-27-2007 02:56 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Flash 8 - Help Please!
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
<Eljay> "Problems encountered: shit blew up" :zippy:
11-27-2007 03:05 PM
Profile PM Find Quote Report
Exca
Senior Member
****

Avatar
Not illiteral, just ignoring you

Posts: 509
Reputation: 12
36 / Male / –
Joined: Mar 2004
Status: Away
O.P. RE: Flash 8 - Help Please!
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

This post was edited on 11-27-2007 at 03:18 PM by Exca.
But that is my opinion!

[Image: djexcaround.gif]
11-27-2007 03:17 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Flash 8 - Help Please!
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
<Eljay> "Problems encountered: shit blew up" :zippy:
11-27-2007 03:30 PM
Profile PM Find Quote Report
Exca
Senior Member
****

Avatar
Not illiteral, just ignoring you

Posts: 509
Reputation: 12
36 / Male / –
Joined: Mar 2004
Status: Away
O.P. RE: Flash 8 - Help Please!
Okay thanks, i'll wait for that :)
But that is my opinion!

[Image: djexcaround.gif]
11-27-2007 06:37 PM
Profile E-Mail PM Web Find Quote Report
Deco
Full Member
***


Posts: 188
Reputation: 4
42 / Male / Flag
Joined: Aug 2006
RE: Flash 8 - Help Please!
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!
[Image: signature-user=31&back=4&clr=106,141,166&size=100.png]
11-28-2007 09:39 PM
Profile E-Mail PM Web Find Quote Report
Exca
Senior Member
****

Avatar
Not illiteral, just ignoring you

Posts: 509
Reputation: 12
36 / Male / –
Joined: Mar 2004
Status: Away
O.P. RE: Flash 8 - Help Please!
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

This post was edited on 11-29-2007 at 03:56 PM by Exca.
But that is my opinion!

[Image: djexcaround.gif]
11-29-2007 03:56 PM
Profile E-Mail PM Web Find Quote Report
Exca
Senior Member
****

Avatar
Not illiteral, just ignoring you

Posts: 509
Reputation: 12
36 / Male / –
Joined: Mar 2004
Status: Away
O.P. RE: Flash 8 - Help Please!
http://users.pandora.be/dj_exca/better.html

Got it working :) now i just have to add the content
But that is my opinion!

[Image: djexcaround.gif]
12-02-2007 08:19 PM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On