This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?showtopic=347&mode=threaded&pid=2561 as retrieved on 27 Jul 2007 10:39:44 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:Q7hYoXRUoD4J:www.flashsandy.org/forum/index.php%3Fshowtopic%3D347%26mode%3Dthreaded%26pid%3D2561+site:www.flashsandy.org+showtopic&hl=en&ct=clnk&cd=42


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: showtopic

Welcome Guest ( Log In | Register )

> [1.2B2] MovingSkin, Manipulate the movie into a MS
damo
post Feb 28 2007, 01:32 PM
Post #1


Advanced Member
***

Group: Members
Posts: 43
Joined: 20-June 06
Member No.: 26



Hi all,
I have something strange.
I'm creating a MovieSkin using an external swf like that
CODE
private var ms:MovieSkin;
...
ms = new MovieSkin("toto.swf");


I'm waiting the end of loading :
CODE
ms.addEventListener(SkinEvent.onUpdateEVENT,drawSquare);


Next i want to draw a square around my texture.
CODE
private function drawSquare():void{
var toto:MovieClip = ms.getMovie().createEmptyMovieClip("toto",2560);
...
toto.lineTo ...
...
}

It's just for drawing a square.
But it doesn't work. I have nothing other than my external swf in my sprite (IMG:style_emoticons/default/sad.gif)

Any idea ?

This post has been edited by damo: Feb 28 2007, 01:32 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
damo
post Feb 28 2007, 02:41 PM
Post #2


Advanced Member
***

Group: Members
Posts: 43
Joined: 20-June 06
Member No.: 26



Petit, kiroukou the drawing method is ok.
toto isn't undefined.

Try to do something like that, you'll see what i mean.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Petit
post Feb 28 2007, 09:43 PM
Post #3


Advanced Member
***

Group: Moderator
Posts: 568
Joined: 21-June 06
From: Borgholm, Sweden
Member No.: 38



QUOTE(damo @ Feb 28 2007, 03:41 PM) *

Try to do something like that, you'll see what i mean.

When I try to do something like that ( I'm not writing a class though ), the onUpdateEVENT handler is called, but the skin is 'undefined' inside the event handler.
When I declare the MovieSkin as global, in a class this would be an instance variable, the skin is known in the handler.
I have other problems though ( in the latest 1.2 beta ). I cannot get externally loaded SWF's to show up, other than as a surface of dots.

I think, though I don't know, that first you have to check that your event handler really can see the skin.
Then I have a feeling, that you have to draw the square on the the MovieClip, before you send it to the MovieSkin constructor.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
zeusprod
post Apr 5 2007, 05:37 PM
Post #4


Advanced Member
***

Group: Members
Posts: 220
Joined: 14-February 07
Member No.: 801



QUOTE(Petit @ Feb 28 2007, 05:43 PM) *

When I try to do something like that ( I'm not writing a class though ), the onUpdateEVENT handler is called, but the skin is 'undefined' inside the event handler.


Inside the event handler, the first argument received is "target" and the skin can be retrieved from target._oT
User is offlineProfile CardPM
Go to the top of the page
+Quote Post



Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

- Lo-Fi Version Time is now: 27th July 2007 - 10:20 AM
phpMyVisites