Play Specific Animation Depending On The Date
I was wondering if nayone knows how to have an animation play depending on the day of the month it is. I am working on an advent calander for a client and it would be nice if an animation would play depending on the day of the month.
any help much apreciated.
-kool
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 10-04-2006, 02:02 PM
View Complete Forum Thread with Replies
Sponsored Links:
Play This Animation From A Specified Date
Hi folks,
can someone do this script or maybe he did it already:
So the anmation shall not play until the specified Date is reach.
This is the first part of this script:
onClipEvent (load) {
days = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
months = new Array('January', 'February', 'Mrch', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
timedate = new Date();
}
onClipEvent (enterFrame) {
hour = timedate.getHours();
minutes = timedate.getMinutes();
seconds = timedate.getSeconds();
todaydate = timedate.getDate();
day = timedate.getDay();
dayname = days[day];
month = timedate.getMonth();
monthname = months[month];
year = timedate.getFullYear();
if (length(minutes) == 1) {
minutes = "0"+minutes;
}
if (length(seconds) == 1) {
seconds = "0"+seconds;
}
currenttime = hour+":"+minutes+":"+seconds;
currentdate = todaydate+"/"+month+"/"+year;
fulldate = dayname+", "+todaydate+". "+monthname+", "+year+", "+currenttime;
delete timedate;
timedate = new Date();
setProperty ("/stunden", _rotation, 360/60*hour);
setProperty ("/groß", _rotation, 360/60*seconds);
setProperty ("/minuten", _rotation, 360/60*minutes);
}
so and the 2nd part of this script lacks yet.
The Animation shall only play from this specified Date and then forever.
But when this specified Date isn’t reach the animation shall not play.
If have any script or “*.fla” you can sent this to renejarsch@yahoo.com
Thx for your help.
View Replies !
View Related
Play Animation From Specific Frame
In one animation i call two swf files... and the code is....
Frame 1
-------
tank2.loadMovie("tank2.swf");
tank1.loadMovie("tank1.swf");
Frame 3
-------
if(tank2.done == true){
tank1.gotoAndPlay(5);
}
else{
gotoAndPlay(2);
}
Frame 5
-------
if(tank1.done == true){
tank2.gotoAndPlay(2);
}
else{
gotoAndPlay(4);
}
This is loopable animation when one file playing completes then other file plays. But i want this plays normally first time but on first loop the tank2 will start from the Frame 20 not from the frame1. Please tell me this is possible or not. Because preloaders are created in the tank1 and tank2 and on loops those
are also visible for a second.
View Replies !
View Related
Loading Swf Depending On Date?
I found most of this on this forum already, but need to adjust it to meet my needs. I think the following php file will work just fine:
PHP Code:
<?php
$t = time();
echo "month=".date("m", $t)."&"."day=".date("d", $t);
?>
And I have the following actionscript in my flash movie:
Code:
var day;
var month;
var myLoadVars:LoadVars = new LoadVars();
myLoadVars.onLoad = function(success:Boolean) {
if(success) {
day = this.day;
month = this.month;
//trace("month: " + this.month);
//trace("day: " + this.day);
}
}
myLoadVars.load("http://mysite.com/mydate.php");
Now, I want to add some code that will allow me to load a new movie depending on the date. For example, if the date is > Jan 05 and < Jan 12, it will load movie1.swf
View Replies !
View Related
Image Display Depending On Date?
Hi,
I was just wondering if there's a script that anyone can offer or point in the direction to that depending on the date, a certain image will appear.. i.e. Jan. 1st it shows 1 image, then on Feb. 1st.. the script tells it to show another different image... thanks in advance
Inigo
View Replies !
View Related
Playing A Movie Depending On The Date
I have 2 movies maybe movie clips ( I haven't really started this yet)
I want a different one to be loaded depending on the exact date (month-day-year)
One movie will be a preview. It would play up until the release date say 4-20-03.
The other movie would be a full blown site that would play on the 4-20-03 and forever after that date!
Is has to be specific to the exact date, because depending on when it's posted, using the above date as an example:
I don't want the full site to play during April of 2002 or on the 20th of every month.
View Replies !
View Related
[FMX] Help With Loading Data Depending On Date ..
Hi,
I want to beable to automatically load an external txt file into my flash movie according to what date the computer thats viewing is running.
Heres what I mean. If the computer that is viewing my swf file has the date Friday 1 Jan 2004 then txt file "1" would load and show. If the day was 5 Jan then txt file "5" would load and show.
I have hunted around for a tutorial for this but havint been able to find one. At the moment I am using simular script used in the display date & time tutorial on this site, if that helps.
Thanks.
View Replies !
View Related
[FMX] Help With Loading Data Depending On Date ..
Hi,
I want to beable to automatically load an external txt file into my flash movie according to what date the computer thats viewing is running.
Heres what I mean. If the computer that is viewing my swf file has the date Friday 1 Jan 2004 then txt file "1" would load and show. If the day was 5 Jan then txt file "5" would load and show.
I have hunted around for a tutorial for this but havint been able to find one. At the moment I am using simular script used in the display date & time tutorial on this site, if that helps.
Thanks.
View Replies !
View Related
Loading JPGs From XML Depending On Date
Hi all!
I've been looking around to find out exactly how I can dynamically load JPGs as the background to a flash movie I'm working on, which are displayed based on date (enddate in the XML file). I have 52 images, 1 per week for 2004. I am working on a projector file for the desktop.
I saw a post where an external XML file was used and this is the way I
want to go. The XML file is the following (There are 52 entries in the final version):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE images SYSTEM "promo.dtd">
<images>
<photos>
<img>foto1.jpg</img>
<startdate>01/11/2003</startdate>
<enddate>30/11/2003</enddate>
</photos>
<photos>
<img>foto2.jpg</img>
<startdate>01/12/2003</startdate>
<enddate>31/12/2003</enddate>
</photos>
</images>
As a complete novice actionscripter I dont know where to start at reading this XML and then displaying the correct image, so any help is much appreciated.
Thank you!
simo
View Replies !
View Related
Loading JPGs From XML Depending On Date
Hi all!
I've been looking around to find out exactly how I can dynamically
load JPGs as the background to a flash movie I'm working on, which are
displayed based on date, i.e. they are diaplyed only until the enddate defined in the XML file.
I saw a post where an external XML file was used and this is the way I
want to go.
The file should be something like the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE images SYSTEM "promo.dtd">
<images>
<photos>
<img>foto1.jpg</img>
<startdate>01/11/2003</startdate>
<enddate>30/11/2003</enddate>
</photos>
<photos>
<img>foto2.jpg</img>
<startdate>01/12/2003</startdate>
<enddate>31/12/2003</enddate>
</photos>
</images>
As a complete novice actionscripter I dont know where to start at
reading this XML and then dispalying the image, so any help is much
appreciated.
I have 52 images - one per week for 2004.
Thanks!
Simo
View Replies !
View Related
Desktop Background Depending On Date And Month.
I am trying to create a little program in flash that will load a specific picture depending on what day it is and what month.
All the different picture swfs are named depending on date/month eg. Jan01, Dec15. (These will load into a blank container whenever called upon).
The only problem I am having is the actionscript to actually make this work. I have searched the forums for all kinds of things like getDate, getMonth etc but haven't found anything that seems to do the job.
Would it be possible for someone to help me with the coding?
Thanks.
View Replies !
View Related
Specific Image Appear On Specific Date
I am building a calendar for a client. Off to the side of the calendar is a box where I want a different, specific, image to appear each day.
I think I know how to start, but not how to finish. I assume I start by building an MC with all the images placed on the specific x y coordinates, giving each a unique instance name.
Along the time line, I can have each image display only on one specific frame, with a stop action and a label unique to it.
From there is where I get lost. I don't know what AS to put on the MC so that it reads the users computer, knowing what the date is and sending it to the appropriate labeled frame.
Am I on the right track? If so, what code do I use. If I'm not on the right track, please offer suggestions on what direction to head.
I need it to work when saved as FLASH 5.
Thanks!
View Replies !
View Related
Want Button To Send Info To Specific Php Script Depending On A Variable
So I have a form with a few fields that are mandatory, for which I'd like an error message (EmailStatus) to pop up if they are blank when the submit button is pressed. If all of the fields are filled in, the user can select to subscribe(wanna=1) or unsubscribe(wanna=0). When the submit button is pressed, I want it to check that all of the fields have been entered (if no: spit out the error message), and then check the subscribe or unsubscribe value, and send the info to the appropriate script (the script for subscribe is partAscript.php; unsubscribe is remove.php). Below is the code I have made for my submit button which does not work. Please help!
on (release) {
if (!enterEmail.length || enterEmail.indexOf("@") == -1 || enterEmail.indexOf(".") == -1) {
EmailStatus = "Please enter an E-mail address";
} else if (!FirstName.length) {
EmailStatus = "Please enter your first name.";
} else if (!enterPhoneA.length) {
EmailStatus = "Please enter your telephone number.";
} else if (!enterPhoneB.length) {
EmailStatus = "Please enter your telephone number.";
}else if (!LastName.length) {
EmailStatus = "Please enter your last name.";
} else if (!enterCity.length) {
EmailStatus = "Please enter the city in which you live.";
}
if (wanna=1) {
loadVariablesNum ("partAscript.php", 0, "POST");
EmailStatus = "Sending form";
output = "I would like to enter";
} else {
loadVariablesNum ("remove.php", 0, "POST");
EmailStatus = "Sending form";
output = "I would like to be removed";
}
}
Thanks in advance for any help.
View Replies !
View Related
Play Movie Depending On The Day...
Hi there, I'm making a movie which contains 7 movies - one for each day of the week.
I'm trying to get the movie to automatically play the relevant movie depending on what day it is (according to GMT time if possible).
I've been playing around with getdate() functions and general 'clock' scripts, but I'm getting nowhere.....
Can anyone point me to a tutorial or point me in the right direction. I've trawled the Internet looking for something that might help out, but no luck so far.....
Cheers.
View Replies !
View Related
Subject:_ Play A MC, Depending What Frame Your On
I need a script to do the following: -
When the mouse is clicked, check the frame number,
if frame is 10 then play "test1" ,
if frame is 20, then play "test 2",
if frame is 30, then do nothing.
I have tried the code, but got stuck: -
on (release) {
if frame = 10{
_root.test1.play();
_root.gotoAndPlay(40);
}
if frame = 30{
_root.test2.play();
_root.gotoAndPlay(40);
}
if frame = 40{
Do nothing
}
}
Does anybody have a solution?
Thanks!
View Replies !
View Related
Counting Up From A Specific Date?
hi guys
i wanted to have a count up from a specific date like this example:
http://www.flashkit.com/movies/Utili...0276/index.php
i downloaded that but it says unexpected file..
also possible to show years, months, days, hours, secs.. ?
thnx for any help
zheelo
View Replies !
View Related
Countdown To Specific Date #2
Help!
I am trying to countdown to a date next year (2005) and cannot seem to manipulate the code to make it work Help!
Code:
eventDate = new Date( 2005, 06, 16 , 18 , 0 , 0 , 0);
What am I doing wrong? Please help.
This is Flash MX.
View Replies !
View Related
Countdown To Specific Date #2
Help!
I am trying to countdown to a date next year (2005) and cannot seem to manipulate the code to make it work Help!
Code:
eventDate = new Date( 2005, 06, 16 , 18 , 0 , 0 , 0);
What am I doing wrong? Please help.
This is Flash MX.
View Replies !
View Related
Count Down To The Specific Date?
people, can you help me?
i need to make a count down clock that will show haow many days, hours and minutes left to the specific date...
if anyone know how to make it please post some code here...
i really need it guys... please...
View Replies !
View Related
Animation Moving Depending On Mouse Position
is there a way to make an animation move in a move clip depending on how close the mouse is?
so for example...
for every 10 pixels the mouse moves towards the centre of the mc the animation within it moves forward 1 frame and likewise for ever 10 pixels away it moves back 1 frame ?
sorry if this is obvious and in tutorials somewhere - i just cant find it
View Replies !
View Related
Creating An Animation That Goes Forwards Or Backwards Depending On Var?
Hi guys
I would like my animation on the menu_mc.brach_mc timeline to play frame by frame tjecking if it should go forwards or backwards.
When mouse is over it should play forwards, and when the mouse is out it should play from its current position on that timeline and go backwards frame by frame to that timelines frame 1.
How is this done??? I tried the below on my own, but no luck there...
My sample AS:
ActionScript Code:
var back:Boolean = false;
var forward:Boolean = true;
//
menu_mc.branch_mc.onRollOver = goBack(forward);
menu_mc.branch_mc.onRollOut = goBack(back);
function goBack(isOver:Boolean){
mc = menu_mc.branch_mc;
this.onEnterFrame = function(){
if(isOver){
mc.gotoAndPlay(this._currentframe+1);
} else {
mc.gotoAndPlay(this._currentframe-1);
}
}
}
Please give a hint here - thnx
View Replies !
View Related
Play Movie Depending On Mouse's Position
Hi All,
I need a very fast help on this, please:
I want to initialize an area through scripting, not by using any button or any mc, and want to assign a command, like when the mouse enters into that pre-defined area a mc on the stage plays.
I know it must be a very simple script but i am not that much advanced in scripting. Kindly help me as i am stuck at this.
Amir
View Replies !
View Related
[CS3] Goto And Play Depending On Variable Passed
Ok,
so i have my movie which has a form and i've successfully managed to pass a query string from a webpage to my movie which i want to display if there is an error.
Trouble is, there is a lengthy movie clip at the beginning of my form and if there is an error with the form, it's a nightmare to have the user sit through the movie each time to fill out the form correctly.
Basically what i want to say in my actionscript is:
If there is a variable passed through query string
gotoAndPlay frame labelled 'register'
I have tried the following which defines the actual value of the query string:
if (formError=="woteva") {
gotoAndPlay(register);
}
but this didn't work.
Any ideas?
Thanks in advance!
View Replies !
View Related
GetDate/ Date Specific Content
I'm trying to have put a swf file in my website that changes according to the date. Can anyone help me with the action script for this?
The movie only contains a series of animated text boxes. It is the text in these boxes that needs to change. Should I make a separate swf for each set of date specific content and use the loadMovie command? or should I just have dynamic text boxes and set the variable to change within the movie.
And then, i suppose I use "getDate". How can I then set up date perameters associated with my swfs or variables so that they can be compared with current date and the accurate information can be loaded?
geez, i don't even know how to ask these questions correctly. hopefully someone tolerant out there can help me?
thanks
kris
View Replies !
View Related
Count Down Calendar To Specific Date?
Hello peeps!
I am just learning this clock and time stuff in Flash 5 and I didn't manage to find a tutorial which teaches one how to create a countdown clock. So I was looking for one,
a clock that shows, date, month, houre, minute and seconds and counts to "0" to a specific date and time. User doesn't have to input, the code on the specific date should be alrady inputed through actionscript. The only thing is the clock should be realtime according to the time the computer is. All this should be digital, somewhat like that millenium countdown thing at certain sites.
Well, I'l be searchign aorund, I'm not too great with thisstuff yet but that's all I have got. :|
thanks everyone forl istening. or reading.
View Replies !
View Related
Date Specific Advent Calender Help
hi there
i'm building an online advent calender for a client [not yet live]and need help with the date aspect of it. What I would like to happen is for the visitor to be able to access the doors on the calendar depending on the date. for example if it is the 4th December they will only be able to access doors 1-4 and none after that.
so far I am working on the separate animations for each door of the calender, but in the back of my mind I am wondering how I would pull in the date from the visitors system clock to determine which doors they have access to.
would I need to write a date function that is called each time someone clicks on a door [how would this code work?]. so if they click on door 1, it will go and get the function to check what date it is, if it is before the 1st december it would go and play a pre-december message, if it is the 1st of december it will allow them to open the door. if they click on another door, it would check the date and see that they clicked on a date after the current date and hence would play a message to come back later for that door. if they go in on the 2nd it will allow access to doors 1 and 2...do you see?
any help with this code and where to put it [ie. in a function, on each button etc] would be helpful.
thanks
e
View Replies !
View Related
Date/Time In Specific Countries
Hi...
I Have 3 analogue clocks which work fine Displaying the correct time depending on the computers clock, however I need the 3 clocks to show the correct time in 3 diferent countries.
I can ofcourse simply find out the time diference and then add that to original clock calculation... however this will only show the correct time when viewed from my part of the world. If the clocks were viewed from another timezone.. they would show the incorrect time.
Do you know how I can do this?... I'm guessing there must be variables hosted on other websites that I tap into?
Any ideas?
View Replies !
View Related
Date Specific Advent Calender Help
hi there
i'm building an online advent calender for a client [not yet live]and need help with the date aspect of it. What I would like to happen is for the visitor to be able to access the doors on the calendar depending on the date. for example if it is the 4th December they will only be able to access doors 1-4 and none after that.
so far I am working on the separate animations for each door of the calender, but in the back of my mind I am wondering how I would pull in the date from the visitors system clock to determine which doors they have access to.
would I need to write a date function that is called each time someone clicks on a door [how would this code work?]. so if they click on door 1, it will go and get the function to check what date it is, if it is before the 1st december it would go and play a pre-december message, if it is the 1st of december it will allow them to open the door. if they click on another door, it would check the date and see that they clicked on a date after the current date and hence would play a message to come back later for that door. if they go in on the 2nd it will allow access to doors 1 and 2...do you see?
any help with this code and where to put it [ie. in a function, on each button etc] would be helpful.
thanks
e
View Replies !
View Related
How Do I Tell A Clip To Play/not To Play Depending On Frame Position Of Another Clip
Hi, Please help!. I'm a designer and work in flash quite a bit. However scripting is certainly not a strong point!! I want to achieve the following-when a button is clicked on the main timeline, I want it to load another clip but (this is the tricky bit) I want it to perform a play action on another clip also, but only if that movie clip is resting on a particular frame.
This is probably a piece of cake to you who know-so please help me out. Many thanks
CPF
View Replies !
View Related
A Clip Follows Mouse, Different Frames Play Depending Distance
Hello,
Second time poster and a novice in actionscript.
I can almost read it, just can't seem to write it at all.
I'm trying to have the animation of a MC instance name "walking_mc" follow the mouse on the x axis, arrive at the mouse and stop, turn then continue following the mouse in which ever direction it moves.
here's a link to the file:
http://jdittmer.free.fr/test/test.htm
http://jdittmer.free.fr/test/walking.fla.zip
here is what I have so far:
[AS]
function fMoveChar() {
var xmouse = _root._xmouse;
var xchar = myCharacter._x;
if (xmouse > xchar) var dir = 1;
else var dir = -1
myCharacter._x += myCharacter.speed * dir;
var dist = Math.abs(xchar - xmouse);
// use conditional statements and the dist variable to tell your mc to goto certain frames
if (dist < 15) {
myCharacter.gotoAndPlay("StopFromRight");
} else myCharacter.speed = 4;
if (dist < 2) {
myCharacter.speed = 0;
myCharacter._x = xmouse;
} else myCharacter.speed = 4;
}
moveInt = setInterval(fMoveChar,44);
[AS]
I have an MC with the corresponding frames and the appropriate frame names ie; "LeftToRight", "StopFromRight", "LeaveToLeft";
I'm looking for the actionscript for that will allow it to:
- detect whether the _xmouse is to the left or the right and play the corresponding frame.
An if/else with the dist variable would give me part, but not direction.
I'd appreciate any help you all could give.
Thanks,
JED
View Replies !
View Related
How Do I Tell My Flash Movie Which Frames To Play Depending On The Page I'm On?
Hi,
I'm creating a php website with a flash movie that incorporates the navigation. The movie plays though a series of images, one for each section and this image doubles as the navigation. The website uses the same php template throughout the site for each page.
Here's the thing: I would like each page within the site to display the rollover / active state of the section that the page is in, rather than the movie playing fully each time the visitors visits a different page.
The .fla file and .swf can be viewed here:
http://preview.hosts.co.uk/~swinside...img/header.fla
http://preview.hosts.co.uk/~swinside...img/header.swf
And the site is here:
http://preview.hosts.co.uk/~swinside...o.uk/index.php
So when a visitor is on a page in the hotel section, I want the flash movie to play frames 201 to 205 and when in the booking section frames 221 to 225 rather than the whole movie.
Is there any way of doing this? I've been looking at FlashVars but not sure if this would work as it is the same tempate throughout the site.
Thanks,
Konrad
View Replies !
View Related
Updating Swf Files/date Specific Movies
hello,
i am feeling like a flash nincompoop. i have looked in four different books and for some reason can not figure out how to do this:
I am trying to load a swf file in my main timeline according to the date. for instance, up until feb 2nd, I want movie1.swf to play, until feb 18 movie2.swf, etc.
i am a beginer so i need exact code. here is what i have been playing with: (mangled, i know!)
today = new Date();
day = today.getDate();
if (today > 1/18/2002 and < 1/02/2002)
then loadMovie ("movie2.swf")
okay, this gives you an idea of just how much help i need. i know ABOUT the getDate object but I have NO idea how it works, how it is written/read by flash, and how to us it in if/then statements. anyone who can help, i love you forever.
View Replies !
View Related
Years, Days Elapsed Since A Specific Date
Hello everyone!
I was browsing through my webpage archives and came across some java applet that I used on one of my old webpages, which displayed how many years and days have elapsed since a given date. And I've been having more than a handful of trouble while trying to make the same thing in actionscript.
What I wish to do is to display in a DynamicText the exact value, e.g. "15 years, 16 days"
If any of you could help, I would greatly appreciate it
Thomas
View Replies !
View Related
How To Count Days Till One Specific Date?
Hi,
I have to make a counter which has the following:
Initial value: 0
Target value: 5000
Date which the target should be achieved: 31 Feb 05
Date which the counter starts: 1 Dec 04
So what i'm trying to do is a counter that will start from 0 on the 1stDec and will end with 5000 on the 31stFeb.
However I need to be able to change both the initial and target value and the initial and target date.
Can anyone help me with the code or advise me with a script for this?
Thanks in advance
View Replies !
View Related
How To Count Days Till One Specific Date?
Hi,
I have to make a counter which has the following:
Initial value: 0
Target value: 5000
Date which the target should be achieved: 31 Feb 05
Date which the counter starts: 1 Dec 04
So what i'm trying to do is a counter that will start from 0 on the 1stDec and will end with 5000 on the 31stFeb.
However I need to be able to change both the initial and target value and the initial and target date.
Can anyone help me with the code or advise me with a script for this?
Thanks in advance
View Replies !
View Related
How To Play Different Movie Clip Depending On Which Side Of Button You Rollout Of?
I am trying to build a series of large buttons where when one is rolled over it grows and the other three buttons move to the side. It's supposed to be like this: http://www.sony.com. This cannot be achieved with individual movie clips because they wont react to one another. So all the animation has to be done in one movie clip. I thought of doing it with a series of movie clips overlapping each other that play when you roll over a certain invisible movie clip, but I dont think that will work. How can I do this? Is there a way to make it play a different movie clip depending on which side of the button you roll out of? Something like Rollout.left or something like that?
View Replies !
View Related
Play MC According To Date
Is there a way to have a Flash MX dynamically play a MC according to the date?
I want to make a site where the user can choose from 5 diff characters. Each characters has 5 MCips. The 1st can play the same day but the other 4 MC will be available after each successive date. So for example on Mon they cant see Tues MC..and so forth. Im sure I need to make 2 variables for "start date" and "play date" but Im a newbie with AS. If this is a major job then Ill be willing to play. So if there are any Gurus out there ID appreciate a hand.
View Replies !
View Related
Play/Pause For Animation/Nested Animation And Sound
Hello and Goodmorning, afternoon or evening.
I am relatively new to actionscripting and have come upon a problem I'm sure is probably easy but for some reason I can't make it work.
Basically I have a presentation that plays several voice over sequences that match up with accompanying animations which are mostly movie symbols that house the animation sequences. Well now the client wants to put a pause/play button on the presentation and I haven't been able to make it work... I put in stops but the movie symbols still play out the sequence and the voice over starts over... not sure what to do... HELP!... and thanks ahead of time.
Raul.
View Replies !
View Related
Play New Animation And Reverse Previous Animation
Hey everyone. Brand new here. I am hoping someone can help me out with bringing new sections of a website into the display area, and moving the previous section out. Meaning, lets say I have two buttons, and the idea is when you click one, an animation of the content pops up from the bottom of the screen to show the viewer. Simple enough, I use gotoandplay like this:
topLevelButton1.addEventListener(MouseEvent.CLICK, handleClick);
function handleClick(e:MouseEvent):void {
section1.gotoAndPlay(2);
}
So, when someone clicks my topLevelButton1, section 1 moves up on the screen so its visable. This concept is done with 5 different buttons on my site. It works fine. The problem is, when there is already an section displaying on the screen, I need to LOWER that section BACK DOWN before the new section raises up to display when I click a different button.
How is this achieved? I understand that Im supposed to store the current animation as a temp movie clip, so that when I click a new button, Flash takes whatever is currently stored as the temp movie clip, and reverses it or plays that animation from a specific frame. I dont know how to go about this though... Help please?
View Replies !
View Related
AS Animation Construction And Play (pre-play Render?)
Is there any way to construct a MC and have each of it's frame cached as a bitmap?
Let me explain.
I would want to load dynamically a certain image that can be changed at any time.
This loaded image is animated in a MC witch applies a directionnal blur (x: 0, y: 10) to it.
The blurs fades out gradually until it stops moving.
Now some users have slower PCs.
Can't I apply a filter to an image, save it like it is in a frame of a MC, go to the next frame, apply the new filter, save, redo... Until the MC has been completly constructed dynamically?
Isn't there some kind of pre-play rendering that can be done?
I'm sure there is but then again, witch method is the most optimized?
I'll be working on this on my spare time but thought I'd post this up and see if anyone ever tried this.
Then again, maybie it's NOT a good idea...
What do you guys think?
View Replies !
View Related
Looking For Specific Site Animation
i know its a long shot and kind of a BS post asking fo this kind of help but has anyone seen or made a site with a safe/vault animation--opening and closing. i cant really search for such things---eww just thing google animations or google visual themes/concepets...anyhoo...if anyone has any leads it would be helpful. i really dont have time to draw it by hand and the effort i put forth already has produced nothing but doodoo...thanks folks
View Replies !
View Related
Play Specific Section Of MP3
Kirupa tutorial says that you need to do this to play an MP3 in Flash:
Code:
mySound = new Sound();
mySound.loadSound("music.mp3",true);
How do you modify it so that it only plays the mp3 from say... the 30 second mark to 32 second mark?
View Replies !
View Related
Starting An Animation At A Specific Time.
Hey everyone,
I'm trying to figure out how to start a flash animation at 7PM PST every Tuesday PST—this animation would signify a 'live chat.' I can't figure how to make it PST specific, or how to do automate it every Tuesday, and I'm not sure if it's possible with just AS2.0 and no php involvement. I looked up the "get.Timeshift" function in the help, but it didn't make sense to me.
Anyone's insight would be very appreciated!
Thanks!
Chris
View Replies !
View Related
Swf File Will Only Play When In A Specific Folder
I uploaded the swf and html file up to my website and nothing showed up, just white screen.
When I opened the swf and html files in the root folder the same thing happened, white screen.
Then when I went to my Portfolio folder, where I store the same versions of these files, the swf and html PLAYED when I opened them.
But when I drag the files to the desktop and open the swf and html files, they don't play, just a white screen.
What's happening? Why won't they play when they're outside of my Portfolio folder?
View Replies !
View Related
[F8] How To Go To And Play A Specific Frame In A Loaded Swf
Hola...
I'm trying to figure out how to automatically goto and play a specific frame in a loaded swf file after it has been loaded. I'm just not sure how to define the path. i.e _root.gotoAndPlay();, myMovieClipLoader.gotoAndPlay();, importedSwf.gotoAndPlay();
importedSwf meaning the name of the file i am importing
myMovieClipLoader is the variable
_root...well...root
any help would be awesome
View Replies !
View Related
|