Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 7th, 2004, 05:32 PM
Franciscus Franciscus is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Ottawa, Canada
Posts: 4 Franciscus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Problem creating rollover buttons

I want some areas of my background picture to behave as roll-over buttons. (A bit like an image map). So I created a second copy of the background where the areas have a slightly different color ("glow" effect).

Now I carefully position the "rollover" background exactly on top of the plain background, break it apart and remove all but the area that must become a button. I create a button Symbol from that area.

So far so good. When I toggle visibility of the layer containing the rollover image, I can see that the images are still exactly on top of each other. But in the generated swf file, the rollover "moves" with respect to the background.

Any suggestions? Are there better ways to create rollovers on an "image map" ?

Thanks.

Reply With Quote
  #2  
Old February 9th, 2004, 01:57 AM
I'm Jayman I'm Jayman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 3 I'm Jayman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sounds like you made a mask.

But im not even close to being qualified to answer. Good luck.

Reply With Quote
  #3  
Old February 9th, 2004, 08:13 AM
Franciscus Franciscus is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Ottawa, Canada
Posts: 4 Franciscus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Roundoff

I experimented a bit more and I think my problem is due to a roundoff error in the Flash engine.
When I construct my button while zoomed out to 50%, the result does not have the problem I described.

Is there any way to force Flash to use integer coordinates? (I'm using Flash 4).

Reply With Quote
  #4  
Old February 9th, 2004, 08:31 AM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,584 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 7835 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 5 h 44 m 35 sec
Reputation Power: 534
Facebook MySpace
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #5  
Old February 9th, 2004, 09:27 AM
soosy soosy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 5 soosy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I know exactly what you are talking about... sometimes things line up fine but then you export and they don't. I don't have a sure fire answer... I think sometimes it depends on what format you import the file as. I would recommend fidding with:
- toggling "allow smoothing" for each bitmap
- making sure all objects don't have fractional x,y values
- possibly put the rollover objects to 99% or 101% (I believe this fixes a weird bug where objects sometimes get a line of double-pixels in them)
- related to previous one... try moving your objects so the center point is in the upper left rather than the center of the bitmap... I think flash has a bug where it "smooths from the center" so it is better to have the center point in a corner.

Also, if your objects are things that float over a background... try putting them on a separate layer with one frame normal and one frame glowing. Since in both frames they are separate objects floating over the background they won't have to line up with the background exactly... hope that makes some sense.

Reply With Quote
  #6  
Old February 18th, 2004, 07:02 PM
Franciscus Franciscus is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Ottawa, Canada
Posts: 4 Franciscus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I finally managed to solve my problem by creating the buttons while zoomed out to 50%. I guess that got around the round-off error.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Problem creating rollover buttons


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway