Go Back   kirupaForum > Flash > Flash IDE

Reply
 
Thread Tools Display Modes
Old 03-19-2010, 02:52 PM   #1
jakes3212
Registered User
Robot1 Dynamic Image Flickers .. help please

this.addEventListener(MouseEvent.ROLL_OVER, rolledOver);
this.addEventListener(MouseEvent.ROLL_OUT, rolledOut);

function rolledOver(e:MouseEvent):void
{
this.visible = false;
}

function rolledOut(e:MouseEvent):void
{
this.visible = true;
}



Ok ... so i think this is related to bitmap caching however the "this"
is a dynamically created object that then dynamically has a .jpg
placed inside of it. I want the object to disappear on rollOver and go
back to normal onRollOut. But i can't figure out how to assign
bitmap caching to the dynamic jpeg or this.movieClip as they are
both dynamic ... this code makes it flicker on hover ... any answers???
jakes3212 is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?

Old 03-19-2010, 03:09 PM   #2
ajcates
Drink Koolaid.
 
ajcates's Avatar
Location Vista, California

Posts 1,695
Well when you set the visibility to zero and then your essentially mousing out… so then it sets the visibility back to true… which means your mousing over it so… you set the visibility to zero and then your essentially mousing out… so then it sets the visibility back to true… which means your mousing over it so… you set the visibility to zero and then your essentially mousing out… so then it sets the visibility back to true… which means your mousing over it so… you set the visibility to zero and then your essentially mousing out… so then it sets the visibility back to true… which means your mousing over it so…

Get the idea?
Try setting it's opacity instead so it looks invisible but it's still actually there.

__________________

http://ajcates.com
ajcates is offline   Reply With Quote
Old 03-19-2010, 03:30 PM   #3
jakes3212
Registered User
hmm

the only problem with using .alpha is it only works on jpegs that are contained inside a movieClip with bitmap caching enabled these are dynamic so .alpha was no effect ... my dilemma deepens
jakes3212 is offline   Reply With Quote
Old 03-21-2010, 06:50 AM   #4
ilike2
Registered User
 
ilike2's Avatar
Tweening might do the trick.

__________________
ilike2flash
www.ilike2flash.com
ilike2 is offline   Reply With Quote
Reply

Tags
dynamic, flicker, jpeg


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:53 AM.

SHARE:

SUPPORTERS:

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com