Link to home
Start Free TrialLog in
Avatar of Bm71
Bm71

asked on

zoom bar

Greeneel,
I'm finally getting back to my map project. I think the zoom bar will finish it off. The link you sent me was helpful, but I'm still a bit lost. I'm wondering if I should use the various increments that you helped me set up with the buttons to correspond with the various points along the zoom bar? or if a completly different method will be used with the zoom bar?

Bm71
Avatar of Eaddy Barnes
Eaddy Barnes
Flag of United States of America image

using the scroll bar to correspond with certain point of the map zoom sequence sounds like a good idea.

GE
SOLUTION
Avatar of Eaddy Barnes
Eaddy Barnes
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bm71
Bm71

ASKER

Great. I'll keep setting up the code in that way. Another question I have is how do I add the drag parameters to this? Would I place the parameters in with each section of this code? If this is true could you show me how to add parameters to the section of code below?

Here's the section of code to size the map:            
var zoom_handlerX:Tween = new Tween(_root.mapall2, "_width", 849.5, 926.7, 2, true);
var zoom_handlerY:Tween = new Tween(_root.mapall2, "_height", 656.0, 715.6, 2, true);

Here's the drag parameter code:
startDrag(this, false, -631, -464, 0, 0)

Bm71
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bm71

ASKER

So do the conditions:       if ((this._x>=0) && (this._x<8.5))  get attached to the zoom bar? or are they are they attached to the main time line? or somewhere else?

Bm71
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bm71

ASKER

Ok. So it looks like the code goes on the map movie clip and the diagram is showing increments on the zoom bar?

I'm also making the assumption that the drag parameters: startDrag(this, false, 0, 0, 81.2, 0); are something I need to figure out. Right it seems as though these parameters just allow the movie clip to be dragged to the right. Correct?  

Bm71
you sound good
now try making one
for the next level

GE

Avatar of Bm71

ASKER

Sorry, I overlooked the file you sent me. I'll play with that and get back to you in the morning.

Thanks,
Bm71
Avatar of Bm71

ASKER

GE,
I see how this code is placed on the zoom slider, but I'm having trouble setting up the next level.

 I tried stacking the conditions 1 on top of another like this:
if ((this._x>=0) && (this._x<9)) {
if ((this._x>=10) && (this._x<19)) {
if ((this._x>=20) && (this._x<29)) {


 I also tried attempted to stack sections of code like this:

trace(this._x);

      if ((this._x>=10) && (this._x<19)) {
            
            
            trace("in the area");
            
            var paddle_X:Tween = new Tween(this, "_x", this._x, -2.50, 1, true);
 
            var zoom_handlerX:Tween = new Tween(_root.mapall2, "_width", Strong.easeOut, 386.1, 463.4, 2, true);
            var zoom_handlerY:Tween = new Tween(_root.mapall2, "_height", Strong.easeOut, 298.1, 357.8, 2, true);


trace(this._x);

      if ((this._x>=20) && (this._x<29)) {
            
            
            trace("in the area");
            
            var paddle_X:Tween = new Tween(this, "_x", this._x, -2.50, 1, true);
 
      var zoom_handlerX:Tween = new Tween(_root.mapall2, "_width", Strong.easeOut, 463.4, 540.6, 2, true);
            var zoom_handlerY:Tween = new Tween(_root.mapall2, "_height", Strong.easeOut, 357.8, 417.4, 2, true);
      
      


All brought up errors in the output
Where am I going wrong?

Bm71  
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial


Are you making progress?

GE
Avatar of Bm71

ASKER

GE
Sorry it took me a little wile to get back to this. I understanding it now! I'll let you know if I run into any additional problems on another question.

Thanks,

Bm71