To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 08-15-2007, 05:07 PM   #1
lochaberaxe
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
lochaberaxe is offline   Reply With Quote
Old 08-15-2007, 06:35 PM   #2
NabsterHax
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!
NabsterHax is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash Newbies

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:19 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.