Loading Counter
hi could someone help me. I want to have a loading bar before my flash document appears can this be done and is there any tutorials on it
FlashKit > Flash Help > Flash Newbies
Posted on: 05-04-2004, 06:37 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loading Counter
What is the actionscript to put to display the percentage of the movie on the first frame to display that it is loading.
Example: loading 45%
Thank for the help
Loading A Php Counter In Flash
URGENT HELP PLEASE! How can you load this php counter script in flash? the url is: http://jpmed.jp/counter.php MANY THANKS!
Loading Swf's Using Variable Counter - HELP
I am building my website, and I have a section called work where I will be display the different mediums that I use (print, web, motion graphics) the idea is each of the sections will have the top 5-10 projects to showoff. I want it so that when the user clicks one of the categories it loads the first swf for that category (ex. print1.swf) however after the user clicks the arrow that will be there, or the right arrow key it would go grab print2.swf, and so on till it hit the end. Then the user could click one of the other mediums such as web, and it would automatically load in web1.swf.
I know that I have to use some sort of counter system, but I'm confused on how the code would go to enable me to load print1, print2, print3 ..... so that I can just update the individual swf's to make an update.
Any help would be much appreciated.
Here is the site: http://www.a-livedesign.com/testing
(click on work)
PS: The site graphics on work are temporary to show what I'm trying to do.
Reset Counter - NOT HIT COUNTER
Hi all, I have a counter going to repeat some frames, and then when it reaches the number of times I want it to repeat, I have it go to another frame to play a different movie clip...then at the end of the new movie clip, I want it to start over "fresh"...
Does anyone know the coding for reseting the counter?
Here is my current code:
counter = counter+1;
if (counter == 4) {
play();
} else {
gotoAndPlay("ad");
}
Thanks,
Wendy
Wendy@pixelchix.com
Hit Counter
can we create hit counter in flash 5
if yes what will be the coding.
thanks for anyhelp
Counter
How can i make a script which counts down to minutes, when its over, somethings happens????? Help
Counter For _x
Any ideas pls for such thing:
In a panoramic view by Henrik Dahm
http://www.flashkit.com/movies/Effec...60/index.shtml
i added a dynamic text field that checks X coordinates -
meters = xposition;
(rounded)
here:
http://www11.brinkster.com/samsonart/zabor.asp
how can i make it width relative so it returns a number between 0 and 128 starting from left side (e.g. when movie loads it is a middle so should show 64) - without minuses and so it starts again after reaching the end?
Thanks for all who can think of this mathematics
Counter
Does anyone know of a script that I can use that would act like a counter? I may need it to be able to speed up or slow down, also.
At this point I guess it will act almost like a timer. So when it starts it will begin at 0 and then count 1 number at a time until it is stopped.
Thanks
Counter
Is there anyway to make a counter in flash? I don't want to get one of those commercial or free counters that are html script. What would be the script for a counter in flash? What I mean by "counter" is simply the showing of the number of people that visit my site.
Counter
I'm trying to set a variable to act as a counter to record how many times I've dragged and dropped an item.
I'm using the if, else if and else commands, they all seem to work except the counter. What am I doing wrong?
I have set a variable in the first frame.
counter = "0"; (no expression set)
Then, on the button executing the action is:-
on (press) {
_root.app1.startDrag(true);
}
on (release) {
stopDrag ();
if (counter <2 && getProperty("/app1", _droptarget) == "/chip2") {
tellTarget ("_root.upload1") {
gotoAndPlay (2);
counter = "counter +1";
}
} else if (counter >=2) {
tellTarget ("_root.error") {
gotoAndPlay (2);
}
} else {
setProperty ("_root.app1", _x, "200");
setProperty ("_root.app1", _x, "250");
tellTarget ("_root.error") {
gotoAndPlay (2);
}
}
}
What I'm trying to do is drag an item called 'app1' onto a area called 'chip2'. Each time this happens the counter adds 1 and a upload message is called. If the area is not hit then it returns to it's original position and an error message is callled. When there are more than 2 apps on the chip1 then it's rejected and a error message is called. There will be the same code on an item called app2, app3 etc. The above code is only for app1.
Everything works, except I can have as many app1, app2 etc on the chip2 and I never get my error message. It seems to be ignoring the counter!
What am I doing wrong, Please advise.
Any help would be appreciated.....
[Edited by louisehall@4mostinfo.com on 09-03-2001 at 07:02 AM]
Hit Counter?
Can anyone tell me if you can have a hit counter in flash5.
I so, can I download it from somewhere?, thankyou in advance
Counter
Hi,
I've got a counter that counts backwards for every item that has been seen. I use this code in frame one of the main timeline:
counter=7;
if (counter==0){
loadMovieNum ("exit.swf", 0);
}
The counter works, it goes down to 0 but then the exit.swf doesn't load. What I'm I doing wrong?
Thank in advance for your help.
Danielle.
Hit Counter?
Hi
I was wondering if someone could tell me how to do the most basic of hit counters?
Thanks
Hit Counter
how would i make a hit counter. Would i use a varable? Please Help me on this
Hit Counter
Can someone please help me. I need a Flash hit counter to put on my site. Ive tried the ones that are on this site but i dont like them. Is there anyone out there that can point me to a hot flash hit counter.
Thanks so much
PHP Counter
I am trying to get the tutorial for a php counter to work correctly (it is also on http://www.flash-db.com). It keeps increasing the count every 10-20 seconds. I have eliminated the loop, but it still does it.
My movie begins at frame 5 (it loads to 5 from the preloader). So basically I can sit and watch it count up gradually.
Frame 5:
loadVariablesNum ("PHPCounter.php?ran="+random(9999), 0);
Frame 6:
loadVariablesNum ("PHPCounter.txt?ran="+random(9999), 0);
Thanks.
Counter Help
any body know the easiest way to put an accurate hit counter into my flash intro??
i want one that is accurate, small and dosnt rely on a third party just me and my server .
I tried the flash kit tutorial and it dont work!! It is too vague and sketchy and leaves too much to common sense which is something that i dont posess!
cheers tony
Php - Counter
I am currently using php and a text file to run a counter on my main timeline, however, I want to put the counter in a movie clip so it is independent of the main timeline, but when I use the same keyframes and php code it doesn't work. I know clips reside in different levels so do I need to add some code somewhere?
Counter
I need some help creating a counter. I have multiple draggable movie clips that can be released into a target area. I want to create a counter, so that when the value of the MCs equal a certain number no other MC can be dragged into the area and dropped. Problem is, I don't have a clue as how to start building the counter. Can anyone help?
Counter
Hopefully I can explain this so you get the idea.
I have created a drag-n-drop application in which there are multiple target areas for multiple MCs. Each MC has a different number of instances on a given scene. Each MC will have a different value, ex. there are 6 different drawers. One is 3 inches, one is 6" and so on up to 15".
The different target areas (which are MCs) also have different sizes, one is 24" another is 36", up to 60". What I am wanting to do, is create some sort of a counter for each target areas. I want it to count the different values of the MCs (or instances of MCs) that are dropped within the target area and when it reaches a value like 24" it will not allow anything else to be dropped into the target area.
So if 8 instances of the 3 inch drawer were dropped onto target area 1, it would add them up and equal 24. It would then not allow anything else to be dropped onto the target area.
Can anyone help me get started?
PHP Counter
Another issue I have, is that I tried to incorporate a PHP Counter.
On the first frame of my main movie i have this action:
loadMovie ("PHPCounter.swf", "_root.container2");
The PHPCounter.swf has the following actions:
First frame:
loadVariablesNum ("/cgi-bin/PHPCounter.php?ran="+random(999), 0);
Second Frame:
loadVariablesNum ("/cgi-bin/PHPCounter.txt?ran="+random(999), 0);
It is not working and I don't know why.
Oops, here are the scripts:
PHPCounter.php:
#!/usr/local/bin/php
<?
$filename = "PHPCounter.txt";
$fp = fopen( $filename,"r");
$Old = fread($fp, 100);
fclose( $fp );
$Old = split ("=", $Old, 5);
$NewCount = $Old[1] + '1';
$New = "Count=$NewCount";
$fp = fopen( $filename,"w+");
if (flock($fp, 2)) {
fwrite($fp, $New, 100); }
fclose( $fp );
print "Count=$NewCount";
?>
PHPCounter.txt:
Count=1
I have no clue why it is not working.
Can someone help?
Thanks
HELP I NEED A COUNTER
PLEASE HELP ME ANYONE!!!!!!
How do i make a counter????
I have made 3 dynamic texts;
1 = Minutes
2 = Seconds
3 = Miliseconds
I need to make them count for 00:00:00 to 38 minutes.
You might not understand what i am saying but please have a go!
Counter
hello
i have a dynamic text box and two buttons,when i click start button the text box should display numbers from 0 to 100 and if i click the stop button the numbers should not change,and there should be some gap between two numbers so that the number change is visible.
pls help me how to do this
bye
geethanandh
Counter
hello
i have a dynamic text box and two buttons,when i click start button the text box should display numbers from 0 to 100 and if i click the stop button the numbers should not change,and there should be some gap between two numbers so that the number change is visible.
pls help me how to do this
bye
geethanandh
HP Counter
I'm making a game where you smack my network administrator around witha few tools/weapons. The only thing is, he just stands there and takes it. Is there any way I can get him to have a HP meter/counter and show the wear and tear being inflicted on him?
Counter
Is it possible to make a visitor counter in flash, but visitor won't see it, just the webmaster (me) ?
Counter
Hi, I've been trying to install a flash counter and ran into a few problems.
First off my ftp-server (for the site) didn't allow chmodding so I decided to upload just the php to another account I had somewhere that does allow chmodding.
Now I could actually live test it on my pc since both the php and the text that got created needed to be loaded in from an http://... anyway. And it worked just fine, no problems, so I uploaded it and it doesn't work anymore, any idea what might cause this? If it worked fine on my pc, why doesn't it work online?
Anyway here's the counter I used, fine job to the autor btw
http://www.flashkit.com/tutorials/Dy...56/index.shtml
This is the site (it's pretty newbish, but I don't aim high)
http://www.3dactionplanet.com/seriou...hole/site.html
and here's the php and text that should be read by the flash file
http://antichrist.multimania.com/PHPCounter.php
http://antichrist.multimania.com/PHPCounter.txt
Thx for any help I get!
Counter
How do i import a counter on to my flash page?
Counter
I am a newbie in the flash environment. Nevertheless what I am trying to do is create a dynamic text field (or what have you) that counts seconds sequentially either going up or down. I know how to do this in DHTML however is any of you can lend me a hand I would greatly appreciate it!
Help With A Counter
I have built a jigsaw puzzle. Using a variable called count, I keep track of the number of pieces that have been locked into place.
I can't get the movie to go to another scene when all pieces are complete.
What I have is approximately...
onClipEvent (load) {
count = 0;
}
onClipEvent (mouseUp){
...
count++;
}
if(count=24){
gotoAndPlay("win",1);
}
}
Any help, if I have made any sense, would be appreciated!
Thanks
Day Counter
hello,
I am making a flash file which requires a day counter.
So i will set the date "05/20/2002" then a dynamic text
box will say "day 5".
Does anyone know whow to do this or do you need me to
explain it more?
Thank you in advance, William Jenkins
Counter
Please, I need HELP with the following question!
How can I define a global variable, Let's say (score) with an
initial value of 0 and create a global function named (result)
that uses the variable (score) and add 1 to it on command
(score = score +1) and DISPLAY the result in a cetain frame?
Thanks x 1000
Hit Counter
Does anyone have an idea how to create a hit counter for a flash site?
OR
Is there a way to load HTML into flash somehow, the HTML contains links to graphics that make up the counter.
Hit Counter With PHP
I'd like to have a visual counter on my flash game to show how many times it has been played. Is there a way of using a simple text file which can record and ovwerwrite a variable for the number of games played ?
I would like to run it using PHP as I have that on my server, but I don't know much about sending and getting variables from an external text file.
Any help would be greatly appreciated.
Thanks,
Ben.
Hit Counter
hey guys, i wuz wondering if it's possible to have a script that would count the number of visitors on a particular site. I know i can use javascript, but i wuz jst wonderin if this can be done wd flash.
dunno if someone asked this already. tnx.
Counter
Anybody knows how to do a counter (how many people visited my site)in flash.I will apreciate all the help.
Thank you
Hit Counter?
just wondering if anyone could point the way for me to find a very simple flash of a counter, so i know how many people visit my site.
thanx for any help.
-Sin
Counter As In 'pic 3 Of 28'
Hi all,
I am (still) working on my picture viewer and have stumbled into another actionscript issue.
I want to include a counter in the viewer so people know which picture they are watching. (see the viewer online at the following address: http://www.cssm.nl choose Sight and then choose CSSM Picture Diary)
The technology behind this viewer is as follows:
I load the pictures, the titlebar and the accompanying text externally. The pictures go into an empty MC and the titlebar as well as the text go into Dynamic Textfields.
I get the total number of pictures from an external variable file.
Now, my question is: how can I add a counter that updates automatically when the user clicks on the Next, Previous or Slideshow button? i.e. clicking the Next button should update the picture, the titlebar, the text and the counter, whcih says something like "This is picture [n] from [total]".
Maybe I am not clear enough, please let me know if you need more info.
Thx in advance!
With kind regards,
RF
Help With Counter
Hi,
I'm trying to build a counter that counts upwards from a particular date at a certain rate.
Say on the 1st July, the counter was set to 1500. I need it to count upwards at a rate of one every 15 seconds from that date.
At the moment I'm trying to do it using the date function.
Any ideas would be much appreciated,
Cheers,
Andy
Counter
is there a way to make a counter go up in numbers by hittin a button? if there is thanks.
-SLUHIE
Please Help Counter
I making a hangman type game...how do I set the # of wrong answers a person can get & then have it count it out & "end game" if they reach that amount bafore they solve the word?
SWF Hit Counter?
I've seen hundreds of ASP hit counters, one of which I am currently using on my site http://www.lakeflato.com .
Here's the problem.
My site is a single html with a "Main" SWF. I then load and unload different SWF's on different levels over the "Main" SWF. These SWF's are of different office projects. Is there a way to track which SWF's are hit by a user? Currently I can only track the number of times my single html page is hit.
Thanks,
Robert
Counter
I am trying to create a 10 question quiz.
After you put an answer in, then click a button, I put the actionscript as below, but beofre looking at that, I guess I should explain what I trying to do.
That button checks whether the answer is correct or not,
if correct it will play another instance to frame"happy", else, it plays to frame "wrong".
At the end of these instance timeline, there is a script that generates a new set of question.
**Now what the problem is that I wish to have a counter on the button, so that after 10 clicks, it will jump to a new frame and say something like level complete. But it seems that no better what, after just one click it goes straight to the "finish" frame.
on (release) {
totalcounter = 0;
happycounter = 0;
while (totalcounter<10) {
if (answer == Number(number1)+Number(number2)) {
koala.gotoAndPlay("happy");
totalcounter = ++totalcounter;
happycounter=++happycounter;
} else {
koala.gotoAndPlay("wrong");
totalcounter = ++totalcounter;
}
}
if (totalcounter>=10) {
gotoAndPlay("finish");
}
}
Counter
Hi
First: I'm a flash-novice!
I need to create a Flash-counter that counts from zero to a number that I have defined in the script. I must be able to define the speed in the script too, I'm not looking for anything like seconds or minuttes!
Hope you get my point ..
Lars
Counter
I have this speedometer gauge. I want to display it rising from 0 to 50. I don't want to make a keyframe for every number, I would like to do it through actionscript. Is there a way I can code this through actionscripting to display 1 then 2 then 3 then four then 5 and so on until it reaches 50.
thanks
A Counter Like This =>
Hi,
Please Help. How do i make a counter like this one => http://www.r3odi.com/card/
(u can see it down-left). What requirements does my server need to run this kind of actionscript. I need exactly the same effect, so if you know something ready, i would really appreciate it. Thanks a lot.
Monique Ville
Day Counter
I am currently using the following actionscript to count down to a certain time:
Quote:
myDate = new Date();seconds = myDate.getSeconds();minutes = myDate.getMinutes();hours = myDate.getHours();seconds2 = 59-seconds;minutes2 = 59-minutes;hours2 = 23-hours;if (length(minutes2) == 1) { minutes2 = "0" + minutes2; }if (length(seconds2) == 1) { seconds2 = "0" + seconds2;}timetil12 = (hours2+":"+minutes2+":"+seconds2+" left until 12AM");
However I also wish to count down to a certain day as well. the command getDays is not recognised my Flash MX - how would I modify the code to allow me to specify a day too?
THanks
Counter
I need help making a timer so that after a certain amount of time the flash file got back to the main seen (timeout). The application for thid program is a touch panel sor if you can help me, please e-mail me at gregrushton@rogers.com
thanks alot
sincerely Greg Rushton
|