Nesting HYPE in a MovieClip

26 views
Skip to first unread message

pauland

unread,
Oct 29, 2010, 8:14:18 AM10/29/10
to HYPE Framework
I've just started playing with HYPE and tried taking some of the
shapeLayout examples and running them nested inside a MovieClip.

Basically I took the flash examples and moved the code from the main
timeline into a MovieClip that nested the stage components. Sadly it
didn't work even though I'm pretty sure I'd replicated the environment
from the stage inside the MovieClip.

Some digging around made me suspicious of the hitTestPoint usage
inside the ShapeLayout class and after some tinkering I did manage to
get a good result (which I then managed to mess up again).

I haven't spotted anything about this in the group. Has anyone managed
to get HYPE running nested inside a MovieClip? Is this a known issue
or have I just screwed up somewhere?

I haven't ventured on with other non-shape examples.

karin

unread,
Oct 29, 2010, 9:24:05 AM10/29/10
to HYPE Framework
According to Moock's bible:
"Prior to ActionScript 3.0, the MovieClip class was used as an all-
purpose graphics container (Much like ActionScript 3.0 Sprite class is
used).
As of ActionScript 3.0, MovieClip is used onlymto control instances of
movie clip symbols created in the Flash authoring tool......"
MyShape in the first example is an instance of a MovieClip, and you
actually give it a name.
In other examples also you see
var clipContainer:Sprite = new Sprite(); which I think has the
function of what was a MovieClip before

Regards,
Karin

pauland

unread,
Oct 31, 2010, 11:45:50 AM10/31/10
to HYPE Framework
Karin, thanks for the repky. I am well versed in what a MovieClip and
Sprite are. My issue is that the HYPE code that works well on the
timeline has problems when embedded inside a MovieClip.

I suspect that it's related to the use of hitTestPoint in the
ShapeLayout part of HYPE, causing the co-ordinates now to be relative.
My enquiry was to see if this was a known issue.

Greg

unread,
Dec 8, 2010, 6:41:33 PM12/8/10
to HYPE Framework
It would be wonderful if the clipContainer acted as a workable
container in hype, but from what ive seen, moving that container does
nothing to the objects contained within. I don't know exactly what
you want to do with hype within a movieclip, but i placed most of the
swarm example into a movieclip then moved that clip around with the
hype mousefollowease and it worked really well

what issue are you having putting it into a movieclip?

arne

unread,
May 24, 2011, 12:05:49 PM5/24/11
to hypefr...@googlegroups.com
i have the same problem here : https://groups.google.com/forum/#!topic/hypeframework/UOWpgMIIsY0

my swf containing an object pool is loaded and centered in a fullscreen base swf

all my clips are shifted if the size of the the base swf is not the same that the loaded swf

i think this is a problem with the coordinate of the shape like pauland pointed it

some digging around made me suspicious of the hitTestPoint usage 
inside the ShapeLayout class and after some tinkering I did manage to 
get a good result (which I then managed to mess up again). 

pauland did you find a solution?
does anyone understand me? 
Reply all
Reply to author
Forward
0 new messages