Be a Supporter!

What does it mean [Embed... in AS3

  • 320 Views
  • 1 Reply
New Topic
litdesign
litdesign
  • Member since: Jul. 1, 2012
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
What does it mean [Embed... in AS3 Sep. 28th, 2012 @ 01:08 AM

There is example code with line:
[Embed(source="hand.png")] static private var img_hand:Class;
What does it mean and how it works?
In other programming languages images are saved in resource file in the project, how it works in flash?

Kirk-Cocaine
Kirk-Cocaine
  • Member since: Aug. 17, 2003
  • Offline.
Forum Stats
Moderator
Level 38
Programmer
Response to What does it mean [Embed... in AS3 Sep. 28th, 2012 @ 05:27 AM

It's a metadata tag that allows you to embed content. This article explains how it works.

Also, questions about ActionScript belong in the Flash Forum, thanks.


The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature