Professional Web Applications Themes

Trying to track an instance's position relative to the stage - instance is inside an MC - Macromedia Flash Actionscript

Arggg! Hope I can explain this. I have a series of circles contained in a large MC called map. I have 3 circles inside *map* and I need to have various buttons move the map over and zoom into the corresponding circle. The move and zoom fucntions work fine. (thanks to joox for the zoom coding). I am using a blank MC as a positioner for the map to follow to the new location. It gets tricky because the coordinates of any given circle are always the same, _x = 56, _y = 150, etc., regardless of where the map ...

  1. #1

    Default Trying to track an instance's position relative to the stage - instance is inside an MC

    Arggg! Hope I can explain this.

    I have a series of circles contained in a large MC called map. I have 3
    circles inside *map* and I need to have various buttons move the map over
    and zoom into the corresponding circle. The move and zoom fucntions work
    fine. (thanks to joox for the zoom coding). I am using a blank MC as a
    positioner for the map to follow to the new location.

    It gets tricky because the coordinates of any given circle are always the
    same, _x = 56, _y = 150, etc., regardless of where the map moves on the
    stage. I originally had preset coordinates for each circle. Now when the
    zoom action occures, it changes where the center of everthing is, so I am
    trying to write a script that will do the calculations for me and automate
    the process, even taking into account the magnifaction.

    I am SOOOOOOO close, but I can seem to flip the thing around. In other
    words, with the center of my stage at 450 and 200, I need the circle on the
    map to be lets say 410 and 120, but I keep getting them at 490 and 280
    instead. Does that make any sense?

    I have posted the fla here and it may be clearer of you check it out and see
    what I am trying to do. The three buttons SHOULD zoom in on and move to the
    three corresponding circles, but as you can see, he are off a bit. The
    green dot is the blank MC that the map follows, I just have the dot there
    for reference. The crosshairs are where I need the targeted circle to end
    up - center stage.

    Thanks for looking!

    Regards,
    --Vern

    [url]www.thepenrods.com/~Penrod/eVrn/azoom.fla[/url]

    only 56K so not zipped

    FlashMX2004Pro


    _posted.by\(Vern\); Guest

  2. #2

    Default GOT IT!!

    It is rare that I spend most of a day getting something like to work, but I
    did, and it does! Thanks to everyone that looked in.

    Regards,
    --Vern


    _posted.by\(Vern\); Guest

Similar Threads

  1. Problem with dynamic text inside button instance
    By gaGeet in forum Macromedia Flash Actionscript
    Replies: 3
    Last Post: March 17th, 09:31 PM
  2. Administrative Instance now looks like Instance Manager
    By Data_Gladiator in forum Coldfusion Server Administration
    Replies: 2
    Last Post: November 10th, 09:48 PM
  3. Embed button instance inside movie clip
    By gaGeet in forum Macromedia Flash Actionscript
    Replies: 2
    Last Post: February 11th, 04:51 PM
  4. *** Is there dif frame of instance on stage?
    By nin9999 webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 8
    Last Post: December 16th, 01:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139