BindingUtils in FlashBuilder 4.7 - actionscript-3

I used BindingUtils from Flex library in my pure AS3 projects many times. It was fine in FlashBuilder 3, 4, 4.5 and 4.6, but in 4.7 it doesn't work.
When I make
BindingUtils.bindProperty(foo1, "bar1", foo2, "bar2");
it changes foo1.bar1 only once at the beginning, but all changes in foo2.bar2 don't influence on foo1.bar1 property. So my project, which worked in 4.6 doesn't work in 4.7.
Why is it so? Anybody please help me.

Related

How to convert an ActionScript 2 SWF file to an ActionScript 3 SWF file

I created a ُSWF file with the Swish max 4. Then I loaded it in Captivate Software. But I got a message saying that "The Adobe Flash file "Test.swf" contains ActionScript 2 while the current project setting is ActionScript 3. This might cause the Adobe Captivate project to work incorrectly or stop working". After that animations are not fully loaded. How should I fix it?
Action-script 2 and Action-script 3 are written differently, there isn't a converter as far as I know. You would have to rewrite the code. Or you can change the project settings to Action-script 2 if you do not need Action-script 3 capabilities.
All I know is that by now, flash is dead. There is still ruffle though. And to work properly, ruffle at the moment currently can only support ActionScript 3.

Flare3D Flex Context3D issue

I have followed step by step the instruction to build the Flare3D examples at this url
http://www.flare3d.com/blog/2011/03/10/flare3d-2-0-startup-with-flash-builder/
and I fixed the wmode to direct in my html template for the actionscript project, but when it comes to building the examples from the 5th Flex refuses to compile since there are errors in the project.
The errors are these ones:
https://dl.dropbox.com/u/4064417/FlareProblems.jpg
Do you have any idea on how to fix them?
Thank you!
The guide I linked is old!
Since I was using Flash Builder 4.6 I just went to Project > Properties > ActionScript Compiler and selected Flex 4.6 sdk!
This made all the errors disappear.
The problem was that display3d exists only in flashplayer 11 and the guide was telling me to select 10.2 which is WRONG!
Hope this will be helpful for others as well!

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.

How to use ArrayCollection and ArrayList in AS3.0 in flash professional mx.collection

Can we use the mx.collection package in as3.0 flash professional (not in flash builder) ? If yes, from where can i get the whole mx package?
ArrayCollection is part of the Flex framework, you would need to include the Flex framework in your CS5 project. I'm not sure if this is possible.

Actionscript mobile library project

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.