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

  • Home
  • SEARCH
  • 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 6140763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:09:40+00:00 2026-05-23T18:09:40+00:00

I have problem accessing content from an Illustrator SWF(I create the swf using illustrator,

  • 0

I have problem accessing content from an Illustrator SWF(I create the swf using illustrator, I export I Save layers as symbols).
When I create my swf file using flash i can access shapes and symbols using this code.

I am trying to get and change the color of a symbols in my swf file

var flashMovie:Sprite = this.content as Sprite;
for (var i:int = 0; i < flashMovie.numChildren; i++) 
{                           
flashMovie.getChildAt(i).name;
flashMovie.getChildAt(i).transform.colorTransform.color;                    

}

But when I create my swf file using Illustrator it return nothing.

How can can i access the content and change the color of an Illustrator SWF

  • 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-23T18:09:41+00:00Added an answer on May 23, 2026 at 6:09 pm

    Is it possible to export AVM2 (AS 3) swf’s using Illustrator? Correct me if i am wrong, but as far as I know Illustrator CS5 still exports AVM1 (AS 1 & 2) swf’s. Within a AS3 Project all loaded AS2 Movies are represented by the flash.display.AVM1Movie class. This class has no display-chain children, it is just a DisplayObject showing the rendered AVM1 Clip. From this it follows that you can’t access any symbols defined by Illustrator.

    I am not quite sure if you can use the call() Method to invoke some Method within a AVM1Movie. Is it possible to add AS2 methods within Illustrator? Probably not…

    You can either export every element as single swf, or choose some other export format such as svg.

    package
    {
        import flash.display.AVM1Movie;
        import flash.display.DisplayObject;
        import flash.display.Loader;
        import flash.display.MovieClip;
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.Event;
        import flash.net.URLRequest;
        import flash.utils.describeType;
    
        public class AIImportDemo extends Sprite
        {
            private var __loader:Loader = new Loader();
            public function AIImportDemo()
            {
                super();
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE
                __loader.contentLoaderInfo.addEventListener(Event.COMPLETE,__onComplete);
                __loader.load(new URLRequest('assets/myAIExport.swf'));
            }
            private function __onComplete($e:Event):void{
                addChild(__loader);
                trace(describeType(__loader.content));
                trace("is MovieClip "+ (__loader.content is MovieClip)); // false   
                trace("is Sprite "+ (__loader.content is Sprite)); // false
                trace("is Shape "+ (__loader.content is Shape)); // false
                trace("is AVM1Movie "+ (__loader.content is AVM1Movie)); // true
                trace("is Display Object "+(__loader.content is DisplayObject)); // true
    
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a problem in accessing content on a mapped network drive. We have
I have a problem that annoys me pretty much. I'm grabbing some content from
I am building my first ASP.Net MVC based app and have a problem accessing
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have a problem using the Java search function in Eclipse on a particular
I really seem to have a big problem here. I'm using MySQL to store
Hi I am still learning Jquery and have a problem accessing form elements. My
In Rails 3, I am having a problem accessing a helper method from within
I have an HttpModule which is used to dynamically compress content from an ASP.NET
Seems like everyone have issue accessing local machine or internet etc from emulator. All

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.