Just playing here...

jfulcer

DIS Old Timer
Joined
Jun 1, 2000
Messages
5,637
Tried a little vbscript, tried a little Java - doesn't seem to work. :(


Status bar anyone?
<A HREF="js-messa.htm" TARGET="main" onMouseOver="self.status='I Love the DIS';return true">Love</A>
<A HREF="js-messa.htm" TARGET="main".htm" onMouseOver="self.status='The DIS Rocks!';return true">Rocks</A>
<A HREF="js-messa.htm" TARGET="main".htm" onMouseOver="self.status='WDW for me!';return true">WDW</A>
<A hREF="js-messa.htm" TARGET="main".htm" onMouseOver="self.status='Bouncin is what Tiggers do best!';return true">Tigger</A>
<A HREF="js-messa.htm" TARGET="main".htm" onMouseOver="self.status='Oh my, not this one again';return true">My oh my</A> <P>
 
NO POPUPS! (for now)

Did you need something or are you just goofing around?
 
playing with different things... seeing what I can and can't do.

I'd REALLY like to do some scripting, but I don't think it's gonna work...

How about this for a pop up. :)

<A HREF="none.htm" onMouseOver="window.open('file:///C|/', 'display', 'scrollbars=1')">Click here to see how to get a million dollars from Disney!</A>

Hey JC, thank you SO much for helping me with that Flash stuff. It was nice to have someone walk me hrough figuring it out.
 
You can script in Flash, but you have to get it approved first.

JC
 

hmmmmmm you make me start to drool!!!

Here's what I wanted to script - obviously I can show you code/etc or whatever, and it's for a super simple reason.

I want to cycle the 'image' on my sig. I want to have a series of images stored, prolly all sized the same, that will be randomly pulled from to place on my post. So I can take, say 10 pictures in a directory somewhere and whenever my sig loads, it loads a random versus static image. grok?
 
Should be pretty easy.

Random #
Array of links to pics
onLoad img=piclinkx

or something like that.

JC
 
Double click on a frame and the action box will come up for that frame. You should only need one frame to do it in.
 
Before you get too far I'll give you a leg up.

You can do it easier if you place the randomizer in frame 1, and then place a stop in say the next 10 frames. Once you do that, have the randomizer pick a # from 2-11(x) and then gotoandplay frame(x). In the frame it will then link directly to a seperate scene that will contain your picture for that coresponding random #.

Did you get all of that?

JC
 
How do I link the picture on that frame?

I don't want all the pictures to be downloaded every time, I want a link there on that frame that shows the pic, but I can't get it to do it. I tried geturl, but it seems to open a new window, and not place it on the shockwave stage....

Jeff
 
I've taken this from the help.htm and edited it for your needs:

To load a movie in the subsequent frames:

1 Select the frame to which you will assign the action and double click it to open the action pane.
2 Select the "Load Movie" action.
3 In the Parameters pane (bottom of the actions pane), for URL specify an absolute or relative URL for the .swf file to load (this would be the .swf that contains JUST the movie for that specific picture).
4 For Location, choose Level "0" (default setting). This will swap the new picture.swf with the one that has the randomizer in it.



Don't forget that each picture must be a seperate .swf and the same size as the original movie so when it loads into itself it will look right.

JC
 
I was originally using loadmovie, but when it came down to it, I thought that wasn't right since I was using gif images instead of swf files.

Not that it's a big deal, but I'd have to load and save each image as a swf in flash to do this. fine by me.

Now to just get that randomizer to work properly. ;)
 
That's the only way I can think of doing it without loading ALL of the .gif's at once.

If you need help with the randomizer, let me know (tomorrow).


You do ACH stuff?
 
r is always getting set to 1. never anything else. This is the code in frame one.

r= random(5);
if (r=0) {
gotoandplay(2);
} else if (r=1) {
gotoandplay(3);
} else if (r=2) {
gotoandplay(4);
}
.... and so on.


example of code in frame 2:

LoadmovieNum("http://........", 0);
stop();

What am I doing wrong? I assume I'm setting r improperly, but I can't find another way to set variables like this...
 
You are making it MUCH harder than it has to be.

First make x# of movies that have just the images in them (we'll say all of the movies are 200x200 pixels).

In a seperate movie, Frame 1 should have this in the action panel:

Code:
gotoAndPlay (random ( x ));
Where x=the number of images you have +1

In Frame 2- Frame (?) (# of images +1), place keyframes with action scripts like this:
Code:
loadMovieNum ("place the image url's here", 0);

That's it!

The image in frame 2 will be image #1 Frame 3 will be image #2...

If the randomizer returns a value of 1, it will just run again until it returns a value of 2-?

I can send you the .fla if you get stuck, but that's giving you a fish. :)

JC

Your profile says you work for a Clearing House.
 



New Posts










Save Up to 30% on Rooms at Walt Disney World!

Save up to 30% on rooms at select Disney Resorts Collection hotels when you stay 5 consecutive nights or longer in late summer and early fall. Plus, enjoy other savings for shorter stays.This offer is valid for stays most nights from August 1 to October 11, 2025.
CLICK HERE













DIS Facebook DIS youtube DIS Instagram DIS Pinterest

Back
Top