How To Make Time Run Out?
hye...i wanna know how to make time run out and game over.....
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 09-25-2006, 05:23 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Make Two Mc Dragable At The Same Time And _x?
this is my test.swf
http://www.scoreportbusiness.com.br/flash/teste1.html
and this is the code:
onClipEvent (mouseDown) {
startDrag ("", false, 70, 46, 550, 46);
}
onClipEvent (mouseDown) {
setProperty ("_root.verde", _x, "_root.mov._x");
}
onClipEvent (mouseUp) {
stopDrag ();
}
onClipEvent (enterFrame) {
flag1 = "";
flag2 = "";
_root.posx = _root.mov._x;
// se estiver na posicao do botao fazer tal acao
if (_root.mov._x > 290 && _root.mov._x < 380) {
if (flag1 eq "") {
flag1 = "sim";
_root.qualbotao = "botao1";
}
}
// se estiver na posicao do botao fazer tal acao
if (_root.mov._x > 204 && _root.mov._x < 281) {
if (flag2 eq "") {
flag2 = "sim";
_root.qualbotao = "botao2";
}
}
}
Ok,
I want to make the green bar go along with the navigation bar, for that I used
setProperty ("_root.verde", _x, "_root.mov._x");
Why doesnt it work?
best regards everybody,
Fernanda
How Much Time & $ To Make This Flash App?
http://www.modernpostcard.com has a postcard creation utility that I'm using as an example for making my own.
I was wondering if anyone has any opinions on how much their on-line creation utility would take to make (opinions, of course, based on what it looks like it would take,) and how much developers would normally charge for something like this.
I'm about halfway done with mine, and it's taken me almost 2 months...but then before I started I knew nothing about Actionscripting.
Thanks for any opinions. =)
Liam
druid -at- celticbear -dot- com
Help How To Make Time Delay?
Do anyone know how to use ActionScript (not using frame)
to make time delay????? (MX 2004)
e.g.
do {
this.mc._alpha += 1;
(I want some delay here)
} while (this.mc._alpha<100);
Thanks!
How To Make A Time/age Counter
I just had a little baby boy the other day, and are
now making a website in flash to post photos and
videos of him, so the grandparents can see how he
is doing. the hole website is worked out already
but i also want to make some sort of clock that
shows how old he is.. somthing like this:
00 years - 00 months - 06 days - 13 hours
is it possible to make somthing that counts up from
a certain date and time? and if so, how?
you can see the site here: babyblog
thanks
Jens
HELP How To Make Time Limit?
Hello... Am a bit of a noob... Am tryin to create a page where the user has to find a correct button within a timelimit... I am struggling to find a way to create a timelimit on a page.. I want the user to be transported to another part of the timeline if they find it and another if they do not succeed in time... I would also like to have a visual representation of the timeflow on screen in the form of a load style bar.. .. Can anybody suggest any way that I might achieve this... Please help is for urgent uni assignment....
In anticipation,
Craig
How Can I Make 2 Listen At The Same Time?
Hi there..
got a little localConnection problem...
Got a swf file with this code on frame 1
Code:
mySender = new LocalConnection();
and this on a button
Code:
_root.mySender.send("myConnections", "myAction", 1);
In two other swf files (that I want to listen to this one) I got this code on frame1
Code:
myReceiver = new LocalConnection();
myReceiver.connect("myConnections");
myReceiver.myAction = function(doThis) {
if (doThis == 1) {
_root.nummer = 1;
play();
} else if (doThis == 2) {
_root.nummer = 2;
play();
} else if (doThis == 3) {
_root.nummer = 3;
play();
} else if (doThis == 4) {
_root.nummer = 4;
play();
} else if (doThis == 5) {
_root.nummer = 5;
play();
}
};
stop();
But there's problem with the listening file.. only one of the is listening.. the other one isn't responding at all..
who can help me solving this problem... please help me out..
I've been trying serveral things the past week but I can't solve it
_j
How To Make Time Delays?
Is there anyway of creating a time delay after a button is pressed so that you can use transition effects to make objects on the page dissapear before the browser follows the link?
How Do You Make It So You Can Run Multiple Frames At A Time
I wan to know how to run multiple frames at the same time in flash 5.
on http://www.amnesia.com.au/amnesiagroup/flash.html
those small boxes on the page plays seperate frames everytime a mouse rolls over.
I would like to know how amnesia did it
If anyone knows, please tell me.
I really want to know how amnesia did it
How To Make A Time-loop Skrip (or Something Else)?
Hi i made two eye's in a flash movie. both eyes cloes and oben in a animation (30 frames in the timeline). if someone moved with the mouse into my movie som other stuff happend, but if no one movies in the movie nothing happend. and so i want to make the animation in a loop. but first after 30 seconds or so.
is there someone who knows a toturial how to write a skript with loops a part in the timeline after a defined period?
How To Make Lines Draw Over Time?
I want to make a line grow from a small point to an elaborate design, kind of like the way a lit fuse follows a path.
*Shape tweening doesn't always follow the line directly.
*Motion tweening straight lines is too restrictive, because I need soft corners.
*A mask is too blunt because the line crosses over itself and the rate of draw changes too much with different masks for different sections.
How can it be done? Many thanks.
[CS3] Help How To Make A Butterfly Flap & Fly At The Same Time
Hi, I am working on a website for a client and they wanted to know if I could make a Flash animation of a butterfly flying across the screen while flapping its wings.
I have found a tutorial on how to make wings flap, and I know how to convert the image of the butterfly I want to use into vector art. I've done this, and done the flapping animation by having 3 layers (right wing, left wing, body), then resizing the left and right wings and using motion tween.
But once I get the wings flapping, I can't figure out how to then make the entire butterfly follow a motion guide without the sections separating randomly and generally not doing what I want at all...
Anyone have any tips?
How To Make Time Sensitive Objects?
I have not used Flash MX for a couple months so I'm kinda rusty...anyway, I was wondering how to make an object change according to the computers REAL TIME, I've searched everywhere so far and no luck, hell I've even tried if statements but I'm a little rusty on Actionscript...can any1 help?
Make Minutes From NetStream.time
Hi
I'm trying to display the time that have been playing in a mediaplayer in Flash.
The thing is that NetStream.time displays the time in seconds.
The problem comes when the time reaches 60 sec and nead to go to minutes.
The goal is that the is displayed this way: 01:34 or 1:09:45.
So my question is: Is there a good wad to display the time this way?
The way I've done it is incorrect.
Code:
private function playerHeadHandler(event:Event):void
{
playerHead.x = movie.str.time / dur * 300;
var timePlayed:int = movie.str.time;
//if(timePlayed.toString().length == 1)
if(timePlayed <= 9)
{
//showTime.text = Math.round(timePlayed).toString();
showTime.text = "00:0" + timePlayed.toString();
}
else if(timePlayed >= 10 && timePlayed <= 60)
{
showTime.text = "00:" + timePlayed.toString();
}
else if(timePlayed > 60)
{
var minute = timePlayed / 60
showTime.text = "0" + minute.toString();
}
}
This is an EnterFrame.
I Can't Make A Call To Server At Second Time
I am working on writing a application with Flash Comm and AMFPHP.
In my application, my flash client make calls to the flash comm server. But when i made the same call at second time , it failed (the first time , the call is working perfect, and the other calls in my application works fine too ).
The code in Flash client is following :
function result(){
this.onResult = function (retVal){
trace("The results is " + retVal);
};
this.onStatus = function(errorVal){
trace("The Error is " + errorVal.code);
};
}
client_nc.call("bonus",new result(),3);
The code in flash comm server is like following :
Client.prototype.bonus = function (bonusType)
{
trace("Bonus request from "+this.username+" "+bonusType);
// .... do something here ....
return true;
}
And the error infomation in the app inspector:
TypeError: object is not a function
App Infomation :Application.Script.Error (level:error)
Failed to execute method (bonus).
App Infomation :Application.Script.Error (level:error)
I am frustrating about this, Any idea ?
Kevin
Make Image Appear One Line At A Time
I have an image of a seashell that I created in Photoshop. It's just black and white outline of an image. What I want to do is reveal this seashell image one line at a time. I tried creating motion paths but only part of the image is visible at any given time, the image doesn't get revealed toward the end. Any help would be greatly appreciated.
To give an idea of what I mean, this link here will show that: http://www.flashforwardconference.com/past_winners . Once on the page click on the link "Type Drawing" next to the words Typography:
Thank you,
ar
Is There A Way To Make A Time Delay In Flash?
I wnat to make a one second delay before the button does the rollout effect. Is there some actionscript that i cam insert to do this? I could insert some blank frames but it doesn't give me the effect i want.
thanks
Is There A Way To Make A Time Delay In Flash?
I wnat to make a one second delay before the button does the rollout effect. Is there some actionscript that i cam insert to do this? I could insert some blank frames but it doesn't give me the effect i want.
thanks
How Can I Make Movieclips Play On Time
Hi
How can I make a movieclip play on an exact time daily?
Ex. to make a bird fly exacly 06:00 every morning on a website.
Hope there is help to get.
Thanx
Hefner DK
How Do I Make Flash Stop For A Certain Amount Of Time?
hey, I want to make a timer.
what I mean is that I want to make a frame stop for
a number of seconds and that continue to the next frame
or whatever command I give it.
for example, like a slideshow.
to make flash wait in a certain frame for 10 seconds, and
than goto the next frame, of jump to another frame or whatever
command I give it.
thanks alot!!!
Asking The Time, Being Told How To Make An Atomic Clock
Hi all,
I'm having a tough time finding an answer to something, and I think it may be because it's so simple. I'm wanting to simply assign a link value to a button via XML, but the answers I'm getting are for much more complicated things. Here's the problem I'm having:
I have a permanent button in an swf. It currently has no link attribute assigned to it (that's the problem). I have an XML file that contains a spot for the link URL within <link> and </link> tags. Finally, I have a PHP file that provides an easy way to change the link URL in the XML file. The XML is already connected via actionscript and is already pulling in text into dynamic text fields. So, as you can see, everything is in place EXCEPT for knowing how to script the button so that it reads the <link> url in the XML.
Can anyone provide any insight?
My XML code is:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<ad>
<header><![CDATA[header]]></header>
<text><![CDATA[this is the text being loaded]]></text>
<link>http://www.thisisthelink.com</link>
</ad>
The actionscript I'm using is from the Kirupa tutorial and is like so:
Code:
function loadXML(loaded) {
if (loaded) {
header_txt.text = this.firstChild.childNodes[0].firstChild.nodeValue;
text_txt.text = this.firstChild.childNodes[1].firstChild.nodeValue;
} else {
trace("file not loaded!");;
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("custom.xml");
Note there's nothing above for the button link since that's what I'm not sure about doing.
As for the button itself, I haven't assigned a getURL yet but am assuming I would do something like:
Code:
onRelease {
getURL('url');
}
and then include "url" somehow in the XML-connect actionscript above?
[F8]How To Make A Scrollbar To Scroll The Time Line?
As the topics, how to make a scrollbar to scroll the timeline of a target movie clips? My situation is, im going to load a video to a target movieclip, but i want to make a scrollbar that can control the timeline of the video... I found some script but the script will stop the video when i drag the drag bar around, and i want the drag bar to continue moving when the video is playing too... any helps will be appreciate
[F8] Trying To Make An MC Follow The Mouse With Time Delay
Hi there,
I am trying to make a movieclip (called butterfly) follow the mouse on the stage but I don't want the butterfly to move instantly. Ideally I want the movement to be 'softer' with a time delay so that the butterfly takes a bit of time to catch up with the mouse.
I have tried setting the ease and speed but that doesn't seem to give the desired effect. (there's an example of a butterfly tracking the mouse here: http://www.pachalondon.com/home.htm)
Has anyone managed to find a tutorial on this or make it themselves or know which direction I should be heading in? (code (AS2) I have made so far is below)
Thanks!!
followme=true
var speed=10
onEnterFrame=function(){
if(followme==true){
butterfly._x=_xmouse/speed;
butterfly._y=_ymouse/speed;
}else{
butterfly._x=xpos
butterfly._y=ypos
}
}
QUESTION: How To Make Swf Download Time Faster?
Hi there people
am hoping someone can help me out. I have a swf file of size 309k and am now running into problems with download times. For obvious reasons when I download using a DSL connection then its fast. But the majority of people who will be viewing the swf on the Internet will have a 56K modem connection. Really need some help!!
Thanks in advance
Can I Make A Function Wait For A Period Of Time?
Hey everyone
I just wanted some idea's on how best to tackle this problem in actionscript.
All I want is that when a button is pressed it fades out the current page and then fades in the new page to be displayed. How ever when trying to fade out the current page i doesn't because it goes to the label and starts to play but the next part of the script tells it to go straight to the label to load the new page. Does anyone have a clever way of making it wait till the current page is faded out?
If worse comes to worse can I just make it wait a set period of time before fading in the new page?
Ive attached a bit of the current code and comment it with where the current page is faded out.
Thanks in advance for any help
Gaunt
Attach Code
function homeClick(event:Event):void {
if(prevPage != "home")
{
if(prevPage == "advertising")
{
// Here is where the current page is told to fade out
MovieClip(this.parent).pages_mc.gotoAndPlay("advertisingEnd");
}
else if(prevPage == "websites")
{
// Here is where the current page is told to fade out
MovieClip(this.parent).pages_mc.gotoAndPlay("websitesEnd");
}
MovieClip(this.parent).pages_mc.gotoAndPlay("homeStart");
prevPage = "home";
}
}
Help Required: How To Make My Menu Dropdown 1 At A Time?
Require the AS code to make the menu display the dropdown items one at a time.
E.G: Navigation - Employee Handbook | General Info | Policies
1. onRollOver Employee Handbook, menu items dropdown.
2. Now that the "menu items" for Employee Handbook has dropped down, onRollOver General Info; Employee Handbook's dropdown should fade off and General Info's dropdown "menu items" appear.
***.FLA attached.***
Really appreciate if someone would be able to help me out.
Thank You in advance.
gT
Help Me Make Flash Clock ( Not Local Pc Time)
i seen many tutorials on how to make flash clocks. is there any tutorials to make a flash clock for a certain time zone.
i wish to make a clock for GMT-5:00
id put it on the webpage so my clan has 1 same time . instead of the clock showing everybodys local pc clocks.
any 1 know ?
ty for your time
How To Make Moviclip To Start After A Period Of Time
HI
Being a newbie, this is all stumping me. I have 5 movieclips all on different layers and on the first frame. I want one movieclip to start playing and when this finishes, I then I want another to start after it, and so on. How do I do this? And is this the best method?
Thanks
How To Make A Video Pause After A Certain Amount Of Time
Hi,
I have a thumbnails/listbox/XML video menu setup using AS 2.0 from the http://www.macromedia.com/devnet/mx/fla ... nload.html tutorial.
What I would like to do is stop the videos playing after a certain amount of time - ie a value read in from the XML file...
I have setup the flv's to have cuepoints - but although these are triggered the command ns.pause() does not activate :?
Any clues?
Thanks
Pete
Get Time To Make Projector File Appear Hourly Or Every 2 Hours
I am searching for the actionscript which I could insert into my flash movie, which would make a projector file appear every hour or two, having read the computers clock and also have a button which you could press to say 'come back in 5 minutes, I am busy right now'
any help, thanks in advance
david gledhill@hotmail.com
How To Make A First Time Site Visit Welcome Message Appear In Flash
Hey guys,
Im trying to make my website make a welcome message appear in flash for people who's first time it is visiting my site. My whole site is in flash and basically what I want is for flash to detect if it is their first visit or not and if it is goto a certain frame. Anyone know of a way to do this? Thanks!
Make One Button Load New Image Each Time Pressed
I have a site for a client who sells dresses. One page has nine thumbnails of dresses and when clicked, loads an external .jpg file into a movie holder.
There may be one to four different large photos for each dresss (front, side, back and detail) and the client only wants one button for the user to click on to cycle through the views for that particular dress.
I need to know the best way to do this. I was thinking a for loop that increments when the button is pressed, but I am not sure how to get back to the start.
Any suggestions are appreciated.
Happy New Year!
How Do You Make This Random Moving Object Disappear After A Certain Time
Hi all!. I've just finished using this bit of simple code to get an object to move around randomly. I want to try and get it to disapear or move off the stage after say a minute (with a countdown clock in the corner starting from a minute and counting down). Anyone with any ideas on how to accomplish or approach this? Thanks!
Having A Hard Time To Make Images Bouncing Left/right
I really need help...I've try different ways
..it worked but the images doesn't stop at the center but instead is stopping in between any two images of a gallery/slides
so now when I click on the button
it only shows part of the image...
any way to fix or tutorial around that could help me out on this...
anyone...please...
Edited: 10/29/2008 at 02:47:13 PM by reINSPIRE
How To Make This Random Moving Object Disappear After A Certain Time?
Hi all!. I've just finished using this bit of simple code to get an object to move around randomly. What I want to do is try and get it to disapear or move off the stage after say a minute (with a countdown clock in the corner starting from a minute and counting down). Anyone with any ideas on how to accomplish or approach this? Thanks!
How Can I Make A Full Screen Html Page?.... First Time In Kirupa's Forum
I have been googling for a tutorial that would answer my problem but there don't seem to be any. Here is an example of what I'd like to achieve. http://www.braingiants.com/v5/welcome.html. Watch how that window pops up when you click on the link. How can I make that window without the address bar at the top.
How Can I Make A Full Screen Html Page?.... First Time In Kirupa's Forum
I have been googling for a tutorial that would answer my problem but there don't seem to be any. Here is an example of what I'd like to achieve. http://www.braingiants.com/v5/welcome.html. Watch how that window pops up when you click on the link. How can I make that window without the address bar at the top.
How To Make SWF To Reload From The Start, Every Time User Reload/revist The Page.
Hi,
How can i make my flash SWF file to reload from the start every time when a user visit the site.
Like i dont want it to be saved in cache, i want to reload it from the start every time, because i have seen that once it is saved into cache, it just starts from the cache when we visit the site. So, i dont want it, i want it to reload again and again from the server whenever user visits.
I used the following meta tag:
<meta http-equiv="pragma" content="no-cache">
But it seems to be not working as the way it should. As when i re-load the page, the preload bar shows 100% loaded.
ANy idea???
Amir
|