Skip to main content
Inspiring
March 13, 2011
Answered

AS3 Android Flash Components

  • March 13, 2011
  • 2 replies
  • 4119 views

I found this AS3 library the other day created by a dude called Kevin Hoyt, and it rocks. You can check it out here: http://xperiments.es/blog/en/as3-android-flash-components/.

It has many components wich have the same look and feel as the android's native ones, but unfortunattely I can't get it to work with Burrito. The zip file available in that link contains an SWC, wich you can add to your project's buld path, but it's giving me a warning saying that the Design Mode could not be loaded, that it may be incompatible and also refrences "DesignAssetLoader.CompleteTimeout".

Some research showed me that this is a known bug in Flash Builder, I read somewhere that the warning appears but you're still able to drag the componenets from the panel. Well, here they're not even showing up in the panel, wich means I can't use them.

Does anybody know how to fix that problem? I think that it's a great library, and using it with Burrito would be the ultimate combo xD

Cheers,

NiNshiM

This topic has been closed for replies.
Correct answer sanad83

All classes in that library are in default package so you do not have to have an import statement. Just add the swc to you build path. I have not used burrito so I dont know about drag and drop. I have used a component or two from this library in my flash + as3 project (using flash builder 4 for editing code). For adding a (for example) button to stage, I do:

var button:Button = new Button();

addChild(button);

Thats it.

I was also excited to see this library when I started my project late last year. But unfortunately, there isn't a good way to adjust the size of some of the components to orientation. For example, If you have 10 items in List, you are fine in portrait mode, but the list goes off stage bounds in landscape.I will be glad to know a work around for this.

2 replies

A_Sad_SamAuthor
Inspiring
March 21, 2011

Has anyone figured this out yet? I can't seem to get these components working any way in Burrito, the swc file inside the zip gave me that warning I told you about. I tried opening the fla file and exporting the swc of a single component, by right clicking on it and choosing export swc in the library pane, but when I added it to my project's library path, there were no warning nor errors, but the component didn't appear in the components pane. What am I missing here?

Thanks in advance,

NiNshiM.

sanad83Correct answer
Participant
March 22, 2011

All classes in that library are in default package so you do not have to have an import statement. Just add the swc to you build path. I have not used burrito so I dont know about drag and drop. I have used a component or two from this library in my flash + as3 project (using flash builder 4 for editing code). For adding a (for example) button to stage, I do:

var button:Button = new Button();

addChild(button);

Thats it.

I was also excited to see this library when I started my project late last year. But unfortunately, there isn't a good way to adjust the size of some of the components to orientation. For example, If you have 10 items in List, you are fine in portrait mode, but the list goes off stage bounds in landscape.I will be glad to know a work around for this.

Inspiring
August 15, 2011

yeah, the components are a bit buggy actually... and the api is a little weird too (you only set width for buttons?) i wish the author kept working on it and added stuff like toggle buttons and footer navigations

Inspiring
March 13, 2011

Good find. Those sure would come in handy! I can't help you but if you do find a way to use them please share your solution.

Thanks

A_Sad_SamAuthor
Inspiring
March 13, 2011

It gives me a feeling that if there's a way to do this in the design view (using MXML), there must be a way to do it using AS, but I don't know what's the package to import. Unless I could find a way to extract SWC files. I don't know, but I'm sure someone around here who understands more of Flash Builder than me, could gives us a hand. Because afterall, if the bug is already reported someone must know something about it.

Inspiring
March 14, 2011

The zip file contains some .AS files which may be the code needed to reproduce the components one by one. Not sure, have not looked into them.

Have you tried the .apk file that is in the zip file?