loki421
02-17-2009, 11:34 AM
Hi all!
This is my first post here so hi everyone :D
I've recently started playing around with Flex 3, i've always been interested in Flash development but never really found the time to sit down and do some learning, until now :p
So my understanding of AS3 is very poor, i'm picking it up slowly but everyday is an uphill climb!
So i'm having a play around in Flex and was wondering if it's possible to change the text colour of a label or simular on MouseOver?
I have this so far:
<mx:Label text="simple text" id="myLabel" color="#000000" click="currentState='stateOne'"/>
Now obviously this is going to be acting as a link so the user can visit the 'stateOne' state, but i would like it to change colour on rollover so that the user can see it's a link, I don't want buttons all over the place.
So i thought that maybe this would do the trick:
<mx:Label text="simple text" id="myLabel" color="#000000" click="currentState='stateOne'" mouseOver="text.color = #ffffff"/>
But it didn't, i just get a syntax error 1093. So then i thought i'd try and add a private function for the mouseOver event, but that just went horribly wrong! :p As i said my AS3 is terrible!
So i was just wondering if anyone out there knows a little Flex or AS3 that i could use in-line. If you're going to suggest using a function i'm afraid you'll have to bear with me and explain it a little as i'm still a total newbie!! :D
Many thanks in advance to anyone who offers help, all suggestions will be gratefully received! :thumbsup:
This is my first post here so hi everyone :D
I've recently started playing around with Flex 3, i've always been interested in Flash development but never really found the time to sit down and do some learning, until now :p
So my understanding of AS3 is very poor, i'm picking it up slowly but everyday is an uphill climb!
So i'm having a play around in Flex and was wondering if it's possible to change the text colour of a label or simular on MouseOver?
I have this so far:
<mx:Label text="simple text" id="myLabel" color="#000000" click="currentState='stateOne'"/>
Now obviously this is going to be acting as a link so the user can visit the 'stateOne' state, but i would like it to change colour on rollover so that the user can see it's a link, I don't want buttons all over the place.
So i thought that maybe this would do the trick:
<mx:Label text="simple text" id="myLabel" color="#000000" click="currentState='stateOne'" mouseOver="text.color = #ffffff"/>
But it didn't, i just get a syntax error 1093. So then i thought i'd try and add a private function for the mouseOver event, but that just went horribly wrong! :p As i said my AS3 is terrible!
So i was just wondering if anyone out there knows a little Flex or AS3 that i could use in-line. If you're going to suggest using a function i'm afraid you'll have to bear with me and explain it a little as i'm still a total newbie!! :D
Many thanks in advance to anyone who offers help, all suggestions will be gratefully received! :thumbsup: