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=151 as retrieved on 31 Jul 2007 23:03:05 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:g2lA1lw0J6wJ:www.flashsandy.org/forum/index.php%3Fact%3DPrint%26client%3Dprinter%26f%3D17%26t%3D151+act%3DPrint+%22index+php%22+-lofiversion+site:www.flashsandy.org&hl=en&ct=clnk&cd=75


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 _ Distortimage + external image

Posted by: neogen Oct 23 2006, 05:54 AM

Hello, I love sandy but I am having some problems with distortimage. I want to load images from an external source such as an xml file and I am not much luck. From what I have found around the web the bitmap cache resets when an external image is loaded into a movieclip?

I saw Mnyh's post about:

QUOTE
var converted_pic:BitmapData = new BitmapData(pic._width, pic._height);
converted_pic.draw(pic);


...and later...

CODE
var myskin:Skin = new TextureSkin(converted_pic);
box.setSkin(myskin);


but i could not get that to work, can anyone explain this a little better for me.
Thanks! smile.gif

Posted by: kiroukou Oct 23 2006, 06:58 AM

Hi,
the pic variable is a movieClip. A MovieClip containing the loaded picture.

You just have to use loadMovie or MovieClipLoader in order to load your external picture into a movieclip container.
The flash documentation is quite rich of explanation and the web provides a lot of example (and I think the Sprite3D demo source are using what you want to do )

++

Posted by: Sanfire Oct 30 2006, 12:01 AM

I just did this. http://www.sandfields.co.uk/games/cube/cube2/1.html

the code is available here
http://www.sandfields.co.uk/games/cube/cube2/AlbumArt.zip

though there is a problem with the mysterious white rectangle.

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