Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6127211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:28:39+00:00 2026-05-23T16:28:39+00:00

I know nothing about Flash Professional, but a friend has given me a .swf

  • 0

I know nothing about Flash Professional, but a friend has given me a .swf that supposedly contains some graphics that he wants imported into a Flex program – which I know a fair bit about.

I have the .swf, but I have no idea what to put for “symbol”. My friend doesn’t seem to know what I’m talking about. How can I determine the symbol name to put in the 2nd parameter of the embed?

[Embed(source='SomeSwf.swf', symbol='WhatGoesHere??')]

Is there some way to browse the .swf, or some way to just import the whole thing and step through the symbols in actionscript?

Thanks In Advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:28:40+00:00Added an answer on May 23, 2026 at 4:28 pm

    You should specify the Linkage name of the symbol as the 2nd parameter.
    To set up Linkage name your friend should select symbol from Library panel, open its properties, and select “Export for Actionscript” checkbox, specify class name (if needed):

    Class name specified in this panel is the 2nd parameter you should use to embed that object. After publishing swf you’ll be able to instance that symbol object this way:

    public class EmbedTest extends Sprite
    {
        [Embed (source = "square.swf", symbol="Square")]
        private var swfAsset:Class;
    
        public function EmbedTest():void    
        {
            var embeddedSwf:*=new swfAsset();
            addChild(DisplayObject(embeddedSwf));
        }
    }
    

    UPD1:

    Is there some way to browse the .swf,
    or some way to just import the whole
    thing and step through the symbols in
    actionscript?

    You may try to step through all on-stage symbols of the embedded swf this way:

    package
    {
        import flash.display.DisplayObject;
        import flash.display.Loader;
        import flash.display.LoaderInfo;
        import flash.display.MovieClip;
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.utils.getDefinitionByName;
    
        [SWF(backgroundColor="#FFFFFF", width="1000", height="400")]
        public class EmbedTest extends Sprite
        {
            [Embed (source = "yourSwf.swf")]
            private var swfAsset:Class; 
            public function EmbedTest()
            {
                super();    
                var embeddedClip:Sprite=new swfAsset() as Sprite;
                var loader:Loader=Loader(embeddedClip.getChildAt(0));
                loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadCompleteFunction);
            }
    
            private function loadCompleteFunction(e:Event):void {
                var loaderInfo:LoaderInfo=e.target as LoaderInfo;
                var content:MovieClip=loaderInfo.loader.content as MovieClip;
                for (var i:int=0; i<content.numChildren; i++) {
                    var embeddedMovieClipChild:*=content.getChildAt(i);
                    trace (embeddedMovieClipChild.name, embeddedMovieClipChild);
                }
            }
        }
    }
    

    UPD2:
    Also consider adding assets to your project as swc files. http://blog.geewa.com/post/2009/03/16/Integrating-Flash-Professional-and-Flex-Builder-Using-SWC.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

know nothing about php, but I have this script that reads a folder and
i know nothing about medical records but im sure there's great opportunity in it
I know nothing about Xcode, except it's a Developer interface from Apple that actually
I know almost nothing about cryptography, but I would like to figure out how
I know this question is overly popular, but I find nothing that addresses rewriting
I know nothing about flash. I only need to change a few variables in
assuming that I know nothing about everything and that I'm starting in programming TODAY
i know nothing about ruby but a lot about php. when you code in
I have experience in GWT but know nothing about JSNI or Javascript . i
I don't work with Flash and consequently know nothing of it, but I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.