A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Need help understanding the answer

Hybrid View

  1. #1
    Junior Member
    Join Date
    Aug 2007
    Posts
    3

    Need help understanding the answer

    Hi every one.
    I asked a question at another NEWBIE forum and got an answer that was so far over my head I did not even want to ask for clarification.
    I hope this is a real newbie forum.

    Here is my question.
    I want to make a flash site for my local community, I have a vision of what I want it to look like but I'm not sure if I can do it in flash.
    What I would like is a full screen map of my city.
    When a user places his mouse over a certain section (probably 4-6 different sections) that section expands to fill 75% of the screen and retracts when he removes the mouse.
    I would also like to have the expanded sections contain external hyperlinks on buttons representing local sites.
    I have found some information on how to create the hyperlinks but my major sticking point has been how to have 1 section expand over top of the others depending on which section is in hover state.


    Here is the very nice and fast response I got.

    Code:
    ---------
    MovieClip.prototype.resize = function(w, h, x, y) {
    this.onEnterFrame = function() {
    this._width += (w-this._width)/8;
    this._height += (h-this._height)/8;
    this._x += (x-this._x)/5;
    this._y += (y-this._y)/5;
    if (Math.abs(w-this._width)<1) {
    this._width = w;
    this._height = h;
    delete this.onEnterFrame;
    }
    }
    }

    _root.NA_MC.onRelease = function() {
    this.swapDepths(100);
    NA_MC.resize(600, 600, 250, 230);
    SA_MC.resize(0,0,121,212)
    }
    _root.SA_MC.onRelease = function() {
    this.swapDepths(100);
    SA_MC.resize(450, 720, 250, 220);
    NA_MC.resize(0,0,85,85)
    }

    I do not understand a single line of this response.
    Can someone please help with this.
    I am using Flash CS3.

    Thanks for your help

  2. #2
    Junior Member
    Join Date
    Aug 2007
    Posts
    9
    simple answer: You can do it in flash! Btw, that code is actionscript and i don't understand a word of it. What i would do is get you map and split it up into the different sections you want to "pop out", then convert them into buttons. In the edit screens for the buttons, go to the over frame and scale them to the size you want.

    no need for the fancy actionscript!

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center