hi all,

still wrestling wildly with as3 - i 'do' think it will be worth the migration - but at the moment am trying to get my head around even the simplest of tasks!


okay if i have three mc's on my stage named sprite1 sprite2 sprite3 and i want them to sit above the image wall created by this script how do i do it?

PHP Code:
/*
Created by Min Thu
    http://www.flashmo.com
    
AS3 References and Credits
    http://blog.papervision3d.org/
    http://theflashblog.com/?p=306
    http://www.gotoandlearn.com/
    http://www.onerutter.com/
    http://labs.blitzagency.com/
    http://vilebody.wordpress.com/2007/11/29/3d-papervision-plane-events/
*/
import org.papervision3d.scenes.*;
import org.papervision3d.cameras.*;
import org.papervision3d.objects.*;
import org.papervision3d.materials.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.display.Sprite;
import flash.events.MouseEvent;


var 
container:Sprite = new Sprite();
container.400;
container.300;
addChild(container);

var 
scene:Scene3D = new MovieScene3D(container);
var 
cam:Camera3D = new Camera3D();
cam.zoom 6;

tn_title.text "";
tn_desc.text "";
tn_url.text "";

var 
p_dict:Dictionary=new Dictionary();
var 
pc:Plane = new Plane();
pc.visible false;
cam.target pc;

var 
numOfRotations:Number 3;
var 
yPos:Number 0;
var 
angle:Number 0;

var 
filename_list = new Array();
var 
url_list = new Array();
var 
url_target_list:Array = new Array();
var 
title_list = new Array();
var 
description_list = new Array();
var 
folder:String "thumbnails/";

var 
i:Number;
var 
j:Number 0;
var 
k:Number 0;
var 
l:Number 0;
var 
m:Number 0;
var 
total:Number;
var 
flashmo_xml:XML = new XML();
var 
loader:URLLoader = new URLLoader();
loader.load(new URLRequest("thumbnail_list_3.xml"));
loader.addEventListener(Event.COMPLETEcreate_thumbnail);

function 
create_thumbnail(e:Event):void 
{
    
flashmo_xml XML(e.target.data);
    
total flashmo_xml.thumbnail.length();
    var 
anglePer:Number = ((Math.PI*2) * numOfRotations) / total;
    
    for( 
0totali++ )
    {
        
url_list.pushflashmo_xml.thumbnail[i].@url.toString() );
        
url_target_list.pushflashmo_xml.thumbnail[i].@target.toString() );
        
title_list.pushflashmo_xml.thumbnail[i].@title.toString() );
        
description_list.pushflashmo_xml.thumbnail[i].@description.toString() );
        
        var 
bfm:BitmapFileMaterial = new BitmapFileMaterial(
            
folder flashmo_xml.thumbnail[i].@filename.toString());
        
bfm.oneSide false;
        
bfm.smooth true;
        var 
p:Plane = new Plane(bfm14010522);
        
scene.addChild(p);
        var 
p_container:Sprite p.container;
        
p_container.name "flashmo_" i;
        
p_dict[p_container] = p;
        
p_container.buttonMode true;
        
p_container.addEventListenerMouseEvent.ROLL_OVERp_rollover );
        
p_container.addEventListenerMouseEvent.ROLL_OUTp_rollout );
        
p_container.addEventListenerMouseEvent.CLICKp_click );
        
        
p.rotationY = (-i*anglePer) * (180/Math.PI) + 90;
        
p.Math.cos(anglePer) * 480;
        
p.Math.sin(anglePer) * 480;
        
p.yPos;

        if( (
i+1) % 20 == )
        {
             
yPos += 115;
        }
    }
}

function 
p_rollover(me:MouseEvent
{
    var 
sp:Sprite me.target as Sprite;
    var 
tw:Tween = new Tween(sp'alpha'Strong.easeOut10.50.6true);
    var 
s_no:Number parseInt(sp.name.slice(8,10));
    
tn_title.text title_list[s_no];
    
tn_desc.text description_list[s_no];
    
tn_url.text url_list[s_no];
}
function 
p_rollout(me:MouseEvent
{
    var 
sp:Sprite me.target as Sprite;
    var 
tw:Tween = new Tween(sp'alpha'Strong.easeOut0.510.6true);
    
tn_title.text "";
    
tn_desc.text "";
    
tn_url.text "";
}
function 
p_click(me:MouseEvent
{
    var 
sp:Sprite me.target as Sprite;
    var 
s_no:Number parseInt(sp.name.slice(8,10));
    
navigateToURL(new URLRequest(url_list[s_no]), url_target_list[s_no]);
}

addEventListener(Event.ENTER_FRAMErender);

function 
render(e:Event):void
{
    var 
dist2:Number = ((stage.mouseX) - 400) * 0.0001;
    
angle += dist2;
    
cam.= - Math.cos(angle) * 150;
    
cam.Math.sin(angle) * 150;
    var 
new_zoom 5
    
cam.zoom += ( new_zoom cam.zoom ) * 0.06;
    
scene.renderCamera(cam);

that script creates a scrolling image wall but the wall sits above the three mc's and not at a lower depth.

do i need to create each mc dynamically? something like

sprite1 = newsprite etc...

or can i just say that sprite 1,2,3 should appear at depth 10,11,12?

i also need the mc's to act as a navigation - so if sprite1 is clicked the swf timeline will go to frame2 - and if sprite2 is clicked goto frame3

how do i do these things in as3? i would be able to do it in as2 but i can't work it out for as3 - some much is different! - anyone shed some light for me? please?