27, May 2012

Somebody help! - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Design and Layout  >  Graphics & Multimedia  >  Macromedia Flash & Actionscript (Moderator: Meth0d)
Topic: Somebody help!
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Somebody help!  (Read 1726 times)
What a dork
*
Posts: 16
136 credits
Members referred : 0



« on: Sep 14, 2005, 06:57:48 pm »

I have a movie with 31 frames. Each frame has an other clip on it which is playing forever.

I want when the movie loads, automatically go to the frame of the day number.

For example if the date is 31 of September, it will go to the frame 31.

Is that possible?
Vamos lamogianistas
Total Zero
*
Posts: 5
30 credits
Members referred : 0



« Reply #1 on: Sep 15, 2005, 10:17:11 am »

Assuming the movieclip which contains the 31 frames ic called 'Calendar', just put an empty keyframe in the begining of 'Calendar' movieclip and paste the following code :
Code:
stop();
b = new Date; // set b as new date object
a = b.getDate(); // b calls the getDate method which returns the day of the month (an integer from 1 to 31)
gotoAndStop(a + 1); // we put an empty keyframe in the begining so we have to add 1
Hope that helps you!
What a dork
*
Posts: 16
136 credits
Members referred : 0



« Reply #2 on: Sep 15, 2005, 11:37:09 am »

Thanks man.

I couldn't imagine that this is so simple
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=270
Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Design and Layout  >  Graphics & Multimedia  >  Macromedia Flash & Actionscript (Moderator: Meth0d)
Topic: Somebody help!
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 10:10:45 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 62.814
Total Topics: 11.028
Total Members: 21.451
Tutorials : 58
Resources : 929
Designs : 395
Latest Member: sobbin

108 Guests, 1 User online :

11 users online today:




Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.