This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?act=Print&client=printer&f=17&t=482 as retrieved on 20 Aug 2007 12:21:01 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:AQV7_JLhu58J:www.flashsandy.org/forum/index.php%3Fact%3DPrint%26client%3Dprinter%26f%3D17%26t%3D482+act%3DPrint+%22index+php%22+-lofiversion+site:www.flashsandy.org&hl=en&ct=clnk&cd=93


Google is neither affiliated with the authors of this page nor responsible for its content.
These terms only appear in links pointing to this page: act print index php

Printable Version of Topic

Click here to view this topic in its original format

Sandy's Forum _ AS2 1.x versions _ error plz help a noob

Posted by: cily35 Apr 27 2007, 12:59 PM

plz why have this error (ver 1,2)

**Error** D:\Programmi\Macromedia\Flash 8\Librerie\sandy\view\ClipScreen.as: Line 102: There is no method with the name 'updateScreen'.
_c.updateScreen();

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 22: Type mismatch.
var cam:Camera3D = new Camera3D( 700, screen );

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 29: There is no method with the name 'addCamera'.
world.addCamera( cam );

Total ActionScript Errors: 3 Reported Errors: 3

------------------------------------------------------
origin



import sandy.core.data.*;
import sandy.core.group.*;
import sandy.primitive.*;
import sandy.view.*;
import sandy.core.*;
import sandy.skin.*;
import sandy.util.*;
import sandy.core.transform.*;
import sandy.events.*;

// We define some useful global variables
var screen:ClipScreen; // Presentation surface
var world:World3D = World3D.getInstance(); // Our 3D world

// In the init() function we initialize and render the world
function init( Void ):Void {
// Create a clipScreen as presentation surface for the World3D to draw on
screen = new ClipScreen( this.createEmptyMovieClip('screen', 1), 300, 300 );

// Create a camera, so we can see our world.
// Give it a focal distance ( equivalent ) and a reference to the viewing screen.
var cam:Camera3D = new Camera3D( 700, screen );

// Position the camera at a negative distance along the z axis
// By default it is looking at the origin of the world coordinate system [0,0,0]
cam.setPosition(0,0,-500);

// Attach the camera to the world
world.addCamera( cam );

// Create the root group, the branch node for all objects in our world
var bg:Group = new Group();

// and attach it to the world. this node is responsible
// for drawing all its ( possibly transformed child nodes
world.setRootGroup( bg );

// Create the scene and attach it to the rootGroup
createScene( bg );

// Finally we start rendering the world
world.render();
}
function createScene( bg:Group ):Void {
// Start by creating a Box primitive.
// By setting all edges to 50 pixels, we'll get a cube
var cube:Object3D = new Box( 50, 50, 50, 'quad' );
// We can create a skin to make the cube look a little better
// Here we use a mixed skin with a semi transparent green color and black thin lines
var skin:Skin = new MixedSkin( 0x00FF00, 80, 0, 100, 1 );
// Apply the skin to the cube.
cube.setSkin( skin );
// Add the cube as a child to the rootGroup
bg.addChild( cube );
}

------------------------------------------------------

Posted by: halfknight Apr 27 2007, 01:29 PM

Look here

http://www.flashsandy.org/faq/porting_11_12

HTH

Posted by: zeusprod Apr 27 2007, 02:57 PM

It looks like you are trying to compile a Sandy 1.1 example with the Sandy 1.2 libraries.

Bruce

Posted by: cily35 Apr 27 2007, 03:07 PM

**Error** D:\Programmi\Macromedia\Flash 8\Librerie\sandy\view\ClipScreen.as: Line 102: There is no method with the name 'updateScreen'.
_c.updateScreen();

Total ActionScript Errors: 1 Reported Errors: 1
---------------------------------------
how can i modified this parameter?

screen = new ClipScreen( this.createEmptyMovieClip('screen', 1), 800, 600 );
------> do not work


help

Posted by: zeusprod Apr 27 2007, 03:09 PM

QUOTE(cily35 @ Apr 27 2007, 11:07 AM) *


screen = new ClipScreen( this.createEmptyMovieClip('screen', 1), 800, 600 );
------> do not work
help



If you are using Sandy 1.2, just comment out the above line. You don't need it, because the screen is no longer passed to the Camera3D constructor in Sandy 1.2

See the FAQ cited above.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)