Flash - Add A If Else Statement On The Capabilities For Language?

Feb 13, 2012

I have created a actionscript with Capabilities function It works good, but I want to ad a If else statement on the capabilities for language.I'm running in English so the capabilities shows " EN ", but I want the if else statement to change " EN " to = English, and if we are running in different language it would say " Other language"

This is what i have at the moment.

var versionString = Capabilities.language;
var label2:TextField = createCustomTextField(0, 60, 200, 20);
label2.text = "language: " + Capabilities.language;

how to use the if and else statement ?

View 1 Replies


Similar Posts:


Professional :: Maximize The SEO Capabilities Of Flash?

Sep 1, 2008

As a web developer we are always concerned with SEO. I understand that Flash now supports SEO to a certain extent. What can we can do to maximize the SEO capabilities of Flash?

View 6 Replies

ActionScript 3.0 :: Capabilities Of Flash Professional And Builder 4?

Oct 23, 2010

I recently purchased the CS5 Master Collection and am struggling to understand the uses for Flash Professional and Flash Builder 4.  I was inspired by Jay Pavlina's Super Mario Crossover game and wish to make similar applications. 

However, I am confused about whether I should be using Flash Professional or Flash Builder 4 or both?  I purchased the two books that Jay Pavlina recommended "ActionScript 3.0 Animation Making Things Move!" and "Essential ActionScript 3.0".  I've been trying to find resources that will help me understand exactly the purpose of each of these applications.  It appears to me that ActionScript 3.0 is used in both?  So which one should I be using?  Or both?  Or is one more design oriented and the other more development oriented?  Can one make flash game like Jay's using just one or the other? 

View 9 Replies

ActionScript 3.0 :: Kind Of 3D Capabilities Can Flash Support?

Jan 30, 2012

I'm wondering if anyone might be able to give me a general overview on the state of implementing 3d in flash. More specifically, realtime 3D rendering on the fly, for something like making a game engine.not that i'm planning to start work on any projects on the subject just now, but i'd like to know if it's worth considering some 3D work in futurethus far i've only seen two games which use 3D in flash:This one is a strange car driving game. Three things strike me right away:1. The player's car is just a wireframe, and has a very simple mesh2. All the level components are just planed, with a few exceptions3. Most of the ground parts share the same texture.

Maybe i'm reading too much into it, but to me these things suggest some pretty heavy resource limitations.The other one is: htthis is an fps, of sorts. Again some things stick out glaringly, and i'm not certain whether they're design choices or working around limitations:1. Generally low poly models, things look blocky2. low res textures too3.Fixed camera angle.it reminds me of the sort of graphical quality we had when 3D was first being introduced to mainstream PC gaming. Are these games a good representation of the kind of 3D rendering flash can currently handle? Is it possible to make things much more detailed, that can run smoothly on average hardware?

View 5 Replies

Ruby :: Framework Similar To The Flash Player Capabilities?

Dec 14, 2011

Is there an open source Ruby framework that allows working with multimedia (video, sound, etc) similar to Flash, including Display Object hierarchy, that is not targeted for video games?

I'm looking for something between Ruby/Processing with a more object oriented API.

View 1 Replies

Actionscript 3 :: Check If Users Flash Player Has Audio Capabilities?

Dec 22, 2010

Is it possible to check if the user has a sound card? I found Capabilities.hasAudio but dont know if that is the value I should look at.

trace(Capabilities.hasAudio)

"Specifies whether the system has audio capabilities. This property is always true.

View 2 Replies

Flash - 3rd Party Multiplayer Game Server Platform With .NET Capabilities?

Feb 19, 2011

We're looking for a good server to purchase to develop games with Flash/Android/iPhone clients with a .NET backend server (And even more importantly, that supports clustering and scaling in general).Now we've examined both ElectroServer and SmartFoxServer (both products look fine and suitable for our needs), however both can only be extended using Java.

View 2 Replies

Flex :: Demonstrate Many Of The Specific Graphics, Animation, And Interaction Capabilities Available Using Flash CS4 Pro?

Jul 28, 2009

I am looking for an app or apps which I can use to demonstrate many of the specific graphics, animation, and interaction capabilities available using Flash CS4 Pro. Basically something just like the Tour de Flex app only for Flash CS3/CS4 Pro. The Adobe site has a sparse set of some examples, but again I am looking for something more comprehensive like Tour de Flex.

View 1 Replies

Flash :: Xml - Language Of The Font?

Dec 19, 2010

it doesn't display the necessary language, English only. after the encoding has been changed, it also doesn't work.probably the font should be changed into a standard one, but i don't know where to do it

View 1 Replies

ActionScript 3.0 :: Scripting Language In Flash?

Dec 2, 2009

I'm using Flash CS3 with Actionscript 3, and I need to have a scripting language that the user can use. If they could type in their own actionscript and have it evaluated, that would be perfect. Another scripting language such as Lua would be fine too. I looked into lua alchemy, but it seems poorly supported so I'd rather not use that. The Eval command from actionscript 2 isn't available in as3, and some of the things I've heard indicate that it's functionality is pretty limited, although I've never used it before.

View 1 Replies

Professional :: Localize Flash CS5.5 IOS App To One Language?

Feb 6, 2012

What method or process do I use to set an iOS app to only one language?I recently had an iPad app written in Flash CS5.5 approved at the iTunes app store. I noticed at the iTunes store, it indicates that my app is localized in 14 different languages. I never set this up; it seems that there is a process that automatically adds several default language localizations to the ipa binary when the file is published. I tried the strings panel, used a var to set the localID, went into the SDK for flex and flash builder and deleted the locales (could not find anything similar for Flash itself), but none of this seems to prevent Flash from adding the language defaults. I have found many examples on how to localize my app for several languages, but nothing on how to set it to only one.

View 3 Replies

Flash 10 :: Language Reference And Packages?

Feb 3, 2009

this is the URL of the language reference website I have been using for Flash/AIR: [URL]Is this URL the correct one I should be using when I need to look up a class or method or property or something like that? Because it does not match up with what actually shows up in the Flash IDE when I type an import statement. Most of the packages match up but not all.

For instance, the reference URL has a fl.events package, and so do I locally, but my package seems to be missing lots of classes from it that the reference URL shows. This leads me to believe I don't have the latest SDK's or SWC's or whatever I need installed, whether they be Flash, Flex, Air, etc.Also, I have a few packages locally that don't show up in the reference URL. Things like "flash.debugger" and "flash.trace", they are not my custom classes, not sure where they came from.

Lastly, there are certain AIR classes missing, and I'm sure this is because I don't have the latest AIR SDK installed. I did find it and download it, just not sure how to download it.

1) Is the above URL the one I should be using? If not, is there a better definitive location for Flash/AIR language reference that is updated and always has the latest and greatest info?

2) I have the latest AIR sdk on my desktop, how do I install it? (I'm using Flash CS5 on Mac OSX 10.6)

3) How can I make sure that what I see in that reference URL is what shows up in my code hinting when I type import statements in the Actions Panel? Basically I just want to make sure I am all up to date so everything is showing and working the way it should be. For instance, I am missing a ton of fl classes (containers, controls, core, data, etc.) I want to get these in place so my local copies are synchronized as close as possible with the reference. Documentation doesn't help much when you don't have the tools it tells you to use...

4) Take the fl.ik package for instance. Locally, I have available all the classes in the reference URL that I should, plus a bunch more that aren't there.

View 1 Replies

ActionScript 2.0 :: Change Language In Flash?

Oct 1, 2009

I have one issue that i have one game in Russian language, and I want to change it in English so anyone can give me the easiest and informative solution to convert it in English.... or Can we use language interpreter in Flash?

View 0 Replies

Php :: Add Webcam Capabilities To My Site?

May 25, 2011

I'm trying to allow users to take pictures with their webcams and save it. How can this be done? I am looking for something similar to Facebook or dailybooth in terms of their UI. I know smoe PHP/jQuery but I'm also wondering how I could save the pictures once "taken"?

View 1 Replies

ActionScript 3.0 :: Regarding The Capabilities Of The EventDispatcher?

Sep 21, 2010

I have a question regarding the capabilities of the EventDispatcher. Is it possible for flash to dispatch an even and be able to push out information like an int or string?

View 2 Replies

ActionScript 2.0 :: First Requirement Of The If Statement When Type In The Proper Input And Go Straight To The Else Statement

May 14, 2009

Having a few problems with what I thought was a simple if statement. Here is the code:

[Code]...

I can't quite figure out the small problem with the code. It seems to just bypass the first requirement of the if statement when I do type in the proper input and go straight to the else statement.

View 7 Replies

ActionScript 1/2 :: Execute Code In Previous If Statement If Second If Statement Is Executed?

Aug 31, 2011

if (variable == 1){
//code
//Execute this code.
} else if (variable == 2) {
//code

[Code]...
 
I dont want to copy the code from the first into the second and the first and second into the third.
 
My mind isn't working and there is probably an extremelly simple way to get this working.
 
I know I could used functions but for some reason it stops the instance referencing working: _root["bullet"+j] doesnt work in a function.

View 7 Replies

ActionScript 2.0 :: Loading Data From XMl File And Uses It To Run An If Statement. If Statement Fails?

Oct 10, 2008

The Flash movie contains 2 Text files, one Component button, and 1 component checkbox.The purpose of the application is to load an XML file(works)Populate 2 text fields with information from the XML file(works)Compare the two text fields, if they contain the same information then the checkbox, via AS is told to be selected. (Heres the problem);

Heres the code:

Code:
runCode_btn.onPress = function() {
data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.onLoad = function(success) {

[code]....

The idea behind this app is that its an electronic form. The user fills it out, the information is then sent to a newly created XML file, months later the open the XML file in flash, and Flash fills out text fields and check and or unchecks Checkboxes based on the XML data.CheckBoxes are mandatory.But I don't see how I'll be able to use them if i can't create and condition statements based on the loaded Data.

View 1 Replies

ActionScript 3.0 :: Flash 9 - Language Reference Link?

Dec 8, 2008

How do I get to the documentation for Flash 9? Adobe onlyseems to have reference to documentation for Flash 10 from theAdobe Flash Support Center.

View 2 Replies

Flash :: Creating A Multi-language Site?

Apr 24, 2009

I am aware of the built-in 'Strings' panel within the Flash IDE, however is this the best way to go about creating a multi-lingual AS3 site/application nowadays?Are there any recommended 3rd party APIs/frameworks available? Ideally I'd like to be able to change language on the fly and support as many character sets as possible, I will also be dealing with both static and dynamic text content.

View 6 Replies

Multi Language Flash Chart Recommendation?

Nov 30, 2011

I need a good multi language flash chart for my company's portal, can you recommend one? Already have tried fusion-charts, amCharts, and also OpenChart - But they are not supporting right-to-left, and the API is not simple (they require a complex XML).

Requirements:
good looking
easy to implement (simple api)
customizable
well documented
not expensive

View 1 Replies

ActionScript 3.0 :: Way For Flash To Detect Language/country?

Oct 24, 2011

I need flash to show English or French depending on what language/country you're from. I know you can do it with javascript to do a browser detect.

View 3 Replies

ActionScript 2.0 :: XML Language Selector Using Locale Flash Var?

Apr 28, 2007

I'm creating an XML driven language selector which places the current language's flag (depending on the user's locale which is passed through a Flash Var parameter) at the top of the list. I've got all this working so far BUT i'm having trouble with the results. I want to be able to add onRollOver and onRelease functions to the newly created movieclips but it just ain't happening! The onRollOver function would be a bit of movement for each flag and the onRelease would call getURL using the url for that language which is contained in the XML file.

Code:
sideFeather.swapDepths(10000);
var x = new XML();

[code]....

View 1 Replies

ActionScript 3.0 :: Can Detect Computer Capabilities

Aug 25, 2009

I made a swf that is heavy on graphics, it works great if the computer is good. But for the older, slower computers I'm hoping there is as3 code that can detect if the playback rate or quality is being compromsed due to processor overload? I'd like to use it in an "if" function that removes some of the uneccessary graphics when it finds the computer can't handle them all.

View 1 Replies

ActionScript 2.0 :: Remove The Capabilities To Press?

Mar 1, 2007

Scenario: I have a MC (KidsPort).Within this I have several MC's acting as buttons labeled KidsCirc1, KidsCirc2, etc. on (press) each button moves the _parent MC (KidsPort) to another _x location on the main timeline. Ex. When you press button KidsCirc1 it moves MC (KidsPort) to an x location of 290. At this point I want to remove the capabilities to press. With the capability intact it simply repeats over and over the transition from it's previous x location to the x location of 290.

View 4 Replies

ActionScript 3.0 :: What Capabilities AIR Has To Write To Excel?

May 9, 2009

The problems im encountering seem like they have a simple answer, but i cant find it. The program has people generate 6 numbers that i need to record in a file so i can analyze them later in a stats program. Here is the code for the write to file portion. Some of the code may be redundant, not needed, or just plain wrong, as I kept changing things based on the error messages i got.

String(ce_0);
String(ce_1);
String(ce_2);[code]......

problem 1 is that when i click the check syntax button it says no errors, but 2 pop up in the compiler error box. The first is a 1084 saying it is expecting a right parenthese before the colon,the second is a 1078 (label must be a simple identifier).To see if it would work I removed the identifiers and the colons, and I get problem number 2. 3 errors pop up now. First,it says the resolve is a call to a possibly undefined method through static type. Second, it says iso is undefined (im assuming this is becuase it doesnt have the String identifier).Third, it says in the writeMultiByte method there is a coersion of Number types with String types(im assuming this is also becuase it is missing the identifier)i was also wondering what capabilities AIR has to write to Excel.I can go all the stats on the numbers in Excel,and if i can put the data directly in it would cut out a step,I just havent been able to find anything saying what AIR can and cant do regarding excel.

View 3 Replies

Flash 9 :: Bidirectional Text Treatment In Flash For Urdu Language

Aug 7, 2008

I am currently working on creating a multimedia presentation in URDU language. When I try to copy and paste the urdu text from word document into flash the sentence flow is not the same as in word ie from right to left.

View 1 Replies

Professional :: Creating Flash Videos From Java Language?

Aug 24, 2010

How can I create a flash video using Java.. (Java and JavaScript have nothing to do with each other, in my world Java Script is a useless technology). Does Flash Professional have a Java API and if so how do I get the JavaDocs and an example to see the complexity of that API. Does the Adobe Media Encoder have a Java API that I can use.. if so, JavaDocs and an example?

Picture having two million directories, each directory has 30 photos and a sound clip. From this I want to produce two million flash movies each movie has 30 photos and the sound clip. Each movie has panning of the photos (Ken Burns, Civil War on PBS). What does Adobe have that I can call from within my Java code or Perl perhaps. I need to do this every two weeks, at least. Using a standard user interface is not going to work, even if I hired half of the planet.. I have been on the phone with Adobe for two days and have gotten nowhere.. surly Adobe has something which allows me to automate the creation of Flash movies. right?

View 1 Replies

Flash :: Professional - Changing The Language Of The Program To English

Nov 25, 2011

My flash is in dutch, but most tutorials. So i would like to change the language of the program to English aswell.

View 1 Replies

What Is The Recommended Scripting Language For Talking Between Flash And Facebook API

Dec 10, 2009

Currently I have a flash based application (game) which I need to put on facebook, the users could save their scores and resume their game. For the task I was wondering which scripting language would be appropriate. And are there any API's available which could in the process. Or does one has to make all of it from scratch.

View 1 Replies







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