Flare3D Flex Context3D issue - actionscript-3

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!

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.

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

Starling + Robotlegs - only first mediator instantiating

I am having problems with using the latest version of Starling with Robotlegs.
I am finding it all compiles but only my first mediator is instantiated.
http://knowledge.robotlegs.org/discussions/problems/389-robotlegs-support-starling-framework
http://omar.likesflex.com/?p=54#comments
I have set autoStartup=true in my context, and have tried and have tried with swc and sourcecode versions. I have also tried changing event bubbles=true in the starling sourcecode as someone suggested, nothing seems to work.
If I replace the Robot-Starling-Plugin (https://github.com/s9tpepper/robotlegs-starling-plugin) with the sourcecode after fixing the following bug I still have the same issue.
https://github.com/s9tpepper/robotlegs-starling-plugin/issues/13
Does anyone know how to fix this?
I had success with this extension
https://github.com/jamieowen/robotlegs2-starling-viewmap

ChartboostX not loading more apps

I am using this wrapper someone recommended for my iOS cocos2dx game link. It works when I call the showInterstitial() method, but when I try to use the showMoreApps the dialog appears for a split second and then disappears.
In my AppDelegate::applicationDidFinishLaunching() I do this
ChartboostX::sharedChartboostX()->setAppId("REDACTED");
ChartboostX::sharedChartboostX()->setAppSignature("REDACTED");
ChartboostX::sharedChartboostX()->startSession();
ChartboostX::sharedChartboostX()->cacheMoreApps();
And then when I want to call the showMoreApps I do this
ChartboostX::sharedChartboostX()->showMoreApps();
Have a look at my wrapper for Chartboost. It has been updated to use the latest version of the Chartboost SDK and works perfectly in my cocos2D-x game. I have not finished the android documentation yet but you can probably work it out yourself if you need to. The documentation for iOS is almost finished and quite easy to follow.(FYI the class ADELLE is the chartboost delegate and is an objective C++ class so you can use C++ in it as you normally would mixed in with the objective C. This is the same for AdWrapper.mm)
Check it out and see if it works for you.
https://github.com/Lochlanna/Chartboost-Cocos2D-x

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.