Flash Builder 4.6 mobile simulator question

I have Flash Builder 4.6 for Mac, I'm  developing a mobile application for iOS. When I test the application, the simulator comes up huge, is there a way
to configure the simulator so that the simulator show itself as being the same dimensions as what the application would be if were actually on an iPhone 4.
Thanks.

Not that I know of within Flash Builder however it is possible to make a web page and manually calculate what the final size would be by dividing screen DPI by the device dpi and scaling the resolution accordingly.
There is a hack to get screen DPI in JavaScript:
<div id='testdiv' style='height: 1in; left: -100%; position: absolute; top: -100%; width: 1in;'></div>
var screenDPI = document.getElementById('testdiv').offsetWidth;
NOTE: DPI is mostly standard across browsers and generally you get 96 on Windows and 72 on Mac. However, as the browser is rendering based on this DPI (and not your actual screen DPI) everything matches up.
After you get the final dimensions then you just change the width/height of your Flash div on the web page. There are a lot of documents available on the web on how to resize the Flash content inside a web page if you need help with this.

Similar Messages

  • Running a Flash Builder 4.5 Mobile BlazeDS Application on the Device

    I've been developing a Flex Mobile application in a Flash Builder 4.5 mobile project.  The project uses a java/blazeds server, which is a spring application using the spring blazeds integration. I created the project with the Root URL property in Flex Server settings set to localhost (http://localhost:8080/myServerApp), and all has worked well.  I'm now trying to run the application on a usb connected android device, and am getting a warning that the device can't access my localhost location.  I changed localhost in the Root URL property to the ip of my workstation on the local wifi network the device and workstation are connected to (say http://10.0.0.2:8080/myServerApp), and receive the following error stack:
    ArgumentError: Error #2004: One of the parameters is invalid.  url: 'http:'
              at flash.net::NetConnection/connect()
              at mx.messaging.channels::NetConnectionChannel/internalConnect()[E:\dev\4.5.1\frameworks\pro jects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:240]
              at mx.messaging.channels::AMFChannel/internalConnect()[E:\dev\4.5.1\frameworks\projects\rpc\ src\mx\messaging\channels\AMFChannel.as:307]
              at mx.messaging::Channel/connect()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\Cha nnel.as:884]
              at mx.messaging::ChannelSet/connectChannel()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\mes saging\ChannelSet.as:1707]
              at mx.messaging::ChannelSet/reconnectChannel()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\m essaging\ChannelSet.as:1809]
              at flash.utils::Timer/_timerDispatch()
              at flash.utils::Timer/tick()
    When I change the root url back to localhost, the error persists, and the only way to recover is to start a new project.  Am I doing something stupid or what?  Any help is greatly appreciated.
    Jay

    Hi,
    Looks like a debug build of your application was submitted.
    You have to "Export Release" a build of your application specifically for App store submission. Look at Step 4, sub-step 3 in "Package for distribution".
    Can you confirm if you picked "Final release package for app store" in "Export Release Build"?
    -Anirudh

  • Flash Builder 4.6 Mobile Project Using Blazeds & Native Extension

    Hi,
    I'm building a Flex Mobile project in FB, that uses BlazeDS to access data through a Spring Project, and also uses an ANE file to access the device's contacts.  I want to debug the application on a device connected with a USB cable, so had to set my root and output folders in Server Settings  using UNC so it can be found from my device thru my wifi network. I also have added the native extension via the Build Path and Packaging tabs.  When I debug from a desktop emulator, things launch OK and the extension correctly tells me it's not supported on the emulator. However, if I debug on the device, FB throws an exception at launch, complaining of a java null pointer exception.  The Eclipse log, in part, looks like this:
    com.adobe.flexbuilder.project.AbstractXMLModel$FileReadException: org.eclipse.core.internal.resources.ResourceException: Resource '/NewOne-debug/NewOne-app.xml' does not exist.
              at com.adobe.flexbuilder.project.air.internal.xml.ApplicationXMLModel.<init>(ApplicationXMLM odel.java:102)
              at com.adobe.flexbuilder.project.air.AppXMLCreator.init(AppXMLCreator.java:91)
              at com.adobe.flexbuilder.project.air.AppXMLCreator.<init>(AppXMLCreator.java:80)
              at com.adobe.flexbuilder.project.air.AppXMLCreator.<init>(AppXMLCreator.java:73)
              at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.getAppXMLCreator (AppXMLFileANEExtensionHandler.java:153)
              at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.retainExtensionI ds(AppXMLFileANEExtensionHandler.java:315)
              at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.modifyAppXMLforPackaging(ANECont roller.java:371)
              at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.modifyAppXMLforPackaging(ANECont roller.java:338)
              at com.adobe.flexbuilder.project.ui.utils.ANE.AbstractANEPackageHandler.modifyAppXMLforPacka ging(AbstractANEPackageHandler.java:91)
              at com.adobe.flexide.launching.multiplatform.launchhandlers.AbstractMultiPlatformLaunchHandl er.applyNativeExtensionDetails(AbstractMultiPlatformLaunchHandler.java:164)
              at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.doPackage(ADBLaunchHan dler.java:424)
              at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.launch(ADBLaunchHandle r.java:250)
              at com.adobe.flexide.launching.multiplatform.MultiPlatformLaunchDelegate.launch(MultiPlatfor mLaunchDelegate.java:191)
              at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch(AbstractFlexLaunchDelegate. java:244)
              at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch(AbstractFlexLaunchDelegate. java:134)
              at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
              at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
              at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)
              at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
              at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/NewOne-debug/NewOne-app.xml' does not exist.
              at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:320)
              at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:194)
              at org.eclipse.core.internal.resources.File.getContents(File.java:287)
              at org.eclipse.core.internal.resources.File.getContents(File.java:278)
              at com.adobe.flexbuilder.project.air.internal.xml.ApplicationXMLModel.<init>(ApplicationXMLM odel.java:100)
              ... 19 more
    I guess the problem is that when the application tries to run on my device, the extension is not finding the application descriptor file.  Is there anything else I need to do?
    I appreciate any help.
    Jay

    Here's the fix in case anyone else runs into this problem.  When Flash Builder is building the deployment during launch, it converts the mapped path to a mangled local path for the ane to find the descriptor to a relative path, which can't be found and throws the null pointer.  Making the Output Folder path actually local to the computer, as opposed to the default that FB creates, resolves the error, and still allows blazeds access from the device.

  • Flash Builder 4.6 Mobile Application Packaging and Exporting

    Hello Everyone,
    I'm novice to Flash builder,using Flash Builder 4.6 to develop android application.
    It runs in desktop no error occur. But when I export it or try to run it on my
    SAMSUNG GALAXY Y S5360 phone it doesn't run. It's Android version is 2.3.6
    I plugged the USB with pc and tried to run on app on my phone.
    First builder ask that Do you want to install ADOBE AIR to device I select the "YES" option then after it go for 57% and show me an error
    Error occurred while installing the applicaiton: pkg:/data/local/tmp/Runtime.apk   Failure[INSTALL_FAILED_CPU_ABI_INCOMPATIBLE] 3261 KB/s (8653085 bytes in 2.333s)
    And when I Export and Release Build for .apk file.I select the Captive Runtime.
    Then it shows a message
    The package(s) were successfully created but the application could not be installed on one or more devices:   Device ID 0123456789ABCDEF(Google Android): Problem Occurred while installing ADOBE AIR.
    Please guide me...
    Thanks

    After searching on internet and have hands on this problem, finally found the solution.
    SAMSUNG Galaxy Y S5360 has CPU 830 MHz ARMv6 and minimum requirement of minimum system requirements for AIR 3.3 Beta on Android :
    CPU: ARMv7 processor with Vector FPU, Minimum 550MHz, OpenGL ES2.0, H.264 & AAC H/W Decoders OS: Android 2.2, 2.3, 3.0, 3.1, 3.2 & 4.0 RAM: 256MB RAM
    Later I used a Motorola mobile handset with higher version my .apk file worked well.
    Click here For Samsung Galaxy Y S5360 Phone Specification
    thanks to everyone for your efforts.

  • Flash builder 4.5 + mobile apps + mx components : error#1014

    Hi everyone,
    I found about the capabilities of Flex/Air a few weeks ago and I started experimenting. I'm interested in the mobile apps in particular.
    I downloaded the final release of Flash Builder and started to "code" a few things (I am fairly new to ActionScript too).
    The thing is I have errors when launching the mobile apps on an emulator or on my Desire HD.
    Typical example is this app from Ryan Stewart : http://blog.digitalbackcountry.com/2011/03/slides-and-assets-from-adobe-refresh/
    I tried to run his CollaborationMobile App (as I want to work with LCCS) onto a device emulator thanks to Flash Builder but I get the following errors :
    VerifyError: Error #1014: Class mx.containers::Canvas could not be found.
         at flash.display::MovieClip/nextFrame()
         at mx.managers::SystemManager/deferredNextFrame()[E:\dev\hero_private\frameworks\projects\fr amework\src\mx\managers\SystemManager.as:284]
         at mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()[E:\dev\hero_private\ frameworks\projects\framework\src\mx\managers\SystemManager.as:2633]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.preloaders::Preloader/timerHandler()[E:\dev\hero_private\frameworks\projects\framework \src\mx\preloaders\Preloader.as:515]
         at flash.utils::Timer/_timerDispatch()
         at flash.utils::Timer/tick()
    VerifyError: Error #1014: Class com.adobe.coreUI.controls::RichTextArea could not be found.
         at flash.display::MovieClip/nextFrame()
         at mx.managers::SystemManager/deferredNextFrame()[E:\dev\hero_private\frameworks\projects\fr amework\src\mx\managers\SystemManager.as:284]
         at mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()[E:\dev\hero_private\ frameworks\projects\framework\src\mx\managers\SystemManager.as:2633]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.preloaders::Preloader/timerHandler()[E:\dev\hero_private\frameworks\projects\framework \src\mx\preloaders\Preloader.as:515]
         at flash.utils::Timer/_timerDispatch()
         at flash.utils::Timer/tick()
    and a few others...
    I have no clue of the reason of these errors...
    Thanks for the help

    Try to avoid using MX components in mobile apps.

  • Flash Builder 4.6 mobile connetion oracle and php

    Hi everyone im new in flash builder and as far i know Flash Builder 4.6 gives you the option to create sample PHP code, but only gives an option for a MySQL database.  Does anyone have some PHP sample code for using Oracle? I try few proyect and they work perfect but i dont know how to do it for oracle
    Thnx a lot XD

    After searching on internet and have hands on this problem, finally found the solution.
    SAMSUNG Galaxy Y S5360 has CPU 830 MHz ARMv6 and minimum requirement of minimum system requirements for AIR 3.3 Beta on Android :
    CPU: ARMv7 processor with Vector FPU, Minimum 550MHz, OpenGL ES2.0, H.264 & AAC H/W Decoders OS: Android 2.2, 2.3, 3.0, 3.1, 3.2 & 4.0 RAM: 256MB RAM
    Later I used a Motorola mobile handset with higher version my .apk file worked well.
    Click here For Samsung Galaxy Y S5360 Phone Specification
    thanks to everyone for your efforts.

  • Flash Builder 4.5 for PHP question

    Can I develop Coldfusion projects within Flash Builder 4.5 for PHP?

    You will get better answers on ther CF forum...
    Mylenium

  • How do I test flash builder app on ipad simulator?

    Hello Everyone
    I have created a mobile action script project for iOS.
    How do I test it on a simulator (ipad or iphone)?
    Thanks

    You don't install it, it's just a compressed archive. The download may have even uncompressed it for you, which would leave you with a folder. If you want to try that out if Flash Pro CS6 you should rename the folder to be AIR3.3 and put it into the Flash Pro application folder, next to the one named AIR3.2. Then use the SDK Manager in the Help menu of Flash Pro to hook it up.
    For command line work, follow that article, only  navigate to where the folder is located, to get to the ADT command file.

  • Web Root Flash Builder 4.5 mobile + PHP

    hello everyone, i just want to know how to add the address of the web root when i do a flex mobile project, when i work locally in my server i put C:\xampp\htdocs, but when when i work remotelly how can i put this address.
    for example if mi server is 200.100.1.12, and my root URL is http://200.100.1.12, how can i write de web root for this server, please help me, i dont know if i have to configure something else in the server or what i need to do, pleas any answer will be welcome.
    Thanks

    Even though I spent a lot time, still my flex app on a mobile device cannot access to db on the remote server.
    I made changes on the following files. Can you point out what was wrong? Thanks
    .flexProperties file:
    serverRoot="/var/www/vhosts/mydomain.com/httpdocs/public" serverRootURL="http://mydomain.com"
    Web host's document root is /var/www/vhosts/mydomain.com/httpdocs/public
    MyService.as file:
        protected override function preInitializeService():void
            super.preInitializeService();
            // Initialization customization goes here
              this._serviceControl.endpoint = "http://mydomain.com/gateway.php";
    MyService.php
    class MyService
        public $username = "root";
        public $password = "pwd_2";
        public $server = "xx.xx.xxx.xx";
        public $port = "3306";
        public $databasename = "testdrive_db";
        public $tablename = "mydb";
    amf_config.ini
    webroot = "/var/www/vhosts/mobilemenu.info/httpdocs/public"
    zend_path ="/usr/local/php/ZendFramework-1.11.4-minimal/library"
    library ="/var/www/vhosts/mydomain.com/httpdocs/library"
    services ="/var/www/vhosts/mydomain.com/httpdocs/services"
    [zendamf]
    amf.directories[]=services
    gateway.php
    <?php
    ini_set("display_errors", 1);
    $dir = dirname(__FILE__);
    $webroot = $_SERVER['DOCUMENT_ROOT'];
    //Web Hosting Document Root: /var/www/vhosts/mydomain.com/httpdocs/public
    $zenddir = '/usr/local/php/ZendFramework-1.11.4-minimal/library';

  • Flash Builder 4.5 Mobile Login Form needs 2 clicks???

    Hi,
    I have been working on developing an application  for the android market thta firstly requires the users to login to a  account. I have put the code together below, along with a data link to a  database in order to check the credentials. However the application  does not switch to the second view on the first click of the "Login"  button however it seems to take 2 or more clicks sometimes. I presume as  it is fetching data from a database that it takes time to be verifies,  could someeone tell me how to solve this and maybe implement a  BusyIndicator along with it?
    <![CDATA[
                   protected function login_btn_clickHandler(event:MouseEvent):void
                        var match:Boolean;
                        getEmployeesByNameResult.token = employeeService.getEmployeesByName(usr_nme_txtbox.text, pass_txtbox.text);
                        if (getEmployeesByNameResult.lastResult != null)
                             navigator.pushView(HomeView, getEmployeesByNameResult.lastResult.id);
              ]]>
    <s:Button id="login_btn" width="100%" label="Login"
                                    click="login_btn_clickHandler(event)"/>
    Thanks

    (While original poster might have found the solution or given up, I guess it's a good idea to leave the question answered)
    The service is asynchronous. You cannot check right after calling, instead you need to use a handler for reading the result.

  • Flash Builder 4.5 Mobile Apple Error

    Hi, 
    I applied the following link text.
    http://www.adobe.com/devnet/air/articles/packaging-air-apps-ios.html
    We run the application on the iPhone via iTunes like you did. 
    But when we upload it to the Apple Store, Apple returned us by the following message. 
    2.5: Apps that use non-public APIs will be rejected 
    We found the following non-public APIs in your app: 
    addTextFieldWithValue:label: 
    setRunsModal: 
    Is there a solution for this?

    Hi,
    Looks like a debug build of your application was submitted.
    You have to "Export Release" a build of your application specifically for App store submission. Look at Step 4, sub-step 3 in "Package for distribution".
    Can you confirm if you picked "Final release package for app store" in "Export Release Build"?
    -Anirudh

  • Import PSD's to Flash Builder

    I've created several screens in Adobe Photoshop (PSD), for a mobile application that I'm going to develop in Adobe Flash Builder 4.5. How do I import those PSD screens for use into my Flash Builder Flex Project?

    First question: are you planning on using your Photoshop created screen files, to cover the ENTIRE screen width/height of your Flash Builder project?  For example, a screen image set up for a Motorola Droid would need to be 480px wide X 854 px high....vs.....say a Samsung Galaxy S3 screen of 1280px X 720px.  In each case, you will need to use the multi-dpi image settings to compensate for the variety of image screens (backgrounds) that you will need.  I myself have extensive knowledge in this area, as most of my applications include heavily creative PSD graphics.
    So to begin, you will want to create a source folder to hold your images (screens).  You do this by "right clicking" on the "src" file of your newly created mobile app project, and creating a new "Folder" called simply..."assets". Once completed, your new "assets" folder will appear in the "src/source" folder.  Now, open Design View in Flash Builder...and drag an "image" component from the tray on the left...and place it on your app screen.  Constrain the top, bottom, left, and right of the image component to 0, if the dimensions of your PSD/.png graphic file are say...480 x 854. This will set your image to fill the whole app screen.  Next, we'll drag our graphic from Photoshop...and drop it into our newly created "assets" file.  After this, and while still in design mode, we'll set the source of the image, to the image we just placed into our "assets" folder.  Once that is done, click the refresh icon on the tool bar above Design Mode....and your new background will appear in your Flash Builder project.
    Of course, if you are going to use multi-dpi images for backgrounds, then we have a few more steps to cover beyond this one.
    Hope this helps you,
    Craig Workman
    Software Architect | SwitcHHat.com

  • Flash builder 4.6 : aapt tool failed - AndroidManifest.xml:33: error: Error parsing XML: not well-fo

    This is happening with a "fresh" installation of flash builder 4.6 and it's driving me crazy:  During "export release build" I get the error: "Error occurred while packaging the application: aapt tool failed: c:\users\alfonso\AppData\local\Temp[...]\AndroidManifest.xml:33: error: Error parsing XML: not well-formet (invalid token)  This happened while importing a project build into another computer.  If I create a BLANK air mobile project and I copy the application manifest on the old application EV ERYTHING WORKS FINE. As soon as I touch a single line of code in the application manifest I get the error. And also I get the error even if I UNDO the changes into the -app.xml  Any help would be really appreciated  Thanks  Alfonso Florio

    Having same issue here. In my case I'm just trying to place a local video file; hear audio, t see no video running it within Flash Builder and the ADL simulator on my Mac. It's very frustrating that everything Abobe has posted on this is targeted toward the Flash player runnung inside a damn browser... don't they realize we need a IOS solution for the 1000s of iPhones and iPads out there? Very frustrated with this.

  • Flash Builder 4.5 crashes continuously

    We have a reasonably complex AIR application, but by and large I would not say it is enormous. It compiles down to an AIR file that is around 6MB. It is broken out into about 6 different modules. We have given the java VM the maximum RAM that it will utilize without complaining (somewhere around 768MB. You can't go to 1024MB or it blows up). Yet, Flash Builder crashes constantly when trying to build, generally with "java heap space" errors. This hurts our development time siginficantly, mostly in the form of developer frustration. We are developing on Windows 7.
    I had hoped Flash Builder 4.5 would be an improvement over Flash Builder 4 in this regard. It in fact got worse.
    Is there any hope of seeing action on this?
    Kevin

    Hi Kevin,
    I've run into issues with previous versions of Flash Builder (actually when I saw this I was using Flex Builder) and overriding the default allocations seemed to help a bit: http://www.rphelan.com/2008/03/27/tweaking-compiler-performance-in-flex-builder/.  I'd recommend jumping over to the Flash Builder forums and posting the question to see if anyone has any up to date advice.
    Thanks,
    Chris

  • Deletion of Flash Builder 4.5 when installing Flash Builder 4.5 for PHP

    There is a very serious error with the Flash Builder 4.5 for PHP installer (from http://static.zend.com/topics/Flash-Builder-for-PHP-4.5.0-Release-Notes.txt ):
    If Flash Builder 4.5 (not PHP) is already installed on the machine, and the
      product (Flash Builder for PHP 4.5) is then installed in a different location,
      the user gets the "FB is installed" dialog.
      After clicking OK, the installation rolls back and removes both Flash Builder
      and Flash Builder for PHP.
    My questions:
    Can Flash Builder 4.5 for PHP be installed in the same location without deleting Flash Builder 4.5? If so, please define "location."
    Is there a workaround for installing both flavors of Flash Builder 4.5 and avoiding the deletion issue described above?
    Can a single do-it-all version of Flash Builder 4.5 be installed that combines the SDKs and features of both flavors of the Flash Builder 4.5 product?

    Hi Mike,
    Could you please send the following log files so we identify the exact problem and hopefully help you quickly:
    Windows:
    1.       <path_to_adobe_fbphp>/_Flash Builder 4.5 for PHP.log
    2.       Logs located under C:\Program Files\Common Files\Adobe\Installer\
    Max OSX:
    1.       <path_to_adobe_fbphp>/_Flash Builder 4.5 for PHP.log
    2.       Logs located under /Library/Logs/Adobe/Installers/
    Thanks for sharing this,
    Roy

Maybe you are looking for

  • Apps updates/downloads saved in wrong folder

    Hi, I have just transferred my iTunes library to my new NAS (WD MyCloud). I simply copied over my entire iTunes folder from the iMac internal hard drive to the NAS, deleted all the content from iTunes and added everything back from the new location/f

  • How to get a summarized mail traffic report in exchange 2013

    Hi all How to calculate the exchange 2013 SMTP mail traffic in terms of hour,day,month,top senders,largest message and top recipients list . Same time we would like to have those summarized mail traffic report for all the mailbox servers in the form

  • Older Projection TV without HDMI ports

    Hello, I was recently given a 65 inch HDTV ready Projection screen tv.  Here is the link for the model. http://dprojection-hdtv.blogspot.com/2011/07/toshiba-65h82-65-inch-169-hdtv-ready.html.  It is I would like to say 7 years old and does not have h

  • On the ipad2, can I access itunes library without first opening the Itunes store

    I commute with an IPad2 and there are times I cannot pick up an Internet connection. Is there a desktop shortct that would let me get into the Itunes Library without going through the Store, which will not open when there is not Internet connection?

  • Install officejet 4500 g510g-m

    im trying to install the office jet 4500 all in one to my computer please help to install This question was solved. View Solution.