Re: [Flashcoders] FaceBook, Posting Data allowScriptAccess

2011-02-11 Thread Karim Beyrouti
Thanks Kevin - yep - checked outgoing requests - and to be honest - I did not think i was going to get an answer anymore ... we got it working, it was a rather silly oversight on our side (too many cooks in the kitchen)... thank you for taking the time to answer... Best Karim On 10 Feb

[Flashcoders] Warning: Filter will not render.

2011-02-11 Thread Mendelsohn, Michael
Hi list... When I go to print, I get this warning: Warning: Filter will not render. The DisplayObject's filtered dimensions (5624, 3345) are too large to be drawn. It actually traces 4 times, each with different, very large dimensions. I've done some searching and found that it can be

[Flashcoders] Calling an element in an Array as an Class

2011-02-11 Thread Sidney de Koning - Funky Monkey Studios
Hi List, I want to load some bitmap images, so i have created a class with embed meta data in it, and i wrote a function to get them out and use them. But it does not seem to work. Can you use the 'new' keyword for an element in an Array? Code below: public class CarAssets {

RE: [Flashcoders] Calling an element in an Array as an Class

2011-02-11 Thread Mendelsohn, Michael
Or does anybody know a better method? I recently started using LoaderMax for loading assets. I will never ever look back to manually loading my assets. :-) http://blog.greensock.com/loadermax/ - Michael M. ___ Flashcoders mailing list

RE: [Flashcoders] Calling an element in an Array as an Class

2011-02-11 Thread Sidney de Koning - Funky Monkey Studios
Hi Michael, Thanks for the tip, normaly i would to, its just that this particular project has already set its course on using the EMBED method. Stubborn as i am, i still want to crack this nut :) So does anybody know how to accomplish this? Greets, Sid Or does anybody know a better method?

Re: [Flashcoders] Calling an element in an Array as an Class

2011-02-11 Thread Jens Struwe
Version 1: public class EmbedTest extends Sprite { [Embed(source=clear.png)] private static const PRO_CAR : Class; public static const ALL_CARS:Array = [PRO_CAR]; public static function getAsset( index:uint ) : Bitmap { return new

Re: [Flashcoders] Calling an element in an Array as an Class

2011-02-11 Thread Sidney de Koning - Funky Monkey Studios
Thanks! The double cast was causing the problems. By removing the 'as Class' you can actually make a new instance of what ever in in the array at element n. It works super smooth now :) function getAsset( index:uint ):Bitmap { return Bitmap( new ALL_CARS[index]() as Class ); } Good