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

592 posts It's just life. Just live it.
  • Elite Author: Sold more than $75,000 on Envato Market
  • Won a competition
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
+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?

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by