The Team Jackulator Forums
April 19, 2024, 03:12:01 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
   
   Home   Help playlist Arcade Search Media Downloads Login Register  
The Jackulator 9000 Forums
Pages: [1]   Go Down
  Send this topic  |  Print  
This topic has not yet been rated!
You have not rated this topic. Select a rating:
Author Topic: how to turn pages in flash  (Read 4154 times)
0 Members and 1 Guest are viewing this topic.
jackulator
... --- ...
Administrator
jackulator.com
******
Offline Offline

Location: Eastwick, Rhode Island
Posts: 10507


"Twenty pushups a day..."


WWW Awards
« on: November 11, 2007, 12:18:35 am »

download and examine the fla file:

http://www.jackulator.com/FILES/howToTurnPages.fla

Logged

thegoldenphone

jackboard fan
**
Offline Offline

Posts: 38


Awards
« Reply #1 on: November 05, 2009, 12:09:10 am »

what if i want to make another menu without affecting the frames of the first one? for example if i made frame 1 and 2 of the second layer be "yes" and "no". then i want to make another menu be "who are you" and "names". what would i have to do?
Logged
jackulator
... --- ...
Administrator
jackulator.com
******
Offline Offline

Location: Eastwick, Rhode Island
Posts: 10507


"Twenty pushups a day..."


WWW Awards
« Reply #2 on: November 05, 2009, 12:32:57 am »

dude.. you're describing the construction of all my old flash megaboard - I've been down that road, and trust me, it isn't a great design method -- that's why I created the Hybrid series autoboards

I'm also working on a more customizeable autoboard - somewhere between the hybrid 5 and the autoboard 5 - given the simplicity of making soundboards with this tool I highly suggest you use it rather than use multiple pages in flash - especially if your board is going to be more than a few hundred mp3s

but if you did want to do it that way anyway - you should take a closer look at the FLA file - you can have as many buttons on frame 1 as you can fit -- and they can all point to other frames in your SWF file -- just use the same code on the buttons in the FLA file posted in this topic
Logged

thegoldenphone

jackboard fan
**
Offline Offline

Posts: 38


Awards
« Reply #3 on: November 05, 2009, 12:12:45 pm »

the buttons on layer one only go to one other frame.  i dont want to have one menu with x amount of topics, i want 2 or more menus with 2 topics each.
Logged
jackulator
... --- ...
Administrator
jackulator.com
******
Offline Offline

Location: Eastwick, Rhode Island
Posts: 10507


"Twenty pushups a day..."


WWW Awards
« Reply #4 on: November 05, 2009, 01:02:46 pm »

the buttons on layer one only go to one other frame.  i dont want to have one menu with x amount of topics, i want 2 or more menus with 2 topics each.

nope.. there are nine buttons - the buttons on layer one go to nine frames - check again

the important part is recognizing the method by which the SWF file is sent to those nine different frames -- check the code on the buttons

for instance, just because the text for a button says '9' doesn't mean you have to have the code on the button tell flash to send the SWF to page 9 when pressed.. it could be any frame you want.. so -- you can have as many menus and pages as will fit on your SWF using the gotoAndStop(the frame number) method
Logged

jackulator
... --- ...
Administrator
jackulator.com
******
Offline Offline

Location: Eastwick, Rhode Island
Posts: 10507


"Twenty pushups a day..."


WWW Awards
« Reply #5 on: November 05, 2009, 01:10:59 pm »

check out the attached FLA and SWF

* seeWhatIMeanQ.fla (68 KB - downloaded 84 times.)

* seeWhatIMeanQ.swf (4.4 KB, 870x562 - viewed 231 times.)
Logged

thegoldenphone

jackboard fan
**
Offline Offline

Posts: 38


Awards
« Reply #6 on: November 05, 2009, 01:51:19 pm »

i think i posted this here but im not sure, its a fla that shows what i want to do. i checked that fla out but thats not really what i want to do

http://www.prankulator.com/fileupload/files/16/example%20of%20menus.fla
Logged
jackulator
... --- ...
Administrator
jackulator.com
******
Offline Offline

Location: Eastwick, Rhode Island
Posts: 10507


"Twenty pushups a day..."


WWW Awards
« Reply #7 on: November 05, 2009, 02:05:05 pm »

it says unexpected file format when i try to open it
Logged

thegoldenphone

jackboard fan
**
Offline Offline

Posts: 38


Awards
« Reply #8 on: November 05, 2009, 03:16:34 pm »

it opened fine with me, try this, its a swf  http://api.ning.com/files/tb1QnSO0WrMlAQuRRhn9ZdUpgzG1XWUmo--xM7cbHFw_/exampleofmenus.swf%22%3Eexample%20of%20menus.swf
Logged
jackulator
... --- ...
Administrator
jackulator.com
******
Offline Offline

Location: Eastwick, Rhode Island
Posts: 10507


"Twenty pushups a day..."


WWW Awards
« Reply #9 on: November 05, 2009, 05:01:03 pm »

oh I understand

you have to use multiple SWFs and load them into your root SWF

loadMovieNum("nameofswf.swf', level#)

or you could use movie clips -- have self-contained little soundboards -- same as loading separate SWFs in a sense, except everything's in the same SWF

I'll whip up an example for you
Logged

jackulator
... --- ...
Administrator
jackulator.com
******
Offline Offline

Location: Eastwick, Rhode Island
Posts: 10507


"Twenty pushups a day..."


WWW Awards
« Reply #10 on: November 05, 2009, 05:11:35 pm »

check out the attachments

* usingMovieClips.fla (80 KB - downloaded 86 times.)

* usingMovieClips.swf (3.56 KB, 870x562 - viewed 257 times.)
Logged

thegoldenphone

jackboard fan
**
Offline Offline

Posts: 38


Awards
« Reply #11 on: November 05, 2009, 10:18:52 pm »

i understand that now, thanks for all the help
Logged
jackulator
... --- ...
Administrator
jackulator.com
******
Offline Offline

Location: Eastwick, Rhode Island
Posts: 10507


"Twenty pushups a day..."


WWW Awards
« Reply #12 on: November 05, 2009, 10:41:19 pm »

sure thing man - glad I could help you out  cheesy
Logged

thegoldenphone

jackboard fan
**
Offline Offline

Posts: 38


Awards
« Reply #13 on: November 09, 2009, 12:51:05 am »

one last question, how do i change the color of the button so it is highlighted when it's menu is opened and is back to the orignal color when the other menu is opened, ive tried the over down and hit frames and it doesnt do anything tongue
Logged
jackulator
... --- ...
Administrator
jackulator.com
******
Offline Offline

Location: Eastwick, Rhode Island
Posts: 10507


"Twenty pushups a day..."


WWW Awards
« Reply #14 on: November 09, 2009, 01:59:37 am »

it's a little complicated - but the long and short of it is, the code on frame one of your SWF tries to color movie clips that are on the main stage - when you move them inside of a movieclip they won't get colored anymore because they're not where the code 'thinks' they are

you have to move the code from frame one of your swf into each frame of each menu movie clip frame where you have your 'buttons', and then change the '_root.onEnterFrame' in the code below to 'this.onEnterFrame':

Code:
_root.onEnterFrame = function() {
if (alreadyStuffedAllTheButtons == false) {
if (theNameOfTheArrayOfButtons.length>1) {
codeForButtonActions();
alreadyStuffedAllTheButtons = true;
}
}
};

and for all the movieclip buttons in the respective frames where you paste the code that used to be in frame one of the SWF, change the code on them from this:

Code:
onClipEvent(load)	{

_root.theNameOfTheArrayOfButtons.push(_root[this._name]);

}

to this:

Code:
onClipEvent(load)	{

_parent.theNameOfTheArrayOfButtons.push(_parent[this._name]);

}
Logged

Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  



Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.609 seconds with 22 queries.