Welcome Guest [Log In] [Register]
Welcome to Brackenwood. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
2 things i need help with; subtitles and sound control
Topic Started: Jan 31 2006, 04:47 PM (254 Views)
flash_bass
Member Avatar
Brackenwood Lightweight
ok there are two things i would like help with, the 1st being subtitles, what i want to do is in each scene have a movie clip were the subtitles are and one button in each scene, so say 4 scenes, 4 sets of subtitle movie clips and 4 sets of buttons to control these subtitles but if in say the 1st scene you choose subtitles on they will be on in all scenes or if you choose for them to stay off they stay off in all scenes.

i understand theres a topic about subtitles in the forum but i couldnt get them to work. any help would be appreciated.


now with the sound control, say at the start of an animation you had the choice to veiw movie with comentary (like in dvds) is it possible to turn on a movieclip that will play through out the movie (multiple scenes) and have the comentary in the movie clip and then the sounds of the actual movie dimed down.. :blink: im not sure if its possible but it would be good to know. ok thank in advance for your help :P


from kieran
Offline Profile Quote Post Goto Top
 
flash_bass
Member Avatar
Brackenwood Lightweight
no one :blink: :(
Offline Profile Quote Post Goto Top
 
mechablob
Member Avatar
What'cha doing?
I can tell you how to make sound control but I am at school at the moment. :(

And even when I get home, we are moving house so, I shall try to tell you soon. :)
Offline Profile Quote Post Goto Top
 
flash_bass
Member Avatar
Brackenwood Lightweight
sounds good cant wait :D
Offline Profile Quote Post Goto Top
 
smoscar_01
Member Avatar
Mid-Level ActionScripter
ok flash_bass this is what I wrote for you:

Code:
 

var subt:Array=new Array();

//write here all of your subtitles
subt[0]="Im the first subtitle";
subt[1]="Im the second one";
//...
//subt[n]="Im the last subtitle";

_root.createTextField("SubTitleField", _root.getNextHighestDepth(), 20, Stage.height - 20, Stage.width,20);


then every frame you need a subtitle change write this

Code:
 

subtIndex = 0;//Subtitle number
SubTitleField.text = subt[subtIndex];


try it flash_bass :D

<edit> ooh I almost forgot the sound control but thats an easy one

First of all import the sounds to the library, then link them to ActionScript (open your library, right click on the sound, click the linkage option, tick the export for actionscript check box and add sound1,sound2 as name in the Identifier text box), create two buttons (so the user can choose a surround sys :) )

now at the buttons code write
Code:
 

on (release){
    opt = 1; //the option chosen
}


then at the start of the movie frame, write this

Code:
 

var sond:Sound = new Sound();
if (opt==1)
 sond.attachSound("sound1");
else if (opt==2)
 sond.attachSound("sound2");
sond.start(0,1);
Offline Profile Quote Post Goto Top
 
flash_bass
Member Avatar
Brackenwood Lightweight
thanks man but...um.. were do i put all this and how does it work :blink: im not to good with script
Offline Profile Quote Post Goto Top
 
flash_bass
Member Avatar
Brackenwood Lightweight
if any one else can help itd be great i need this pretty urgantly...... :worry:
Offline Profile Quote Post Goto Top
 
smoscar_01
Member Avatar
Mid-Level ActionScripter
ok at the code of the first frame paste this

Code:
 

var subt:Array=new Array();

//write here all of your subtitles
subt[0]="Im the first subtitle";
subt[1]="Im the second one";
//...
//subt[n]="Im the last subtitle";

_root.createTextField("SubTitleField", _root.getNextHighestDepth(), 20, Stage.height - 20, Stage.width,20);


then everytime you need a subtitle change paste this

Code:
 
subtIndex = 0;//Subtitle number
SubTitleField.text = subt[subtIndex];


lets say for example that you are subtitling this dialogue;

-Hi mom Im home!
-Thats good!, did you saw your father outside...

so the first frame code would look like this

Code:
 

var subt:Array=new Array();

subt[0]="Hi mom Im home";
subt[1]="Thats good!, did you saw your father outside";

_root.createTextField("SubTitleField", _root.getNextHighestDepth(), 20, Stage.height - 20, Stage.width,20);


then lets say you are playing your scene at 12 frames per second and that "Hi mom Im home" ends at the 30th frame and "Thats good!..." starts at 35th frame, in that case you would have to paste this code at the 34th frame:

Code:
 

subtIndex = 1;
SubTitleField.text = subt[subtIndex];


subtIndex = 1 cos the Array at index 1 has the value "Thats good!..."
(subt[ 1 ]="Thats good!...")

I hope you'd understood this one :D
Offline Profile Quote Post Goto Top
 
flash_bass
Member Avatar
Brackenwood Lightweight
Yay it worked but one think :blink: is there a way to turn them on and off
Offline Profile Quote Post Goto Top
 
smoscar_01
Member Avatar
Mid-Level ActionScripter
yes you can, and Im thinking you are going to use a button for this, well paste this at the button code:

Code:
 
on (release){
if (SubTitleField._visible)
 SubTitleField._visible=false;
else
 SubTitleField._visible=true;
}
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Actionscript · Next Topic »
Add Reply