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


Similar Posts:


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

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

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

Android :: Display AdMob Ads In FlashBuilder 4.5.1 Mobile Project?

Aug 31, 2011

I am currently developing an application in the latest version of FlashBuilder and I cant seem to find out how I can incorporate AdMob ads or any other Ads into my application.There seen to be a few tutorials online focused on Flash however im not sure how to get those to work in the Flex environment.

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

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

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

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

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

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

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

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

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

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

Flash :: AIR 3.1 Mobile Project: Adl.exe Not Showing Loaded Application

Mar 24, 2012

Copied:

bin
runtimes
airApp-app.xml
airApp.swf

Calling:
G:adlinadl.exe -nodebug G:adlairApp-app.xml

Nothing on the screen, nothing in the console. I do, however, see adl.exe hanging in the processes and eating up memory - i assumed its the loaded, but invisible application.

Update:Created a blank Flex 4.5 (Air 3.1) project that changes the background - and it worked out fine. Tried to use this config (tweaked the filename) - and it doesn't work. Seems the problem only applies to mobile projects.

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 :: Display A Lot Of Text In Flex Mobile Application?

Feb 7, 2012

What is the best way to display a large amount of text (5000-10000 words) in a Flex mobile app?

I have been loading text in through an xml file using itemrenderer. It works totally fine when I run the application on my PC but when I load it onto my Android phone it crashes. Looks like my phone can only handle loading in about 3000 words using this method without crashing.

Anyone have a suggestion? Also, HTML isn't going to work for me. I want the text built into the application, which is why I have been trying to use the xml file.

View 1 Replies

Flex :: Mobile: Display Back Button Automatically If View Is Not First In Stack?

Nov 19, 2011

In Flex 4.5 for mobile is it possible to check if there is > 1 view on a navigation stack and display a back button accordingly? If so how can I do this?My application is based ons:ViewNavigatorApplicationI'm adding a back button like this

<s:navigationContent>
<s:Button label="Back" click="backButtonPressed(event)"/>
</s:navigationContent>

[code]......

View 2 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 Local SQLite BLOB Display?

Jul 29, 2011

I've got 3 columns in an SQLite db I built with Firefox's handy SQLite Manager. So, I created 3 columns, an index/reference that's just an incrementing INTEGER for easy reference, a descriptive title of the image (so it can be searchable later) in a TEXT, and a BLOB type that holds the pngs.

I'm trying to add this in an assets folder into my project (as a pre-populated database) and display the blob images, one at a time, in a window one after the other, scrollable by user. This is where I'm running into problems. Eventually I want to be able to encrypt it and add a search tool, but first things first, and that's displaying an image.

I have spent several hours scouring the web about this topic, but there isn't much help out there: Adobe has tips about using SQLite with AS3 (their reference documents and the support section of their website have some overview articles) but nothing refers to reading blob data in depth.

On this site, I've found some references to Adobe Air looking for extra byte information when reading blobs since they have a different syntax to write to the databases created within the program. See: What is the first bytes in a Blob column SQlite Adobe AIR? Blob Sizeinfo?

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 :: Convert Global Coordinates To Local Coordinates Of A UIComplenent In Flex Project?

Dec 19, 2011

I was trying to convert global coordinates to local coordinates of a UIComplenent in my flex project using below code using below code

var gp:Point = new Point(e.stageX,e.stageY); //global point
var lp:Point = uic.globalToLocal(gp); //local point

uic is UIComponent in which I have subclass of Sprite for drawing something I have set the sprite's mouseEnabled and mouseChildren to false to not interrupt the mouse event. above code is within uic's mousemove event where I was tracing the gp and lp gp was giving correct value and suprisingly lp was giving negetive values. when I move the move to the top left corner of uic i expect lp to be 0,0 but it is giving the -width of of uic. I broke my head for hours and ended up finding an alternate by using offsets. Infact my original code was much simpler like this which was same issue

var lp:Point = new Point(e.localX,e.localY);

I am not sure what exactly is causing this problem. the workaround had lot of issues and it creating a mess in my rest of the algorithms.Just now I found even more interesting thing (which is actually weird). for some reason I went and create a new lp2

var lp2:Point = new Point(e.localX,e.localY);

now surprisingly it was giving correct values as expected and I went back and changed the code as

var gp:Point = new Point(e.stageX,e.stageY); //global point
var lp:Point = uic.globalToLocal(gp); //local point
var lp2:Point = new Point(e.localX,e.localY);
var lp2:Point = uic.globalToLocal(gp);

now it is expected to have all the lp, lp2 and lp3 variables to be same but weiredly lp two is giving wrong value and lp2 and lp3 were giving correct. I am suspecting using the variable lp has something to do. I am not sure about that but above proves it so right now I am using lp2.

View 1 Replies







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