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