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
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
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 {
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
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?
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
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
7 matches
Mail list logo