All Questions

Tagged with
Filter by
Sorted by
Tagged with
6 votes
3 answers
14k views

Embedding wav files in AS3 Flash/Flex project?

The Flash IDE is capable of embedding many types of uncompressed sound files, including wav, and offers optional compression when publishing. However, the [Embed] tag, only seems to allow embedding ...
aaaidan's user avatar
  • 7,191
6 votes
4 answers
11k views

Embedding bold font in AS3 Flash dynamic field

I have already googled and read a lot of different topics relating to this problem, but still cant solve mine. I have this dynamic text field in a movieclip, and I embeded upper case, lower case and ...
shibbydoo's user avatar
  • 569
5 votes
2 answers
20k views

AS3 Embed images class and then get these images into another class?

For example, right now I have a class called "Balls.as". Here I load 10 different balls-images. You know, like this: [Embed(source = "/ball1.png")] [Embed(source = "/ball2.png")] The problem is ...
user1941346's user avatar
5 votes
4 answers
9k views

In Flex/AS3, how do I get a class definition of an embedded asset with getDefinitionByName

I have a class with many embedded assets. Within the class, I would like to get the class definition of an asset by name. I have tried using getDefinitionByName(), and also ApplicationDomain....
user8399's user avatar
4 votes
4 answers
3k views

Delay before playing embedded mp3 in Actionscript / Flex 3

I am embedding an mp3 into my Flex project for use as a sound effect, but I am finding that every time I play it, there is a delay of about half a second from when I call .play() to when you can hear ...
lacker's user avatar
  • 5,500
3 votes
3 answers
5k views

Better way to include images in AS3 than embed?

I am putting together a Flash game (using Flixel) and I have a lot of sprites whose images (.png format, mostly) I need to include in my game. I'm used to using code like: [Embed(source = "../../lib/...
Mar's user avatar
  • 7,895
3 votes
1 answer
341 views

Check if font is embedded?

Can I check if I'm using an actual font when I create TextFormat/TextField ? If I specify a not embedded font or use any random string, no text is displayed and I don't know why. import flash.display....
Bitterblue's user avatar
  • 13.7k
3 votes
4 answers
4k views

as3 - getting library symbols from an Assets class

I have created an assets.swf, in which I want to keep all my symbols. Then, I have created an Assets class which does the embedding. It looks like this: public class Assets extends MovieClip { ...
user avatar
2 votes
3 answers
10k views

Embed bitmap in ActionScript3

How can I embed a bitmap in Actionscript 3 and get the BitmapData? public class MyGame extends Sprite { [EMBED(source="Assets/helicopter1.png")] private static var BMClass:Class; public ...
Hophat Abc's user avatar
  • 5,243
2 votes
2 answers
2k views

Is it possible to embed all files from a folder?

I want to embed all xml files of a given folder. For now I'm doing something like this: [Embed(source="../somefolder/file1.xml", mimeType="application/octet-stream")] private var MyClass1:Class; [...
roberkules's user avatar
  • 6,585
2 votes
2 answers
9k views

Embedding fonts for AS3. How?

I embedded font using Flash Professional CS5, but I still can't use it in my AS code. How should I embed the font to be able to use it in AS3 as well in Flash Professional CS5?
nix's user avatar
  • 2,251
2 votes
2 answers
1k views

Embed characters for Europe and America

I'm developing an app in Flash AS3 for a target audience in Europe and America. So now I need to embed the characters for the photo caption text field. There are "Basic Latin", "Latin Extended A", "...
Steven's user avatar
  • 21
2 votes
2 answers
817 views

Flash CC wont embed image assets

I have this code on the first frame of the timeline: import flash.display.Bitmap; [Embed("letter.jpg")] const Letter:Class; var letter:Bitmap = new Letter(); addChild(letter); I get this compile ...
charlesclements's user avatar
2 votes
2 answers
2k views

AS3 - Embedded SWF video shows totalFrames == 0

I've got this 1 minute long movie that I want to compile into an AS3 project. The movie started out in MOV format, so I used FFMpeg to convert it to FLV, then again with FFMpeg from FLV to SWF. I'm ...
jtrim's user avatar
  • 3,485
2 votes
4 answers
3k views

ActionScript3 font compilation transcoding errors under Linux

So, in Flash Builder on Windows, my app and all embedded fonts compile just fine. But when I try to build it on my production Linux server (via a Makefile on the command line using make), compilation ...
Jay Taylor's user avatar
  • 13.3k
2 votes
2 answers
65 views

Embedding loads of images

I got 42 images that I want to embed and then put on an array. I tried to do it within a for loop, but it doesn't seem to work. How exactly can I avoid to have 42 embed lines + a very long line for ...
user2852618's user avatar
2 votes
1 answer
3k views

AS3 Font Embedding with htmlText

I have a dynamic textfield which uses html text loaded form an XML file: XML: <someText><![CDATA[I am <i>some</i> text.]]></someText> As you can see, this uses regular ...
mrEmpty's user avatar
  • 841
2 votes
1 answer
1k views

AS3 Packaging external files into one stand-alone.swf

I've created a very large scale Flash game and have apparently had a massive oversight - the flash portal websites wishing to host my game need it in one stand alone .swf. However, the problem is I ...
Ryan P's user avatar
  • 21
2 votes
2 answers
260 views

AS3 - Understanding how [Embed] metadata works

While developing a game I usually load my assets using a loader, while listening to whenever the loading is completed before even interaction with each object I'm loading. However, I found people are ...
Adam's user avatar
  • 47
2 votes
2 answers
758 views

Unable to listen for an event dispatched from an embedded swf

I have an as3 class with an embedded swf. I need the embedded swf to dispatch an event and have the as3 class action on that event. This used to work fine when the embedded swf was embedded and had ...
Dean's user avatar
  • 1,150
2 votes
1 answer
98 views

actionscript rss embedded in html

I'm new to actionscript and have some question: i've written an rss reader using AS 3.0 in CS 5.5 when i press ctrl+Enter it reads my rss fead, but when i publish it in html it just stucks on the ...
user1551451's user avatar
2 votes
3 answers
1k views

Embedded Sounds cut off early

I have a combined Flash Builder/Flash Pro project. Because of the hassles involving in maintaining sound assets on the timeline, my sounds are all embedded into Class files, like: [Embed (source="/...
Amy Blankenship's user avatar
2 votes
1 answer
702 views

flash as3 embeding simplified chinese - massive file size

So I am trying to embed some simplified Chinese into my flash file. When I turn off embed fonts the flash file is fine. If I add simplified chinese char set it makes the swf massive. Is there a way ...
roscoeh's user avatar
  • 21
1 vote
3 answers
2k views

Is it possible to create dynamic embed function?

Is it possible to create dynamic embed function in ActionScript3 for example like this public function embedImage(path:String):Bitmap{ [Embed(source = path, mimeType = "image/png")]...
Vlad's user avatar
  • 2,767
1 vote
3 answers
2k views

Flash player control from javascript outside?

I am making flash player that suppose to be controlled from outside, from javascript. I need those methods: Play/Pause and Volume level I am stuck with volume level... I tried to add this code: ...
SharkTheDark's user avatar
  • 3,119
1 vote
3 answers
3k views

Flex Embed png, meta data required

this is a part of my code [Embed(source='dmr/images/icones/icnPresenceInline.png')]; [Bindable] private var presentAuBureau:Class; [Embed(source="dmr/images/icones/...
Kangt_qc's user avatar
  • 420
1 vote
3 answers
1k views

Preloading swf which has embed source

I'm trying to preload an swf which has an embed swf source. But it doesn't want to work. I tried the simple preloading, but the progress event only run after loading. Any idea? public class MainShell ...
Zhafur's user avatar
  • 1,626
1 vote
2 answers
6k views

Embedding/importing SWC at compile-time in ActionScript, without setting a library path

Hail, Stack! I'm having a little trouble figuring out how to import a SWC file directly in ActionScript, without setting a library path to the file. To exemplify, I need something like this: ...
NemoStein's user avatar
  • 2,088
1 vote
2 answers
12k views

Embed fonts in Actionscript 3 project

I'm trying to embed a font to my Actionscript 3 project in Flash Builder 4.5. I've found several examples and fixes, but none of them has my problem. My embedded font shows up in the enumeratedFonts ...
Stefan Edberg's user avatar
1 vote
1 answer
56 views

How is this class connecting to the sound?

im trying to use (well succeeding) to use this sound class http://www.mcfunkypants.com/2011/as3-pitch-shift-mp3/ the example code looks like this. . . public class Pitch_Shift_Example extends ...
AndrewBramwell's user avatar
1 vote
1 answer
3k views

How to embed swf and load at runtime?

I'm trying to load an embedded swf (which acts as a sound library). Since it's a large swf I want to load it at runtime and have a loaderbar indicate how much is loaded. Doing some research online I ...
Arno van Oordt's user avatar
1 vote
4 answers
3k views

How to Reduce AIR app file size?

I've uploaded an AIR-built .ipa file to Apple. From Apple: "The app binary listed below was 8 MB when you submitted it, but will be 20 MB once processed for the App Store" So I'm trying to trim it. ...
David's user avatar
  • 723
1 vote
1 answer
555 views

embed-tag for images - how to use?

I would like to know if I have to dispose an image in AS3/Flex when using the EMBED-tag: [Embed(source="../../../../../assets/interface/pause/cancel_btn_off.png")] public static const ...
drpelz's user avatar
  • 811
1 vote
1 answer
2k views

AS3: Cannot type in an input TextField with an embedded pixel font

In order to use a pixel font in my textfields, I have created a font class in the Flash IDE. Then, I created a TextField instance with the font embedded with the anti aliasing set to bitmap. I export ...
jansensan's user avatar
  • 627
1 vote
2 answers
57 views

What am I missing in this Embed & Texture create code?

I am trying to follow the Starling video tutorials by Hemanth Sharma. I have typed the code as he has done on his 2nd video (linked here), but I am having difficulty getting the same results. At ...
Jared Clemence's user avatar
1 vote
1 answer
170 views

Issue: Dynamic text rendered incorrectly when loaded from external SWF

In my game project previously all HUD elements were in the main FLA file. I'm now moving them to an external SWF file to clean up my project. However I've hit an issue which I don't quite understand. ...
paup's user avatar
  • 23
1 vote
2 answers
2k views

How to make my flash button (embedded in html code) to open a link?

I'm trying to play the flash file through HTML. The button in the flash is supposed to open a webpage but it doesn't open when I try through my browser. The buttons work fine when I test them in flash....
MikasaAckerman's user avatar
1 vote
2 answers
215 views

Reducing the number of Class objects to access embedded resources

I'm building a Flex project with a lot of embedded bitmaps and such. The usual method for getting to the bitmaps in Actionscript seems to be to do something like [Bindable] [Embed(source = '../lib/...
mjfgates's user avatar
  • 3,381
1 vote
1 answer
123 views

SWF object not work in HTML

I have problem with my .SWF banner, when I open direct object http://www.tenisovysvet.sk/TS_banner.swf, everything works good, but when I placed this object into html website, there is a problem with ...
Daniel's user avatar
  • 19
1 vote
1 answer
484 views

Flash builder, embed json compile error

I am using flash builder 4.7. I tried to embed a json file while I got an error says:"../strings.json is of an unknown file type which can't be embedded". Here is my code. [Embed(source="../media/...
Hengstar's user avatar
  • 180
1 vote
0 answers
483 views

Resize embeded FLIPBOOK in a .fla file

I’m having the same problem every time I want to resize the Swf file of any flipbook (or Swftools template) as an external load in my main Flash website, through AS3. They always take the whole ...
Ciudadano Equis's user avatar
1 vote
1 answer
2k views

AS3: How to access and control embedded sounds in an external swf?

I rarely use sounds in AS3/Flash. I am using Flash Pro CS6, but I can't seem to figure out how to access, control (play, stop, etc) sounds embedded in an external SWF loaded into the main SWF. It's ...
Leo Perez's user avatar
1 vote
1 answer
930 views

Can't embed image in as3 file while build with ant under linux(debian)

I embedded a png in as3, it's all fine on windows, either use FB4.6 or Ant. But while build with Ant under linux(debian), I got this Error. Image path is /var/lib/jenkins/workspace/q5/dev_Flash/code/...
marz's user avatar
  • 11
1 vote
0 answers
136 views

How to embed sounds from project library into a swf in as3?

When playing the .swf-file while it is in project's src directory all sounds are working because they're in the project's library directory. But when I copy the .swf-file to another directory and play ...
Teysz's user avatar
  • 741
1 vote
1 answer
523 views

Best way to embed Flex-based swf into pure-AS3 project?

I'm working on a AS3 project that required a lot of UI, since Flex was used for time-saving for this part we ended up having a Flex Project (UI) and pure AS3 one (All BackEnd) or, in other words, two ...
Aldo's user avatar
  • 1,717
0 votes
2 answers
4k views

About embeding assets(images) in AS3 project

I am using flex sdk 4.5.1 and flash develop to compile my AS3 project. I have small images, about 12KB which is silly to load them using Loader class, so embeding is better solution. However when ...
Vlad's user avatar
  • 2,767
0 votes
1 answer
1k views

Flex 4 - Embedding Multiple MP3's

I have an mp3 embedded in a Flex application with a start and stop button. Using this code... <fx:Script> <![CDATA[ import mx.core.SoundAsset; import flash.media.*; [Embed(source="assets/...
Will's user avatar
  • 1,355
0 votes
2 answers
2k views

Why embed PNG in Action Script looks pixelated when added to a stage?

Here is what I do: package { import flash.display.Bitmap; import flash.display.Sprite; public class Loading extends Sprite { [Embed(source="loading.png")] private ...
jayarjo's user avatar
  • 16.5k
0 votes
1 answer
2k views

Embed images using FlashDevelop - AS3

I'm not finding much documentation on embeding images in .as files. Really, I'd like to have some theory on it. So far from what I got reading here and there: I placed an image in Assets folder ...
RAO's user avatar
  • 71
0 votes
1 answer
209 views

Embed Youtube channel into Flash Site

How can i embed a Youtube channel to a Flash site?, is it posible using ActionScript3?
Carlos Ancona's user avatar