At 10/14/09 08:09 PM, luekil wrote:
2. Need help changing scenes. For example my character reaches a door and I want the scene to change to a diferent one when he stands on the door. How can I make this happen?
if(_root.character.hitTest(_root.door))
{
_parent.gotoAndStop("Scene Name");
}
3. How can I make that when I click over an object a video or sound appears? Simply using buttons or is there other way to do it?
Video I'm not sure about but:
With buttons just put the sound on the over frame of the button.
With movieclips put the sound on the second frame of the movieclip
onClipEvent(enterFrame)
{
this.onRollOver = function()
{
gotoAndStop(2);
}
this.onRollOut = function()
{
gotoAndStop(1);
}
}
Hope this all helps.