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=276 as retrieved on 2 Aug 2007 11:25:08 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:gEFvbtgFfOsJ:www.flashsandy.org/forum/index.php%3Fact%3DPrint%26client%3Dprinter%26f%3D17%26t%3D276+act%3DPrint+%22index+php%22+-lofiversion+site:www.flashsandy.org&hl=en&ct=clnk&cd=95


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 _ Skins

Posted by: ChocoTaco Jan 22 2007, 07:23 PM

I've got a simple Sandy project going where I just have a spinning cube. It all works fine when I have a SimpleColorSkin or MixedSkin on the object. But when I try to use a TextureSkin or a MovieSkin instead, I see nothing.

Example:

//works
var skin:Skin = new MixedSkin (0x00FF00, 100, 0, 100, 1);

//object disappears
var skin:Skin = new TextureSkin(BitmapData.loadBitmap('test'));


Where 'test' is the ActionScript name of an image in my library (assigned with the Linkage option).

Here is how I create the object:

var o:Object3D = new Box (50, 50, 50, 'tri');

As you can see I am using the triangle mode so it ought to work right?

Any ideas what I could be doing wrong?

Thanks,

Jeremy

Posted by: kiroukou Jan 22 2007, 07:37 PM

Hi and welcome.

Well it seems that you are doing correctly the process.
Can you provide a bit more of code?

And can you precise the version of Sandy you are using and the compiler (MM or MTASC)
++

Posted by: ChocoTaco Jan 22 2007, 08:42 PM

Well, it spontaneously started working so I suppose the problem is moot :-)

Not sure why it wasn't working before. I added a new image to the library and then converted it to a movie clip and tried it as a MovieTexture, and it worked. Then I went back and tried the original and it was working. So... it's a mystery I guess.

Thanks,
Jeremy

QUOTE(kiroukou @ Jan 22 2007, 11:37 AM) *

Hi and welcome.

Well it seems that you are doing correctly the process.
Can you provide a bit more of code?

And can you precise the version of Sandy you are using and the compiler (MM or MTASC)
++


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