PDA

View Full Version : How do i make a subtitle button?



InfestedDemon
December 29th, 2005, 04:07 PM
What do i do to make a subtitle button?

Do i add a new layer?
Whats the actionscript for turing it on and off?
WHAT IS IT PLZ!!!

bombsledder
December 29th, 2005, 05:56 PM
did you even try making this before you wrote this? because it sounds like you have no prior experience in flash i suggest picking up a book, flash mx bible was a good one for me but it might be outdated, or just google some tutorials.

--i could give you a as but then you woulnnt learn anything

Joppe
December 29th, 2005, 06:02 PM
-I hope you have som as knowledge..
On button


on(Release){
if(sub = false){
sub = true;
_root.sub_mc._visible = false
}else if(sub = true){
_root.sub_mc._visible = true
sub = false;
}
}

on main stage


sub = true;


And that doesnt work i think, anyways it gives you an idea of how it could look or something.. I dont know im tired and stuff so g'Night everybody

nathan99
December 30th, 2005, 06:27 AM
jop, u have some syntax errors


on(release){
if(sub == false){
sub = true;
_root.sub_mc._visible = false
}else if(sub == true){
_root.sub_mc._visible = true
sub = false;
}
}

or


on(release){
if(!sub){
sub = true;
_root.sub_mc._visible = false
}else if(sub){
_root.sub_mc._visible = true
sub = false;
}
}
will work

InfestedDemon
December 30th, 2005, 07:01 AM
is that all i need? or do i need a new layer called: sub?

nathan99
December 30th, 2005, 07:13 AM
lol layers arent that important

Joppe
December 30th, 2005, 08:03 AM
And that doesnt work i think, anyways it gives you an idea of how it could look or something.. I dont know im tired and stuff so g'Night everybody

I just said it doesnt work and i was tired Nathan :sigh: I know when im wrong ;)

hybrid101
December 30th, 2005, 08:42 AM
make a movie clip called sub_mc and put it in the main timeline. that mc would contain the subtitles.

InfestedDemon
December 30th, 2005, 11:14 AM
That wouldn't work.
Because a subtitled movie wouldn't only have one line of speach.

NiñoScript
December 30th, 2005, 12:01 PM
ehem...



on (release) {
sub = ! sub
_root.sub_mc._visible = !sub
}


that does exaclty the same as ur code...
but, dunno why u hava that var, just do this



on (release) {
_root.sub_mc._visible=!_root.sub_mc._visible
}


:puzzle:

Joppe
December 30th, 2005, 01:35 PM
Ryan, dude. Please tell me that you know how to use movieclips, if not. I will punch you..

NiñoScript
December 30th, 2005, 03:33 PM
Ryan says - what is a movieclip?, do i have to make a layer named movieclip?
:P

bombsledder
December 30th, 2005, 04:27 PM
lol why dont you just put the subtitles on each from of the movieclip then use the _currentframe,_totalframes,and the nextFrame() methods to go through each subtitle

frame 1: have nothing so that this will be you nothing screen
frame 2:subtitles 1
frame 3: subtitle 2

and so on

then use


on(release){
movie=sub_mc
temp1=movie._totalframes
temp2=movie._currentframe
if(temp2<temp1){
move.gotoAndStop(_currentframe)
}
}


not at my main computer so can't make a .fla but i think the syntax is right maybe not.this is very basic so it wont loop throught after your dont it will just like go untill nothing i guess :huh:

That_Guy
December 30th, 2005, 07:52 PM
im kinda a newb at flash but i kno AS alright. what the hell is a subtitle button?

nathan99
December 30th, 2005, 07:53 PM
i think hes trying to make something like a dvd player, where they choose if they want subtitles or not, so he means liek show/hicde subtitles, ill make an egh in a min.

nathan99
December 30th, 2005, 08:10 PM
here we are dont know y the file size is so big, itsa meant to be 23 KB, must be coz i have it open

InfestedDemon
January 3rd, 2006, 03:49 PM
It son't work in mx :'(

nathan99
January 3rd, 2006, 06:57 PM
maybe you should move up in the world:P(get higher flash)

InfestedDemon
January 3rd, 2006, 07:05 PM
I bought flash 8 but it was buggy so i threw it away

nathan99
January 3rd, 2006, 07:08 PM
ugh. y? you get used to it, i felt the same originally, so get digging