Quantcast
Channel: Adobe Community : Popular Discussions - Using Flash Builder
Viewing all 70427 articles
Browse latest View live

FlashBuilder4 eclipse plugin for Eclipse Helios 64 bit version

$
0
0

Hello,

 

I installed FlashBuilder4 trial version which is not a standalone application but rather eclipse plugin, in my latest Eclipse installation which is Eclipse Helios 64 bit version. The installation went on smoothly but after i restarted my Eclipse instance and upon clicking the Flex module from Properties menu it popped up quite a few issues.

 

I did some research and came to know that Adobe is not supporting 64 bit version of Eclipse.

 

My question is whether it is a problem or am i missing something. Was anyone able to make the FlashBuilder4 work with Eclipse Helios 64 bit version. If not is there any chance of Adobe releasing the plugin which will work in Eclipse 64 bit. This is rather important for us since we are looking to port our application infrastructure to use 64 bit Eclipse, JVM etc and if Adobe is not supporting that it will become a show stopper for us and we have to fall upon using 2 different IDE(s) as a last resort.

 

Looking forward to  hear from Adobe people soon with few silver linings!!!!!

 

Here are my system details:

 

Windows XP SP2 64 bit professional edition, 8 gb RAM, 2.93 Ghz

 

I tried to make it work on Eclipse Helios JEE 64 bit version with Adobe FlashBuilder4 trial version.

 

Here is the stacktrace that i could retrieve from my Eclipse Log file hope this helps:

 

!ENTRY org.eclipse.osgi 4 0 2010-07-06 00:39:06.330

!MESSAGE An error occurred while automatically activating bundle com.adobe.flexbuilder.project (1075).

!STACK 0

org.osgi.framework.BundleException: Exception in com.adobe.flexbuilder.project.internal.FlexProjectCore.start() of bundle com.adobe.flexbuilder.project.

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(Bundl eContextImpl.java:806)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextI mpl.java:755)

    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java :370)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.ja va:284)

    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)

    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java: 265)

    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass (EclipseLazyStarter.java:106)

    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathMa nager.java:453)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(Default ClassLoader.java:216)

    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java: 393)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.ja va:469)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClass Loader.java:107)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

    at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)

    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:2 32)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundl e.java:1197)

    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableEx tension(RegistryStrategyOSGI.java:174)

    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension( ExtensionRegistry.java:904)

    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtensi on(ConfigurationElement.java:243)

    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableE xtension(ConfigurationElementHandle.java:55)

    at org.eclipse.core.internal.events.BuildManager.instantiateBuilder(BuildManager.j ava:784)

    at org.eclipse.core.internal.events.BuildManager.initializeBuilder(BuildManager.ja va:737)

    at org.eclipse.core.internal.events.BuildManager.getBuilder(BuildManager.java:482)

    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)

    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)

    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)

    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java: 311)

    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)

    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)

    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)

    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Caused by: java.lang.NoClassDefFoundError: com/adobe/flexbuilder/utils/osnative/NativeControl

    at com.adobe.flexbuilder.project.internal.PlayerTrustStore.getUserFlashPlayerTrust Folder(Unknown Source)

    at com.adobe.flexbuilder.project.internal.PlayerTrustStore.<init>(Unknown Source)

    at com.adobe.flexbuilder.project.internal.PlayerTrustStore.getInstance(Unknown Source)

    at com.adobe.flexbuilder.project.internal.FlexProjectCore.start(Unknown Source)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextI mpl.java:783)

    at java.security.AccessController.doPrivileged(Native Method)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(Bundl eContextImpl.java:774)

    ... 33 more

Caused by: java.lang.ClassNotFoundException: com.adobe.flexbuilder.utils.osnative.NativeControl

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.ja va:506)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClass Loader.java:107)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

    ... 40 more

Root exception:

java.lang.NoClassDefFoundError: com/adobe/flexbuilder/utils/osnative/NativeControl

    at com.adobe.flexbuilder.project.internal.PlayerTrustStore.getUserFlashPlayerTrust Folder(Unknown Source)

    at com.adobe.flexbuilder.project.internal.PlayerTrustStore.<init>(Unknown Source)

    at com.adobe.flexbuilder.project.internal.PlayerTrustStore.getInstance(Unknown Source)

    at com.adobe.flexbuilder.project.internal.FlexProjectCore.start(Unknown Source)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextI mpl.java:783)

    at java.security.AccessController.doPrivileged(Native Method)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(Bundl eContextImpl.java:774)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextI mpl.java:755)

    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java :370)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.ja va:284)

    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)

    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java: 265)

    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass (EclipseLazyStarter.java:106)

    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathMa nager.java:453)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(Default ClassLoader.java:216)

    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java: 393)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.ja va:469)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClass Loader.java:107)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

    at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)

    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:2 32)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundl e.java:1197)

    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableEx tension(RegistryStrategyOSGI.java:174)

    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension( ExtensionRegistry.java:904)

    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtensi on(ConfigurationElement.java:243)

    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableE xtension(ConfigurationElementHandle.java:55)

    at org.eclipse.core.internal.events.BuildManager.instantiateBuilder(BuildManager.j ava:784)

    at org.eclipse.core.internal.events.BuildManager.initializeBuilder(BuildManager.ja va:737)

    at org.eclipse.core.internal.events.BuildManager.getBuilder(BuildManager.java:482)

    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)

    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)

    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)

    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java: 311)

    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)

    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)

    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)

    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Caused by: java.lang.ClassNotFoundException: com.adobe.flexbuilder.utils.osnative.NativeControl

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.ja va:506)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClass Loader.java:107)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

    ... 40 more

 

!ENTRY org.eclipse.core.resources 4 2 2010-07-06 00:39:07.611

!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".

!STACK 0

java.lang.NoClassDefFoundError: com/adobe/flexbuilder/project/internal/ApplicationResourceListener$1

    at com.adobe.flexbuilder.project.internal.ApplicationResourceListener.resourceChan ged(Unknown Source)

    at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager. java:291)

    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

    at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager .java:285)

    at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(Notificat ionManager.java:149)

    at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.jav a:327)

    at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1181)

    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:157)

    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)

    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNo tFoundException: An error occurred while automatically activating bundle com.adobe.flexbuilder.project (1075).

    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass (EclipseLazyStarter.java:121)

    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathMa nager.java:453)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(Default ClassLoader.java:216)

    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java: 393)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.ja va:469)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClass Loader.java:107)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

    at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)

    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:2 32)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundl e.java:1197)

    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableEx tension(RegistryStrategyOSGI.java:174)

    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension( ExtensionRegistry.java:904)

    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtensi on(ConfigurationElement.java:243)

    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableE xtension(ConfigurationElementHandle.java:55)

    at org.eclipse.core.internal.events.BuildManager.instantiateBuilder(BuildManager.j ava:784)

    at org.eclipse.core.internal.events.BuildManager.initializeBuilder(BuildManager.ja va:737)

    at org.eclipse.core.internal.events.BuildManager.getBuilder(BuildManager.java:482)

    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)

    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)

    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)

    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java: 311)

    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)

    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)

    ... 2 more

Caused by: org.osgi.framework.BundleException: Exception in com.adobe.flexbuilder.project.internal.FlexProjectCore.start() of bundle com.adobe.flexbuilder.project.

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(Bundl eContextImpl.java:806)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextI mpl.java:755)

    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java :370)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.ja va:284)

    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)

    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java: 265)

    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass (EclipseLazyStarter.java:106)

    ... 27 more

Caused by: java.lang.NoClassDefFoundError: com/adobe/flexbuilder/utils/osnative/NativeControl

    at com.adobe.flexbuilder.project.internal.PlayerTrustStore.getUserFlashPlayerTrust Folder(Unknown Source)

    at com.adobe.flexbuilder.project.internal.PlayerTrustStore.<init>(Unknown Source)

    at com.adobe.flexbuilder.project.internal.PlayerTrustStore.getInstance(Unknown Source)

    at com.adobe.flexbuilder.project.internal.FlexProjectCore.start(Unknown Source)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextI mpl.java:783)

    at java.security.AccessController.doPrivileged(Native Method)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(Bundl eContextImpl.java:774)

    ... 33 more

Caused by: java.lang.ClassNotFoundException: com.adobe.flexbuilder.utils.osnative.NativeControl

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.ja va:506)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClass Loader.java:107)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

    ... 40 more

 

~ Saurabh


Can't Connect to Remote MySQL (60)

$
0
0

I'm trying to connect my project to a remote mysql database, but I'm getting this error:

 

Server error Can't connect to MySQL server on 'ipaddress' (60)

 

I'm using the same connection settings that we use on our regular non-flash website. Doesn't anyone know what 60 means?

Cannot find Flash Builder 4.5 Plugin Installation!!

$
0
0

I am trying to install FB 4.5 as Plug-in, and I could only find Standalone installation from Adobe.com.  The standalone download page refers a link, Release Notes, that contains information on Plug-in installation, but the Release Notes results a 404.  This has been going on for the past two days.  Please help.

 

Tangent

Setting background image on Flash Builder 4.5 application

$
0
0

Hi,

 

I would like to set a background image on my Flash Builder 4.5 application. Does anyone know how to do this? Haven't seen an example that does this. Flex 3 made this very easy to do, but not 4.5

 

 

Thanks

Unable to load style(SWF is not a loadable module)

$
0
0

While devoloping an App voor iOS we decided to use several StyleSheets.

 

We are implementing the loading of Stylesheets as:

 

event_dispatcher:IEventDispatcher = this.styleManager.loadStyleDeclarations2("assests/styles/default.swf");

 

 

 

event_dispatcher.addEventListener(StyleEvent.COMPLETE, OnStyleLoaded);

event_dispatcher.addEventListener(StyleEvent.ERROR, OnStyleError);

 

running the app on the desktop simulators work fine.

 

packaging the app with package method fast, and running the app on an iphone4 works fine.

 

packaging the app with package method standaard, and running the app on an iphone4 gives an error:

Unable to load style(SWF is not a loadable module): assets/styles/default.swf.

 

Is there something im missing? Why does it work when packaging as Fast, and not as Standard?

Flash Builder looks blurry on Macbook Pro with Retina displays

$
0
0

Hello,

 

Flash Builder interface looks blurry on MacBook Pro with Retina displays.

 

Here is the screenshot:

 

http://i.imgur.com/qMmmu.png

 

Expand the image to the actual size, and notice that Flash Builder interface looks blurry.

 

Please fix this issue.

 

Andrey

Signing native installer with Apple's Developer ID certificate

$
0
0

I am trying to sign my AIR OSX application using Flash Builder's 4.6 "Export Release Build" option. For this purpose I am using Apple's "Developer ID Application" certificate to be able to install and run my app on OSX 10.8 Mountain Lion.

 

After identifying correct certificates in the chain and exporting them all to p12 format (I chose "Developer ID Application", "Developer ID Certification Authority" and "Apple Root CA" within Keychain Access application on my Mac) I got the following error: "Error creating native installer file: Packaging failed. Make sure your computer time is in sync and your certificate is valid".

 

Does anybody has idea how to successfully sign AIR application using Developer ID certificates?

Run/Debug on a device with Flash Builder 4.7 on OSX 10.9 (Mavericks) and iOS7

$
0
0

I am having trouble launching my Actionscript Mobile Project on a device which has iOS7 installed. It recieved this error.

 

Error occurred while installing the application:
Invalid <device> specified

 

 

I can still deploy to my other device with iOS6, I'm running FB4.7 and OSX 10.9. Has anyone else seen this?


Apache Flex SDK 4.14.0

$
0
0

Apache Flex 4.14 Released! : Apache Flex

 

Apache Flex 4.14 is a update to Apache Flex 4.13.0 and follows the trend of compatibility of Adobe Flex 4.6. Apache Flex 4.14 adds support for the latest Flash Player and AIR runtimes, promises, native support for tables in TLF, the Spark RichTextEditor component, FlatSpark skins and components, and iOS7 and Android 4.x mobile themes.

 

Apache Flex is available in source form from the following download page:
http://flex.apache.org/download-source.html

 

You can read the release notes from the following page to find out what has changed from the last version:
http://www.apache.org/dist/flex/4.14.0/RELEASE_NOTES

 

It's recommended you install Apache Flex by using the Apache Flex IDE installer:
http://flex.apache.org/installer.html

 

When downloading from a mirror site, please remember to verify the downloads using signatures or MD5 hashes.

For more information on Apache Flex, visit the project home page:
http://flex.apache.org

CameraRoll.browseForImage() does nothing

$
0
0

I'm developing on an iPad Mini with iOS 8.1.3 and using Adobe AIR 17.0.0.144. When I call browseForImage() the screen seems to flicker (only the first time I call it) but do anything. Touching anywhere on the screen will trigger a CANCEL event from the CameraRoll as if it were open but hidden. Is anyone else seeing this? I hope this can be fixed soon.

 

Thanks,

Shane

Can I use Flash 8 to make animations in a different program?

$
0
0

It appears that you can download Flash 8 for free and seemingly legally. Would I be allowed to use this version to make animation frames for a different program to make a game and then publish it? I mean just exporting the frames as pdf files.

 

Thanks

Using iOS Simulator via Flash Builder on OS X 10.9 Mavericks

$
0
0

Hey Everyone,

 

You will find that if you have updated to OS X Mavericks (currently BETA 13/05/13) the iOS Simulator will not activate from the Flash Builder IDE. FB will prompt to saying you need to enable assistive devices but Mavericks has removed this option from the Universal Access option in the system preferences.


Here is the work around:

 

Activate System Events:

System Preferences > Security & Privacy > Privacy > Accessibility > Tick System Evenh

 

There is no need to restart Flash Builder the simulator should now just work fine.

 

 

Hope that helps prevent a lost few minutes on the old google machine.

error 213:10

$
0
0

After installing a trial Flash Builder 4 windows standalone version, I get error box saying "A problem has occured with the licensing of this product..." with error code 213:10.

Can someone shed light on how to fix it?

Thanks

Air to C Native Extention - Error #3500

$
0
0

Hello, I'm new to the Adobe Forums, and I was hoping I could get some help with the Native Extension I am trying to build to connect a C dll to an Air project with Flash Builder 4.6.  This is a simple hello world project, so I wasn't expecting such complications.

 

If you want to take a look, this is the tutorial I followed: http://quetwo.com/2011/12/10/creating-a-windows-air-native-extension-with-eclipse-part-4/

 

Now, I managed to:

1. Write the C files (SampleANE.c and SampleANE.h) using MinGW

2. Generate the .dll file (libSampleANE.dll release version)

3. Write the actionscript class (SampleANE.as) and its descriptor file (descriptor.xml)

4. Compile said files into an .ane file using adt from the Flash Builder library (Note: I properly extracted the library.swf)

5. Include that .ane file within a flex project using the built-in Native Extention handler

6. And write a simple flex program that uses the functions (SampleANEProject.mxml and SampleANEProject-app.xml)

 

Whenever I try to call any function from the native C, however, I receive the error...

 

ArgumentError: Error #3500: The extension context does not have a method with the name isSupported.    at flash.external::ExtensionContext/_call()    at flash.external::ExtensionContext/call()    at com.tfirk118.samples.ANESample::SampleANE/isSupported()[C:\Users\owner\Adobe Flash Builder 4.6\SampleANELib\src\com\tfirk118\samples\ANESample\SampleANE.as:25]    at SampleANEProject/isANESupported()[C:\Users\owner\Adobe Flash Builder 4.6\SampleANEProject\src\SampleANEProject.mxml:19]    at SampleANEProject/___SampleANEProject_Button1_click()[C:\Users\owner\Adobe Flash Builder 4.6\SampleANEProject\src\SampleANEProject.mxml:40]

 

where "isSupported" could be any function I tried to define.

 

From debugging my code, I'm certain the Flex portion and the ActionScript portion are working perfectly as far as the calling of functions.  The ActionScript also seems to grab a ExtentionContext object from ExtentionContext.getExtentionContext(...), as _ExtentionContext isn't receiving null.

 

I'll post my code for all my files down here (sorry if this isn't proper etiquette, but I'm trying to be thorough):

 

SampleANE.h

 

#ifndef SAMPLEANE_H_
#define SAMPLEANE_H_

#include "FlashRuntimeExtensions.h"        // Import the Adobe Headers so we can program our ANE    __declspec(dllexport) void initializer(void** extData, FREContextInitializer* ctxInitializer, FREContextFinalizer* ctxFinalizer);    __declspec(dllexport) void finalizer(void* extData);

#endif /* SAMPLEANE_H_ */

 

SampleANE.c

 

//For ANE Setup
#include "FlashRuntimeExtensions.h"
#include "stdlib.h"
#include "SampleANE.h"

//Extra
#include "String.h"

FREObject isSupported(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[])
{
    FREObject result;    uint32_t isSupportedInThisOS = 1;    FRENewObjectFromBool(isSupportedInThisOS, &result);    return result;
}

FREObject getTestString(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[])
{
    FREObject result;    const char *str = "This is a test string from ANE!";    FRENewObjectFromUTF8(strlen(str)+1, (const uint8_t*)str, &result);    return result;
}

FREObject getHelloWorld(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[])
{
    FREObject result;    const char *str = "Hello World! This is your DLL talking!";        FRENewObjectFromUTF8(strlen(str)+1, (const uint8_t*)str, &result);    return result;
}

void contextInitializer(void* extData, const uint8_t* ctxType, FREContext ctx, uint32_t* numFunctions, const FRENamedFunction** functions)
{
    *numFunctions = 3;    FRENamedFunction* func = (FRENamedFunction*) malloc(sizeof(FRENamedFunction) * (*numFunctions));    func[0].name = (const uint8_t*) "getTestString";    func[0].functionData = NULL;    func[0].function = &getTestString;    func[1].name = (const uint8_t*) "isSupported";    func[1].functionData = NULL;    func[1].function = &isSupported;    func[3].name = (const uint8_t*) "getHelloWorld";    func[3].functionData = NULL;    func[3].function = &getHelloWorld;    *functions = func;
}

void contextFinalizer(FREContext ctx)
{
    return;
}

void initalizer(void** extData, FREContextInitializer* ctxInitializer, FREContextFinalizer* ctxFinalizer)
{
    *ctxInitializer = &contextInitializer;    *ctxFinalizer = &contextFinalizer;
}

void finalizer(void* extData)
{
    return;
}

 

SampleANE.as

 

package com.tfirk118.samples.ANESample
{    import flash.events.EventDispatcher;    import flash.events.IEventDispatcher;    import flash.external.ExtensionContext;    public class SampleANE extends EventDispatcher    {        private var _ExtensionContext:ExtensionContext;        public function SampleANE(target:IEventDispatcher=null)        {            _ExtensionContext = ExtensionContext.createExtensionContext("com.tfirk118.samples.SampleANE", null);            super(target);        }        public function dispose():void        {            _ExtensionContext.dispose();        }        public function isSupported():Boolean        {            return _ExtensionContext.call("isSupported");        }        public function getTestString():String        {            return _ExtensionContext.call("getTestString") as String;        }        public function getHelloWorld():String        {            return _ExtensionContext.call("getHelloWorld") as String;        }    }
}

 

descriptor.xml

 

<?xml version="1.0" encoding="UTF-8"?><extension xmlns="http://ns.adobe.com/air/extension/2.5">    <id>com.tfirk118.samples.SampleANE</id>    <versionNumber>1.0.0</versionNumber>    <platforms>        <platform name="Windows-x86">            <applicationDeployment>                <nativeLibrary>libSampleANE.dll</nativeLibrary>                <initializer>initializer</initializer>                <finalizer>finalizer</finalizer>            </applicationDeployment>        </platform>    </platforms></extension>

 

SampleANEProject.mxml

 

<?xml version="1.0" encoding="utf-8"?><s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"                       xmlns:s="library://ns.adobe.com/flex/spark"                       xmlns:mx="library://ns.adobe.com/flex/mx"                       close="appClosing(event)">    <fx:Declarations>        <!-- Place non-visual elements (e.g., services, value objects) here -->    </fx:Declarations>    <fx:Script>        <![CDATA[            import com.tfirk118.samples.ANESample.SampleANE;            public var sample:SampleANE = new SampleANE();            public function isANESupported(event:MouseEvent):void            {                trace(sample.isSupported());            }            protected function appClosing(event:Event):void            {                sample.dispose();            }            protected function helloWorldTest(event:MouseEvent):void            {                txtDisplay.text = sample.getHelloWorld();            }            protected function testStringTest(event:MouseEvent):void            {                txtDisplay.text = sample.getTestString();            }        ]]>    </fx:Script>    <s:Button x="39" y="32" label="Button" click="isANESupported(event)"/>    <s:TextInput x="39" y="77" id="txtDisplay"/>    <s:Button x="40" y="123" label="Hello World" click="helloWorldTest(event)"/>    <s:Button x="40" y="152" label="Get Test" click="testStringTest(event)"/></s:WindowedApplication>

 

SampleANEProject-app.xml

 

<?xml version="1.0" encoding="utf-8" standalone="no"?><application xmlns="http://ns.adobe.com/air/application/3.1"><!-- Adobe AIR Application Descriptor File Template.    Specifies parameters for identifying, installing, and launching AIR applications.    xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/3.1            The last segment of the namespace specifies the version            of the AIR runtime required for this application to run.    minimumPatchLevel - The minimum patch level of the AIR runtime required to run            the application. Optional.
-->    <!-- A universally unique application identifier. Must be unique across all AIR applications.    Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->    <id>com.tfirk118.samples.SampleANEProject</id>    <!-- Used as the filename for the application. Required. -->    <filename>SampleANEProject</filename>    <!-- The name that is displayed in the AIR application installer.    May have multiple values for each language. See samples or xsd schema file. Optional. -->    <name>SampleANEProject</name>    <!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.    Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.    An updated version of application must have a versionNumber value higher than the previous version. Required for namespace >= 2.5 . -->    <versionNumber>0.0.0</versionNumber>    <!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->    <!-- <versionLabel></versionLabel> -->    <!-- Description, displayed in the AIR application installer.    May have multiple values for each language. See samples or xsd schema file. Optional. -->    <!-- <description></description> -->    <!-- Copyright information. Optional -->    <!-- <copyright></copyright> -->    <!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 -->    <!-- <publisherID></publisherID> -->    <!-- Settings for the application's initial window. Required. -->    <initialWindow>        <!-- The main SWF or HTML file of the application. Required. -->        <!-- Note: In Flash Builder, the SWF reference is set automatically. -->        <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>        <!-- The title of the main window. Optional. -->        <!-- <title></title> -->        <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->        <!-- <systemChrome></systemChrome> -->        <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->        <!-- <transparent></transparent> -->        <!-- Whether the window is initially visible. Optional. Default false. -->        <!-- <visible></visible> -->        <!-- Whether the user can minimize the window. Optional. Default true. -->        <!-- <minimizable></minimizable> -->        <!-- Whether the user can maximize the window. Optional. Default true. -->        <!-- <maximizable></maximizable> -->        <!-- Whether the user can resize the window. Optional. Default true. -->        <!-- <resizable></resizable> -->        <!-- The window's initial width in pixels. Optional. -->        <!-- <width></width> -->        <!-- The window's initial height in pixels. Optional. -->        <!-- <height></height> -->        <!-- The window's initial x position. Optional. -->        <!-- <x></x> -->        <!-- The window's initial y position. Optional. -->        <!-- <y></y> -->        <!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. -->        <!-- <minSize></minSize> -->        <!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. -->        <!-- <maxSize></maxSize> -->        <!-- The initial aspect ratio of the app when launched (either "portrait" or "landscape"). Optional. Mobile only. Default is the natural orientation of the device -->        <!-- <aspectRatio></aspectRatio> -->        <!-- Whether the app will begin auto-orienting on launch. Optional. Mobile only. Default false -->        <!-- <autoOrients></autoOrients> -->        <!-- Whether the app launches in full screen. Optional. Mobile only. Default false -->        <!-- <fullScreen></fullScreen> -->        <!-- The render mode for the app (either auto, cpu, gpu, or direct). Optional. Default auto -->        <!-- <renderMode></renderMode> -->        <!-- Whether or not to pan when a soft keyboard is raised or lowered (either "pan" or "none").  Optional.  Defaults "pan." -->        <!-- <softKeyboardBehavior></softKeyboardBehavior> -->    <autoOrients>false</autoOrients>        <fullScreen>false</fullScreen>        <visible>false</visible>    </initialWindow>    <!-- We recommend omitting the supportedProfiles element, -->    <!-- which in turn permits your application to be deployed to all -->    <!-- devices supported by AIR. If you wish to restrict deployment -->    <!-- (i.e., to only mobile devices) then add this element and list -->    <!-- only the profiles which your application does support. -->    <!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->    <!-- The subpath of the standard default installation location to use. Optional. -->    <!-- <installFolder></installFolder> -->    <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->    <!-- <programMenuFolder></programMenuFolder> -->    <!-- The icon the system uses for the application. For at least one resolution,    specify the path to a PNG file included in the AIR package. Optional. -->    <!-- <icon>        <image16x16></image16x16>        <image32x32></image32x32>        <image36x36></image36x36>        <image48x48></image48x48>        <image57x57></image57x57>        <image72x72></image72x72>        <image114x114></image114x114>        <image128x128></image128x128>    </icon> -->    <!-- Whether the application handles the update when a user double-clicks an update version    of the AIR file (true), or the default AIR application installer handles the update (false).    Optional. Default false. -->    <!-- <customUpdateUI></customUpdateUI> -->    <!-- Whether the application can be launched when the user clicks a link in a web browser.    Optional. Default false. -->    <!-- <allowBrowserInvocation></allowBrowserInvocation> -->    <!-- Listing of file types for which the application can register. Optional. -->    <!-- <fileTypes> -->        <!-- Defines one file type. Optional. -->        <!-- <fileType> -->            <!-- The name that the system displays for the registered file type. Required. -->            <!-- <name></name> -->            <!-- The extension to register. Required. -->            <!-- <extension></extension> -->            <!-- The description of the file type. Optional. -->            <!-- <description></description> -->            <!-- The MIME content type. -->            <!-- <contentType></contentType> -->            <!-- The icon to display for the file type. Optional. -->            <!-- <icon>                <image16x16></image16x16>                <image32x32></image32x32>                <image48x48></image48x48>                <image128x128></image128x128>            </icon> -->        <!-- </fileType> -->    <!-- </fileTypes> -->    <!-- iOS specific capabilities -->    <!-- <iPhone> -->        <!-- A list of plist key/value pairs to be added to the application Info.plist -->        <!-- <InfoAdditions>            <![CDATA[                <key>UIDeviceFamily</key>                <array>                    <string>1</string>                    <string>2</string>                </array>                <key>UIStatusBarStyle</key>                <string>UIStatusBarStyleBlackOpaque</string>                <key>UIRequiresPersistentWiFi</key>                <string>YES</string>            ]]>        </InfoAdditions> -->        <!-- A list of plist key/value pairs to be added to the application Entitlements.plist -->        <!-- <Entitlements>            <![CDATA[                <key>keychain-access-groups</key>                <array>                    <string></string>                    <string></string>                </array>            ]]>        </Entitlements> -->    <!-- Display Resolution for the app (either "standard" or "high"). Optional. Default "standard" -->    <!-- <requestedDisplayResolution></requestedDisplayResolution> -->    <!-- </iPhone> -->    <!-- Specify Android specific tags that get passed to AndroidManifest.xml file. -->    <!--<android> -->    <!--    <manifestAdditions>        <![CDATA[            <manifest android:installLocation="auto">                <uses-permission android:name="android.permission.INTERNET"/>                <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>                <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>                <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>                <application android:enabled="true">                    <activity android:excludeFromRecents="false">                        <intent-filter>                            <action android:name="android.intent.action.MAIN"/>                            <category android:name="android.intent.category.LAUNCHER"/>                        </intent-filter>                    </activity>                </application>            </manifest>        ]]>        </manifestAdditions> -->        <!-- Color depth for the app (either "32bit" or "16bit"). Optional. Default 16bit before namespace 3.0, 32bit after -->        <!-- <colorDepth></colorDepth> -->    <!-- </android> -->    <!-- End of the schema for adding the android specific tags in AndroidManifest.xml file --><extensions>        <extensionID>com.tfirk118.samples.SampleANE</extensionID>    </extensions></application>

 

 

Thanks for any help in advance, I've been stuck on this for a while.

how to edit adobe flash player games with flash builder ?

$
0
0

i want to seen source games. But i don't know, how to do that with flash builder ?

my english has errors hope everyone sympathy


NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost:8080/WebContent/messagebroker/amf''

$
0
0

Hello everybody,

 

I havetraveled theforumbut I stillhave not found asolution to my problem:

I recentlyinstalled Flash Builder 4.7 and I wantto run mywebapplicationwithjava /Flex/BlazeDS.

I usethe4.0.1.21287version ofBlazeDSwithtomcat7.

It was working finewith FlexBuilder3 andtomcat6.

I seem to haveseteverything correctlybut Ialwaysthis error :
ErrorFlex.jpg

 

Here arethe settingsin myservices-config.xml :

 

<?xml version="1.0" encoding="UTF-8"?><services-config>    <services>        <service-include file-path="remoting-config.xml" />        <service-include file-path="proxy-config.xml" />        <service-include file-path="messaging-config.xml" />           </services>    <security>        <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>    </security>    <channels>        <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>        </channel-definition>        <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">            <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>            <properties>                <add-no-cache-headers>false</add-no-cache-headers>            </properties>        </channel-definition>        <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>            <properties>                <polling-enabled>true</polling-enabled>                <polling-interval-seconds>4</polling-interval-seconds>            </properties>        </channel-definition>    </channels>    <logging>        <target class="flex.messaging.log.ConsoleTarget" level="Error">            <properties>                <prefix>[BlazeDS] </prefix>                <includeDate>false</includeDate>                <includeTime>false</includeTime>                <includeLevel>false</includeLevel>                <includeCategory>false</includeCategory>            </properties>            <filters>                <pattern>Endpoint.*</pattern>                <pattern>Service.*</pattern>                <pattern>Configuration</pattern>            </filters>        </target>    </logging>    <system>        <redeploy>            <enabled>false</enabled>            <!--            <watch-interval>20</watch-interval>            <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>            <watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</watch-file>            <watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file>            <watch-file>{context.root}/WEB-INF/flex/messaging-config.xml</watch-file>            <watch-file>{context.root}/WEB-INF/flex/data-management-config.xml</watch-file>            <touch-file>{context.root}/WEB-INF/web.xml</touch-file>             -->        </redeploy>    </system></services-config>

 

Doesanyone can help meon this ?

Thanks in advance for your help!

Mac OS X keeps asking for firewall permissions

$
0
0

Hi there,

 

I use Flash Builder 4 Premium with Mac OS X 10.6.4 and every time I start FB, a

popup ask if I allow FB to get incoming connections. It is okay to ask once (I configured

the firewall to do so), but the answer should be remembered. Every other application

do, even Lotus Notes (also a eclipse based application) - only FB is every time asked.

   Does anybody know, how to fix this?

 

      Greetings,

      Gregor Féng

 

PS: Sorry for the horrible english ... (^_^)

error 303 with packaging my AIR icon

$
0
0

Hi guys & gals

 

this is a very simple task that has been giving me a curious amount of trouble and frustration for being so commonplace, and I would appreciate the help

This is a part of my application-app.xml file

 

    <icon>
        <image48x48>data/application/icons/MY_ICON.png</image48x48>
    </icon>

 

When I try to export a release build in flash builder, it gives me error 303 Error creating AIR File, Icon is missing from package

In the 3rd step of exporting, under AIR File Contents (Select the output files to include in the exported AIR file) I do not have any option to select the icon file.. is it supposed to appear here, and if so how? Because it is not even displaying my data folder in this screen, much less let me select a file

 

I also couldn't find anything under the build path for the project properties to include assets either. Just source files and swcs.

What am I doing wrong here, this is supposed to be a very simple task and so far I have dumped hours into this without avail

 

Thanks again!

Invalid Configuration Location error on startup

$
0
0

I have just installed Flash Builder 4.5 on my Windows 7 Enterprise edition. I installed this using my username (not Administrator), which has local administrative rights. When I start the program, I'm getting the error

 

---------------------------

 

Invalid Configuration Location

 

---------------------------

 

The configuration area at 'C:\Users\Administrator\Adobe Flash Builder 4.5\cascaded\308971\configuration' could not be created.  Please choose a writable location using the '-configuration' command line option.

 

---------------------------

 

OK  

 

---------------------------

 

 

Any reason for this error and what's the workaround?

Auto Incrementing App Version

$
0
0

Hello,

 

Anyone know of a plugin or something that will increment the build number of an app each time it is compiled? I'm looking for something similar to a plugin that Flashdevelop uses, were the app version and build number is kept within an AS3 class file and is updated automatically each time the project is built.

 

thx

Viewing all 70427 articles
Browse latest View live




Latest Images