Embedding externals resources in SWF

Here what I’m tying to do. I have an SWF files exported from Indesign CS5 with animation and some videos/sounds. Their is no options inside InDesign to automatically embedding theses resources when creating the SFW. So when I import the SWF in Catalyst and play it either as SWF or AIR all the video is missing and the sound also. I have read one FAQ  ( http://bit.ly/a7Sk8H ) about that in the forum but the solutions is outdated (was written for the beta in 2009) and does not works.
So, how can we make FC to recognize the externals resources and be able to play them when exported to SWF or AIR?
Thanks
Jean-Claude

Hi Ian...
Ok, that works fine when copying the folders created by InDesign that is called ([Whatever] Resources) at the same level of the main.swf in the bin-ebug folder. This work fine when using Run Project to preview the swf from Catalyst itself. But When Publishing, none of the assets is copied to the "run-local" or "deploy-to-web" folder. So we need to manually copy the resources again.
What I was interested in was to build an AIR app out of Catalyst, but the video/sounds does not seems to be included in the AIr application. At least they do not play in the application.
If I do a right click on the AIR application, and take a look inside the package, in the Contents > Resources folder, I can see the video and sound file in two places (1) Floating at inside the Resources folder and also (2) Inside the assets > medias folder
So a few question remain.
(1) Why does I have a duplicate of the files inside the air app?
(2) Why it is not working (even if I manually place them manually?
Thanks for your help!
Jean-Claude

Similar Messages

  • RSL failover error when compiling a resource module swf

    Hi, I have migrated my application from Flex SDK 3.4 to 4.1. I am moving to Flex SDK 4.5.0.17689 (Hero Milestone build) to use the Spark Form control for better layout of the RTL languages.
    I am compiling my resource bundles into SWF files and using them. I am including the required framework bundles also when compiling my resources into SWF. It was working well with SDK 4.1. But when I am trying to compile the resource bundles with SDK 4.5.0, I am getting the following RSL failover.
    Loading configuration file C:\Program Files (x86)\Adobe\Adobe Flash Builder Burrito\sdks\4.5.0\frameworks\flex-config.xml
    Required RSLs:
        http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/framework_4.5.0.17689.swz with 1 failover.
        http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.139/textLayout_2.0.0.139.swz with 1 failover.
        http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/spark_4.5.0.17689.swz with 1 failover.
        http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/sparkskins_4.5.0.17689.swz with 1 failover.
        http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/rpc_4.5.0.17689.swz with 1 failover.
        http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/osmf_1.0.0.16316.swz with 1 failover.
        http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/mx_4.5.0.17689.swz with 1 failover.
    D:\FlashBuilder_Burritto\myApp\src\MyAppResources_en.swf (39276 bytes)
    The SWF files gets generated, I copied it to the deployment folder and when I start the application, I am getting the following error even though this bundle is included in my compile command.
    Error: Could not find compiled resource bundle 'core' for locale 'en'.
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\hero_private_bet a\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:367]
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\hero_private_be ta\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:287]
        at mx.core::FlexModuleFactory/installCompiledResourceBundles()[E:\dev\hero_private_beta\fram eworks\projects\framework\src\mx\core\FlexModuleFactory.as:631]
        at mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\hero_private_beta\frameworks\projects \framework\src\mx\core\FlexModuleFactory.as:601]
        at mx.core::FlexModuleFactory/docFrameListener()[E:\dev\hero_private_beta\frameworks\project s\framework\src\mx\core\FlexModuleFactory.as:129]
    This is the command that I use to compile resource bundles into SWF file.
    C:\"Program Files (x86)"\Adobe\"Adobe Flash Builder Burrito"\sdks\4.5.0\bin\mxmlc -locale=en -source-path=locale/{locale} -include-resource-bundles=core,effects,skins,styles,components,layout,MyAppResources -output MyAppResources_en.swf
    What do I need to do to remove the above error?

    Dear Vijayudu1,
    First things first.
    1. Failovers are NOT errors. They are just showing that if particular url set for the RSL(Runtime Shared Libraries) as mentioned in flex-config.xml, is not found then they had used a backup url to get connected.
    Have a reference from : http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf674ba-7fff.html
    2. Try using: -locale en_US -source-path=locale/{locale} -keep-all-type-selectors=true ,and other paramaters for compiling resource bundles. Hope you may resolve your errors.

  • Using embeded fonts in loaded swf.

    I have a .Swf, which has 3 fonts embedded in it, they are all exported in frame 1 for AS.  This swf loads any number of external .swfs which have dynamically generated textfields inside of them.  This text must be embedded text because effects may be applied to them.  I do not want to embed the three fonts into every external swf, and do not think I should have to.  The font exists in the Loading swf and I have registered the fonts to the global font list.  If I print this list from the loaded swf, all three fonts are present, but when I try to use any of them, my textfiels are empty.
    My question is how do I utilize a font which is embedded in a swf, from a swf which has been loaded into that swf?
    From my external swf, this code:
    [PHP]var embeddedFonts:Array = Font.enumerateFonts(false);
    embeddedFonts.sortOn("fontName", Array.CASEINSENSITIVE);
    trace(embeddedFonts);[/PHP]
    produces the following:
    [PHP][object CenturyBook],[object MyriadProRegular],[object MyriadProItalic][/PHP]
    which are the three fonts that are embedded in the loading swf, So I assume the LOADED swf has access to these fonts.
    When I apply this code to the externally loaded swf:
    [PHP]var FontClass:Class = getDefinitionByName("MyriadProRegular") as Class;
    trace("FontClassInstance -> " + FontClass.toString());
    var linkedFont: Font = new FontClass();
    trace("Font name: " + linkedFont.fontName);
    var textFormat: TextFormat = new TextFormat(linkedFont.fontName, 14);
    //... The next lines set up the text box and apply the format.  I am sure this is done correctly.
    [/PHP]
    I get the following output:
    [PHP]FontClassInstance -> [class MyriadProRegular]
    Font name: Myriad Pro[/PHP]
    which is exactly what I would expect.  Yet, my text box is still blank.  I have embedText = true on the text box, and have applied a string to the "text" property, so it's nothing silly liek that.
    Any help would be appreciated...

    You may also want to look at the various embedded font format issues. Many of the Flex 4 components use a newer embedded font fortmat, which is not the same as the one generally used in Flash. So even if ther Flash font gets registered properly, it still may not work with some of the spark components.
    You should be able to create a swf using Flex that contains fonts embedded in either format, which can then be used in the way you describe, though, since Flex 4 suports both font formats.
    Hopefully, someone else will jump in here if I got some of this wrong.
    -JM

  • Embedded License Resource Kit for Oracle Application Server 10g

    Hi,
    I work for a company and we are an Oracle partner. We would like to deliver our flagship product with Oracle Database and Application Server (10g) embedded.
    According to an Oracle press release back in october 2003, Embedded License Resource Kits for Oracle Database and Oracle Application Server are available through the Oracle Partner Network (http://www.oracle.com/corporate/press/2484668.html)
    I found a kit for Oracle Database through OPN but was not able to find one for Oracle Application Server 10g.
    Does such a kit still exist for Oracle Application Server, and if yes where can I download it?

    Go to MyOracleSupport/Metalink.
    Click patches and Updates on the top left bar. Download the patches.
    Each patch comes with its readme.txt. Do read it. It shows you how to install the patch. it also gives syntax with example for various scenarios of how to install it, or remove a patch either. In most of the patches, Installing a patch again does not hurt your system.
    It's a good practice to keep db inventory clean before attempting to install the patch because otherwise the patch installation will fail.
    hope that helps!
    AMN

  • Embeding symbols from a swf created with mxmlc

    Hello everyone,
    I am trying to bundle my resources in seperate swf files then use them in another flex project. I create this bundles from a wizard i wrote in AIR. AIR app calls mxmlc to compile bundle.as and i dynamicaly load bundle.swf. I can access resources from this bundled swf using ApplicationDomain.getDefinition(). No problem there
    However i also want to use my wizard to edit prexisting bundles. Problem is i cannot embed resource from original bundle to new bundle. I mainly use Sprite and ByteArray assets in bundles.
    To simplfy problem i prepared following test. Created a bundle application to create bundle swf in flex. The project has 4 files: 2 .as files, 1 .png file, 1 .swf file( from FLA which has a symbol linked "Fill" )
    // Bundle.as
    package
              import flash.display.*;
              public class Bundle extends Sprite
                        public function Bundle()
                                  var fla:DisplayObject = new Fla();
                                  addChild(fla);
                                  var image:DisplayObject = new Image();
                                  addChild(image);
    // Image.as
    package
              import flash.display.Bitmap;
              [Embed(source='plus.png')]
              public class Image extends Bitmap
    // Fla.as
    package
              import flash.display.Sprite;
              [Embed(source='fla.swf', symbol="Fill")]
              public class Fla extends Sprite
                        public function Fla()
    Project above compiles without problem and i can see both assets on screen.
    Then i create a second project which will use swf created from project above.
    package
              import flash.display.*;
              public class Application extends Sprite
                        [Embed(source='Bundle.swf', symbol='Fla')]    /// Flex cannot embed this
                        private var flaClass:Class;
                        [Embed(source='Bundle.swf', symbol='Image')]  /// But it can embed this
                        private var imageClass:Class;
                        public function Application()
                                  var fla:DisplayObject = new flaClass();
                                  addChild(fla);
                                  var image:DisplayObject = new imageClass();
                                  addChild(image);
    The second project can only see Bitmap  asset as symbol. But could not find Sprite asset.
    We depend heavily on vector graphics from Flash, and byte array assets embeded with
    [Embed(source='x.ba', mimeType="application/octet-stream")]
    I could write byte array assets into a temp dir and embed them again but i cannot do it with Sprites. How can i solve this problem.

    Interesting problem. What happens if you encapsulate the embed in the first Bundle?
    Something like this:
    package
              import flash.display.Sprite;
              public class Fla extends Sprite
                       [Embed(source='fla.swf', symbol="Fill")]
                       private var flaClass:Class;
                        public function Fla()
                            var flaAsset:DisplayObject = new flaClass();
                            addChild(flaAsset);
    *edit*
    Fixed typo in code.
    Message was edited by: drkstr_1

  • Accessing a non TTF/OTF font embedded in Flash CS5 SWF via Flex

    Hello,
    I'm trying to embed an older Mac font in a Flash Builder application. I need it to be loaded dymanically for size reasons. I am able to do this with TTF and OTF fonts, but I'm having trouble with other formats.
    I embedded the font in a CS5 FLA, but I can't seem to locate the font when I load the SWF into Flash Builder.
    My function is below. I have it enumerating through the variables in the loaded SWF, but the font I need is not coming up as one of them. I tried, in the FLA, to cast the embedded font to a Class in AS because, but when try to access that variable ("font") after it's loaded, I get null. I also tried setting the embedded font to a Font variable in AS, but I still get null on the other side. Does anyone have any suggestions? Alternate solutions are welcome also.. Thanks!!
            private function loadFonts():void{
                var lc:LoaderContext = new LoaderContext();
                lc.securityDomain = SecurityDomain.currentDomain;
                lc.applicationDomain = ApplicationDomain.currentDomain;
                var ldr:Loader = new Loader();
                ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
                ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                ldr.load(new URLRequest('compatil_bold.swf'),lc);
                function completeHandler(e:Event):void{
                    fontLibrary = e.target.applicationDomain.getDefinition('Compatil') as Class;
                    var varList:XMLList = flash.utils.describeType(fontLibrary)..variable;
                    for (var i:int = 0; i < varList.length(); i++){
                        trace(varList[i].@name+': '+fontLibrary[varList[i].@name]);   
                    Font.registerFont(fontLibrary.font);
                    //Font.registerFont(fontLibrary.CompatilFactBold);
                    trace('font loaded');
                    fontsLoaded = true;
                function ioErrorHandler(e:ErrorEvent):void{
                    trace(e.text);
    in FLA
    var font:Class = new CompatilFactBold() as Class;

    I got it!
    Here is the embedded font in a CS5 FLA:
    That's all you have to do in Flash.
    Here's the function I have in my Flash Builder AS application:
    private function loadFonts():void{
    var lc:LoaderContext = new LoaderContext();
    lc.securityDomain = SecurityDomain.currentDomain;
    lc.applicationDomain = ApplicationDomain.currentDomain;
    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
    ldr.load(new URLRequest('http://some.other.domain/compatil_bold.swf'),lc);
    function completeHandler(e:Event):void{
    fontLibrary = e.target.applicationDomain.getDefinition('CompatilFactBold') as Class;
    Font.registerFont(fontLibrary);
    trace('font loaded');
    fontsLoaded = true;
    function ioErrorHandler(e:ErrorEvent):void{
    trace(e.text);
    Then you reference the font by its name when you want to use it. In this case: 'CompatilFact LT Bold.'
    update: question is answered.

  • Embedding Button symbol from swf

    Hi,
    I am embedding a Button Symbol into Flex from from a swf. The Button inside the swf has an up and over state. Now I embed the symbol into an image in Flex. The image is in one of my states.
    All works fine initially  in Flex as far as the up over state. Now the  The problem is when I go back to the base state and then back to the state with the embedded swf symbol.....it initializes still in the over state, until I mouse over then mouse out and now its in the Up state.   What could be the probelm here??
    thanks for taking time to look at this!
    -Mike
    // -- SWF EMBED ---
                [Embed(source="skins/ICD9_ReferenceCodes_v2_3_blue.swf", symbol="back_btn_button")]
                [Bindable]
                public var BadApple:Class;
    // -- SWF EMBED END --
    <mx:State name="search_code">
                <mx:RemoveChild target="{vbox1}"/>
                <mx:SetProperty target="{text1}" name="text" value="Code Search:"/>
                <mx:SetProperty target="{text1}" name="x" value="130"/>
                <mx:SetProperty target="{text1}" name="y" value="136"/>
                <mx:RemoveChild target="{image1}"/>
                <mx:AddChild position="lastChild">
                    <mx:Image  id="image_BackBtn1" x="11" y="74.95" source="{BadApple}"
                              click="OnClickNewSearch(event)"
                              />
                </mx:AddChild>
                <mx:SetProperty target="{image_BackBtn1}" name="y" value="74.95"/>
            </mx:State>

    Alex,
    I'm not  following  you, why do I need a button?.....can create Mouse over and out events like this?:
    var event:MouseEvent = new MouseEvent(MouseEventMouseEvent.MOUSE_OVER.);
    myImage.dispatchEvent(event);
    var even2t:MouseEvent = new MouseEvent(MouseEventMouseEvent.MOUSE_OUT.);
    myImage.dispatchEvent(event2);
    would this work?
    BTW any idea if this is a Bug or known issue that I'm experiencing?
    -Mike

  • Need help embedding a mp3 player swf with xml playlist

    Im a noob to Flash (started tuesday, haha) and so far everything is coming along just fine, but i need to put music in the swf. I have a button set up that slides a swf mp3 player in from the side but i dont know how to make the playlist work with it.
    The player is from this site:
    http://www.bezzmedia.com/swfspot/samples/flash8/Mp3_Player_with_XML_Playlist
    Using the xml playlist with html is simple enough, but im not sure how to use it with Flash Catalyst. Is there an easy way to do this?
    My original plan was to have a text list of the songs with a play button next to each one, then when you click on the play button it would set the state of any other songs to Stopped so you can just pick what song to play and if another song was playing it would stop. Im not sure how to do this either (like i said, i started learning this week), so i just tried embedding someone else's (ugly) mp3 player.
    Anyway, if anyone knows a relatively easy way to have a playlist in my swf please let me know. Thanks!

    If I understand you correctly, you've imported a SWF into Catalyst using Import Artwork on the File menu. When your app runs, you want to pass that swf a parameter that tells it what URL to read a data file from. The SWF is not one that you've created, rather, you got it from some web site.
    This is not something that you can do in Catalyst. However it should be possible to do in Flash Builder. I found an article discussing several ways to do it, at http://www.actionscript.org/forums/showthread.php3?t=175951. One idea is the following code snippet
    <fx:Script>
        <![CDATA[
        import flash.events.*;
        private function setVars(event):void
            event.target.content.yyyyyy = "zzzzzz";
        ]]>
    </fx:Script>
    <mx:Image source="xxxxx" complete="setVars(event)" />
    where "xxxxx" is the path of the SWF (you can put it somewhere in your Flash Builder project, or reference it via an URL), and yyyyy is the name of the parameter that the SWF expects, and zzzzzz is the path to the data file. The <Image> tag is what Catalyst created when you imported the SWF. (btw.the Image and SWFLoader tags are almost identical).
    I hope this gives you enough info to make progress.

  • Embedding a Captivate 7 SWF into a Captivate 7 project causing error "R6025".

    Good day,
    I am wondering if anyone else has encountered this issue and how it was resolved (if at all).
    Recently, one of our clients contacted us to request we resend a source file (originally built with Captivate 6) due to perceived file corruption. Upon investigating, the file will open correctly on the PC used to develop the slide initially (using Captivate 6), but will crash and cause an error when Captivate 7 attempts to open the file (tested on multiple systems).
    The problem file(s) are a parent single slide Captivate project which contains a single slide quiz (which is published out as a SWF and embedded in the parent).
    To resolve the issue we figured that recreating both slides in Captivate 7 would be easiest solution. After recreating both from scratch, the same issue occurs. The project can be opened without issue on the development PC with Captivate 7, yet crashes when any other PC with Captivate 7 attempts to open the source file.
    Here is a screen cap of the error message which pops-up during the Captivate 7 crash.
    Anyone have any ideas how to resolve this issue?
    Cheers and thanks,
    Patrick

    Hi Lilybiri,
    Yes, this slide has an CP-Published SWF in the CP-file. This procedure was used on multiple projects without issue. It only appears to have become an issue when Captivate 7 is introduced.
    With respect to not having all of the slides in a single project; this has to do with the design of our client's product and the requirement to have every slide be its own project file. We have discussed the merits of not using this approach, but they expressed a reluctance to change the approach (there are internal aspects of their organization at play which we are not privy to).
    I am guessing the best bet will be to re-design the approach on this particular problem slide then?
    Cheers,
    Patrick

  • Embedding .xml into a .swf?

    I am trying to creat a standalone .swf file with my .xml file embedded to creat an image carousel.  I have found no way to do this (I am super new to Flash) except for the
    [Embed(source="carousel.xml", mimeType="application/octet-stream")]
    protected const EmbeddedXML:Class;
    var x:XML = XML(new EmbeddedXML());
    trace(x.toXMLString());
    but when I do this I get a Sytax Error on line 2.  Please help, thanks in advance....

  • Embeded flv music in swf? 

    A client wants a music player that has embedded music, rather
    than streaming from a separate mp3 file. I explained the file would
    be much faster loading if we could stream it, but he said something
    about how that wouldn't work with his .net framework. He said that
    the last flash guy that he worked with was able to do this for him.
    I've already converted the audio into an flv. and I've gotten
    the song down to about 1.9 mb. which will have to do.
    Does anybody know how I would go about accomplishing this? I
    only know how to stream.

    jonnyfogel,
    >A client wants a music player that has embedded music,
    > rather than streaming from a separate mp3 file.
    Heh, the customer is always right. ;)
    > I explained the file would be much faster loading if we
    > could stream it, but he said something about how that
    > wouldn't work with his .net framework.
    That just doesn't make sense, honestly. As long as his web
    server knows
    what an MP3 is, and is allowed to serve it up when requested,
    an external
    audio file is definitely the better way to go.
    > I've already converted the audio into an flv. and I've
    gotten
    > the song down to about 1.9 mb. which will have to do.
    Not sure why the audio needs to be converted to an FLV
    first. As a
    rule, FLV is a video format (though strictly speaking, you
    could have a
    videoless video file). I would export the audio as an MP3
    file, or some
    other strictly audio format (e.g., WAV or AIFF), then import
    that into the
    Library. Right-click your audio Library asset and choose
    Properties to see
    what your various compression settings are.
    For example, even if the original file is greater than
    1.9MB, you can
    adjust the compression settings inside Flash to experiment
    until you hit the
    "sweet spot" balance between fidelity and file size. You can
    never get
    better fidelity than what the original file has, so if your
    Library asset is
    already compressed, you can only bump it down in quality.
    Food for thought.
    With your settings configured (you'll see a Test button in
    the Audio
    Properties dialog), insert a keyframe in the main timeline
    where the audio
    should start. Click inside that keyframe and use the Property
    inspector to
    select your audio asset from the Library. Using this
    approach, you have
    effectively two choices: Event sound or Stream sound. Event
    sounds load
    into memory fully before they start to play. This means the
    playhead can be
    paused (stop() action) and the audio will keep playing until
    you stop it.
    Stream means the only that *frame*'s worth of audio loads, so
    you could
    potentially need *tons* of additional frames in that timeline
    in order for
    the full audio to be heard. There are pros and cons to
    everything, and the
    pro to Stream means you can potentially start hearing the
    audio before the
    SWF fully loads. The con, as I mentioned, is that you have to
    add enough
    frames to hear the audio play out.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • AIR 3.0 mx:HTML embedded fonts in external swf - silent craziness

    The recent upgrade to AIR 3.0 has hosed our application.  We rely heavily on an mx:HTML control to render the UI of our application using javascript and HTML templates.  Everything has been working great in production for months, until Adobe released AIR 3.0 last week.  We use embedded fonts in our application that our defined in an external .swf (loaded at runtime).  The HTML control loads a .css file that references the name of our embedded font "ArialEmbedded" and it all worked great.  But now, with 3.0 it does not respect anything in the external .swf.  We get the default Times New Roman font in all of our content, and the app crashes with reliability (in debug mode and release mode) without any exceptions being thrown.
    Using the Windows Debugger, I have been able to track it down to this call consistently - Webkit!cairo_pattern_get_type with an Access Violation erros - c0000005 . 
    After some Googling, it seems webkit uses Cairo for the graphics rendering portion of the library, and in this case it is trying to render a specific color.
    1) I've tried forcing the moduleLoader on the HTML control to use the moduleLoader of the parent Spark component - to no avail.
    2) Did something change with style management and loading external .swf files?
    3) Any other help?  At this point, I have no idea where to begin.  When it crashes, usually during the rendering of items in a grid the AIR process will grab about 2GB of RAM all at once and then stop working with the windows process stopped working dialog.
    Thanks for any help,
    Steve

    Hi,
    Could you please open a new bug report on this over at bugbase.adobe.com? Please include sample media, code, project or app to help us reproduce the issue. Finally, once the bug has been added, would you mind posting back with the URL so that others affected can add their votes and comments?
    Thanks,
    Jian
    Adobe Flash Runtime team

  • AS3: embeded audio in loaded SWF

    i'm trying to update an AS2 swf/audio player to AS3 and
    running into trouble. i'm exporting an embedded mp3 as a Sound
    object, then loading that SWF into a player engine that is
    skinnable... is there anyway to treat the SWF as a streaming sound?
    Having to wait until the Loader INIT event fires isn't really gonna
    work...
    i had attempted encoding the audio as FLV, which was working
    great with FLVPlayback - until you do anything to the browser
    window (like resizing) which causes erratic sound playback. not
    cool...
    thanks!!!!!

    to stop all movieclips use:
    var imageReq:URLRequest = new URLRequest("square.swf");
    var imageLoader:Loader = new Loader();
    imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadHandler);
    imageLoader.load(imageReq);
    function loadHandler (event:Event)
        var myClip:MovieClip = event.currentTarget.loader.content
        addChild(myClip);
        stopAllF(myClip);
    function stopAllF(mc:MovieClip):void{
    mc.stop();
    for(var i:int=0;i<mc.numChildren;i++){
    if(mc.getChildAt(i) is MovieClip){
    MovieClip(mc.getChildAt(i));

  • How do I hide the SWF play button when printing an embedded PDF with a SWF

    When I print the PDF there is a big play button over some text. Can it be hidden?
    Is there are a way of resizing a SWF once embedded? It's a pain to work with.
    Sometimes, although the SWF is transparent and embedded as transparent but when printed it buts a grey box behind.
    Any ideas Adobe?

    If the annotation isn't activated, you are printing the JPEG poster image instead - which doesn't have transparency. By default, poster images created from the media will have the play icon burned in, just choose your own image.

  • Using an Embedded Font in another .swf

    I am encountering a situation with font embedding that hopefully someone out there will know the solution to. This is a slightly boiled-down version of the problem but all the pertinent details are included. Without further ado, here's the situation:
    TLDR Version:  If I have a font embedded and registered with Font.registerFont(), and I attempt to use that font in a .swf that was compiled from an .fla in Flash CS5 that so much as MENTIONS that font, it fails.
    Longer Description:
    The Goal: Embed fonts in 1 .swf, use those fonts in many .swfs. Simple.
    Fonts.swf
    I have 3 .swf files. The first is called Fonts.swf. This was created in Flash CS5. It contains an embedded font( Franklin Gothic Demi ) with characters a-z, A-Z, numerals, and punctuation, etc. Regular, not bold. The font is exported for actionscript and the class is FranklinGothicDemi.
    On the main timeline of Fonts.swf is the code:
    Font.registerFont( FranklinGothicDemi ).
    Application.swf
    The second .swf is Application.swf. The following code snippet is from Application.as:
    [Embed(source="Fonts.swf")]
    private static var EmbeddedFonts:Class;
    initFonts()
    var embedFont:EmbeddedFonts = new EmbeddedFonts();
    embedFont.addEventListener( Event.COMPLETE, function( e:Event ){ traceEmbeddedFonts(); } );
    When traceEmbeddedFonts is called, it verifies that Franklin Gothic Demi is in fact registered.
    UserInterface.swf
    The third .swf file is UserInterface.swf. Fonts are NOT embedded in this file. They are not supposed to be. The project has many .swf files and they should all be using the fonts embedded in Fonts.swf.
    On the main timeline of UserInterface, it calls it's own version of traceEmbeddedFonts(), which again confirms that Franklin Gothic Demi is embedded.
    Inside UserInterface is a TextField we'll call mMainTextField, with some text, say "Main Menu". The font is "Franklin Gothic Demi", the anti-alias style is 'use device fonts.' I have tried other anti-alias styles as well.
    As it turns out, UserInterface.swf is 'embedding' Franklin Gothic Demi, with a character set of a big fat 0 characters. This is taking precedence over the Franklin Gothic Demi font embedded from Fonts.swf. I can side-step this problem by setting mMainTextField to use some other Font while publishing and then using actionscript to change it back to Franklin Gothic Demi when the project is running, but that's not a solution that is friendly to the artists.
    In essence, the question is simple: Why is Flash Embedding and Registering fonts with character sets of size 0, despite the fact that nowhere in UserInterface.swf is there a request to embed fonts, and how do I prevent it from doing so?
    If anyone who sees this has already encountered and solved this problem and shares the solution with me, you will be my favorite person .
    Thanks!
    -J

    You know, I think its just a bug inside Flash Builder Burrito. When I run my app through the emulator it doesn't display correctly but when I run it on my phone it works as it should.

Maybe you are looking for

  • Final Cut Studio 2 6.0.4 and the Canon ZR65

    I can't get my new spiffy do it all and cut everyone else to the quick computer to even recognize my Canon ZR65 miniDV camera. This is a really useless situation. I have a piece that needs to be to Sundance by the 15th of Sept. and I can't do a thing

  • Generic icons instead of application icons

    In Finder windows, I regularly get generic document icons instead of those belonging to the associated application, e.g.,  generic PDF icons instead of the Adobe Reader icon (which is what I's like to show up). Solutions? Thank you.

  • Editor won't open anymore

    I have been having such a hard time getting some actions installed in PSE8 on my new desktop.  I am operating in Windows 7.  When I tried to delete the MediaDatabase.db3 to rebuild a new one with the new actions, it crashed, and now will not open at

  • Here's my experience

    So My b210 for some unknown reason has stopped working with my ipad I reset to factory It tells me to log on to eprint I go to log on Hp eprint tells me i ***HAVE*** to combine by existing snapfish account that i never even knew i had let alone used.

  • Query mode & default values

    Hi, When a block is put into QUERY MODE all the fields in it are blanked. I am looking for a way to put in default values in some of my fields when in query mode. Is this possible. Any help is appreciated. Regards, Klas Malmstrom [email protected]