Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
AS3 help !!

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash
View previous topic :: View next topic  
Author Message
Skyward



Joined: 27 Aug 2006
Posts: 174
Location: Mamlazoland

PostPosted: 14.06.2007 12:24    Post subject: AS3 help !! Add user to your forum ignore list Reply with quote

Ovako, AS3

Na stage-u se nalazi MC: box
- u njemu se nalazi MC box 2

- ja zelim da kad kliknem na box2 otici na root na frame 2.

evo koda: (to je znaci u MC-u box)
Code:
function clickHandler(event:MouseEvent):void {
   
this.parent.gotoAndStop(2);
}

box2.addEventListener(MouseEvent.CLICK, clickHandler);


ali mi javlja error za gotoAndStop ! Mad Mad Mad Mad Mad Mad Mad Mad Mad Mad Mad Mad


HELP!!!!!!!!!!

_________________
NBR member - join us at www.thegamebooks.com
www.gamestats.sail.hr - F.E.A.R stats
Back to top
View user's profile Send private message
djankey



Joined: 22 Nov 2006
Posts: 128
Location: zg

PostPosted: 14.06.2007 12:50    Post subject: Add user to your forum ignore list Reply with quote

Evo ti moj primjer za to da imas box a u njemu box2 i na box2 definiras klik.
http://www.as-flash.com/work/gotoAndStop/

Code:
function ajde_na_frame2(event:MouseEvent):void
{
   if(currentFrame==1) gotoAndStop(2);
   else gotoAndStop(1);
}
box.box2.addEventListener(MouseEvent.CLICK, ajde_na_frame2);


Source http://www.as-flash.com/work/gotoAndStop/gotoAndStop-CS3.fla

_________________
http://www.as-flash.com
Back to top
View user's profile Send private message Visit poster's website
Skyward



Joined: 27 Aug 2006
Posts: 174
Location: Mamlazoland

PostPosted: 14.06.2007 12:59    Post subject: Add user to your forum ignore list Reply with quote

Very Happy

thnx, bas sam glup.

ja sam se htio referencirati na root(stage) iz box2 na frame 2

znas kako to napravi?

jer ocito nije isto kao u AS2...

_________________
NBR member - join us at www.thegamebooks.com
www.gamestats.sail.hr - F.E.A.R stats
Back to top
View user's profile Send private message
Skyward



Joined: 27 Aug 2006
Posts: 174
Location: Mamlazoland

PostPosted: 14.06.2007 13:00    Post subject: Add user to your forum ignore list Reply with quote

znaci ovo ne radi:

Code:
this.parent.gotoAndStop(2);

_________________
NBR member - join us at www.thegamebooks.com
www.gamestats.sail.hr - F.E.A.R stats
Back to top
View user's profile Send private message
Skyward



Joined: 27 Aug 2006
Posts: 174
Location: Mamlazoland

PostPosted: 14.06.2007 13:03    Post subject: Add user to your forum ignore list Reply with quote

djankey, jel radis gdje?

moja firma trazi FLASH developera hitno, dobre pare!

stalno zaposlenje!

www.handstudio.hr

_________________
NBR member - join us at www.thegamebooks.com
www.gamestats.sail.hr - F.E.A.R stats
Back to top
View user's profile Send private message
djankey



Joined: 22 Nov 2006
Posts: 128
Location: zg

PostPosted: 14.06.2007 13:42    Post subject: Add user to your forum ignore list Reply with quote

PM

_________________
http://www.as-flash.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group