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
text na mouse rollover

 
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
panicni_napad



Joined: 01 Nov 2008
Posts: 13

PostPosted: 12.11.2009 17:54    Post subject: text na mouse rollover Add user to your forum ignore list Reply with quote

hej ekipa, nije me dugo bilo.

zanima me 'vako... imam nekoliko movie clipova, od kojih neki djeluju kao button neki ne, i htio bi da na mouse rollover mi da neki određeni text. (npr. opisni).

napravio sam dynamic text field i dao mu instance name "opisnitekst" (nebitno), evo primjera koda za neki movieclip sa instance imenom mc1:

mc1.addEventListener(MouseEvent.MOUSE_OVER, mc1text);

function mc1text (event:MouseEvent){
MovieClip(root).stage1.opisnitekst.text = "This is mc1";
}

nema rezultata, to sam skonto na nekom tutorijalu, ali nema sumnje da je pogrešno...

ima kakvih ideja?

hvala na strpljenju i vremenu.
Wink
Back to top
View user's profile Send private message
hrvoje_86



Joined: 06 Dec 2006
Posts: 107
Location: Zagreb

PostPosted: 12.11.2009 19:49    Post subject: Add user to your forum ignore list Reply with quote

Code:
var mc1:MovieClip = MovieClip(root["mc1"])
var tf1:TextField = TextField(root["tf1"])

mc1.addEventListener(MouseEvent.ROLL_OVER , rOver)
function rOver(e:MouseEvent)
{
   tf1.text = "bla1"
}
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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