|
hi!,
i'm making a regular box with a texture skin, the issue is that the
image appears flipped, how can a i change that, without going to the
easy way and flip the original image. and, can anyone give me a little
example on how to skin my box with different images for each face( if
that's possibe ) or how to set the face id or something like that
thanx !
Hi,
Here
is the solution to apply a different texture on box sides. I'm thinking
on another solution, but I don't which one is better....
Here is the code :
Hi there,
Really cool effect, but I can't seem to get it to work?? I get these error messages:
**Error** Scene=Séquence 1, layer=Calque 1, frame=1:Line 45: Type mismatch.
var rotint:RotationInterpolator = new RotationInterpolator( tg_rot, ease.create(), 500 );
**Error** Scene=Séquence 1, layer=Calque 1, frame=1:Line 49: Type mismatch.
tg_rot.addChild( rotint );
I
think it has something to to with the bitmap classes. I can for example
add a skin to a simple object, e.g. var skin:Skin = new
MixedSkin(0x0000FF, 20, 1, 10, 1). But if I try the bitmap skin, e.g.
var skin:Skin = TextureSkin( "pegs" ); I get the following errors:
**Error**
/Users/marcus/Desktop/3D
Flash/FlashClassPath/sandy/skin/TextureSkin.as: Line 45: The class or
interface 'flash.display.BitmapData' could not be loaded.
public function TextureSkin( t:BitmapData )
**Error**
/Users/marcus/Desktop/3D
Flash/FlashClassPath/sandy/skin/TextureSkin.as: Line 49: The class or
interface 'flash.geom.Point' could not be loaded.
_p = new Point(0, 0);
**Error**
/Users/marcus/Desktop/3D
Flash/FlashClassPath/sandy/skin/TextureSkin.as: Line 50: The class or
interface 'flash.filters.ColorMatrixFilter' could not be loaded.
_cmf = new ColorMatrixFilter();
**Error**
/Users/marcus/Desktop/3D
Flash/FlashClassPath/sandy/skin/TextureSkin.as: Line 56: The class or
interface 'flash.display.BitmapData' could not be loaded.
public function set texture( b:BitmapData )
**Error**
/Users/marcus/Desktop/3D
Flash/FlashClassPath/sandy/skin/TextureSkin.as: Line 67: The class or
interface 'flash.display.BitmapData' could not be loaded.
{
**Error**
/Users/marcus/Desktop/3D
Flash/FlashClassPath/sandy/skin/TextureSkin.as: Line 115: The class or
interface 'flash.geom.Matrix' could not be loaded.
var mat:Matrix = new Matrix( (u1 - u0)/_w, (v1 - v0)/_w, (u2 - u0)/_h, (v2 - v0)/_h, u0, v0 );
**Error**
/Users/marcus/Desktop/3D
Flash/FlashClassPath/sandy/skin/TextureSkin.as: Line 201: The class or
interface 'flash.display.BitmapData' could not be loaded.
private var _tmp:BitmapData;
**Error**
/Users/marcus/Desktop/3D
Flash/FlashClassPath/sandy/skin/TextureSkin.as: Line 202: The class or
interface 'flash.geom.Point' could not be loaded.
private var _p:Point;
**Error**
/Users/marcus/Desktop/3D
Flash/FlashClassPath/sandy/skin/TextureSkin.as: Line 203: The class or
interface 'flash.filters.ColorMatrixFilter' could not be loaded.
private var _cmf:ColorMatrixFilter;
**Error**
/Users/marcus/Desktop/3D
Flash/FlashClassPath/sandy/skin/TextureSkin.as: Line 204: The class or
interface 'flash.display.BitmapData' could not be loaded.
private var _texture:BitmapData;
Please help!?!
/ marcus
Don't worry about it. If I paste all the code into a new file it works. Strange though?!?
thanks anyway,
/ marcus
Hi to all !
Not
sure where this error come from, but i tried Marcu's solution and got
the same error message. (Flash 8 AS 2). Pourtant ! ..I didn't modify
the original file !
By the way .. is there a tuto for MovieSkin and a cube ?
Merci !!
Hi,
It is a version problem.
Hi, i got this error whem I'm trying to use a bitmap skin
**Error**
C:\Macromedia Flash 8\Flash 8\ASLibraries\sandy\skin\TextureSkin.as:
Line 161: There is no method with the name 'getDirectionVector'.
var dot:Number = lp - ( VectorMath.dot( l.getDirectionVector(), f.createNormale() ) );
Any one can help me please?
Thanks.
hi vikingo.
What version of Sandy are you using?
Thanks,
Thomas
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)