Welcome, Guest. Please login or register.
Did you miss your activation email?
June 18, 2013, 01:17:41 AM

Login with username, password and session length
Search:     Advanced search
The look of the forum is still being worked on. Thank you for your patience.
193707 Posts in 16235 Topics by 17079 Members
Latest Member: Kira_Nielyp

* Home Help Login Register
AppleGeeks.com  |  Help / Advice  |  Flash  |  Topic: Image intro/rollover... 0 Members and 1 Guest are viewing this topic.
Pages: [1] Go Down Print
Author Topic: Image intro/rollover...  (Read 3484 times)
DougofTheAbaci
Hero Member
*****
Posts: 6848


Just call me Audiophilus Magnum.


WWW
« on: July 28, 2004, 11:31:29 AM »

hey there's this cool effect i saw on a webpage i frequent...

http://www.joshuadavis.com/pound.html

it's the little part where he shows his work... when you press 1, 2, or whatever it jumps to that image but with a little running intro. sweet effect and i'm sure there's some specific scripting for it. just was wondering if people could point me in the right direction.

[Edit:]

ok figured that bit out and i have coding now but it's not working right for some reason... here's what it was origionally:
Code:

onClipEvent (load) {
_x = 0;
_y = 0;
div = 5;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/div;
_y += (endY-_y)/div;
_root.home.onRelease = function() {
endX = 0;
endY = 0;
};
_root.works.onRelease = function() {
endX = -250;
endY = 0;
};
_root.skills.onRelease = function() {
endX = -500;
endY = 0;
};
_root.bio.onRelease = function() {
endX = 0;
endY = -200;
};
_root.links.onRelease = function() {
endX = -250;
endY = -200;
};
_root.contact.onRelease = function() {
endX = -500;
endY = -200;
};
}


that worked fine until i changed it to be:
Code:
onClipEvent (load) {
_x = 0;
_y = 0;
div = 5;
}

onClipEvent (enterFrame) {
_x += (endX-_x)/div;
_y += (endY-_y)/div;

_root.1.onRelease = function() {
endX = 0;
endY = 0;
};
_root.2.onRelease = function() {
endX = -100;
endY = 0;
};
_root.3.onRelease = function() {
endX = -200;
endY = 0;
};

}


which gives me the error message:

Quote
Symbol=sliding content, Layer=Layer 2, Frame=1: Line 11: ';' expected
        _root.1.onRelease = function(){

Symbol=sliding content, Layer=Layer 2, Frame=1: Line 15: ';' expected
        _root.2.onRelease = function(){

Symbol=sliding content, Layer=Layer 2, Frame=1: Line 19: ';' expected
        _root.3.onRelease = function(){


any thoughts people?
Logged

Quote from: Douglas Adams
It is a mistake to think you can solve any major problems just with potatoes.
DougofTheAbaci
Hero Member
*****
Posts: 6848


Just call me Audiophilus Magnum.


WWW
« Reply #1 on: July 30, 2004, 02:30:55 PM »

nvm... i got it...
Logged

Quote from: Douglas Adams
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1] Go Up Print 
AppleGeeks.com  |  Help / Advice  |  Flash  |  Topic: Image intro/rollover...
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.066 seconds with 19 queries.