Actionscript 3 :: Converting Data Object To Int In Flex Mobile Project?

Aug 31, 2011

I am developing a mobile project in Flash builder using flex 4.5. I am very new to flex, with some background in Obj-C.urrent Setup:I am passing the text property of a text input component to a second view via navigator.pushview{view.Someview, data}public function doSomething():void{navigator.pushView(Session_View, timeInput.text);This successfully passes the text I put into the textinput to the Session_View instance and I can display that text in a label in the mxml; however, I would like to take the text passed and convert it to an integer to use in my logic.Within Action Script I have tried parseInt() function with no luck.I have also tried to assign data to a variable in actionscript with no luck.

View 1 Replies


Similar Posts:


ActionScript :: Android - What Is The Difference Between Mobile Project And Flex Mobile Project

Jun 5, 2011

I am going to make an Arabic application using Flex builder 4.5. I have two questions that need to be answered What is the difference between ActionScript Mobile Project and Flex Mobile Project. (AS Mobile Project supports iOS and Android but I doubt about it!!)
Is Arabic support available in Flex Mobile Projects or AS Mobile Projects? I know TLF supports Desktop and web apps but does it support mobile platforms?

View 1 Replies

Android :: Convert Flex Mobile Project To Flex Web Project?

Jun 29, 2011

I have a flex mobile project and I want to convert it into web-based project. What is the best way to do it.

View 1 Replies

ActionScript :: Get Data From Sdcard In Mobile (Android) Project?

Feb 3, 2012

I am developing an ActionScript for Mobile project in which i want to read a .txt file from my sdcard and do some stuff with its data. I am aware of how to read a file from sdcard in native android java, but i cant seem to find my way around this problem since there is no emulator in Flash Builder 4.6 like the one in Eclipse.

View 1 Replies

Flex :: Using Mx.charts In A Mobile Project?

Dec 25, 2010

Adobe states that Charts are supported in mobile projects but when I try to change the following working files (created project with File - New - Flex Mobile Project - Google Nexus One):

MyTest.mxml:

<?xml version="1.0" encoding="utf-8"?>
<s:MobileApplication
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]....

to Flex Build Path (clicking "Add SWC" button):Then it fails with the error:Could not resolve to a component implementation.

View 2 Replies

Android :: Multi Threading In Flex Mobile Project?

Jun 20, 2011

I want to download a video on mobile device through flex framework. For that reason I need to have support of multithreading so that I can download video in background. Unfortunately, Flex doesn't have multithreading support. I am quite new with flex environment.

View 1 Replies

Android :: Flex Mobile Project On Eclipse Plugin

Sep 6, 2011

I wanted to develop a flex based mobile project. I have Eclipse plugin for Adobe Flash Builder. But I cannot see any option in the "Create Project" list for Mobile project.I have seen Mobile Project is available in Flash Builder Standalone version, but I wanted it in eclipse plugin.

View 2 Replies

Flash :: Date Formating Mobile Flex Project

Oct 28, 2011

I have a mobile app that gets a rss feed. The date on the rss feed displays Fri, 28 Oct 2011 17:30:00 GMT and I would like that to render as a short date in cst time standard dd/mm/yyyy and time. The code for my app is below. any help would be great This is the first time working with Adobe Flash Builder.

[Code]...

View 1 Replies

Actionscript 3 :: Capture An Image Using Flex 4.5.1, In A Mobile Project?

Nov 28, 2011

I am trying to capture the image using ActionScript through the webcam attached with the PC.

I have written following code..

protected var myCam:CameraUI;
protected function view1_viewActivateHandler(event:ViewNavigatorEvent):void
{

[Code]....

But the camera is not getting detected.. currentsState is always unsupported... Is there anything wrong...

Any other way to capture image/video for mobile devices using FlexMobileProject..?

View 1 Replies

Flash :: Display Local PDF In Flex Mobile Project?

Jan 23, 2012

I am running Flex mobile project and I would like my mobile app to be able to load and display pdf files that are saved locally. I do not want to go out to the web to access these pdf files.

I cant figure out how to make this code work for a locally saved file.

Error MSG: "Error #2044: Unhandled ErrorEvent:. text=Load error."

<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
overlayControls="true" title="PDF Display"

[Code]...

View 2 Replies

Flash :: Adding Icons To TabbedMobileApplication In A Flex Mobile Project?

Feb 28, 2011

Anyone successfully added an icon to their tabs in <s:TabbedMobileApplication> ? I've tried just using something like:

<s:ViewNavigator firstView="views.appmobile_HOME" width="100%" height="100%" icon="@Embed(source='../assets/home_icon.png')"/>


I've also tried in <fx:Script> something like:

[Code]...

Neither of these methods worked, and to be safe i used the same code to embed an image on the screen and it works!. I just can't seem to get the icons to appear in the tabs also note - I was doing all of this in my main mxml file, just incase you're familiar with the Flex Burrito "Mobile application" file structure. And another thing is that I don't get any errors when trying these methods. It lets me compile and test it.

View 1 Replies

Develop Flex Mobile Project :: Runs In Both Android And Iphone?

Aug 6, 2011

Can we develop flex mobile project that runs in both android and iphone.Also I want to know , can we use all the device capabilities of both android and iphone in same project

View 2 Replies

Flex :: Mobile Project : Establish Http Connection To A Specific Url?

Aug 18, 2011

how to establish http connection to a specific url and get data from that url in flex mobile project.

View 2 Replies

Flash :: Flex 4.5 IOS Mobile Project: SharedObject Doesn't Seem To Work

Oct 27, 2011

I'm trying to use a SharedObject in a Flex 4.5 mobile project. The SDK I'm using is 4.5.1, and the AIR version is 2.6.0. I'm trying to locally store user credentials for my application using this piece of code:

[Code]...

View 2 Replies

Actionscript 3 :: Get Soft Keyboard On IOS To Show-up In Pure Mobile Project (flex 4.5)?

May 7, 2011

I have a Pure AS3 mobile project that I'm developing in Flex 4.5, and deploying on both Android and iOS.I have a TLF textfield that is set to editable, and when I touch on it on Android the soft keyboard shows up as expected, without me having to explicitly tell it to show up.

BUT on iOS, when I touch on it, I get the text field's focus event firing, but the soft keyboard doesn't show up. Anyone know how to make this appear, so the user can enter in text? it is possible to enter text in a pure AS3 mobile app on iOS.

View 3 Replies

Javascript :: Run In Flex Mobile Project - Error #2067: The ExternalInterface Is Not Available In This Container

Dec 21, 2011

From what Ive seen, most of the examples of using Javascript in Flex are designed for for the full desktop version (or for the browser) and not Flex mobile. For example using ExternalInterface in a Flex mobile project gives the error: Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime. Is it possible to call Javascript (such as the Google Maps Javascript API) in a Flex mobile project?

View 1 Replies

Android :: Make Dynamic List Component In Flex 4.6 Mobile Project?

Jan 4, 2012

how can i change my list component in Flex 4.6 mobile project with that when an item is pressed it would dynamicly resize and show an article description and a button [URL]

View 1 Replies

Actionscript 3 :: Play A Local Flv Video File In Flex Mobile Project?

Jan 19, 2012

I trying to play a flv file in a flex mobile (flex 4.6) The files will all be locally stored and on the device. Would it be better to use the video even if it is not supported or can i use a movieClip? I am going to try and fade out a picture and then play the video with out any user controls and then fade back to the picture. The this will all be on a tablet. I am using Flash Builder 4.6.

View 1 Replies

Regex :: Format Link In String To Open In Browser In Flex Mobile Project

Jan 12, 2012

I get Strings from a server that look something like this:
This is normal text followed by a link: [URL]
Links might also look like this: [URL]

This Strings are set as the text value in a spark TextArea. What I'd like to achieve is that
A. the text gets highlighted and
B. the user can click it and it opens in the systems browser.

Using the StyleableTextField throws a typerror on Flex 4.6. I tried the simplest HTML text like this:
StyleableTextField(newsStoryArea.textDisplay).htmlText = "TextArea <b>bold</b><i>italic</i>."
Which throws;
TypeError: Error #1034: Type Coercion failed: cannot convert
spark.components.supportClasses::StyleableStageText@fc3d0a1 to
spark.components.supportClasses.StyleableTextField.

View 2 Replies

Flex :: Develop Adobe Mobile Project For IPad, IPhone And Android In Single Code Base For Managing DPI Calculation And UI?

Mar 16, 2012

How can i maintain DPI resolution calculation for various device and UI management for eg,iPhone having action bar at top/bottom , iPad app has control bar component instead.Is it possible to maintain application in SINGLE CODE BASE.

View 1 Replies

Android :: Flex Mobile Project: Numeric Keyboard - Not A Full Keyboard

Jul 26, 2011

How do? Edit the field with numeric keypad, not a full keyboard my code: <s:TextInput text="{TransactionObject.cartao}" id="item" restrict="0123456789" /> app for Android and playbook

View 2 Replies

Android :: Text Input Shows Blocks Instead Of Arabic Text In Flex Mobile Project?

Jun 8, 2011

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.

View 1 Replies

Flex :: Using Qnx.ui.picker.Picker In Mobile Project For Blackberry Playbook

Mar 11, 2011

there is a Picker example for usage in an ActionScript project. It works well in simulator. But how do you use that component in a Mobile Flex Project (with Burrito Flash Builder)? How do you add a qnx.ui.picker.Picker to a spark.components.View? The latter seems to expect a mx.core.UIComponent, but the former is a qnx.ui.core.UIComponent. The ActionScript project I've mentioned above works ok, because the Picker is added to the Sprite. But adding it to a View in a Mobile Flex project fails for me.

UPDATE: I've found this page today: [URL] And also I've found out that the QNX AIR components work on Android as well, wonder if it is legal to use them there? Nothing is mentioned in Playbook SDK Legal Notice.

View 2 Replies

Flex :: Mobile Data Security - Hash Key?

Jul 20, 2011

I am developing a flex application for mobile devices. This application will sync customer data down from an api to the mobile device. But once on the device I plan to hold it in sqlLite DB. How can I secure this data? I know that I could hash it but I guess that that someone would be able to decompile the application and get the hash key. I am new to flex and mobile development.

View 2 Replies

Flex 4.6 Mobile Sqlite Specific Data?

Mar 2, 2012

First off I am new to using Flex, but I have pieced this app together with help from online tutorials and information. Basically my app is like a directory of names, addresses and so forth, but I also have additional fields of "week" and "day". What I am trying to do is have a list that shows only the names of, for example Week 1 - Monday. Below is some of the code I am using to help you understand what I am trying to do.

<s:List dataProvider="{AddDoctorDatabase.doctors()}" labelField="name" change="onDoctorSelected(event)"
left="0" right="0" top="0" bottom="0"></s:List>

[Code]...

View 1 Replies

Android :: Android - Flex Mobile Project Option?

Mar 12, 2012

I have a problem with Flash builder, I can't find the "Flex mobile project option in the list" How can I install it?

View 1 Replies

Actionscript 3 :: Flex Mobile Persist View Data?

Sep 18, 2011

I built a simple hello world app to check out the Flash Builder 4.5 mobile capabilities.Here's how it works:The Default View asks for name in an textinput and has a continue button.When you click the continue button it pushes a new view in the viewNavigator which just displays "Hello " + name in a label.When you click anywhere in this view, it pops a view (i.e. itself) from the viewNavigator, to go back to the default view

I see only 1 issue with this:When I get back to the default view, it is in its initial state, i.e. the textInput is blank. It seems as if the viewNavigator created a new view of the default view's class and pushed this, instead of just removing the top view and displaying the previous one.I see this being especially problematic for programs which display data in a grid and you can click the data to view the detail...when you get back, the grid will be empty.

EDIT:
Project name: HelloWorld
Code below:[code]....

Clicking on screen 2 gets us back to initial screen. Notice the blank textInput

View 2 Replies

Flex :: Clear AIR Mobile Application Data In IntelliJ?

Mar 9, 2012

I'm developing a mobile AIR application using IntelliJ.

When debugging in Flash Builder there is an option to clear to application data on each (debug) launch of the ADL (see screenshot below) However, I can't find this setting in IntelliJ or some ADL parameter to force a clear on each new debug session. I was wondering if such an option exist in IntelliJ or ADL.

A little background: I'm using the PersistanceManager in the application to store some user settings and I want to be able to start the application without the saved settings from my previous run. Using this setting in Flash Builder does the trick, but I'm having no luck with IntelliJ.

View 1 Replies

Actionscript 3 :: Flex 4.6 Mobile - ItemRenderers And Application Data?

Mar 20, 2012

A question about ItemRenderers: let's say I have an ArrayCollection that is my application data sitting inside a global object. I them populate a sparks list with this data, setting the ArrayCollection as the dataProvider.

So each ItemRenderer gets a copy of an item sitting in the array. You can override the "set data" method to set the data something more domain-specific. The problem is that the data is a copy of the original item.

Now let's say we want to add some data to the item while inside the ItemRender. For example, it could call a method on the item telling it to load some details about itself, or maybe we allow the user to modify something on the item.

Obviously, we can't do any of this if we are operating on a copy because it will be thrown away as soon as the ItemRenderer is destroyed and the original object doesn't know anything about what happened.

So what's the best practice? Should I just use the itemIndex of the renderer to pull out the original item from my global array like this:

{globalArrayCollection}.getItemAt(this.itemIndex) But it seems kind of clunky to me. Is there a best practice for dealing with this?

View 2 Replies

Flash :: "append" Html Text To Text Area In Flex And Flex Mobile Project To Display Sprite And Text Formatting?

Jun 7, 2011

I'm playing around with a messaging type of application. Does anyone know how, or of any tutorials on to "appending" html text to text areas in flex and flex mobile projects? And specifically how I could take that and basically "append" a sprite inline to the text when i need to? Something simple like:Username: some text right here!So, Anyone have any experience "appending" sprites or simple text formatting?how to solve these issues!EDIT:Based on an answer below it was sugguested that it's as simple as...textAreaInstance.htmlText += "<b>Username:</b> some text right here!";But its not. you can't do .htmltext with a text area. you can on a text field, so i tried

var TF:TextField = new TextField();
TF.width = 200;
TF.height = 200;

[code].....

View 3 Replies







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