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 8408119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:33:10+00:00 2026-06-09T23:33:10+00:00

Im trying to load an swf into a 3D Objectcontainer.Im using Away3D (gold) Basically

  • 0

Im trying to load an swf into a 3D Objectcontainer.Im using Away3D (gold)

Basically i have loaded an object into a 3d Container, now i would like to load an swf inside that same container. I would now have my object and a SWF inside the same container so if i rotate the container so will my SWF.My swf only consist of text for now its just a test…

The loading method im using is an array…
Any ideas?

my error:

    TypeError: Error #1034: Type Coercion failed: cannot convert 
  flash.display::MovieClip@30ee0e41 to away3d.containers.ObjectContainer3D.
  • 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-06-09T23:33:11+00:00Added an answer on June 9, 2026 at 11:33 pm

    Away3D 4, is a bit more difficult. But I’ll try to point you in the right direction.

    You need to create a Mesh out of Geometry and Material.

    The Material has a texture with your MovieClip.
    The Geometry is a PlaneGeometry

    The Mesh is the Object3D instance you need to add to your ObjectContainer3D.

    You’re code would look something like this:

    var bitmapData:BitmapData = new BitmapData( mc.width, mc.height, false, 0x000000 );
    var texture:BitmapTexture = new BitmapTexture( bitmapData );
    var material:TextureMaterial = new TextureMaterial( texture, true );
    
    var geometry:PlaneGeometry = new PlaneGeometry( mc.width, mc.height );
    
    var planeMesh:Mesh = new Mesh( geometry, material );
    
    _3dcontainer.addChild( planeMesh );
    

    Now for the MovieClip to animate, you need to update the bitmap of your texture:

    mc.addEventListener( Event.ENTER_FRAME, updateTexture );
    
    private function updateTexture( e:Event ):void {
        texture.bitmapData = new BitmapData( mc.width, mc.height, false, 0x000000 );
    }
    

    Again, I did not test this, and it’s long ago since I used Away3D 4. Just don’t forget to import the used classes.

    Just have a good look in the docs:
    http://away3d.com/livedocs/away3d/4.0/

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

Sidebar

Related Questions

I'm trying to load HTML/CSS from an external domain into a SWF using Actionscript
I am trying to load a swf into an Ogre3d/Hikari application and that swf
I'm trying to load a swf file into my main swf. Everything looks fine
I'm trying to load an swf file using SWFLoader in Adobe AIR app. The
I'm trying to load in another swf on a button click using Aaction Script
I am trying to load assets from an SWC into a SWF at compile
What I am trying to do is load 2 different swf's using 2 different
I'm trying to load external SWF ( JW Player ) into my AIR Application
I'm trying to load a CSV into a DataTable using this: class CSVReader {
Im trying to load a flash movie using swfobject which i have been successful

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.