preloader in AS3 project Flash Builder, how?

Software: Away3D 3.x

edgar, Member
Posted: 09 September 2011 10:19 AM   Total Posts: 52

Hi,

I need help! I have tried so many times now to implement a preloader in this main class:

package
{
import away3d.cameras.Camera3D;
import away3d.containers.ObjectContainer3D;
import away3d.containers.Scene3D;
import away3d.containers.View3D;
import away3d.core.base.Mesh;
import away3d.core.geom.Path;
import away3d.core.utils.Cast;
import away3d.events.MouseEvent3D;
import away3d.loaders.Max3DS;
import away3d.materials.BitmapMaterial;
import away3d.materials.ColorMaterial;
import away3d.materials.EnviroBitmapMaterial;
import away3d.materials.MovieMaterial;
import away3d.modifiers.PathAlignModifier;
import away3d.primitives.Plane;
import away3d.primitives.TextField3D;
import away3d.sprites.MovieClipSprite;

import caurina.transitions.Tweener;

import flash.display.MovieClip;
import flash.display.Shader;
import flash.display.Sprite;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.events.TimerEvent;
import flash.filters.ShaderFilter;
import flash.geom.Matrix3D;
import flash.geom.Vector3D;
import flash.utils.Timer;

import org.osmf.events.TimeEvent;

import wumedia.vector.VectorText;

[SWF(width=“1200”,height=“950”,backgroundColor=“0x222222”)]

public class eyestee extends Sprite
{
  protected var scene:Scene3D;
  protected var camera:Camera3D;
  protected var view:View3D;
 
 
  //logo font container
  private var logocontainer1:ObjectContainer3D;
  private var logocontainer2:ObjectContainer3D;
  private var logocontainer3:ObjectContainer3D;
 
  //Embedded Font
  [Embed(source=“Fonts.swf”,mimeType=“application/octet-stream”)]
  protected var Fonts:Class;
 
  [Embed(source=“VrindaBold.swf”,mimeType=“application/octet-stream”)]
  protected var VrindaB:Class;
 
 
  //Embedded Text SWF
  [Embed(source = “logo.swf”)]
  protected var Logomaterial:Class;
 
  [Embed(source = “starttext.swf”)]
  protected var StartText:Class;
 
  [Embed(source = “picsballtext.swf”)]
  protected var PicsballText:Class;
 
  [Embed(source = “introballtext.swf”)]
  protected var IntroballText:Class;
 
  [Embed(source = “clipballtext.swf”)]
  protected var ClipballText:Class;
 
  [Embed(source = “docsballtext.swf”)]
  protected var DocsballText:Class;
 
  [Embed(source = “introtext.swf”)]
  protected var IntroText:Class;
 
  [Embed(source = “picstext.swf”)]
  protected var PicsText:Class;
 
  [Embed(source = “cliptext.swf”)]
  protected var ClipText:Class;
 
  [Embed(source=“playbtn.swf”)]
  protected var PlayButton:Class;
 
 
  [Embed(source=“playbtnOff.swf”)]
  protected var PlayButtonOff:Class;
 
  [Embed(source=“stopbtn.swf”)]
  protected var StopButton:Class;
 
  [Embed(source=“nextbtn.swf”)]
  protected var NextButton:Class;
 
  ....
But I don’t get it right. Can someone help me here how to implement a AS3 preloader. I know, I have to use [Frame(factoryClass=“mypreloader”)].

I studied the link http://www.bit-101.com/blog/?p=946 but I, cannot get it work.

Thanks in advance
Edgar

   

oulaboula, Newbie
Posted: 25 October 2011 03:39 PM   Total Posts: 15   [ # 1 ]

sorry, i’m coming late, but here’s an answer.
it’s not an away3d related issue, you know.

so, there’s an old meta tag :
[Frame(factoryClass=“MyFactoryClass”)], it allow you to add a frame to a document class in which you can do the preloader logic.

more infos here : http://t.co/6x2sVfMb

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X