2 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 10+ items on Envato Market
funkdaweb says

1 – In AS3 is it possible to add a class to a dynamically loaded image? (like right clicking and viewing properties if it was in the library) If so can anyone point me to an example of how to go about it?

2 – Is there a simple way to convert text to a shape (break apart) using actionscript? (not using double break apart in flash)

3 – Does anyone have an idea how to fix this error… ArgumentError: Error #2015: Invalid BitmapData.

2485 posts Premium Scripts, Plugins and Themes
  • Has been part of the Envato Community for over 7 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+6 more
LucidStudios says

Your 3rd question’s answer can be:

If your image width or height is greater than 2880 pixels then you will get Invalid BitmapData error

588 posts It's just life. Just live it.
  • Has referred 100+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Joined an Envato Football competition
+8 more
Themes-Dojo says

Good questions. I would like to know the answers too. :)

3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

1 – you can use right-click menu to show some image informations… but you need to script all that… i think i saw some examples here on flashden(options like download image)
2 – why you need that? ... fonts are shapes/vectors … maybe you need to break the string with the text and use the letters for animations & stuff…?
3 – Invalid BitmapData – maybe you pass to a Bitmap or to a BitmapData function a variable that not has a bitmapData data type?

2 posts
  • Has been part of the Envato Community for over 7 years
  • Has collected 10+ items on Envato Market
funkdaweb says

hey guys thanks for the help!

SaafiDesign – i will have to check this as im not sure of the exact size!

wickedpixel - 1 – I don’t want the user to be able to right click the image, I meant if I right click inside flash (not flash player) and i get the properties box, click the ‘export for actionscript’ box then give it a class name.

2 – So i can print a PDF without any fonts so it can be ripped straight to i banner printer

3 – I will have to check this!

thanks! :)

2485 posts Premium Scripts, Plugins and Themes
  • Has been part of the Envato Community for over 7 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+6 more
LucidStudios says
SaafiDesign – i will have to check this as im not sure of the exact size!

You can find this in the documentation:

BitmapData () Constructor

public function BitmapData(width:int, height:int, transparent:Boolean = true, fillColor:uint = 0xFFFFFFFF)

Language Version : ActionScript 3.0 Player Version : Flash Player 9

Creates a BitmapData object with a specified width and height. If you specify a value for the fillColor parameter, every pixel in the bitmap is set to that color.

By default, the bitmap is created as transparent, unless you pass the value false for the transparent parameter. After you create an opaque bitmap, you cannot change it to a transparent bitmap. Every pixel in an opaque bitmap uses only 24 bits of color channel information. If you define the bitmap as transparent, every pixel uses 32 bits of color channel information, including an alpha transparency channel.

The maximum width and maximum height of a BitmapData object is 2880 pixels. If you specify a width or height value that is greater than 2880, a new instance is not created.

691 posts
  • Has been part of the Envato Community for over 7 years
  • Has sold $5,000+ on Envato Market
  • Located in Canada
  • Has collected 10+ items on Envato Market
+2 more
geoken says

So you’re trying to create a class which houses an image?

by
by
by
by
by
by