Transfer Action Script/Flash animation to DVD question
I have created a countdown clock using ActionScript/Flash that counts down to a specific date when the .swf runs.
My client has asked if we can take the Flash/Action Script clock and transfer it to a traditional DVD and have it work the same as if it were still flash on the desktop.
Is this possible?
No serverside script needed.
If it helps (and you have the patience) here is the code:
//onEnterFrame allows for a function to be called every tick this.onEnterFrame = function() { //Stores the current date var today:Date = new Date(); //Stores the Current Year var currentYear = today.getFullYear(); //Stores the Current Time var currentTime = today.getTime(); //Creates and stores the target date var targetDate:Date = new Date(currentYear,10,13); var targetTime = targetDate.getTime(); //Determines how much time is left. Note: Leaves time in milliseconds var timeLeft = targetTime - currentTime; var sec = Math.floor(timeLeft/1000); var min = Math.floor(sec/60); var hours = Math.floor(min/60); var days = Math.floor(hours/24); //Takes results of var remaining value. Also converts "sec" into a string sec = String(sec % 60); //Once a string, you can check the values length and see whether it has been reduced below 2. //If so, add a "0" for visual purposes. if(sec.length < 2){ sec = "0" + sec; } min = String(min % 60); if(min.length < 2){ min = "0" + min; } hours = String(hours % 24); if(hours.length < 2){ hours = "0" + hours; } days = String(days); if(timeLeft > 0 ){ //Joins all values into one string value var counter:String = days + ":" + hours + ":" + min + ":" + sec; time_txt.text = counter; }else{ trace("TIME'S UP"); var newTime:String = "00:00:00:00"; time_txt.text = newTime; delete (this.onEnterFrame); } }
It works by syncing the clock animation to the clock/time on the local computer and then beginning a countdown.
Not sure why the clients want to have it work on a DVD but I am tasked with finding out if it's possible.
Many thanks
Similar Messages
-
hello
i have made one touch screen frame using infrared for my project i am a U.G student of electronics and communication and i have made this touch screen frame to count the coordinates so i passed my coordinates to com port and i want to pass this coordinates to flash action script game called wall pong but i dont know the flash action script as i haven't studied the action script so how can i pass this coordinates to flash i can able to pass the coordinates to net port .but from that i couldn't pass it to flash game i have download the code from the internate. but i couldn't understand. what should i do??? can any one help me out??to communicate with any kind of non-standard hardware you will have to run some kind of virtual server that listens to your device and prepares it for flash.
Look into WiiFlash, it manages to get Flash communicating with a WiiMote:
https://code.google.com/p/wiiflash/
It will certainly give you an idea how to jumpstart your won project -
Transfer mark from Flash animation to SCORM
So this is the situation: I have a quiz made in Flash CS5 (AS3), that I put into an Animation slide in a Captivate 5.5 project. I need to be able to collect the mark from the Flash file, and transfer it to the Captivate project, which can then (via SCORM) transfer the mark to the client's LMS. Does anyone know how I might be able to do this? Any help is appreciated, thank you.
I recommend you convert your Flash SWF into an interactive widget, which would then give you the ability to assign it with a score in Captivate to be reported naturally to SCORM.
Information about coding widgets can be found here: http://www.infosemantics.com.au/widgetking/ -
FLASH MX 2004 action script question
Hi!
I need to create an script for a basic function; when mouse goes over a moveclip, that works also link, I want it to trigger an invisible red dot on a nerby map. I have created a movieclip and named it "red", it's a 1 sec clip with nothing in the beginning and a red dot in the end. I want this dot to trigger and show only when mouse goes over this specific link, otherwise it must be invisible.
I know this is pretty basic stuff and I have done this before few years back but I have forgotten how to do it and need help now.
Any help would be very much appreciated :-)
KimI still need help, this problem is little more complicated;
I can manage making the red dot visible and invisible by triggering roll over and roll out on a button.
The problem is, I have a navbar which is line of flags made to a movie clip, with 5 invisible buttons. These buttons are configured to do three different actions; get URL, trigger a light effect and a movement effect.
Now I need this invisible button to trigger my red dot also so that when mouse is over a certain flag a red dot appears on a map on the correct location.
I have the red dot on a new layer. It has instance name "redDot" and on the very first frame of this red button layer, I have action script that says: redDot._visible = false;
This works as it should and the dot is invisible when the movie has loaded.
I need to make this invisible button to trigger the visibility of my red dot, and I have tried to add the code:
on (rollOver) {
redDot._visible = true;
on (rollOut) {
redDot._visible = false;
to this invisible button, but it dosent work, furthermore it affects the other functions of the button/movie clip, which were working fine before.
Here is the code attached to this invisible button so far:
on (release) {
getURL(/:url1);
on (rollOver) {
gotoAndPlay(2);
on (rollOut) {
gotoAndPlay("sec");
I have the URL:s on an external text file.
So my question is; where do I add the action script to make it visible when moving the mouse over this invisible button? To my understanding, it should go in the same place as the other code that is working, but I'm doing something wrong...
I tried to do this:
on (release) {
getURL(/:url1);
on (rollOver) {
gotoAndPlay(2)
redDot._visible = true;
on (rollOut) {
gotoAndPlay("sec")
redDot._visible = false;
But it is wrong, I also tried like this:
on (release) {
getURL(/:url1);
on (rollOver) {
gotoAndPlay(2);
on (rollOut) {
gotoAndPlay("sec");
on (rollOver) {
redDot._visible = true;
on (rollOut) {
redDot._visible = false;
But it makes the other functions that worked to stop working.
I also tried to give the invisible button an instance name and do it like this:
invisible.on (rollOver) {
redDot._visible = true;
invisible.on (rollOut) {
redDot._visible = false;
And put them in the actions layer of button movie clip but nothing works.
Flash is really giving me a headache now...
To conclude, I made a simple test button, put it on the scene somewhere and and attached the rollOver and rollOut codes, targeting the "redDot" and it works fine, the button didn't need a instance name to work. I don't understand why I can't make it to work with the invisible button where it should be.
I hope this clarifies the point and I can get some help with this and sorry for bothering again with this problem.
Oh and I use old Flash MX 2004.
Thanks
Kim -
This is probably a very basic question, but going through all
my old Flash work didn't help me remember...
I have my animation starting on the main stage with an image
fading in. when that is done playing, at the end i want it to go to
a movie clip on the stage and play it from frame 2. what is the
action script for this?Doesn't seem to be working... your_mc is the instance name of
the mc, correct? i placed this script in a frame - it's above where
my mc first appears and the initial animation on the stage ends. is
that correct?
stop();
tellTarget(mc_square-grid){
gotoAndPlay(2);
When I test the movie, the initial animation plays then
stops, but the MC does not start playing. and the following error
message appears:
Target not found: Target="NaN" Base="_level0"
quote:
Originally posted by:
ActionScripter1
tellTarget(your_mc){
gotoAndPlay(2); -
I can't get the original disk to work on a reinstall. I get the message
AdobeColorCommonSetRGB
Error:
Error 2.
I teach a class using this program on Macintosh computers running 10.9.5 and the action script is not working. It will work on any program designed using the 10.8 but if you design any animation on 10.9.5 the action script will not work for the buttonsYou would have to manually delete the color profiles in question... Run the cleaner tool and see if it gets you started.
http://www.adobe.com/support/contact/cscleanertool.html
Mylenium -
New to flash / action script 3
hi guys,
got sick of playing flash games and want to learn to create.
i downloaded a gif of sub zero from mortal kombat...the gif has all the frames for each action like jumping / punching etc.
i have imported it into flash and i have organised the key frames so when i press enter it looks pretty smooth.
will i be able to control it like this with keyboard using action script? or do i have to convert it to a vector graphic?
or is this just not possible.
can anybody please recommend me a good flash/as3 book to read please...i know there are lots...
thanks
jonininirelandimm for an easy gif control try to import it as a movie clip , Gif images must be framed inside your - character Movie clip -
try to learn about cross images technique for animating chracters.
of course u'll be able to control game by keyboard ha ! .
see:http://as3gamedev.blogspot.com/
Read :Essential Guide to Flash Games
try:Develop Flash Games
Good luck
Mhood -
Captivate 8 - module FLASH - Action Script
Bonjour,
J'utilise Captive 8 pour créer des modules de formation e-learning.
Le problème est que ma société ne peut pas passer à IE11 pour afficher les modules en HTML5.
Pour pouvoir créer des modules, il faut que la publication en SWF se fasse avec Action Script 2 et Captivate 8 utilise Action Script3 que mon module de compilation (obligatoire de passer par là) ne gère pas.
Y a-t-il une solution ?
Merci de m'aider.Bonjour,
merci de votre réponse et voici donc un descriptif complet de mon "problème".
1) j'utilise Captivate8 AS3 pour générer des modules en SWF et en HTML5.
2) j'utilise un outil spécifique MyRenda du Cerfi ensuite pour compiler mon module afin de l'insérer dans MyTeacher (CERFI)
3) MyRenda compile avec ISPRING qui ne gère pas AS3 pour créer des modules en FLASH
Vu que ma société utilise encore la version de IE8 pour le portail applicatif (impératif pour des raisons applicatifs métiers), je ne peux pas générer des SWF et vu que IE8 ne supporte pas le HTML5, je ne peux pas publier mes modules de formations.
Ma question :
Est-il possible de modifier AS3 en AS2 pour Captivate8 ? ou est-il possible d'obtenir une version antérieure de Captivate qui utilise encore AS2 ?
En espérant avoir été claire, je reste à disposition. -
On a macbook I purchased secondhand hard drive got corrupted and I started to get the flashing folder with the question mark, I purchased a new hard drive and snow lion install DVD I installed the hard drive and tried disc but kept getting blinking folder
Welcome to Apple Support Communities. We're users here and do not speak for "Apple Inc."
Power on the computer and insert the DVD immediately.
Hold down the 'C' key to boot from the Snow Leopard DVD.
http://support.apple.com/kb/ht1533
After selecting the appropriate language, if necessary, select Utilities, and Disk Utility.
You'll likely need to partition and format the new drive before it's recognized.
http://manuals.info.apple.com/MANUALS/0/MA161/en_US/MacBook_13inch_HardDrive_DIY .pdf
(Yes, these instructions ARE 7 years old, but the procedure is the same for installing from DVD media.) -
hi . i have Intel based iMac. i erased whole hard disk. now it flashes folder icon with question mark... i have no internet or orginal dvd.... i want to clean install any mac osx..friend got mac book pro and osx in dmg format . what are my options?
On your friend's computer with an internet connection, log into the Mac App Store with your ID and download Yosemite from the Purchases section of the Mac App Store. The make a bootable USB install media using
http://liondiskmaker.com/
Then boot from that on your computer and install
You need an internet connection to install via Recovery mode -
Using mx components in Action Script project in Flash Builder
Hi
I have created an Action Script project in flash builder 4 and want to use a mx.controls.button.
The as file looks like this:
package
import flash.display.Sprite;
import mx.controls.Button;
public class as_test_project extends Sprite
public function as_test_project()
var btn:Button = new Button();
btn.label = "test";
addChild(btn);
I have added C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\src as a Source Path in the project settings. I have also added framework.swc to the library path.
I still get errors like :
Description Resource Path Location Type
Unable to resolve resource bundle "core" for locale "en_US". as_test_project Unknown Flex Problem
Have then tried added various Bundles folders like
C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\bundles
to the source path and library path, but I still get the errors.
WHAT IS THE CORRECT WAY OF USING MX COMPONENTS IN A PURE ACTION SCRIPT PROJECT ?
If I want to use th fl.controls componets instead but dont have CS3 where can I download them ?Thank you for your quick reply.
But how then can I obtain the fl.controls components and use them in an Action
Script project in Flash Builder 4?
I don't have CS3 or CS4 (the flash authoring tool) installed.
Is there an SWC somewhere to be downloaded? -
Flash Newbie needs help with Movie Clips/Action Scripting
Hi -
I'm having a problem with my movie clips playing
simultaneously and cannot, for the life of me, figure out what I
have done wrong. I'm new to flash, so I may have set something up
incorrectly, but here's what I have so far:
11 layers, total: 1 layer with 10 control buttons, each
button with the following actionscript:
on (release) {
gotoAndPlay(85);
Where the number changes in relation to which keyframe the
next movie is on.
I have 10 movies, total, but they are only movie clips,
essentially photo slide shows with audio, made all in the library.
The problem happens when I click on the second or third
button. Not only does the movie that I have selected begin to play,
but all of the previous clips do as well, so it all sounds quite
garbled. I don't know what I am missing in the action script, as my
Action Layer has a stop command on it at each keyframe where there
is a new clip to play.
I have tried to add a stopAllSounds command, but I'm afraid
that doesn't do anything because it is not a "sound file" per se,
playing in the timeline.
I'm at the end of my rope and really need some help in
figuring this one out. My project is hanging in the balance on
this, as I have scripted everything else correctly and it runs
beautifully.
Please help!
Thanks,
CarolineEach layer has a blank keyframe before and after each
movieclip. Each movie clip is at a different frame. Even with the
blank keyframes added, the second video starts to play and then the
first video begins to play. Same happens if I click on the third
button. Third plays, and starts 1st and 2nd shortly thereafter. Is
there an action script I can put in that will tell the timeline
that, when a button is clicked, no matter where the movieclip is,
it will stop and start the newly selected movieclip? -
Video bookmark (videomark) using flash/action script?
Video bookmark is called videomark.
Anybody did videomark using flash?.
Is there any good place, i can learn more about videomark in
flash?.yeah..........
Can I have a small example on this ... so that it would be very easy for me to understand....
I am a new bee in flash action scripting......
Thanks & Regards -
hiiiiiiiiiiiiiiiiii
can i use my flax sdk 3.5 action script-3 code into flash builder 4.5 .....if yes so plz give me detail how??..with step....Ya i tried by keeping <fx:Declarations> part but still it is throwing error,
In flex3 we are making a component ex: <mx:canvas> and changeing that component to
<cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:cairngorm="com.adobe.cairngorm.business.*">
</cairngorm:ServiceLocator>
if any one used 4.5 with cairngorm let me know
thanks -
Can access c++ library from flash action script by using SWC lib?
We want to develope a Flash application based on Windows CE 6.0 R3. The application aims to communicate with middleware libraries written in C/C++. Is it possible to create SWC file using the c++ library file so that we can load this as a component in fla project for accessing the library functions from flash action script 3.0? OR Is there any simple way to access c++ library from action script?
Thanks,
SauminiI don't think Alchemy will help you. The reason is Alchemy does not give socket capabilities beyond what Flash provides.
Maybe you are looking for
-
I tried to create subfolder "2015" in "Local Folders". The dialogue window did not close after pressing "create" and I waited already serveral minutes. Up to now there are 14 subfolders in "Local Folders", 5 of them empty, the others have 2 subfolder
-
R/3 Source system under node BW???
Hello, in BW7.0 I connected a R/3 system. After successful connection the R/3 system is listed under BI (and not as expected unter SAP). Any idea?
-
Help with iBook files with media
Hi, I am currently trying to create a PDF file with embedded video so that it can play within iBooks (so i can put it on the same selve with equilant articles). from what iv read iBooks may have a problem playing PDFs with media as it has something t
-
IPhone 3gs won't update to ios 5.1.1 PLEASE HELP!
I got an iPhone 3GS from a friend thats running 4.3.3 and when i try to update it to 5.1.1 it says "isnt compatible with this build" or something like that. Also its jail broken (updating issue also happened before it was jailbroken) and everytime i
-
New iWork for iCloud (and now Mavericks) lacks the mail merge functionality of iWork 2009. The ability to drag and drop contacts into templates in iWork was the essence of productivity. It's a glaring omission on the part of Apple. Bring back Mail M