Actionscript mobile library project - actionscript-3

I'm developing an ActionScript 3.0 project for Blackberry Playbook, Android and iOS.
I have some custom UI classes, like buttons, that I want to use it in another projects.
How can I make an actionscript mobile library project?
I'm using Flash Builder 4.5, and I'm not using Flex in my code.

Using Flash Builder 4.5:
choose File > Project > New
choose "library project"
check the "include AIR features" box.
This will compile a .swc, a binary file you can distribute easily.
Including AIR in this .swc ensures that all the mobile-oriented features will be compiled as well, i.e. TouchEvent.
Flex classes, that you're not using, won't be included.

You can create ActionScript project, then add it to your mobile project's references (as a source.) Or create Flex library and link it with mobile project.

Related

How to add Library 'android-android-25' to LibGdx?

I'm trying to use the android's AudioRecord in LibGdx, but when I press on "Add library 'android-android-25' to classpath" nothing happens.
I cannot use LibGdx's AudioRecorder, because I want to get the amplitude of the microphone (like .getMaxAmplitude).
Thanks
You can't use AudioRecord class of Android platform because LibGDX is cross platform development library.
but you can use it only for Android platform using interface and core module of LibGDX

FLVPlayback without Flash CS

I'm implementing Google video Ads in flash game, using FlashDevelop. Google has a sample where they're using FLVPlayback component to display video... problem is, I don't have this class anywhere.
I've searched how to add it, but all solutions say "link to C:\Adobe\Flash CS\Components\etc" path, which obiouvsly without Flash CS I don't have... and don't want to install it just for this :)
I wonder if there is a way to get the FLVPlayback without installing Flash CS?
You can try import external adobe components swc through Flashdevelop interface.
Maybe this can help you: link
I quit and just installed the Flash Professional CC, and there linked to the component path, but it didn't work for some reason. Then I included the FLVPlayback.swf component inside my AS3 app, which compiled etc. but as I learned FLVPlayback wasn't really what I needed.
After some fumbling I made it work with Flex Spark component - VideoPlayer, used inside AS3. You can find some code on the devlist: https://developers.google.com/interactive-media-ads/community?place=msg%2Fima-sdk%2Fc3KH11vxSd0%2FeLuYneYpch4J

Creating skinned components and UI editor for scaleform

Our project is a MMORPG, using scaleform to render UI. Now we use Flash CS5 to create UI panels with scaleform CLIK. With the development of this project, we encountered some problems:
CLIK is not skinned, we have to create separate symbols for each component with different disappearance, so we have PushButton1, PushButton2, RadioButton1, RadioButton2...
Flash CS5 is not a What You See is What You Get tool. For instance, we have a shared component named Window, it has a close button as it's child. In a fla, we first pull a Window on the stage, and modify its size, the close button will be scaled in the stage.
We can constrain the close button in as code, but artists have to see the right result in Gfx Player on runtime.
We have some common components fla like common_button.fla with most of button components in it. Common components are runtime shared in different fla. In a UI fla (e.g. friendpanel.fla), when we need a common component, we copy it from common_xxx.fla and paste it in the new fla library. If a panel is complex, it's library will be confused and not easily managed. If the common one is not satisfying requirement, we will double-click the pasted component and modify it in the local fla, and this caused more resource management troubles.
So I consider if we should create a skinned UI component lib and an UI editor to handle this problems. Does any one has similar experience?
These are common workflow problems reported by many Flash IDE users unfortunately. Certainly, creating your own tool to solve these problems is a good option, but a costly one. The Scaleform team is investigating possible solutions to these types of issues for future versions of the SDK. In the meantime, there's not much that can be done to remedy these issues that I am aware of.

Adobe Flash Builder : AddChild vs AddElement

Using Adobe Flash Builder 4.0 ?
Getting error when using addChild(). Compiler suggests about using addElement(). Are both these functions alternate of each other ? Or is it like addChild is deprecated ?
To get clear. Adobe Flash Builder is IDE for developing flex apps. What's important is Flex SDK version. Obviously you're using version 4+. I suggest to avoid using mx (Flex 3) components without strong need. You should read more about Flex 3 and Flex 4 difference.
Post about addChild vs addElement.

Create Windows/Macintosh Projector from Flash Builder 4

Am I able to publish a Windows/Macintosh projector from Flash Builder 4? I would like a solution that stays within the IDE, rather than having to open FlashPlayer.exe and export the EXE/App.
You can display your swf in the standalone flash player, and then create the projector from there (file -> create projector).
http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa.exe
Closing this question...doesn't seem possible. I'm sticking with Flash CS5 to publish projectors.
I've had to do this with FB As3 projects. You have to convert your project type to Flash Professional Project: right-click project in the Package Explorer / Add/Change Project Type / Add Flash Professional Project Type. You'll have to create a fla to use as the source. Set the fla Class in the Properties panel to the main class of your project, and add all your resource libs & SWCs to Flash Professional Project: File/ActionScript Settings/Library path tab. This is important or you'll get compile errors. Seems like FB should do this for you, but it doesn't. Now in Flash professional: Commands/Export as Projector.
Many Years too late, but for future reference.