Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

96 users online



How to resize dynamically?

How to resize dynamically?

Currently viewing this thread: 1 (0 members and 1 guests)


Page 2 out of 2
colincameron

colincameron

Neverside Newbie
Status: Offline!

awesome ive been searching for a tutorial for a couple hours for this effect

thanks again!

btw, has anybody seen any other tutorials for this type of thing?

-

Last edited by colincameron, April 6th, 2004 11:37 AM (Edited 1 times)

destro800

destro800

Status: Offline!

If I remember correctly, there is a free, downloadable component at http://www.flashcomponents.net that does exactly what you are looking for, and even has a nice XML file controlling the images and the captions.

colincameron

colincameron

Neverside Newbie
Status: Offline!

thanks for the tip is there an eeasy way to do this without using images? id like to put some content in there instead?

devonair

devonair

Neverside Newbie
Status: Offline!

hey, colincameron,

there's another thread floating around here about EVB style resizing or something.. basically the same script, but modified to accomadate buttons and a preloader.. I don't know of any other tutorials.. I've been thinking of turning the whole thing into a component, myself, but if what destro says is true, I probably won't bother..

oh- and for content use .swf's rather than jpgs..
d.

___________________

obod | weapons of mass dysfunction

Last edited by devonair, April 7th, 2004 01:44 AM (Edited 1 times)

arthaus

arthaus

Marathon Runner
Status: Offline!
Quote:

Originally posted by devonair
Have fun with it..

Hi devonair,

Thankx for sharing your code!
I'm new with Flash...how can I modify your code?

1. Display pics once (no looping)
2. After last pic displays, fade out and display a static logo (which I'll make it a link to inside web site page).

Thankx in advance,
Arthur

devonair

devonair

Neverside Newbie
Status: Offline!

Hey, arthaus,

in the fadeIn function, where it checks to see what picture you're on, just change the if statement to something like this:

PHP:

<?php
 
if (_root.loader_mc._alpha>=100) {
            
delete this.onEnterFrame;
            
//move to next pic or back to the first if you're done.
            
picNum++;
            if (
picNum>3) {
                
trace(">>ADD NEW SCRIPT HERE<<");
            }
            
//start from the top after waiting the delayAmt in seconds.
            
displayPic setInterval(loadPicdelayAmt*1000);
        }

?>

Except, of course, instead of the trace command, put in your new script to load in the logo you'd like..

Hope that might help.

d.

___________________

obod | weapons of mass dysfunction

arthaus

arthaus

Marathon Runner
Status: Offline!
Quote:

Originally posted by devonair
Except, of course, instead of the trace command, put in your new script to load in the logo you'd like.

Hi devonair,

Thankx for your prompt reply and code help.

I'm new to Flash + Actionscripting. For sake of learning, how should I go about searching for source/tutorial amending (loading the logo image) your code?

Cheers,
Arthur

devonair

devonair

Neverside Newbie
Status: Offline!

arthaus,

The resizing script itself has examples of loading, but for a much better and detailed description, you can give this tute a try:

http://www.kirupa.com/developer/mx/loading.htm

d.

___________________

obod | weapons of mass dysfunction

arthaus

arthaus

Marathon Runner
Status: Offline!

Hi devonair,

I really appreciate your input.
Avid PHP/MySQL coder, I find 'actionscripting' in Flash simply amazing!!

I'll look into it.
I still like simple, clean and effective animation. I'm glad I stumbled on it Smile

Cheers,
Arthur

Page 2 out of 2
Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0084 seconds.