Burrito mobile project charting components

I have a problem when trying to use the charting components in a Flex Hero mobile project with Flash Builder Burrito.
The release notes(http://labs.adobe.com/wiki/index.php/Flex_SDK_Hero) of Flex Hero state that the charting components aren't included in a mobile project by default, but that you can add the swc's manually.
So I created a new "Flex Mobile Project" in Burrito and added the charting swc's (datavisualization.swc and mx.swc) to the project. But when I try to use the Barchart component or any other chart component I get errors in my Flex application because it cannot resolve the component.
I have a feeling this problem has something to do with the com.adobe.flexide.project.multiplatform.multiplatformnature used in the .project file in a mobile project, but I'm not 100% sure.
Anyone else having this problem and is there any way to resolve this problem?

ok, so here's another problem with charting in a mobile project... if I'm not mistaken there's a problem with the mobile skin.
Although this renders (if you have the datavisualisation.swc and mx.swc and sparkskins.swc in your libs folder) you will not see any text on the axis or in the tooltips.   Does anybody have an explanation and solution?  I'm not understand how the skinning is put together in spark :
<?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" title="Home" xmlns:local="*"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:charts="mx.charts.*"
        xmlns:datavis="mx.charts.series.*">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
        <fx:Script><![CDATA[
            import mx.collections.ArrayCollection;
            [Bindable]
            public var expenses:ArrayCollection = new ArrayCollection([
                {Month:"January", Profit:2000, Expenses:1500, Amount:450},
                {Month:"February", Profit:1000, Expenses:200, Amount:600},
                {Month:"March", Profit:1500, Expenses:500, Amount:300},
                {Month:"April", Profit:500, Expenses:300, Amount:500},
                {Month:"May", Profit:1000, Expenses:450, Amount:250},
                {Month:"June", Profit:2000, Expenses:500, Amount:700}
        ]]></fx:Script>
        <mx:Panel title="Plot Chart">
            <charts:PlotChart id="myChart" dataProvider="{expenses}"
                          showDataTips="true">
                <charts:series>
                    <datavis:PlotSeries
                        xField="Expenses"
                        yField="Profit"
                        displayName="Plot 1"
                        />
                    <datavis:PlotSeries
                        xField="Amount"
                        yField="Expenses"
                        displayName="Plot 2"
                        />
                    <datavis:PlotSeries
                        xField="Profit"
                        yField="Amount"
                        displayName="Plot 3"
                        />
                </charts:series>
            </charts:PlotChart>
            <charts:Legend dataProvider="{myChart}"/>
        </mx:Panel>
</s:View>

Similar Messages

  • Charting components for actionscript project

    hi -
    I have an actionscript project going (ie, not flex) and I want to use some kind of charting components
    I'm complining as desktop appilication, ie, I am running on the AIR platform
    because it's an actionscript-only project I dont think I can use any of the mx.* classes -- is this true? would be good to confirm that
    given that, I think my only option is to find a third-part charting package that's AS3-only
    any suggestions?
    thanks

    Tried compiling it using the FlexBuilder IDE? There's nothing
    wrong with your code, so it sounds like your compiler doesn't know
    where to find the libraries, or is looking in the wrong place. Are
    you giving an explicit library-path argument?
    http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=L iveDocs_Parts&file=00001500.html

  • Flex Mobile project scaling with Retina display iPad (3rd gen).

    Adobe et al,
    With the new iPad 3 we now have a ton more pixels to utilize. I'm familiar with and have already successfully tested the AIR 3.1+ commandline compiler option (-platformsdk) to get Retina display on the new iPad. In ActionScript mobile projects the content is rendered beautifully on the new iPad. But with Flex Mobile projects, something is happening that causes it to render incorrectly. It's retina display alright, but the size is way too small.
    Below is an image WITHOUT the -platformsdk build tag, that causes the app to be pixel doubled to fit on the new iPad:
    Notice that it's scaled proportionally, even though the text and components are slightly pixelated. Not a big deal, but noticeable on the device.
    This image is taken with the app rendering in Retina display (setting the -platformsdk pointing to iOS 5.1 SDK):
    As you can see, the text/components are rendered really clear, but the scale is way off. Obviously it's getting the width of 2048x1536 from the device, but it's way too small.
    How do I fix this? I've tried changing the applicationDPI, but it doesn't fix it. Setting a width/height of 1024x768 does nothing either. It seems we need to overrride a behavior that causes it to fit everything in so small.
    A little help?
    Thanks,
    iBrent

    Alright, kevinkorngut's answer was the right one. It appears that even though AIR 3.x can render high resolution apps, it still returns the incorrect DPI for the new iPad. In a Flex Mobile project you have to override the DPI using the method mentioned above.
    Here are the results I got:
    Using the runtimeDPIProvider property on the TabViewApplication tag (works for any of the three project types) I created a class that extends RuntimeDPIProvider. To detect which iPad I was on, I used the following code:
    override public function get runtimeDPI():Number
         var os:String = Capabilities.os;
         if(os.indexOf("iPad") != -1)
              if(Capabilities.screenResolutionX > 2000 || Capabilities.screenResolutionY > 2000)
                   return DPIClassification.DPI_320;
              } else {
                   return DPIClassification.DPI_160;
         } else {
              return Capabilities.screenDPI;
    I'm returning a DPI of 320 as this gives the best result that matches the proportions of the device. In other words, even though the iPad DPI is 264, setting the app to 320 gives the correct size at the new Retina display.
    In order for this to work, you must compile the app with the -platformsdk flag pointing to iOS 5.1 SDK, and currently that means you need a Mac running Lion with Xcode 4.3.1. Here's the adt command I used:
    adt -package -target ipa-test -storetype pkcs12 -keystore ~/Desktop/iOS_DevCert.p12 -provisioning-profile ~/Desktop/iOS_DevProfile.mobileprovision newiPadTest.ipa newiPadTest-app.xml newiPadTest.swf -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPh oneOS5.1.sdk
    Also, the -app.xml descriptor file must have the <requestedDisplayResolution>high</requestedDisplayResolution> within the <iPhone> tags.
    Thanks everyone for their replies!
    iBrent

  • Facebook actionscript API not working with Flex 4.5 Mobile Project

    Will the following API work in a Flex 4.5 mobile project?
    http://code.google.com/p/facebook-actionscript-api/
    I tried a simple Facebook.int() and I keep getting the following 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.
    at Error$/throwError()
    at flash.external::ExternalInterface$/addCallback()
    at com.facebook.graph::Facebook/init()[C:\Users\MikeHunt\Work\facebookGraphApi\api\com\faceb ook\graph\Facebook.as:599]
    at com.facebook.graph::Facebook$/init()[C:\Users\MikeHunt\Work\facebookGraphApi\api\com\face book\graph\Facebook.as:165]
    at views::LoginView/init()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/views/LoginView.mxml:15]
    at views::LoginView/___LoginView_View1_initialize()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/views/LoginView.mxml:3]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\co re\UIComponent.as:13128]
    at mx.core::UIComponent/set processedDescriptors()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent .as:1871]
    at mx.core::UIComponent/initializationComplete()[E:\dev\4.5.1\frameworks\projects\framework\ src\mx\core\UIComponent.as:7660]
    at mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7639]
    at spark.components::View/initialize()[E:\dev\4.5.1\frameworks\projects\mobilecomponents\src \spark\components\View.as:990]
    at views::LoginView/initialize()
    at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\ framework\src\mx\core\UIComponent.as:7485]
    at mx.core::UIComponent/addChildAt()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7189]
    at spark.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.5.1\frameworks\projects\ spark\src\spark\components\Group.as:2037]
    at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.5.1\frameworks\project s\spark\src\spark\components\Group.as:1628]
    at spark.components::Group/addElementAt()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\c omponents\Group.as:1387]
    at spark.components::Group/addElement()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\com ponents\Group.as:1345]
    at spark.components::SkinnableContainer/addElement()[E:\dev\4.5.1\frameworks\projects\spark\ src\spark\components\SkinnableContainer.as:761]
    at spark.components::ViewNavigator/createViewInstance()[E:\dev\4.5.1\frameworks\projects\mob ilecomponents\src\spark\components\ViewNavigator.as:1954]
    at spark.components::ViewNavigator/commitNavigatorAction()[E:\dev\4.5.1\frameworks\projects\ mobilecomponents\src\spark\components\ViewNavigator.as:1867]
    at spark.components::ViewNavigator/commitProperties()[E:\dev\4.5.1\frameworks\projects\mobil ecomponents\src\spark\components\ViewNavigator.as:1236]
    at mx.core::UIComponent/validateProperties()[E:\dev\4.5.1\frameworks\projects\framework\src\ mx\core\UIComponent.as:8209]
    at mx.managers::LayoutManager/validateProperties()[E:\dev\4.5.1\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:597]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:783]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1180]

    This is the error because the runtime does not find any way to call Java script that usally is called through External interface. So my guess is you are using a AIR project. U just need to download the latest swc http://code.google.com/p/facebook-actionscript-api/downloads/list for destop in your case and don't forget to but FBJSBridge.js to put in your source that will b used to help AS call Facebook API from AIR runtime
    Hope it make some sense
    Piyush Negi

  • Flash Builder Error Compiling Ipad Actionscript Mobile Project.

    I just bought a brand new ipad for testing. I am using flash buider 4.7 to make an actionscript mobile project. I created an app ID, provisioning profile, and certificate. I have done this before in flash professional so it wasn't too bad. However, when I run or debug  even a blank application I get this error in flash builder:
    Error occurred while packaging the application:
    'Launching AppName' has encountered a problem.
    Error occurred while packaging the application.
    Exception in thread "main" java.lang.Error: Unable to find llvm JNI lib in:
    /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK/lib/adt.jar/Darwin
    /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK/lib/aot/lib/x64
    /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK/lib/adt.jar
    /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK/lib
                    at adobe.abc.LLVMEmitter.loadJNI(LLVMEmitter.java:582)
                    at adobe.abc.LLVMEmitter.<clinit>(LLVMEmitter.java:596)
                    at com.adobe.air.ipa.AOTCompiler.generateExtensionsGlue(AOTCompiler.java:419)
                    at com.adobe.air.ipa.AOTCompiler.generateMachineBinaries(AOTCompiler.java:1790)
                    at com.adobe.air.ipa.IPAOutputStream.createIosBinary(IPAOutputStream.java:378)
                    at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:762)
                    at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:91)
                    at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:245)
                    at com.adobe.air.ADT.parseArgsAndGo(ADT.java:571)
                    at com.adobe.air.ADT.run(ADT.java:419)
                    at com.adobe.air.ADT.main(ADT.java:469)
    I have no idea where to even start in trying to figure out what could be the problem. I am pretty sure the itunes developer information is correct. Are there any kinds of drivers or developer modes that I need to set for a new iPad?
    Thanks!

    Thanks Shongrunden for your reply.
    Yes, you are right. If I make a new Flex mobile project, I did not see the issue.
    But that did not fully answer my question, my concern is: can an actionscript project use spark components?
    Thanks.

  • No exiting event detected for an actionscript mobile project

    Would like to launch a dispose() when the program close on Android, but the dispose() never launch....
    I am using an Actionscript Mobile Project, and here is the code:
    NativeApplication.nativeApplication.addEventListener(Event.EXITING, function(e:Event):void{
          dispose();
    The Exiting Event is not listened by the program when it is closing. Is that this event is not supported?
    How can I detect the program is closing then?
    Please help!

    Thanks Shongrunden for your reply.
    Yes, you are right. If I make a new Flex mobile project, I did not see the issue.
    But that did not fully answer my question, my concern is: can an actionscript project use spark components?
    Thanks.

  • Can't convert Flex Mobile project to desktop project

    I'm using the Flash Builder 4.6 trial, and I'm very new to flex development. I've been asked to convert an existing Flex Mobile project (appears to have been developed in Flash Builder 4.5) into an AIR desktop app.
    The project imported without complaint. However, the Add/Change Project Type > Convert to Flex Desktop Project menu item is disabled.
    I created a blank Flex Mobile project, then a blank Flex web project, then a blank ActionScript project. It's greyed out for those, too. I checked with the projects closed and open; the rest of the items on that submenu are enabled for all projects when closed.
    Is this feature disabled in the trial version?  Is something else going on?

    Clearly the device from verizon works, I would try to contact a computer tech to repair your computer
    Really it should be as simple as turn on, connect, go. If it isn't there is a break down somewhere in that computer
    What error msg?

  • Flex Mobile Project unable to run on android device

    Hi,
    I Have created basic flex mobile project using flash builder and i could able to run on desk top, but while running the same on device i am getting force close exception also dint get any error log. i am using samsung galaxy pop GT-S5570 as my testing device. i have configured usb driver and enabled usb debugging in  my device too. any help to resolve this process?

    08:20:45.751 Raw device 'sd=sd1,lun=/dev/rdsk/c3t5000CCA03EC50D5Dd0s0' does not exist, or no permissions.
    Looks like either your lun doesnt exist  OR you running vdbnech session not as root.
    (Only a guess )

  • Is there a way to use Stage3D in Flex Mobile projects on iPad?

    When I create a project of type "Action Script Mobile Project" the Stage3D works on iPad, Android device and in the AIR desktop simulator.
    But when I create a project of type "Flex Mobile Project" it works in the desktop simulator and on Android device but does not work on iPad.
    When running on iPad the stage.stage3Ds[] collection is empty.
    Is it a sort of limitation made by intent? Or a bug? Or maybe I am doing something wrong?
    What I actually need is an ability to render offscreen bitmaps with GPU in an application that uses Spark UI. This is why I need Flex Mobile project.
    My configuration is the following:
    iPad with retina display
    Sony Xperia Tablet Z
    AIR SDK 3.7 (and I have also tried AIR SDK 3.8 today)

    Hi,
    Check this thread, discussing the similar issue
    Re: What video format that is compatible with Muse

  • Error when running a newly created mobile project

    Hi,
    Every time I create a new mobile project in Flash Builder and try to run it I get this error message:
    TypeError: Error #1009: Cannot access a property or method of a null object refe
    rence.
              at com.coursevector.flashbug::Profiler/allCompleteHandler()
    [SWF] NoteTakerMob.swf - 2,698,930 bytes after decompression
    I get this when I try compiling against Flex SDK 4.5 and 4.5.1, and whatever type of mobile app I try to build, e.g. view based, tab based or blank view.
    Does anyone know what the problem may be?
    Stephen    

    Found the cause of the problem, its FlashFireBug in Mozilla. When a swf is launched FlashFirebug tries to capture the swf, this messes up mobile apps running on the desktop.
    Found the answer in this post: http://forums.adobe.com/thread/852612

  • Using flex 2.0 charting components with flex 3

    I purchased and installed a flex 2 charting components
    library so i could use it in my AIR application development. It
    installed alongside the 3.0 beta visualization components so that I
    now have two copies of each component in my charts folder. I can't
    see how to ensure that the right library is used so that the charts
    actually appear when i run my app. I'd hate to think i just threw
    away $300 so any help would be greatly appreciated - .

    Are you using Flex Builder 3? Flex 3.0 beta Data
    visualization components are available as part of FB 3 only. You
    can select either 2.0.1 hotfix 3 charts (consists of only
    charts.swc) or 3.0.0 data visualization (consists of
    datavisualization.swc). through multiple sdks feature of FB3. For
    flex 3 beta, flex 2 charting key will work. so if you want to try
    out new features in charts and new components like Advanced data
    grid you can switch to 3.0.0 sdk and use same flex 2 charting key
    to remove watermark from charts.

  • The selected Flex SDK does not support building mobile projects

    I am unable to create a new Actionscript Mobile project.  The new project dialogue gives the error: "The selected Flex SDK does not support building mobile projects."  I tried seting the default Flec SDK both to the SDK included with Flash Builder 4.7, and also to a version of the 4.6.0 SDK (build 23201) with AIR 3.3 SDK overlayed on it, which already existed on my computer.  Both resulted in the same error.  Any ideas?

    Hi ,
    Actionscript Mobile projects use AIR SDK by default in Flash Builder 4.7 . Flex SDK won't be used for Actionscript projects.
    Could you please try creating an Actionscript project in fresh workspace and let me know if the issue still exists.
    Also attach screenshot and error log if any.
    Thanks,
    Sanjay

  • Flex mobile project - ant build issue

    Hi,
    I am getting an error when i compile my mobile project with ant build script. "Could not resolve <s:ViewNavigatorApplication> to a component implementation." But, I am using the same build file to build a simple helloworld mobile project which works fine.
    <mxmlc
       file="${main_class}"
       output="${output_loc}"
       locale="${LOCALE}"
       static-rsls="false"
       accessible="false"
       configname="airmobile"
       debug="${debug_mode}"
       failonerror="true"
       fork="true"
       maxmemory="512m">
       <source-path path-element="${class_path}"/>
       <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
           <include name="libs/*"/>
          </compiler.library-path>
       <library-path dir="${FLEX_HOME}/frameworks/locale/${LOCALE}" append="true"/>
          <library-path dir="${lib_path}" includes="*.swc" append="true"/>
       <external-library-path file="${AIR_GLOBAL}" append="true"/>
       <compiler.library-path dir="D:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/MobilityServer/WEB-INF/flex/libs/air" includes="airfds.swc" append="true"/>
          <compiler.library-path dir="D:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/MobilityServer/WEB-INF/flex/libs" includes="fds.swc" append="true"/>
          <compiler.library-path dir="D:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/MobilityServer/WEB-INF/flex/libs" includes="fiber.swc" append="true"/>
       <compiler.library-path dir="C:/Perforce/mobility/main/NextGen/client/libraries/external/robotlegs/1.4.0/bin" includes="robotlegs-framework-v1.4.0.swc" append="true"/>
       <compiler.library-path dir="C:/Perforce/mobility/main/NextGen/client/libraries/CommonMobileLibrary/bin" includes="CommonMobile.swc" append="true"/>
       <compiler.library-path dir="C:/Perforce/mobility/main/NextGen/client/libraries/NativeMobileLibrary/bin" includes="ASNativeLibrary.swc" append="true"/>  </mxmlc>
    Message was edited by: betheflexcoder

    Sounds like you are missing mobilecomponents.swc

  • Flex Mobile Project only lists "Google Android" in Target Platforms

    I just downloaded the masters colection cs5.5 and im am using FlashBuilder 4.5.  When I create a new Flex  Mobile Project, only Google Android is a target platform.  I don't see  Blackberry or iOS as options.
    I do see Apple iOS when I create a mobile ActionScript project.
    This must be due to a configuration setting.  Can anyone help?
    i have already looked at this peron post and i have tryed all of the sollutions and none of them seem to work http://forums.adobe.com/thread/867857

    That didn't help me either.  Ultimately, here's what I did.
    I uninstalled and reinstalled the software
    After it was reinstalled, I updated to the 4.5.1 SDK PRIOR to doing any other software update.
    Then I updated the Software
    The software update found all new items and installed them properly (which is what I believe the issue is -- if you update prior to using the 4.5.1 SDK it doesn't install the required bits).
    Now it seems to be working for me.
    Not sure if that's the problem, but that's how I fixed it.

  • Flex mobile project: web root and root path for a remote web service?

    Hi all,
    i'm trying to set up the testdrive tutorial for flex mobile project, with flash builder 4.5
    and php data.
    I've uploaded the files on my remote web space (e.g. http://mywebsite.org, and the
    test file is http://mywebsite.org/TestDrive/test/test.php... and it works
    correctly)... But when i'm setting properties of the project, i don't know what
    to write into the web root and root path fields... I thing root path is simply
    http://mywebsite.org... and whatever i write in the other fields (output folder
    too) i have errors when i click on "validate configuration"...
    What should i put into those fields? is zend framework (and gateway.php)
    strictly necessary?
    As you can see... i'm a bit confused....
    Many thanks for any help
    Bye
    Alex

    I thought it was a simple question...
    No advice?

Maybe you are looking for

  • W530 system language problem

    Hello! I have W530 laptop; purchased it from Germany, but I do not speak German at all. After purchase on the first boot it offered me to choose system language (there was a note that it is not possible to change it later). There were 2 choices - Ger

  • DBM Order Control configuration steps..

    Hi All, We have got a requirement and need to create new Events/Actions etc in Order Control. Since I am new to DBM, I need some guidance to configure actions etc under Order Control. I am trying to search on net but not getting some comprehensive do

  • Flash Player 9 OSX

    I recently tried installing Adobe Flash Player 9 OSX and I get an error message that a browser is still running on my system. I closed all of the browsers, ran disk utility to repair permissions, ran disk warrior, uninstalled flash player and still I

  • Problems decoding sensor values

    Well , I have an RS232 incoming frame which consists on groups of two bytes separated by a carriage return character, like this : byte1byte2\rbyte3byte4\r......... Each group of two bytes represent a 12-bit resolution sensor value. I used to measure

  • How to use function:MLApp_DIMLAppPutWorkspaceData?

    how to use function:MLApp_DIMLAppPutWorkspaceData? MLApp_DIMLAppPutWorkspaceData is a function of MATLAB ACTIVE  在LABWINDOWS/CVI调用MATLAB的控件生成的函数有下面一个 MLApp_DIMLAppGetWorkspaceData (CAObjHandle objectHandle,ERRORINFO *errorInfo,const char *name,const