ActionScript 3.0 :: User Input In Cross Platform Mobile App
Feb 20, 2012
I've tried a number of options, sharedobject, xml, and junking up input/dynamic text in pretty awful ways; have also tried to "save on close" in AIR code. Any right path so when I port and test to iOS it will work...I'm not good in a flex/flash builder environment, as I am in flash 95% of the time.
If you wanted to distribute a program to as many OS as much as possible what's the best language to use? I'm considering user's convenience here. For example, they don't need to download java run time, flash or .net framework if they don't have it. Also once they download it, they don't need to compile it themselves.
I'm also considering developer's convenience, in that on one compile, the program compiles different version of OS for you and you don't need to install different os to compile it. Here are the features of the program I'm thinking: Stores text and image to database Uses keywords Can browse information in the webserver via xml Can share(upload and download) information from the web server via xml Can compile and edit related articles via keywords It's something like a blog with advance features and can exist on and offline
I'm working on a project in which I am writing code on a PC and someone else is creating graphics and animation on a Mac. We need to have embedded fonts to work w/xml and CSS. Is there a way to embed fonts so they work inside the fla on both platforms?
I am working on Adobe air for making a cross-platform project which is running on iOS, Android, Mac and windows. I have a plan to make it runnable on web as well. I am looking for the best approach for making artwork for this project as it is crossed platform. Right now I am thinking to separate backend logic from front-end i.e put layout for every platform separately.
Web ---- Desktop ----------- Mobile -------> (Logic)
I have an application I built in Flash that runs with no problems on Windows and OSX. I'd like to extend it to mobile platforms and I want to be able to call programs written in the native language of each platform.
I understand that Flex can be used on mobile platforms and that it can call native code, but I'm a little confused by what I've read about Flex. Can I use the Adobe Flash development environment to build Flex applications? Will our users need the Adobe Air runtime to run the programs? And what the heck does Air add to the capabilities? We need strong audio and video capabilities, a built-in database is not a requirement.
Is there any cross-platform-safe method for dealing with keyboard shortcuts in Flash? For example, on my Mac, pressing ctrl+f results in a KeyboardEvent where the keyCode is 6, but on Windows, the keyCode is 70.
My buddy and I are gearing up for a game jam and we're hoping to use Flash to build our project. One possible problem is that he's got a PC laptop, and I've got a MacBook.
What's the status of cross-platform development in Flash? I'd love to be able to drop something into an SVN repo and pull everything down without regard to the OS, but I'm not convinced that will be very smooth. It seems like I can move around ActionScript source and .fla files without too much issue, but Flash Builder projects seem pretty gnarly, e.g. they appear to have references to them outside of the project folder.
Is there an easy way to migrate project data in such a away that we can develop and debug regardless of OS? Maybe version-controlling all the portable content (.as, .fla, raw assets) and the importing into our respective project environments?
A project I am am working on has an extremely strange font problem. We have completely unpredictable glyphs missing on Mac compilations inspite of correct font embedding and correct font installations on the machines. Here is some of the context:
1. The Font is a custom truetype font which belongs to the client.
2. We are working on CS5 on the Mac, and CS4 on PC.
3. We are using classic dynamic texts, assigning striungs to the text attribut (not to htmlText). However the probel also occurrs with other classic text modes (single-line, multi line, kerening on or off, etc)
4. It is not predictable whether the glyphs of the font will show or not on the Mac CS5 compilations or not.
5. The issue does not seem to occurr with standard fonts like Courier or Helvetica.
My team is in the planning phase of a multiplatform mobile app. We're considering Adobe Air/Flex or Appcelerator Titanium instead of native development, but will eventually be needing to use an external API that is ported to iOS and Android. **(one that harnesses the device's camera)The idea would be to use platform detection and overloaded classes to determine which platform version of the API to import. Is something like this possible in either Adobe or Appcelerator? If so, would the native Objective-C or Java need to somehow be wrapped in Actionscript (if Adobe) or JavaScript (if Titanium)
I am going to develop a very simple game for android and for iphone/ipad I have the option to develop it in cocos2d or in adobe flash air (i am not a developer, but i have 2 developers who are offering me the service)I have a developer that states that cocos2d is better and other one that states that adobe flash air.I want it in cross platform.the cost offered by both developers is the same..i have heard that adobe air has the flaw that it is very slow, is this real? if you had the 2 options which will you use to develop your game and why?
I have some text that says go to page with a input textfield box and a go button. This is a flash cs4 file.I want to have the user input the page number and have it go to that frame.I am using actionscript 3.0 and have bought 4 books and researched online and still can't find what I am looking for.I can make the go button go to whatever page I want I just don't know how to get the information the user put in the box.
Just wondering if anyone knew ofhand the AS3 code to detect whether a user is using a mobile device, so they can be redirected to the HTML version of my flash website.
I'm writing a movie scene in AS3, and I hit a snag. I have a movie where the dialogue is advanced by the user pressing a button (the space bar). I have a speak function which prints out the dialogue to a dynamic text box. However, if I type in this:
speak(1, "Hello world!"); speak(2, "Hello back to you as well.");
Then, my first speak function is immediately overwritten by my second one...because they run at the same time. I'm not using the timeline so, I can't put a stop() function in or anything. I'm doing it all in ActionScript.
Is there a way to pause the movie and wait for the user to press the spacebar before loading up the second function. I was thinking of nesting functions to do it, but that seems overly complicated since I'll have nearly 20 lines of dialogue nested within one another in between moving my sprites around.
I am trying to make a generic multiple choice quiz, with questions to be loaded from an xml file. The hope is that I can give it to teaching colleagues as a resource, and they can create their own questions by just altering the xml file, as none of them know how to use flash. I can make all of it work beautifully for just one xml file's worth of questions, but I'd like to enable people to save several different xml files with different questions, and choose which one to use in the first frame of my swf. Here's what I have in the first frame, where there is simply a text input box (inputxml) and a 'Go' button.
I'm creating a simple flash movie that will allow me to setup an aim away message from the desktop or merely a web page, the code used is as follows:
aim:goaway?message=Message+Here+Go+to+aimisland.co m
s you can see there is a + after every word and the text is after Message+. I need to know how to get text which is entered into a text box to be inserted into the above code to complete the link.
I'm creating a simple flash movie that will allow me to setup an aim away message from the desktop or merely a web page, the code used is as follows:url... As you can see there is a + after every word and the text is after Message+.I need to know how to get text which is entered into a text box to be inserted into the above code to complete the link.
In Flex Mobile Project, Text Input shows blocks instead of showing arabic text. Labels are working fine with Arabic.
Is there any way to show Arabic text inside text input?
My code sample is
<fx:Script> <![CDATA[ /* Import all the easing classes so its
[Code]....
Since, it is for flex mobile project, when I input any text in arabic, it shows separate characters. Arabic is a language that doesn't have separate characters. It should combine letters to form specific word.
I am creating a game that has a gender selection and name entry box on a screen. When users hit the next button, I want to capture which gender they selected and what they typed for their name. I tried using the code found on the adobe website, but that captures every letter typed in real time.
I just started learning actionscript this week, so I'm a noob at it. Currently, when they click on the button boy1 it erases whatevers in the dynamic text box playeronesex and adds the word "woman". When they click the button girl1, it erases whatevers in playeronesex and adds the text "woman". I also need to know how to capture which they finally chose when they hit the next button.
Heres the actionscript for this frame:
//next button stop(); onbone.addEventListener(MouseEvent.MOUSE_DOWN, nextone); function nextone(event:MouseEvent):void {
I'm sorry this is a question from a server ignoramus, I've previously captured user input using a combination of cfml and text files. That was way back in 2002 and using AS 1.0. I'm now working in an environment where the server guy won't put any scripts on, and I mean none, no PHP, no ASP, no CFML, nothing. Would anyone know if there is a way of capturing user input without using a script, please? This prolly shows a really basic lack of understanding of how servers work but I'm a bit desperate. I know the Flash Learning Interactions can work with SCORM and pop results into LMSs that use SCORM and our LMS does use SCORM, but it seems to only be within the learning interactions and I don't know where to start to tailor this for the input I need to capture.
I want to stop the sound according to user input. For example if an user enters in a Textfield 4.32 seconds, I want to pause the song exactly at 4.32 seconds ( 432000 milliseconds.) I created a timer handler, which will fire every 1 millisecond and traced the soundChannel.position property. The last 2 sound position is 4318.911564625851 ( 4.31 seconds ); 4365.351473922902 (4.36 seconds); But how to stop at 4.32 seconds for the user?
Right now I have a countdown going on, but with a fixed date. How would I go about doing this with a user input?...what I would like to do is the user enter a specific date and the countdown to begin.
I have an idea for a simple game/program and not sure if Flash is the way to go.After reading many articles I've come to the conclusion that if I wanna make my idea a reality then I need to do it myself but not sure where to start.Before spending the money on buying cs 5.5 want to make sure it can do what I need.So my question is can you have users input data that would then control your animations? For a simple example:I want a user to be able to input a number then depending on the number a certain animation sequence would occur.So say a user inputs the number 10 then my animation would walk over to a pile of say apples and pick up 10 apples. If they input 5 the animation would pick up 5 apples etc...So my idea has nothing to do with apples but revolves around the user inputting numerical data which would then control what the animations do.
A friend of mine asked for a simple program. Input: Coordinates of some points, spheres, planes etc. (from an excel document (strictly) ) Output: A 3D view of the input which the user can move the camera. The questions is, how can I do that easiest way. I have experience in C++, C#, Flash (AS), Java
Ok I have 6 textboxes that the users will use to type in 6 different numbers from 1-49. What code would I need to add so that once the user has entered their 6 numbers, they are sent to and stored in an array?
I'm sure it's easy to do, but I just cannot figure it out. I've created a timer but want to let the user set default values to start at so they don't have to modify the start time each time the program starts.I was able to create a text box but it is un-editable in the actual program. It displays '00' nicely but it's useless. I haven't even gotten to the point where the data is pulled and stored.
ActionScript Code: var timerHrs1:TextField = new TextField(); timerHrs1.type = TextFieldType.INPUT;