Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-02-2001, 12:18 PM   #1
mgaadvertising
Registered User
 
Join Date: Apr 2001
Location: London
Posts: 2
Thumbs up

http://www.mga-advertising.co.uk
mgaadvertising is offline   Reply With Quote
Old 04-02-2001, 07:44 PM   #2
Metrov 8
Registered User
 
Join Date: Nov 2000
Location: Mammoth Lakes, CA
Posts: 97
Default

Congratulations, you've done a fine job on the site. It functions very well. I must ask you a favor. I've just completed my new design site which has a similar sliding window effect. However, my slider moves slow and clunky now that it has all the elements in it. Would you be willing to share the codes you used or refer me to a tutorial that explains your code? My site can be viewed here:

http://fineartwebdesign.com/mediashox/Main.html

Check it out, and you'll see what I'm talking about.

I used this code in the slider MC itself:

onClipEvent (enterFrame) {
Xsquare = _root.menu._x;
Xdiff = Xpos-Xsquare;
Xmove = Xdiff/10;
_root.menu._x = Xsquare+Xmove;
updateAfterEvent(enterFrame);
}

Here's a sample of a button code: on (release) {
_level0.menu.Xpos = -700;
}

Your help would be much appreciated. Let me know, thanks, Metrov
Metrov 8 is offline   Reply With Quote
Old 04-02-2001, 08:49 PM   #3
Metrov 8
Registered User
 
Join Date: Nov 2000
Location: Mammoth Lakes, CA
Posts: 97
Default

I believe my movement problem has been solved [thanks to mgb]. I changed XDiff/10 to XDiff/3 and now I think the movement is acceptable.

Still need to solve the loading problem. Takes 30 seconds on a 56k, and since the whole site's on the main movie, how do you use a preloader? Any tips on loading the site?

Thanks, Metrov

[Sorry to clutter your thread with my stuff. I'll try to herd people your way for more reviews.]

Metrov 8 is offline   Reply With Quote
Old 04-03-2001, 01:58 PM   #4
mgaadvertising
Registered User
 
Join Date: Apr 2001
Location: London
Posts: 2
Lightbulb Preloader

Hi Metrov,

Thanks for the nice feedback about our site. Here is how we did the preloader in the movie. It is important to note that this movie (the bit you see sliding) is actually 7 .swf's all loaded into a movie clip in the root .swf, and all the preloaders are uilt individually into each movie (there is probably a more efficient way to do this though), anyway, heres how we did it (this also preloads text from a .txt file as well, which is what the textloaded is there for):

frame1
loadVariables ("skills.txt", _parent.text);

frame2 ("textload")
if (textloaded eq "ok") {
gotoAndPlay ("load");
}

frame3
gotoAndPlay ("textload");

frame4 ("load")
ifFrameLoaded ("off") {
gotoAndStop ("on");
}

frame5
gotoAndPlay ("load");

frame6 ("on") //contains
stop ();

frame7 ("off")
stop ();

1.preload movie is stretched over frames 2-5
2.coloured background stretches over all 7 frames
3. main content is all on frame 6
4. frame 7 is only the background, because the movie goes here and stops after it detects that it has gone off screen, therefore freeing up resources. When it comes back on screen it runs through the loader again, then goes to frame 6 ("on")

//detect if off screen code (a movie clip with 2 frames sitting in the 6th frame of the main movie
frame1
if (Math.abs(_level0.control._x + (2*_level0.mw)) < (_level0.mw)) {
tellTarget ("../") {
gotoAndStop ("on");
}
} else {
tellTarget ("../") {
gotoAndStop ("off");
}
}

frame2 (empty)


Hope this helps,
Jason Ringgold


mgaadvertising is offline   Reply With Quote
Old 04-03-2001, 04:33 PM   #5
Metrov 8
Registered User
 
Join Date: Nov 2000
Location: Mammoth Lakes, CA
Posts: 97
Default

Thanks so much, Jason.

I ended up doing something a little different, but basically the same idea. Seems to work okay, now.

Best wishes, Metrov
Metrov 8 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Bells - Site Check bellfrenzy Site Check 9 03-01-2006 11:15 AM
Last Details - New Web Site. Help me and Check it out Gerebeto ActionScript 1.0 (and below) 4 11-24-2003 12:07 PM
Site check www.whatiseleven.com elspif Site Check 8 10-29-2002 09:50 PM
FIRST SITE EVER, Please Check manuelarean Site Check 2 10-11-2002 01:59 PM
check site iceman4 Site Check 3 02-14-2002 02:10 AM


All times are GMT. The time now is 07:52 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.