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.
Similar Messages
-
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 XDAfter 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. -
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.
JayHi,
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 -
prefer-application-packages and prefer-web-inf-classes not working
Hi,
I'm upgrading to Weblogic 10.3.2 an application that was running quite fine in Weblogic 8. But I don't manage to get it working in WL 10. I'm getting a Class Not Found error (javax/xml/stream/XMLStreamWriter) but that class is in one of the jar files of my application: "<war-file>/WEB-INF/lib"
It seems a class loading problem but I'm using both <prefer-application-packages> and <prefer-web-inf-classes> and it's still not working. This is my weblogic-application.xml:
<?xml version='1.0' encoding='UTF-8'?>
<weblogic-application>
<prefer-application-packages>
<package-name>javax.xml.stream.*</package-name>
</prefer-application-packages>
</weblogic-application>
I'm deploying using an ear file wich contains a war file.
Logs:
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/cxf/cxf.xml]; nested exception is java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamWriter
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:109)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:131)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:109)
at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:263)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:91)
at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:102)
at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)
... 57 more
Caused by: java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamWriter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:42)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at org.apache.cxf.bus.spring.TunedDocumentLoader.loadDocument(TunedDocumentLoader.java:112)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
... 70 more
Caused by: java.lang.ClassNotFoundException: javax.xml.stream.XMLStreamWriterHi!
We have the jar xbean-2.2.0.jar in APP-INF/lib. That one contains the class javax.xml.namespace.NameSpaceContext. I saw that the same class was in another jar as well. I've removed it from the second jar and now it's only in the xbean-2.2.0.jar. But I still get the same error. Maybe there is something wrong in my application.xml? I have all the jars in APP-INF/lib and in <war-file>/WEB-INF/lib
Application.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
<application id="Application_ID">
<display-name>RaadgiverPM</display-name>
<module>
<web>
<web-uri>rpm.war</web-uri>
<context-root>/raadgiverPM</context-root>
</web>
</module>
<library-directory>lib</library-directory>
</application>
2010-09-06 11:05:07,856 735360 [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR no.delfidata.dr.wsclients.drwsclients.DRWebServiceClient - [DELFI] Failed to initialize client at http://172.16.10.113:8090/mockRpmGrpMemberRltnpLSvo_Binding?wsdl
java.lang.RuntimeException: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/cxf/cxf.xml]; nested exception is java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.cxf.staxutils.W3CDOMStreamWriter.getNamespaceContext()Ljavax/xml/namespace/NamespaceContext;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/apache/cxf/staxutils/W3CDOMStreamWriter, and the class loader (instance of <bootloader>) for interface javax/xml/stream/XMLStreamWriter have different Class objects for the type javax/xml/namespace/NamespaceContext used in the signature
at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:96)
at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:86)
at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:64)
at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53)
at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:69)
at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:106)
at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:97)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.newInstance(DynamicClientFactory.java:132)
at groovyx.net.ws.AbstractCXFWSClient.createClient(AbstractCXFWSClient.java:198)
at groovyx.net.ws.WSClient.initialize(WSClient.java:107)
at groovyx.net.ws.IWSClient$initialize.call(Unknown Source)
at no.delfidata.dr.wsclients.drwsclients.DRWebServiceClient.initializeClient(DRWebServiceClient.groovy:47)
at no.delfidata.dr.wsclients.drwsclients.DRWebServiceClient$initializeClient$0.callCurrent(Unknown Source)
at no.delfidata.dr.wsclients.drwsclients.DRWebServiceClient.initializeClient(DRWebServiceClient.groovy:37)
at no.delfidata.dr.wsclients.drwsclients.DRWebServiceClient$initializeClient.callCurrent(Unknown Source)
at no.delfidata.dr.wsclients.drwsclients.DRWebServiceClient.<init>(DRWebServiceClient.groovy:33)
at no.delfidata.dr.wsclients.drwsclients.GenericWebServiceClient.<init>(GenericWebServiceClient.groovy:12)
at no.delfidata.dr.drintstd.channel.GenericWSClientManager.getClient(GenericWSClientManager.java:28)
at no.delfidata.dr.drintstd.channel.impl.WSChannelImpl.getData(WSChannelImpl.java:46)
at no.delfidata.dr.drintstd.integrationadapter.impl.AdapterWSImportRpmGrpMemberRltnpLSvo.getDataFromChannel(AdapterWSImportRpmGrpMemberRltnpLSvo.java:74)
at no.delfidata.dr.drintstd.integrationadapter.AbstractIntegrationAdapter.getDataImportFromChannel(AbstractIntegrationAdapter.java:232)
at no.delfidata.dr.drintstd.integrationadapter.AbstractIntegrationAdapter.getData(AbstractIntegrationAdapter.java:173)
at no.delfidata.dr.drintstd.integrationengine.impl.IntegrationEngineImpl.importData(IntegrationEngineImpl.java:113)
at no.delfidata.dr.drsvcstd.integration.impl.IntegrationServiceImpl.importCustomerData(IntegrationServiceImpl.java:117)
at no.delfidata.dr.drsvcstd.integration.impl.StartUpService.openAndImportCustomer(StartUpService.java:81)
at no.delfidata.dr.drstdgui.gui.control.ReceivingServletAction.execute(ReceivingServletAction.java:135)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at no.delfidata.dr.drbasis.gui.filter.MenuFilter.doFilter(MenuFilter.java:78)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at no.delfidata.common.gui.filter.SecurityFilter.doFilter(SecurityFilter.java:265)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/cxf/cxf.xml]; nested exception is java.lang.LinkageError: loader constraint violation
in interface itable initialization: when resolving method "org.apache.cxf.staxutils.W3CDOMStreamWriter.getNamespaceContext()Ljavax/xml/namespace/NamespaceContext;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/apache/cxf/staxutils/W3CDOMStreamWriter, and the class loader (instance of <bootloader>)
for interface javax/xml/stream/XMLStreamWriter have different Class objects for the type javax/xml/namespace/NamespaceContext used in the signature
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:109)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:131)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:109)
at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:263)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:91)
at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:102)
at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)
... 48 more
Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.cxf.staxutils.W3CDOMStreamWriter.getNamespaceContext()Ljavax/xml/namespace/NamespaceContext;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/apache/cxf/staxutils/W3CDOMStreamWriter, and the class loader (instance of <bootloader>) for interface javax/xml/stream/XMLStreamWriter have different Class objects for the type javax/xml/namespace/NamespaceContext used in the signature
at org.apache.cxf.bus.spring.TunedDocumentLoader.loadDocument(TunedDocumentLoader.java:112)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
... 61 more -
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.
JayHere'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 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. -
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 helpTry to avoid using MX components in mobile apps.
-
Flash Builder 4.5, Parsley 2.4 and profiling crashing
Hi,
I have been having a lot of grief with FB 4.5 profiler failing on a socket connection where I am profiling an app that uses Parsley 2.4. Initially I thought the problem was related to some characterisitic of the application and/or the machine I am profiling from. However, I can across a bug opened on the Parsley 2.4 core.
http://opensource.powerflasher.com/jira/browse/PSL-658;jsessionid=1C0A79D177980E4E5D0F6D35 F1BA4CAD?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
Is the finger pointing at FB 4.5 accurate? If so, is there a fix available or planned?
Thanks,
SteveWell, sort of. Flash Builder profiler will fail if there are too many objects to profile. Adding Parsley puts a load on the profiler, but so can any framework or tons of code.
IMHO, if FlashBuilder is failing (and you’ve tried to give it as much memory as you can) it is actually a sign that your app needs re-factoring so there aren’t as many objects around at any given time. -
Flash Builder 4 super slow when Workspace and Project is on Network Drive
Hi I was wondering if maybe it is not common practice to create a workspace and project in a Network Drive? When I do this Flash Builder runs extremely slow ( build workspace slow, saving slow, code hinting slow, undo slow, etc, etc, etc). Very painful!
When I place the same project locally on my C drive everything runs fine. So should I not be running things off the network? I would really like to since all my files are on the network with backup system. Can anyone offer some advice? Or maybe I need to optimize something? Thanks
- DHi.
Having your workspace and project on a network drive is not recommended as Flash Builder writes and reads a lot from the workspace and that will be slow.
A version control system such as svn or git with a repository hosted on your network drive should be perfectly fine. (You only take the hit when you check in and check out)
-Anirudh -
Flash Builder 4 beta 2, Managed objects and IUID
Hey Everyone,
I just installed Flash Builder 4 beta 2, I am getting compiler errors now on my managed data service classes that implement IUID:
[Managed]
public class Foo implements IUID {
private var uid:String;
public function set uid(value:String):void {
this.uid=value;
The compile error is on the above setter and says: [Managed] requires 'uid' to be of type 'String' , not sure what I am doing wrong here, and this was working on beta 1, any ideas?
Thanks.Did you try a full clean and build? Also try a new test app to reduce the number of possibilities.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
Flash Builder 4.5 with Firefox - crashes and no performance data. How to fix?
I am an experienced Flex developer, but new to the Flash Builder 4.5 Profiler. I'm using Firefox 5.0 and Shockwave Flash 10.2.153.1. Windows XP.
I have several problems:
1) in the profile view during a run, the buttons are dimmed and therefore I cannot "Capture Performance Profile".
2) almost every time I run, the Flash Player in Firefox crashes (And now worse, using that same profile, Firefox crashes randomly, but quickly on ANY web pages. I smell a re-install of Firefox coming.)
3) there is the option to configure for the Standalone Flash Player and a browser. How do I say WHICH one to use for a given profile run?
If I configure the browser to be IE, Firefox runs anyway.
Any ideas? Suggestions? Thanks for the time.
Message was edited by: ozDiGennaroI have solved the crash by reinstalling the latest Flash Player.
The configuration issue is not as important.
The solution was simple. In the "Profile" view, select the "[Running]" instance. This enables the important buttons, like "Capture".
This causes a "Performance Profile" line to appear, linked to the running instance. Double click to view the info.
Thanks for listening.
Oz -
Cloud thinks I have Flash builder installed, so i cant download and install it
I have a new pc, with my old network profile.
I need to use flash builder, but cloud thinks I have it installed.
As a result I cant download it or install it.
Under apps in Cloud controll panel it informs me that Flash builder premium is up to dateCC desktop lists applications as "Up to Date" when they are not
-http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html -
Applescript: Packaging and exporting PDFs for multiple files -- need some tweaks
I found and tweaked a droplet script that isn't quite working right. I am hoping for some help with getting it to work the way I want. I tried and failed to learn to do this myself. Your help is greatly appreciated!
Here's an example: I drag two files called "filename.indd" and "filename2.indd" onto the droplet. The script I have right now will output the packages and PDFs into the following folder structure:
export folder
filename folder
filename.pdf
filename folder
filename.indd
[Package contents]
filename2 folder
filename2.pdf
filename2 folder
filename2.indd
[Package contents]
Here's the folder structure I need (using a dialog box or script that intelligently knows that the directory to save in is the same as the files I dragged on to the droplet would be amazing):
dialog box to choose new directory set to baseFolder
or
baseFolder <---- set to the current directory of the files I dragged onto the droplet
filename folder
filename.indd
[Package contents]
PDF folder <--------new folder "PDF" created
filename.pdf
filename2 folder
filename2.indd
[Package contents]
PDF folder <--------new folder "PDF" created
filename2.pdf
Here's a script I found and modified:
property baseFolder : (path to desktop as text) & "exports:"
on open mgItems
repeat with mgThisItem in mgItems
tell application id "com.adobe.InDesign"
try
open mgThisItem
set mgDocName to name of active document
set text item delimiters of AppleScript to ".indd"
set mgShortName to text item 1 of mgDocName
set targetFolderPath to my createFolder(mgShortName)
set text item delimiters of AppleScript to ""
set mgPackageFilePath to targetFolderPath & mgShortName as string
set mgProofFilePath to mgPackageFilePath & ".pdf" as string
set properties of PDF export preferences to properties of PDF export preset "[Smallest File Size]"
tell the active document to export format PDF type to mgProofFilePath without showing options
tell the active document to package to mgPackageFilePath with copying fonts, ignore preflight errors, copying profiles, updating graphics, including hidden layers, copying linked graphics and creating report
close active document saving no
on error e
display dialog e
end try
end tell
end repeat
display dialog "PDFs created and InDesign file packaged"
end open
on createFolder(nameString)
set macFolderPath to baseFolder & nameString
do shell script "mkdir -p " & quoted form of POSIX path of macFolderPath
return macFolderPath & ":"
end createFolder
Thanks very much!...anyone? :\
-
CS5.5 Flash Builder will not open after unistallation and reinstallation
10.8 up to date...
I have been fighting with CS5.5 on 10.8 since august 8th! Adobe helped somewhat, by helping me assure permissions were correctly set on their files. However, when i go back into the get info window , once in a while instead of seeing one of the admin users (myself and my husband) listed, I see a "fetching" in the user name colum. it just keeps searching and never stops. I have to delete the fecting and manually add our admin accounts to the permissions list. Also, in my user home folder the applications file is empty, but I can access all the apps from the HD or doc/apps alias. Is this a new thing for 10.8?
So I am down to this..., only Flash Buidler 4.5 will not open. I think it has somethings to do with the extensions. The software is up to date. Flash reinstalled, unistalled FB 4.5 and reinstalled from disk. Deleted and re-downloaded/ installed eclipse app. Niether of the original app disks have the extensions forder on it. I went to the Adobe sight and dowloaded their version of the extras (Flex builder extension, i think .)
Adobe help articles say to make sure the ...
Following installation it is recommended that you edit the eclipse.ini file for your Eclipseinstance, so that it includes the following settings:
-vmargs -Xms256m -Xmx512m -XX:MaxPermSize=256m -XX:PermSize=64m "
I have no idea how to do this. I found the file once, though I did not know how to open and edit it.
Below, is a weird list of error messages from disk repair log:
2012-08-18 23:21:11 -0500: Verifying volume “Macintosh HD”
2012-08-18 23:21:11 -0500: Starting verification tool:
2012-08-18 23:21:12 -0500: Checking file system2012-08-18 23:21:12 -0500: Performing live verification.
2012-08-18 23:21:12 -0500: Checking Journaled HFS Plus volume.
2012-08-18 23:23:40 -0500: Checking extents overflow file.
2012-08-18 23:23:40 -0500: Checking catalog file.
2012-08-18 23:23:40 -0500: Checking multi-linked files.
2012-08-18 23:23:40 -0500: Checking catalog hierarchy.
2012-08-18 23:23:40 -0500: Checking extended attributes file.
2012-08-18 23:23:40 -0500: Checking volume bitmap.
2012-08-18 23:23:40 -0500: Checking volume information.
2012-08-18 23:23:41 -0500: The volume Macintosh HD appears to be OK.
2012-08-18 23:23:41 -0500: Repair tool completed:
2012-08-18 23:23:41 -0500:
2012-08-18 23:23:41 -0500:
2012-08-18 23:24:03 -0500: Repairing permissions for “Macintosh HD”
2012-08-18 23:26:43 -0500: Warning: SUID file “System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent” has been modified and will not be repaired.
2012-08-18 23:27:48 -0500: ACL differs on “Users/Shared”
2012-08-18 23:27:48 -0500: Repaired “Users/Shared”
2012-08-18 23:27:49 -0500: ACL found but not expected on “private/var/root”
2012-08-18 23:27:49 -0500: Repaired “private/var/root”
2012-08-18 23:27:49 -0500: ACL found but not expected on “private/var/root/Library”
2012-08-18 23:27:49 -0500: Repaired “private/var/root/Library”
2012-08-18 23:27:49 -0500: ACL found but not expected on “private/var/root/Library/Preferences”
2012-08-18 23:27:49 -0500: Repaired “private/var/root/Library/Preferences”
2012-08-18 23:28:09 -0500: Group differs on “private/var/root/Library/Preferences/.GlobalPreferences.plist”; should be 0; group is 20.
2012-08-18 23:28:09 -0500: Repaired “private/var/root/Library/Preferences/.GlobalPreferences.plist”
2012-08-18 23:28:16 -0500:
2012-08-18 23:28:16 -0500: Permissions repair complete
2012-08-18 23:28:16 -0500:
ANY advice is most appreciated. I cannot bear the thought of calling Adobe again!VA Girl wrote:
Also, in my user home folder the applications file is empty, but I can access all the apps from the HD or doc/apps alias. Is this a new thing for 10.8?
OS X has two Applications: one in your user folder and the other at the top of the volume. Applications are installed in /Applications, and you should use the user folder for applications that you are going to open in your account only, and not in another one.
Open Java Preferences and install it -
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
Maybe you are looking for
-
Data not matching at RSA3 and in PSA
Hi Guru's I am loading data from 0FI_AA_12, When i hv checked at rsa3 selections as Deparea-31,BUKURS- tr01, Fy/period- from 2006001 to 2035012.i can see the record Deprarea Asset Compcode NFAZ fiscal/period 31 155000008487 TR0
-
Upload flat file to a variable when creating a variant or broadcast setting
Hello Experts, Our users have recently begun to use the Broadcast E-Mail (Bursting) settings. On the Recipient Determination tab, some settings have the "Selection of Characteristic Values" set to "By Following Selection" and some have it set to "By
-
Call Developer 2000 Reports/Forms from PL/SQL stored proc.
Hello all, I am searching for a method for a stored procedure on Oracle 8.0 to call a Oracle Developer 2000 Report or Form. Any suggestions, Thanks, Julian
-
No batch split performed for delivery, instead 2 items
Hi, I have batch managed materials and during creation of the delivery, the system does not create a batch split, instead it created 2 seperate line items for each batch. This is causing problems during EDI invoicing (intracompany): the same item mul
-
Adding 100 photos? Resizing large images.
(I think I did this successfully a year ago but the same steps didn't work now.) I am starting a new presentation with lots of high-resolution photos. How do I create a batch of slides with photos auto-sized to fit into or fill the slide? Dragging a