ActionScript 3.0 :: Language Selection In App - How To Handle Sounds And Text

Feb 27, 2012

We are working on a small project. The movie asks you to point out an animal, then when you point it out, it enlarges it and tells you what it is using a text box as well as a voice clip. We want to make the movie bilingual. So the splash screen will have the choice "English" and "Espaeol". If the user chooses english and then clicks an animal we want the item to be identified in english. So the english text box and english sound clip to show up. if the choice is spanish we want the item identified using spanish text and voice. Heres is the AS i have so far and it works beautifully. This is from before we decided to incorporate Spanish. As it is I have the text and voice on each individual MC timeline.

ActionScript Code:
//this is to bring each animal to the front when clicked but serves to turn each MC into a button
var animals : Array = [pig_mc, chicken_mc, rabbit_mc, donkey_mc, sheep_mc, horse_mc, goat_mc, frog_mc, duck_mc, cow_mc]
for (var i:int = 0; i< animals.length; i++){
animals[i].addEventListener(MouseEvent.CLICK,bringToFront);
animals[i].addEventListener(MouseEvent.CLICK,mc_play);
[Code] .....

Is there a way to set a flag when the spanish button is pressed? For example, pressing the spanish button will set spanish to true, and I could add some AS when a frame is reached that said something along the lines of:
if spanish=true play sound cow_esp else play sound cow_eng

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Use XML And Buttons As Language Selection?

Feb 29, 2012

I'm trying to make a multi-language website that allows the user to change language by clicking on a button (a flag representing the country/language). I have been able to achieve this using locale and a combo box so far but I'm struggling to implement it using buttons.[code]...

View 1 Replies

Flex :: Spark DataGrid On Mobile Application Handle Scroll And Selection Item?

Dec 15, 2011

I have a spark datagrid on a mobile application, I set the

interactionMode="touch"

and the dataGrid scrolling is good, I got some problems adding a selectionChange eventListener to it, because scrolling the dataGrid will automatically change the selection and instead simply scrolling it, the function binded will start...

How can I add the touch dalay before select the index, so if I scroll the grid the selection won't change, and it change only if I press the item without scrolling?

View 1 Replies

ActionScript 2.0 :: Recognize Input Text Language?

Sep 18, 2011

I want recognize my input text language by AS2.0 for example when my user write persian words or english words

View 1 Replies

ActionScript 2.0 :: Flash Scrollbar Gallery - Replace The Rectangular Handle With Own Customised Handle

Feb 6, 2010

I'm creating a scrollbar gallery from a tutorial on this site. Though I've completed the tutorial, and customised the gallery to my own needs, however I'm trying to make a very small change to it - and no matter what I do, keep running into problems. I'm trying to replace the rectangular handle with my own customised handle - a (20 x 20) 'circular' png image that I've imported into Flash, made a graphic and stored in the library (though I understand it can be imported using actionscript, like the other images in the gallery).

[Code]....

View 7 Replies

Flash - Change The Language Of Dynamic Text In A SWF Using Flashvars?

May 7, 2010

I have a SWF with text embedded from an external .txt file. Is there a way I can have a different file used as the text source through the embedcode (swfObject) depending on the language?

Here is my current actionscript:

myData = new LoadVars();
myData.onLoad = function() {
text_clips.project_title.text = this.projecttitle1;

[Code]....

There are four languages needed so far, but this will grow so it needs to be flexible enough to let the developers add languages without getting a new SWF each time.

View 1 Replies

Flash :: Convert Text To American Sign Language?

Jun 11, 2011

I want to convert text into American sign language (ASL). I am thinking of creating a set of videos first and then map to some words.

But is it possible to generate a sign language video through direct text by using a 3D model and making it to animate?

View 3 Replies

Flash :: Prevent Text Displacement For Some Foreign Language Fonts?

Jan 3, 2011

I have a multilingual project (currently 13 languages), which uses many different font variations of "Helvetica Neue", mostly bold, condensed and regular cuts from the LinoType Pro font set ( which includes western european characters) and the same for cyrillic. We will probably add chinese and japanese variations in the future. I have set up the project to use different CSS stylesheets and separately load the fonts for each version, depending on which language the user selects, so I can have different line heights, kerning and/or font sizes to make everything keep the original look, even if the fonts look nothing alike.

All of this works well, except for one problem: For some reason, all cyrillic letters seem to be displaced. They appear 2-3 pixels below the correct base line, and actually protrude across the textfield's bottom border, even when the field is set to autosize. When I use textfield.getCharBoundaries(), all values seem to be correct, even though they obviously aren't rendered correctly.To make everything look neat, I could of course manually move all problematic textfields up or down according to language and font size, but I was wondering if there was some way to prevent or at least detect this kind of displacement in order to automatically handle the adjustments - the Flash Player should have some sort of information on how things are rendered, shouldn't i

View 7 Replies

ActionScript 2.0 :: Setting Default Language In Input Text Field

Apr 30, 2009

i have a text input box in which i want to insert Hebrew (RTL language) text. now, the RTL support i need is basic, and thats easy enough to do. however, for entering hebrew in the box, the user has to set hebrew in his windows language bar. is there a way of making the default input language in the box hebrew, regardless of what is currently set in the language bar? note - the hebrew characters are showing just fine, its just that to enter them you have to make sure the language bar is set to hebrew as well.

View 2 Replies

ActionScript 3.0 :: Type Vietnami Language In Input Text Field Of Flash

Mar 9, 2011

I need to create a from like this quy.com.vn/dang-ky-mua-q-mobile-quy.html in flash.Can any one let me know how can i type Vietnami language in input text field of flash form ?

View 1 Replies

IDE :: CS4 Jsfl - Fl.getDocumentDOM().selection Doesn't Retain The Selection Order

Nov 11, 2010

I never realized that fl.getDocumentDOM().selection doesn't retain the selection order... <sniff>. I was hoping to build relationships based on the order. I guess I took if for granted that tools like Maya and Max store the selection buffer in order of what was selected. I'm trying to avoid: Select Object, <Press 'Parent' Button>, Select Parent, <Press 'Parent' Button>

View 2 Replies

ActionScript 3.0 :: Embed The Greek Language Characters In Flash Dynamic Text Field

Jun 1, 2010

I have a problem with dynamic text field in flash. I want ot embed Greek Language characters like ≤, ≥, ± etc through actionscript (embedFonts).

View 2 Replies

Flash - How To Handle Text In AS3 Simply

Aug 1, 2010

I feel like every time I need to use TextField or anything else related in AS3, it becomes a giant mess of code just for a few lines.I have tried using css as well for text but have encountered some issues where it isn't rendered the same on different servers/clients. Are there any text handling libraries that I don't know of or some other way to manage text in AS3?

View 3 Replies

ActionScript 2.0 :: Selection.setFocus Selection.getFocus Inputting From Mc?

Sep 6, 2007

i am attaching a number of _mc (my_mc) with a for loop. Inside each my_mc is an input textfield (my_txt)I want to click on my_mc.my_txt and select the textfield .the following code allow this and i can enter text from the keyboard however I want to add text from a _mc keybooard on screen (here called myBtn_mc).As soon as I click on myBtn_mc of course I lose focus ... i have tried to use a variable (select) to keep scope&focus

View 6 Replies

Actionscript 3 :: Flex Library For High Quality Rendering Some Mainstream Text Markup Language?

Aug 8, 2011

I wish to allow content input in some Flex app I'm developing, using a markup language - Wiki markup / bbcode / similar.I'm looking for some library to render in high quality such markup.

View 1 Replies

ActionScript 3.0 :: Input Text Selection In Firefox 3?

Oct 13, 2008

i have an issue with actionscript 3 and firefox 3.i have a dynamic input textbox on stage where users enter their email address. when i select the text inside of the input and drag and my mouse cursor off the stage, the typing goes into overwrite mode, not allowing me to type more than 2 characters.

View 2 Replies

Professional :: Get The Selection Tool To Select The Text?

Jan 23, 2010

This is the most frustrating program ever. No where can I find an answer. I've tried everything I've read on how to change text but I can never get the selection tool to select the text. Some say use the T tool but all that does is create a new white box over top of it to type new text in
 
The layer isn't locked and the closest I can get is a blue box around the button. Well it's not a button and in the library the icon is a movie clip. Its also in my "bitmaps" folder as and image? (tree icon) Does that matter? I'm begining to think this is a whole image?

View 6 Replies

Flex :: Cancel Text Selection On Textinput?

Jun 9, 2010

So the real problem is the lack of an onReleaseOutside function. I found some examples of how to bypass this during a drag function but it was not applicable for a text input.The problem is that when a user selects some text in textinput and mouses off the application area and then mouses up, I'm getting a problem that the textinput keeps thinking that the mouse down is actively selecting text in the textinput and continually overwrites the characters being entered in the textinput. in the search bar of the live store on the page, type some text, then highlight it all and don't let up on the mouse until you are outside the store.I finally hacked some junk together so I can tell if the mouse goes off the stage using some code like.

var x = stage.mouseX;var y = stage.mouseY;if(x < 0 || y <0 || x >stage.stageWidth || y > stage.stageHeight)I'd like to just make the textinput stop thinking it should be highlighting text so that even if the user scrolls out of the applet and mouses up that the text input still overwrites what is in the search bar and functions as normal.

View 1 Replies

ActionScript 2.0 :: Use With Music Is Affecting All Other Sounds - Button Sounds And Background Sound

Apr 16, 2010

I followed the mp3player tutorial (part 3) from [URL] and got it working fine. Only problem is that the setVolume I'm trying to use with my music is affecting all my other sounds - button sounds and background sound. I'm aware of the createEmptyMovieClip/attachSound approach and got it working on my other sounds. But Lee's tutorial-mp3player is using a slight different technique, and so my normal approach doesn't quite work.

[Code]....

View 7 Replies

ActionScript 3.0 :: Synchronize Sounds Perfectly To Do A Kind Of Audio Mixer Using Different Sounds?

Feb 7, 2011

I want to synchronize sounds perfectly to do a kind of Audio Mixer, using different sounds. [URL] does it perfectly, I've been researching and researching and I just don't know how to do it! How does [URL] synchonize audio so perfectly? you can even change sounds and the new ones will come on time! How do I do that? Is it just Action Script? or something else?

View 1 Replies

ActionScript 3.0 :: Disable Inputbox Text Highlighting/selection?

Feb 25, 2010

is there anyways I can disable people from highlighting/selection the  text inside an Input Box? I have tried the 3 buttons next to the "Single Line" dropdown but none  of them work.Is there a as3 code I need to put so people cannot highlight/select the text  inside a input box for example in a form?

View 1 Replies

Disable The Text Selection Abilities And Such Of Flash TextFields (so They Act Like Labels)?

Sep 3, 2010

How can i disable the text selection abilities and such of flash TextFields (so they act like labels)?

View 1 Replies

Actionscript 3 :: Multiline HtmlText Scrolls On Drag Selection Of Text

May 26, 2011

Multiline htmlText scrolls on drag selection of text

It also scroll on mouse wheel event..

var css:StyleSheet = new StyleSheet();
css.parseCSS('.red-text{font-family:"Lucida Grande";color:#ED1C24;font-size:10;font weight:bold;leading:-8;}');

[Code]....

View 2 Replies

Flash :: Change Selection Color In TextArea (or Other Text Components)?

May 31, 2011

Is it possible that such simple thing isn't possible to change. I searched for this but couldn't find anything useful.

View 2 Replies

Actionscript 3 :: Draw Textfield Caret And Text Selection Onto Bitmap?

Jan 6, 2012

I'm drawing a textfield onto a bitmap which I use as texture for a 3D object. I'm listening for Event.change, and so whenever the user adds a character I redraw the texture. But to really give the 3D object a 'interactive textfield feeling', I want to draw text selections and draw the caret (the blinking text cursor), but by default these a not drawn when using bitmapData.draw(textField), nor can I find a Event to listen for 'textSelected'.

//is there any event that catches text selection / blinking of text-cursor?
textField.addEventListener(Event.CHANGE, redrawTexture);
//...
//is there any way to draw text selection / text-cursor in the bitmap?
bmpData.draw(textField);

View 1 Replies

Android :: Flex - Display Text Selection Indicators Handlers?

Jan 27, 2012

the selection indicator isn't shown at the text input fieldis there any solution for this problem ?i am using flash builder 4.5 + flex in Android mobile Application

View 2 Replies

ActionScript 2.0 :: Selection.setfocus Is Not Making The Text Box Cursor Blink

Apr 28, 2006

I used Selection.setfocus("input textbox instance name") is not making the text box cursor blink.

View 9 Replies

ActionScript 3.0 :: Unable To Click Some Words In The Text And Based On The Selection Clicked?

Mar 8, 2011

I have a simple TLF text box on stage. i want to be able to click some words in the text and based on the selection clicked got to some other place on a timeline or set a variable (not a link to an external web page).
 
sounds like it shout be simple but i cannot seem to find any information about it.
 
i seem to remember having done something similar years ago in as1 or as2.

View 3 Replies

Flex :: Set Mouse Cursor As Hand On TextInput Without Losing Text Selection?

Dec 20, 2009

I want to have the mouse cursor to be changed to hand when used for entering the<mx:textInput>. When the field is already on focus, text selection should be available.I tried any combination of useHandCursor="true", buttonMode="true" and mouseChildren="false",and the closest result is when using all three of them. Then the hand cursor does appear, but the text field loses its selection 'abilities' (text cannot beselected using the mouse). This is logical, since mouseChildren="false" disables this. But how do I acheive the desired result?

View 1 Replies

ActionScript :: Change Color Of / Prevent Selection Of Matching Selected Text?

Mar 30, 2011

Within FlashBuilder/Eclipse, when you select a word, such as "protected" or a variable, every instance of that word is also highlighted.How do I change the background color of the selected instances of that word or disable the feature altogether?I have already changed the "selected text background color", the instance background color seems to be controlled separately.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved