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 {
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?
() {
addChild(getAsset(PRO_CAR));
addChild(getAsset(PRO_CAR2));
}
}
Am 11.02.2011 15:30, schrieb Sidney de Koning - Funky Monkey Studios:
public static function getAsset( index:uint ):Bitmap {
return Bitmap( new ALL_CARS[index]() as Class
Hi Karim,
Something along the lines of this:
var bmd:BitmapData = new BitmapData(80, 40, true, 0xFF44AACC);
var pixelValue:uint = bmd.getPixel32(0, 0);
var alphaValue:uint = pixelValue 24 0xFF;
var red:uint = pixelValue 16 0xFF;
var green:uint = pixelValue 8 0xFF;
var blue:uint =
Hi Kevin,
I think its Capabilities.os
(http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/system/Capabilities.html#os)
And the properties you were taling about; Capabilities.touchscreenType are
only available in AIR 2.5 for Android prerelease but this is going live
tomorrow ;)
No problem :)
This is using AS3. Where do you have problem with?
Sid
is this using as2 as im trying to do it in as3 so am a bit confused
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sidney de
: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sidney de
Koning - Funky Monkey Studios
Sent: 25 August 2009 15:52
To: Flash Coders List
Subject: RE: [Flashcoders] spacing horizontal dynamic xml menu textfields
No problem :)
This is using AS3
7 matches
Mail list logo