Mouse over actual panzoom animation graphic causes all to vanish ?

Hi,
see code below.
We have movieClip called Map_Collection (in properties) within which are movie clips BusRoute_42 and BusRoute_43 (in properties) as well as the basic map artwork graphic.
These are lines that glow (motion tween alpha1% to 100% to 1%) when buttons outside of the map boundary are clicked on.
Buttons sit on Scene1 stage outside of the map area and are named in properties Button42 and Button43
Coding also makes the map zoom and pan, using mix of freesource whitecat redcat and greymouse coding for pan and another for zoom with focus at mouse location.
The problem:-
1) Map route glows ok when button clicked, and pan zoom is ok until user happens to shove map around just on the location of the glowing line, the entire flash movie then goes white, all artwork vanishes.. Why ? Near it ok, but on it, zappo !
Also, but not reason for this post...
2) zoom works but zoomout eventually inverts then gets larger !
we hope to remedy this by having limits set, unless there is a better way.
Any help appreciated as apart from this we are there !
Envirographics
PS I dont suppose there is a way of copy pasting code in from CS5 retaining the colouring of it ?
// Make the routes not visible
Map_Collection.BusRoute_42.visible=false;
Map_Collection.BusRoute_43.visible=false;
// Add listeners
Button42.addEventListener(MouseEvent.CLICK, hideShow42);
Button43.addEventListener(MouseEvent.CLICK, hideShow43);
function hideShow42(event:MouseEvent):void {
// instead of white_cat.visible = false; we just switch it to the opposite
Map_Collection.BusRoute_42.visible =!Map_Collection.BusRoute_42.visible;
Map_Collection.BusRoute_43.visible=false;
function hideShow43(event:MouseEvent):void {
// instead of white_cat.visible = false; we just switch it to the opposite
Map_Collection.BusRoute_43.visible =!Map_Collection.BusRoute_43.visible;
Map_Collection.BusRoute_42.visible=false;
/* ----- Change cursor form
add a hand to cursor to the Map_Collection
This way a user understands that he/she can do something with the object.
Map_Collection.buttonMode = true;
/* ---- dragging ---- */
Map_Collection.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
Map_Collection.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
function startDragging(event:MouseEvent):void {
Map_Collection.startDrag();
function stopDragging(event:MouseEvent):void {
Map_Collection.stopDrag();
/* ---- Zooming in with the scroller ---- */
Map_Collection.addEventListener(MouseEvent.MOUSE_WHEEL, Zooming)
const mod = 10
function Zooming(event:MouseEvent):void {
Map_Collection.scaleX += event.delta / mod
Map_Collection.scaleY += event.delta / mod
Map_Collection.x = ((2 * mouseX) - (2 * (event.localX * Map_Collection.scaleX))) / 2;
Map_Collection.y = ((2 * mouseY) - (2 * (event.localY * Map_Collection.scaleY))) / 2;

I am not sure it is possible to really understand what is going on from the description and the code. Some issues can arise from how objects stack on display list, etc.
I have noticed two things from a brief looking into your code:
1. Map_Collection.addEventListener(MouseEvent.MOUSE_UP, stopDragging); should be:
stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
Or better yet:
Map_Collection.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
function startDragging(event:MouseEvent):void {
     Map_Collection.startDrag();
     stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
function stopDragging(event:MouseEvent):void {
     Map_Collection.stopDrag();
     stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragging);
2.  ((2 * mouseX) - (2 * (event.localX * Map_Collection.scaleX))) / 2;
is the same as:
(mouseX - event.localX * Map_Collection.scaleX) / 2;
Also, if you need to center object around the mouse point, perhaps this lines should use dimensions - not scales:
function Zooming(event:MouseEvent):void {
     Map_Collection.scaleX += event.delta / mod
     Map_Collection.scaleY += event.delta / mod
     Map_Collection.x = (mouseX - Map_Collection.width)/ 2;
     Map_Collection.y = (mouseY - Map_Collection.height)/ 2;

Similar Messages

  • How do I keep the name tags in Picasa Web Albums from appearing on the images by default? With Explorer, name tags only appear when mousing over the image, but with Firefox, all the tags appear on the picture as soon as it is loaded, which looks messy.

    I use Picasa to create web albums, and I tag people who appear in the pictures. With Explorer, the name tags do not appear on the pictures until I mouse over a specific person, at which point the tag appears. With Firefox, the name tags appear as soon as the picture is loaded, and only disappear when you mouse over the people in the picture. This makes the picture look messy; by default, one would want to see a picture without tags all over people's faces.
    The only way to "fix" this is to disable the name tags completely (or tell people to use Explorer!), but this is not an ideal solution, since I would like to be able to share albums with people's names in them.

    I use Picasa to create web albums, and I tag people who appear in the pictures. With Explorer, the name tags do not appear on the pictures until I mouse over a specific person, at which point the tag appears. With Firefox, the name tags appear as soon as the picture is loaded, and only disappear when you mouse over the people in the picture. This makes the picture look messy; by default, one would want to see a picture without tags all over people's faces.
    The only way to "fix" this is to disable the name tags completely (or tell people to use Explorer!), but this is not an ideal solution, since I would like to be able to share albums with people's names in them.

  • Mouse-over not working

    My mouse-over isn't working well at all with anything. I can't activate expose by the corners of my desktop, app titles don't appear on my dock when i hover the cursor, no highlights in context menus and if the option i click has another context menu, i have to click that option twice, i had my dock on auto-hide and had to undo that because my cursor isn't recognized there either. And mouse-over within apps isn't working either (like Safari, iCal, etc)
    I cant make any specific distinctions, but this all started right after downloading OS 3.1 for my iPod Touch. Just before that, I had installed iTunes 9. Don't know if there's any correlation to these updates, but after all was said and done that night, my mouse-over was pretty much disabled =\
    ANY help would be greatly appreciated. Thanks!

    So, I'm not sure how, but switching out my mouse seemed to cure the problem. I am now in the market for a new mouse (cuz the substitute I'm using is too tiny lol)

  • I DEVELOPED A WEB SITE USING WEB PAGE MAKER WITH A MOUSE OVER TO PLAY A WAVE. WORKS IN IE BUT FF WILL NOT LOAD THE FILE IN HE BACKGROUND. WHEN I FIRST OPEN THE PAGE TO TEST IT WONT PLAY THE .WAV ANY SUGGESTIONS ADD ONS ETC NEEDED THANKS

    I've developed a site using "web Page Make" I put a graphic on a page with a mouse over that morphs the graphic and plays a brief wave. I works with I.E but no go in FF 3.63.I am previewing this off a local networked drive. No problems with other net site with embedded audio do I need a certain add on etc. Can anyone offer some advice. Thanks
    == This happened ==
    Every time Firefox opened
    == I preveiwed the site and try the mouse over feature to excute the wave

    Make sure that you do not use bgsound to pay that music.
    See http://kb.mozillazine.org/Background_music_does_not_play

  • While using firefox, when mouse over link causing monitor to crash

    Windows 7; Dell studio xps
    On mouse over a link/photo link and/or click on a link and my monitor goes into standby mode. Monitor still on (as is my computer) but cannot reestablish visual on monitor. Have used Explorer in the past and never had this problem. This error happens almost every time when I perform an image search with Google then mouse over a resulting image.

    Try to start Firefox in [[Safe mode|Safe mode]]. This mode disables all extensions, user customizations, hardware acceleration, etc. temporarily for diagnostic and troubleshooting. If Firefox works fine in Safe Mode, then this is likely an add-on issue. Restart Firefox in normal mode, then type "About:addons" (without the quotes) in the address bar. Disable your extensions one by one, restarting Firefox between each one, until you find the trouble maker. Once you do, you can disable that add-on and report the issue to that add-on's developer.
    A few other basic trouble shooting things you can try is this:
    Run all Windows Updates, install all needed service packs, etc.
    Update your graphics driver (Firefox uses your graphics card for some rendering, and an out of date graphics card driver can cause problems. [https://support.mozilla.org/en-US/kb/how-do-i-upgrade-my-graphics-drivers https://support.mozilla.org/en-US/kb/how-do-i-upgrade-my-graphics-drivers].
    Update all your plugins (Flash, Java, etc.): [http://www.mozilla.org/plugincheck/ http://www.mozilla.org/plugincheck/].

  • I need help identifying and removing annoying gadget that shows all open windows and applications when I mouse over a corner.

    It seemed like a good idea at the time. Some time ago I installed a gadget (doesn't seem to be an item in my Applications folder) which, when I mouse-over the lower-left corner of my screen, brings up a screen showing reduced-size versions of all open application windows and Finder windows. I've tried to identify what it is, and where it is located, so I can remove it, but to no avail.
    I'd really appreciate any help getting rid of this thing. Thanks!

    Hi Paul,
    Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Check the System Preferences>Keyboard>Keyboard Shortcuts.

  • How do you SELECT ALL on a page (used to CTRL L-CLICK in margin then mouse over selection)?

    In Pages 4x you could hold CTRL+LEFTMOUSE while in the margin area then select multiple things on that page you were looking by mousing over them (including selecting all).  Now you have to go one item at a time to delete? Is there a work-around?

    Ghazgkull wrote:
    . ctrl+clicking in iTunes selects all.
    No, it does not. You are still incorrect.
    ctrl + click does NOT select anything.
    It checks all boxes when you ctrl click on one box.
    If you want to select a bunch of consecutive songs...
    Select one then Shift click another, This will select all items from the first selection to the last selection.
    This is just plain nutty and is normally achieved on Windows 7 using ctrl+a,
    No it doesn't
    ctrl + a selects all.
    You are not selecting anything when you check all boxes. You are sinmply checking all boxes.

  • I would like to see the actual email address in a Tool Tip when I mouse over the From address

    I use Thunderbird to access my IMAP email account with a non-enormous ISP. Thunderbird is a great email client.
    One thing I really miss when using Thunderbird vs. going to my email using a browser: in the browser, when I mouse over the From email address, a tool tip pops up showing me the actual email address, not the alias (or whatever it's called). Please see the attached image for an example of the mouse over tool tip. Is there a way to do this in Thunderbird?

    more misinformation and urban myths here than facts.
    1. Thunderbird blocks remote images by default.
    2. Thunderbird does not allow scripts in mail. If they are there they do not run.
    3. The only link SPAMMERS or anybody in marketing gets to you is when you download their remote images, run scripts in the mail or click on links to go to their web sites.
    4. When I or a spammer send a mail to say [email protected] Most mail servers will refuse delivery unless the address exists on their server.
    5. True spammers do not care if a large percentage of the mail they send is to dead email addresses and they make little or no effort to validate active addresses. Corporations like Walmart, Woolworths here in Australia, Ebay and Paypal are very interested.
    With that knowledge, you are now aware that opening the mail tells a spammer nothing even in the remote chance they are interested.
    Oh and the source of the urban myth is Microsoft whose mail clients allow scripting, remote images and uses the file extension of the file not it's mime type to determine how to open it.
    That is the difference between a mail client where the developers think security first and one where the developers give the user what they want and try to tack on security after the fact.

  • Safari 4 images all have red cast until mouse over?

    I've searched fairly extensively for anyone else having this same problem, and I note a number of possibly related threads on the colour/color management in Safari, but this problem seems to be slightly different. Perhaps someone will tell me this is a feature, but I can't find it listed. I'm finding that on many pages, such as www.news.com.au, images (of any size) have a distinct orange or red cast until I pass my mouse over them. A smaller but possibly related problem occurs with text and especially links, which are sometimes a garish bright blue until my mouse rolls over them.
    To fix the images requires only a mouse over, and seems almost instantaneous, but this is tedious, and the pages look really ugly. Does this happen on all pages? No, for instance I did a search for "Steve Jobs" on Google images and the results all look fine. Do I have a MBP and a second monitor (which has been mentioned in the other threads)? Absolutely, a 24" Apple LCD.
    If I understand the color management issues, images don't suddenly correct themselves when you move the mouse over them, which is why I thought I'd post this to see if there is a fix, or if anyone else is experiencing the same thing.
    Thanks for any replies.
    Ivan

    And I'd like to report that although the red cast has gone away, it pales in comparison to the new problem, where images go monochrome/sepia, which I'm now experiencing. Moving the window over to the laptop screen and back to the second display seems to fix it, not exactly a great workaround. I hope someone fixes this bug soon, it's pretty nasty.

  • Firefox updated last night to 11.0, and now whatever website I'm on, the writing appears as gibberish or all broken up until I mouse over it. This happens on tabs, the facebook sidebar tickers, search fields, you name it. Very strange...

    Things appear fine as I type them, but after a while, I will look up at a tab or search field, and the writing appears strangely. If I mouse over the gibberish text, it will return to normal.

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • Mouse over HTML link causes single frame to display at top of page Netscape only

    Having a wierd problem. When you run the mouse over HTML
    links on the page a single frame of the flash movie apears at the
    top center of the page. It only happens in netscape in firefox
    mode. IE, Opera, and Firefox do not have the problem.
    Problem site
    Thanks in Advance,
    Vorsch

    The problem goes away if i modify my .css file by removing
    the
    border: 1px solid #999999;
    line from the "a:hover" style.
    I ran my css file thru the validator at w3c and its fine. The
    Page also validates as xhtml transitional.
    and just a note the same file version is on my public server
    and my testing server.
    Has anyone ever seen this before?? I have several sites with
    a:hover effects and flass media and have never run across this
    before.

  • Can I mouse over a group and cause another group to do something?

    When I mouse over id=wholeGroup, I want group rect47 to become more visible by changing its alpha value.
    Can someone help me understand how to do this? Thanks.
    Here is what I have so far, but I am getting multiple errors.
    1067: Implicit coercion of a value of type String to an unrelated type Number.
    1119: Access of possibly undefined property mouseOver through a reference with static type spark.components:Group.
    <fx:Script>
      <![CDATA[
         private function showYourSelf():void {
              if (wholeGroup.mouseOver==true) {
                   rect47.alpha="1.0";
               } else {rect47.alpha="0.3";}
      ]]>
    </fx:Script>
    <s:Group id="wholeGroup" mouseOver="showYourSelf()" >
      <s:Group id="rect47">
          <s:Rect>
             <s:fill>
                  <s:SolidColor color="0x474747"/>
              </s:fill>
         </s:Rect>
      </s:Group>
      <s:Group id="rect87">
         <s:Rect>
             <s:fill>
                  <s:SolidColor color="0x878787"/>
              </s:fill>
         </s:Rect>
      </s:Group>
    </s:Group>

    Change the strings to numbers:
    rect47.alpha=1.0;
    <s:Group id="wholeGroup" mouseOver="showYourSelf()" mouseOut="hideYourSelf()">
    In the function showYourSelf() just set rect47.alpha=1.0
    In the function hideYourSelf() set rect47.alpha=0.3
    No need for the if statement.

  • Mouse-Over Labels sometimes truncated (bug fix requested)

    Hello,
    In both Xcelsius 2008 and all subsequent fixes, the Mouse-Over labels are sometimes truncated.  It happens when I have a text category that could be translated as a number.  For example, if I name a category "1E" ("1E" is a type of problem that our department is tracking) then when I hover the mouse over the pie chart it will just say "1" as the category name.  "1A", "1F", etc work which would lead me to believe that it perceives "1E" to be the same as the exponential 1*10^1, which is why it is showing "1".  It happens even if the categories are specified as text.  I think this is a bug that should be addressed in the upcoming SP2.

    Hi,
       What version of Xcelsius and LiveOffice do you have in place?
       Also, did you actually raise an SAP ticket and recieve an confirmation from Support Engineer (via ADAPT) that a developer will look into it last year? Please note, nothing will get fix unless it is logged under the proper channel.
       From what I can see, this is the only relevant ADAPT similar to yours (KBArticle 1403226 - See below). Although this doesn't mention anything about Mouse-Over Labels. Hope it helps.
    Symptom
    Character 'e' which behind the numbers (like 1e) will be lost after refreshing Live Office objects
    Reproducing the Issue
    Create a table in SQL server, add some columns with nchar(10) type
    In this table, add some records with value like '1e', '1389e'
    Create a Universe based on this table
    Create a Webi report based on this Universe
    Create a Live Office object based on this Webi report
    Create an Xcelsius dashboard, and use Spreadsheet Table to show this Live Office object
    Choose 'refresh on load' or add a refresh button to refresh this connection
    You wiil find the character 'e' which behind the numbers (like 1e) will be lost
    (For detail information about the reproduce steps, please refer to attached doc with some screenshots)
    Cause
    The issue has been identified and logged under Problem Report ID ADAPT01296829 (Xcelsius side) and ADAPT01290988 (Live Office side)
    Resolution
    Apply fix packages at both Xcelsius and Live Office sides to fix this issue:
    Live Office FP2.3 or SP3
    XCelsius X5 LAFix2.0.3 or Xcelsius SP3
    Regards,
    Ken

  • Dreamweaver menu widget mouse over

    Hi
    I'm trying to get my head around the menu widget in CS3 and thing are progressing ok.
    Things are progressing, but I have two small questions relating to this screenshot: http://www.violetmount.com/August/menu.png
    1. How can I only make the menu appear when I move the mouse over to it?
    2. Is there any way to have the top menu cell transparent?
    The first one is probably the most urgent at the moment! All the examples I've seen have the menu sitting there all the time, whereas I could do with it working like the menu bar in applications.
    Thanks
    Alexis

    Is it the roof or the driver's side window?It's where the 2 meet - it's a t-bar roof
    If is the window, try to determine if the seal
    between the window glass and the door frame is
    somehow messed up- bent, dirty, something that
    prevents a tight seal. You'll need to fix that, if
    that is the cause.There is no door frame!
    Like I always say, you can never have enough
    lubrication. Use some clear silicone spray on the
    window seal. Same with the door-to-frame seal.Ah, interesting. Thanks
    (this is actually the cure for said woes, so you've inadvertently set a dangerous precedent here!)
    If it is the roof itself, you'll have to perform
    similar investigations to determine the source of the
    leak.
    Hope that helps.It has, thanks!

  • Oracle form 6.0, how to do 3D chart, calender,mouser over changing....

    oracle form 6.0, how to do 3D chart, calender,mouser over changing....in we form, like microsoft style.
    Or it's better use 9i or 10g jdeveloper? or other tchnology?

    The cpu resources are only limited once the cpu's are 100% utilized. It is highly unlikely that dom0 will try to use 100% of a cpu, let alone all cpus. Only when there are no idle physical cpus would you run into issues.
    You may want to try reducing the number of vcpus in the windows guest. I have seen reports from users claiming that having more vcpus in a windows guest causes it to run slower.

Maybe you are looking for

  • Error msg saying unknown error PLEASE HELP

    Hi my iphone 4 died over night so i woke up this morning and put it on charge through a wall charger a few hours passed and i have got back and the little white bars are still circling so i pluged it into the computer and its still doing the same thi

  • Mouse advice

    I've been using Apple's wireless mouse and keyboard with FCS, and am buying Shake, which requires a 3 button mouse, so I'd like some advice on a good mouse to use with it. Thanks in advance!

  • Why do my chargers continue to break?

    I have bought 5 or 6 chargers within the last 2 weeks and they work for a day or 2 could it be my phone that's messing the chargers up ?

  • Ovmcli change ip on guest machine (running Windows XP)

    Hello, I'm new to OracleVM but find it very useful. We had previous expierences with VMWare virtualization in our company (VMWare server 2.0). It had VMWare tools which included cli (command line interface). I need to change IP address of Windows XP

  • Letters that hang down are cut off

    I am wondering how to make this work. If I add a button and type a word that has a letter that hangs down, like 'g', the lower part of the g doesn't show up. I can't figure out how to expand the button size so that the letters all show. Any ideas? Ju