flash mx action scripting

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   flash mx action scripting
metal_head132
CZ Newbie
metal_head132 has been a member for over 20 year's 20 Year Member
usa.gif florida.gif
Occupation: work
Age: 39
Gender: Male
Status: Offline
Joined: Sep 04, 2004
0.00 posts per day
Posts: 27
Points: 1,278
AIM Address Yahoo Messenger MSN Messenger 
hey i want to put pics on my web page. and everytime someone comes in leaves and comes back i want the pic to be different im using flash mx but have no clue how to do this and iv tryed turoials and everyting but i cant figure this out can someone plzzzzzzzzzzz help me with this?



Back to top Reply with quote
#2   re: flash mx action scripting
redhot_2oo3
PayPal Donation
CZ Moderator
uk.gif
Occupation: Codezwiz Elf
Website:
Status: Offline
Joined: Aug 26, 2003
0.08 posts per day
Posts: 633
Points: 25,047
   
I don't know if you tried this tutorial, but it looks easy enough. [ Register or login to view links on this board.]




_________________
Back to top Reply with quote
#3   re: flash mx action scripting
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.15 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
In order to do what you are asking 1st you need to learn about cookies, how to craate them and how to use their data, once you've got that far then you could write a script that would do what you are asking.


I think what might be easier for you is to have the images randomly displayed. Then you won't need to go to school for cookies 101.

If it is just random pics you want to display theres a milion scripts on web that you don't even need flash to display them.

If you have your heart set on doing it with flash then using flash mx and lets say 5 images.

Start off by putting a keyframe in frames 1 thru 7.

In klik on frame 2 open action panel then insert following a\s

stop();
gotoAndStop(random(5)+3);

This stops the moving from playing then tells it to go to a frame that is being determined by an expression. we have 5 images so we input a 5 for the random variable. if you had 8 images, then put a 8 in as random variable

klik on frame 3 and in action panel insert the following

stop();
loadMovieNum("sm1.jpg", 0);


sm1.jpg would be the address to the image you wanted to load, ONLY jpg's can be dynamicly loaded like this, if you have other formetted images then you will either need to convert them OR import them into movie and put them on the stage at each frame starting with 3.

klik on the 4 frame in action panel put

stop();
loadMovieNum("sm4.jpg", 0);


and repepte this process until you have used up all your images and frames


here's what you end up with (theres a refresh tag on this page so it reloads every 5 seconds, if it don't then just hit refresh to see image change

the example has been pulled do to problems with site

here is the fla [ Register or login to view links on this board. ]


Back to top Reply with quote
#4   
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.15 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
roflmao man i got to learn not to be so long winded



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum