Key Listener Problem..... Please Help Asap
Hello we are second yr. flash students with little knowlege of actionscript. We were given this code but it doesn't seem to work. What we want to do is assign sounds to keys so that the user can press keys and play the sounds. If some one knows why this doesn't work or another method please let us know
Thanks
In this example 'explosion' is the name of the sound effect used. When we preview this actionscript a message appears stating that the sound is being played but it doesn't seem to play.
explosion = new Sound(); explosion.attachSound("explosion");
var keyListener:Object = new Object();
_root.keyListener.onKeyDown = KeyHandler; Key.addListener(_root.keyListener);
function KeyHandler() { var keyNum:Number=Key.getCode();
if(keyNum==Key.SPACE) { explosion_sound.start(); trace("playing sound"); }
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 05-22-2006, 12:44 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[shared Object] [listener] Attach Listener To SO?
Hi everyone,
I'm trying to build a simple sound control panel for voice-overs in an e-learning project.
I want to use one button to control whether or not users want sound played throughout the lesson.
Right now I'm using that button to write an SO that each audio file reads before playing anything. My problem now is if a user wanted to hear the audio after he or she has already entered the page. If a user clicks the audio-on button, it's simply changing the SO, not to be read until the next page and swf loads.
My initial thought was I could attach a listener to the SO, allowing Flash to interpret a change from OFF to ON and then start up the necessary sound files.
Would this work? I've searched and haven't found documentation for attaching listeners to SOs.
THANKS
Mouse Listener And Key Listener Problem..
Hi;
I used key listeners to detect the block in my crossword application but I have a focusing problem going on. I've tried everything but still couldn't find a solution. By the way I used a code that uses mouse listener to highlight the area I want to use but it sometimes craches the flash player. My .fla file is included in the message. Please help before I go mad.
.fla file :http://rapidshare.de/files/26952935/...2006_.zip.html
Thanks...
Help Asap
Hey, im making a game, but i need to know how to make it so the character follows the mouse (ive already done that part with drag movie clip). but how do i make it, so that, that character wont drag over a rectangle i made?
A simple souloution would be helpfull asap.
(flash 4)
thanks
PLEASE HELP ASAP
SOrry to be a pain but im stuck until this is resolved.
Same as before. Two movies i have in a scene called English
I have the button within one moive and i want to make it to a rollover goto command on the other movie in flash 4...
is this possible?
Thanks again all
Nathan
Help Asap
I have a flash movie that I want to put a loading screen on. I screwed up and made then entire movie into a movie clip without any loading screens and the movie is rather large. My question is, what can I do to make a loading screen so people just aren't sitting there looking at a blank screen. I'd kinda like to get all the different ways, if any, to solve my problem. thx
HELP ASAP About .mpg Or .mov
need help ASAP!!!!
job was supposed to be done 1 hour ago!
i need to know how to get quick time or any other program or any thing or any possible way of playing a movie from within flash. umm let me try that agin!
i have a button in flash that when pressed i want it to play a video in or out of flash i dont care!
any suggestions? I have moderate expreience in flash
thanks
A Little Help Asap
i need some help with my game. i made a dart game and when you press space bar the dart is thrown. the top of the code is if (Key.isDOWN(Key.SPACE)) {
how do i get the dart to fly when the space bar is released instead of when it is down??
another question:
i want it so if you hit the target, it will go to another frame. the target is its own symbol and its instance is called "target". when the dart flies onto the target it will go to and play something else. how would i do this??
last question:
in the bottom of the screen i have a moviclip "ammo". it displays how much ammo is left. the movieclip is made so every number of ammo has a stop action on it, and after 1 is says gameover. when you push the space bar, the dart is thrown and a telltarget action tell "ammo" to play, therefore lowering by a number. am i doing this correctly? and when "ammo" goes down to gameover, how can i make it end the game??
[Edited by dpcom on 08-22-2002 at 11:56 AM]
HELP ASAP
Thanks in advance for the help.
I have a flash app that saves images a user has created to an access db with ASP.
Then they can click on a compare button to see what looks they have saved and compare it to thier original image.
I get all the data back into flash (SaveTime, SaveDate, SaveName, FlashURl)
SaveTime = The time the image was saved
SaveDate = The date the image was saved
SaveName = Name the user gave to the image that was saved (My Evening Look)
FlashURL = The original image name that was saved (image1.jpg)
I can get all that info back into flash but need to create a button that the user can click on and bring thier saved image back into the app.
The info comes back into flash from ASP as an array. I split the array with "," and then loop through and duplicate my movie clips to load the info.
Here is the code...
/*
depth = -1;
Name._visible = false;
Age._visible = false;
Sname._visible = false;
// split up the array by looking for the commas
Name_array = SaveName.split(",");
Age_array = DateSaved.split(",");
Sname_array = Flashurl.split(",");
// get the length of the array
// Name_length = Name_array.length;
// Age_length = Age_array.length;
// Sname_length = Sname_array.length;
// yposition = 38;
// looping everything
// for (i=0; i<Name_length; i++) {
// Name
//duplicateMovieClip(Name, "Name" add i, depth);
//setProperty("Name" add i, _y, yposition);
//Name.Name = Name_array[1];
//set("Name" add i add ".info", Name_array[i]);
//depth--;
// Age
//duplicateMovieClip(Age, "Age" add i, depth);
//setProperty("Age" add i, _y, yposition);
//Age.Age = Age_array[1];
//set("Age" add i add ".info", Age_array[i]);
//depth--;
////Saved Name
//duplicateMovieClip(Sname, "Sname" add i, depth);
//setProperty("Sname" add i, _y, yposition);
//Sname.Sname = Sname_array[1];
//set("Sname" add i add ".info", Sname_array[i]);
//depth--;
// Set the y position plus 30
//yposition = yposition+15;
//}
//stop ();
Hope someone can help me with getting these buttons to work.
Again Thanks for the help
Help ASAp
Below is the code I am using to populate some buttons. I have two arrays buttonArray which labels the buttons
(Financials, Portfolio, Summary, Reports, Administration, Contact Us, Help) and movieArray which tells the buttons what to do(basically load in the proper movie and the data).
I can't get my buttons to recognize the movieArray.
When I click on the buttons it doesnt load the right movie it says undefined or gives me the name of the last piece of data in the array which is the world help. Help is part of the menu.
What am I doing wrong....need to get this working by end of today (5pm)
*_root.createEmptyMovieClip("tmButton", 0);
*holder._x=70;
*holder._y=50;
*buttonArray = _root.getObject(menuObject, "", "topmenu");
*movieArray = _root.getObject(menuObject, "", "mc_topmenu");
*//creates array
*function setButtons(){
*buttonLength= buttonArray.length;
*movieLength= movieArray.length;
*//distance between buttons
*xdist = 120;
*//loop through array and duplicate buttons
*for (k=0; k<buttonLength; k++){
*_root.tmButton.attachMovie("myButton","button"+k,k );
*_root.tmButton["button"+k]._x=i*xdist;
*_root.tmButton["button"+k].myReport=buttonArray[k];
*}
*for (kk=0; kk<movieLength; kk++){
*_root.tmButton["button"+kk].getReport=movieArray[kk];
*}
*}
*
*//Function for button to call
*Button.prototype.onPress = function(){
*_root.newReport = this.getReport;
*trace (getReport);
*}
Thanks for the help
Please Help ASAP
Is there a way to preload multiple SWF files using one preloader?
Please Help Asap
I'm new to all this Flash stuff but I know Java Script and HTML well but I have a 2 part question that I really need help with. Now, Because I don't understand Flash all that well can someone please tell me how to do this step by step explaining it ease? Else I'll be lost and I'm trying to get this site up and running fast. And, keep in mind that I don't know a lot of the terms for flash or movieclip stuff so please explain. Ok my question(s) is How do I make it so when I hover my mouse over my arrow buttons I can make the dynamic text scroll up and down continually till I move the mouse away? I understand how to make dynamic textfields I just need to know that part with the scrolling. My last question how do I make so when I click on my "News" "Profiles" or what ever buttons I have it will change the text in the textfield box? I know want my whole page to change just that part. I hope some one can help me. Thanks.
Pls Help Me.........asap
Hi,
I'm a graphic designing student just learning flash.....
I'm making a flash portfolio cd and I would like to know some cool effects or tricks/tips or anything that looks nice and is not that hard to do for a fast learning rookie....
I ooked thru most of the tutorials but just haven't been "impressed" yet....
If anyone have a link to a good tutorial or anything of that nature pls post it or let me know.......
I have a job interview friday and want to have a good flash project to show off....
You help is greatly apprecaited...
thanks in advance
Help Asap
ok this is stupid but can someone tell me how to get a movie clip to change frames when the mouse is pressed and chage again when released?
i know thats a really easy question but im not good w actionscript just the animation and graphics.......
so can you help
Need ASAP Plz Help
can i get a turorial and example of how to get make a search form in flash that has comboboxes, text boxes, list boxes, and check boxes in it that searches mySql database using PHP.. and sends results back to flash mx and have info put into their on dynamic text boxes.....and have about 10 records at a time viewed..........
Help ASAP, Please
I can't see the buttons when previewing the movie.
What's happening to them?
Thanks
Ecinele
Help Asap
Hi im a beginner at actionscript and i would like to know how to make a scoreboard and a timer. It's a math game, so every equation that is correct then you get 1 point and go to the next equation then when it reaches 10 you goto another frame. Also i want a timer that when the game starts the time count down from 60 seconds. If you dont finish the game within 60 secs then it goto another frame (game over). It would be great help if you help me since i've tried so many stuff and it didn't work. I just need the basic script so i can work along it. Thank you.
Please Help Asap....
Hello I'm new here and in desperate need of help, I've got stuff to do for tomorrow in Flash but something has been bugging me for a long time now and I can't concentrate.
The actual workspace in flash (not the background, just to make sure nobody thinks that) is a horrible code of #E5E5E5 which really isn't easy for me on the eye when working with a white background.
How do I change it???? It may sound simple BUT, since I got CS3 I just can't figure it out and I'm not exactly a learner either, I've been using flash for a long time but my head is gone AWOL...........
PLEASE PLEASE PLEASE will someone help me asap
THANK YOU!!!!!!!!!!!
Help Asap (AS2 >> AS3)
i decided to make this game:
http://www.tutorialized.com/view/tut...ing-Game/30968
but the thing is it is in actionscriipt 2 and i need it in actionscript 3..
i need help ASAP....
if anyone could convert the code or help out in ANY way....plz do!!!
Please Help Asap
i am trying to make this game
http://www.tutorialized.com/view/tut...ing-Game/30968
but this is in action script 2 and i need it in action script 3...
can somebody convert the code
HELP PLEASE
Needs Help ASAP
sorry for posting this here but i really need to find a solution to this problem
i'm sure the solution is simple as hell but i must have it as quickly as possible.
http://www.actionscript.org/forums/s...d.php3?t=46015
thanks in advance -phobophile
Help Asap
can anyone tell me wats wrong with this script?????????? i in urgent need for the solution....my screen display error even though i key in the correct password and user id
on (release){
if (userid=="student" && password=="password"){
nextScene();
} else {
gotoAndStop(5);
}
}
HELP Asap.....
As a designer i have to say i hate code of all sorts especialy if i havent a notion why things wont work!! below is part of my problem. ive had previous post about this project but this is todays problem and worst off is ive to show the client this afternoon!! - ive two swf files in a html page, one is a move the other a basic controler which sends three actions, (back (2), forward (1), reload (3))
the forward command works fine
the back command despite the prevframe command moves to the next frame?
and the reload also moves to the next frame???
im stumped!!!!! im i missing something obvious???
myReceiver = new LocalConnection();
myReceiver.connect("myConnections");
myReceiver.myAction = function(doThis) {
if (doThis == 1, _currentframe != _totalframes) {
nextFrame();}
else if(dothis == 1, _currentframe ==_totalframes) {
gotoAndPlay(2);}
else if (doThis == 2, _currentframe > 1) {
prevFrame();}
else if (doThis ==3, _currentframe == 2){gotoAndPlay(2);}
else if (doThis ==3, _currentframe == 3){gotoAndPlay(3);}
else if (doThis ==3, _currentframe == 4){gotoAndPlay(4);}
else if (doThis ==3, _currentframe == 5){gotoAndPlay(5);}
}
I Nd Help Asap
confused; how do you clear the Stage area w/o deleting the library item you just finished editing.
Or is there a easier or better way to edit Library items. I hv been dragging thme onto the Stage
and editing them which is working fine, but hwo do you clear it from the Stage w/o deleting it frm
timeline????????? I really need help asap
Help Please (asap)
I have this project, I made it so you click on the hat, shirt, et a movie clip loads etc. then the movie clip that loads is a button you click on that and it shows more shirts, hats, etc. When you click on the hat the button movie clip loads but when you click on the button the next movie clip thats supposed to show more items doesnt low, please help project is due thursday!. The swf and .fla of the button thats supposed to cause the second movie clip to load is attached, thanks in advance.
Help Asap
Im currently working on a project that involves "load in" and "load" out transitions..they worked perfectly...then I made an intro and I loaded the home.swf with the in and out transitions into my intro.swf (so it could fade to the home page after it completed). And it obviously renders this..code..
Button:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "articles";
_root.contents.loadMovie("articles.swf");
} else if (_root.currMovie != "articles") {
if (_root.contents._currentframe == _root.contents.midframe) {
_root.currMovie = "articles";
_root.contents.play();
}
}
}
Last Frame of swf:
_root.contents.loadMovie(_root.currMovie+".swf")
First Frame:
midframe = 90
trace(_root.holder.midframe)
useless...
So I figured I could just alter some of the code instead of _root.contents...it could be _root.contents.intromc.loadMovie etc. etc. And while it works..the in and out transitions work..if I click on articles..it loads the articles.swf yippie the in and out transitions work...then when i click on media..the articles loads again..then when I click on worm..the articles loads again..and that's when Im like WTF? So Im boggled any help would be appreciated. I have to have this site up TONIGHT.
Any comments or help would be GREATLY appreciated.
http://www.eyeofthestormmusicgroup.com/unspeakable.zip
articles and brain fingerprinting are included I believe the other swf's arent there to keep the file size down. Thanks in advance.
HELP ASAP Please
Hi Folks,
Can anyone help me please i am really desperate to get some bugs fixed in my application as the project has to be finished ASAP.
Beware the file is 8MB and uses Flash MX 2004 Professional.
http://www.hannacabana.com/lo_final.rar
The issues:
I have a home button but want to restart the application again and for some reason its not working with gotoAndPlay("intro") do I require something else?
I also have a magnifying glass effect however because this takes over the mouse actions it wont allow me to go to the next page with the navigation.
I want to disabled my home button on homepage but have it enabled on all other pages. However this doen't seem to have worked on the help page its disabled.
I also have sound problems where some sound files are looping and i can't understand why. I would be ever so grateful if anyone can help me.
Thank You
Help Asap
Im currently working on a project that involves "load in" and "load" out transitions..they worked perfectly...then I made an intro and I loaded the home.swf with the in and out transitions into my intro.swf (so it could fade to the home page after it completed). And it obviously renders this..code..
Button:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "articles";
_root.contents.loadMovie("articles.swf");
} else if (_root.currMovie != "articles") {
if (_root.contents._currentframe == _root.contents.midframe) {
_root.currMovie = "articles";
_root.contents.play();
}
}
}
Last Frame of swf:
_root.contents.loadMovie(_root.currMovie+".swf")
First Frame:
midframe = 90
trace(_root.holder.midframe)
useless...
So I figured I could just alter some of the code instead of _root.contents...it could be _root.contents.intromc.loadMovie etc. etc. And while it works..the in and out transitions work..if I click on articles..it loads the articles.swf yippie the in and out transitions work...then when i click on media..the articles loads again..then when I click on worm..the articles loads again..and that's when Im like WTF? So Im boggled any help would be appreciated. I have to have this site up TONIGHT.
Any comments or help would be GREATLY appreciated.
http://www.eyeofthestormmusicgroup.com/unspeakable.zip
articles and brain fingerprinting are included I believe the other swf's arent there to keep the file size down. Thanks in advance.
Need Some Help Asap.....
Hi ok, this is the deal...
I've got this mainmovie.swf and in it there's a container movieclip with a submovie.swf loaded into it. Now in the submovie.swf I want a button that, when you click it, spawns an external browser window (fixed size pop-up)... How do i do this? Because I did the tutorials that assume that the button resides in the mainmovie.swf, but those do not work when the button is in the submovie.swf.
I put the mainmovie.swf in an index.htm and I pasted the javascript code in the head tags, but I guess I'm missing something here.
Can someone please tell me how to solve this?
Please Help ASAP (SOS CALL)
Hi this is urgent. Can anyone tell me how to load 2 scenes (scene 1 has 157 frames) (scene 2 has 32 frames)
at frame 1 of scene one.
This is very important to me, so any help would be amazing!
THANKS THANKS THANKS
-QETRET
Need Scrollbars - Please Help ASAP
A contributor to this site named Patrick Mineault posted 2 tutorials a while back, one of which was exactly what I needed to add scrollbars to a project I'm doing. What he posted, however, didn't work when I tested it and he hasn't answered my e-mail nor responded to my post above.
Does anyone know of a tutorial out there that will emulate a Windows-esque scrollbar w/ up down arrows, preferably like Patrick's example below? I'm in dire need of this really soon. Thanks!!
http://www.flashkit.com/tutorials/In...40/index.shtml
Help Really Needed ASAP
hi i was woundering if any of you know how to do this:
i have made a drag and drop interface and was woundering how do i make a draggable object push another one out of the way if the two touch instead of going over the top of it????
please help
Max Chars?..HELP Asap
When u have a multiline text field how and where do u tell it how many characters you want it set up 2? for ex. 240 char...so the person can olny write up to 240 characters.
LKS
Asap Sound Off And On
I am having trouble with a website im making. I made and intro and i have music playing. so i made a sound on and sound off button. I put on release stop all sounds on the sound off button. then i put on release go to and play frame 1 on the sound on button. but i realized that that is not going to work becuase it also plays the movie again as well as the song. so i am stumped on what action to put for sound on. please help anyone. thanks
Help Needed ASAP
Just as I thought I was finishing my assignment, I ran into another problem!!!!!
I have a swf which I load into a moviclip.
The swf contains buttons which when clicked goes to different sections of the swf. When I test the swf, everything works perfectly. However, after loading it into a movieclip, the buttons doesn’t work anymore!!!!!!
Btw these are the commands that are attached to the button
on(release){
_root.bas_mc.slide_mc.gotoandplay(2);
}
Any help would be greatly appreciated
.
MC Question ASAP
I want to make a mc in my project loop if playing, but not AUTOPLAY when loaded.. How can that be done?
Need Some Help In Flash MX, Asap
Hello, I am currently creating a website in flash mx and need to get an interactive main page up and running. The problem is I am new to flash interaction and animation.
I've checked a number of different tutorials but none go in depth enough to give me the proper knowledge.
The main page will be done completely in flash, I've provided pictures below of what I want to help you understand what I am trying to do:
This image shows how my site would work in flash:
And this image shows how the website (main page) would look:
As you can see, its not an overly complicated page, but I am clueless of how to achieve it and need your help as soon as possible.
I would like a run through of how I would get stated, how I should organise layers, and how I would go about putting in animations/actions and then making them interact with other parts of the flash, such as the big turning wheel.
I don't mind you speaking to me as if I'm a newbie, because I am in this particular area
If you would like my Email or MSN messenger addy please ask.
Thanks in advance,
Joe
ASAP HELP On Button MC
I currently have a navagation menu, it plays like 30 frames to do the flashy transitons, then it stops, I have 5 MC button that when you roll over it kinda flicker and fades, how do you attach an button action for a get URL
Do I put it inside the MC?
here is the fla
Publish GIF Help ASAP.
hey i need help with publishing a animated gif.
i created a logo, went to publish settings, set it to these options under the gif tab: match movie, animated, loop continuse
under option i have optimize colors and smotth checked,
trasparent: opaque
dither: non
Palette Type: web216
but everytime i hit publish, the GIF deos not seem to work, when i doubble click on it in windows XP it says Preview on Available. so i thought i might be my computer, but i published, it, and when i went to find it online, it acts like its not there i it shows up as a box with a X like it can open the picture.
Whats wrong and how can i fix this ASAP. iam using Flash MX 2004.
Please let me know soon. Thank you in advance
Help ASAP With Mouse Over
I was Given this Action Script to allow a peice of my movie become loarger on Mouse Over but i am gettin some error messages! I am Using Flash Mx and here is the Action Script::
ActionScript:
--------------------------------------------------------------------------------
onClipEvent(load){
this.scaleUp = false;
this.scaleDown = false;
}
onClipEvent(enterFrame){
//grow
if ((this.scaleUp)&&(this._xscale < 150)){
this._yscale += 10;
this._xscale += 10;
}else if ((this.scaleUp)&&(this._xscale >= 150)){
this.scaleUp = false;
this._xscale = 150;
this._yscale = 150;
}
//shrink
if ((this.scaleDown)&&(this._xscale > 100)){
this._yscale -= 10;
this._xscale -= 10;
}else if ((this.scaleDown)&&(this._xscale <= 100)){
this.scaleDown = false;
this._xscale = 100;
this._yscale = 100;
}
}
on(rollOver, dragOver){
this.scaleUp = true;
this.scaleDown = false;
}
on(rollOut, dragOut, releaseOutside){
this.scaleDown = true;
this.scaleUp = false;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
And here is the Error messages:::
Clipboard Actions: Line 1: Clip events are permitted only for movie clip instances
onClipEvent(load){
Clipboard Actions: Line 6: Clip events are permitted only for movie clip instances
onClipEvent(enterFrame){
Clipboard Actions: Line 29: Mouse events are permitted only for button instances
on(rollOver, dragOver){
Clipboard Actions: Line 34: Mouse events are permitted only for button instances
on(rollOut, dragOut, releaseOutside){
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
Whats Goin On Here ???????
Repeat ASAP
How would i make a layer of a scene Repeat itself as many times as i like (Infiniate) please Help ASAP
Help Please Asap Due Today
I am trying to burn .exe's onto a cd for a portfolio. I gotta use the .exe cause i have to be able to launch some pdf's from the flash movie. Problem is, the flash movies arent "talkin" to each other. for instance i got a button that loads another movie.. dosent work, and i got a movie ayer that loads two others automatically, dosent work.. i am using
loadMovieNum("navigation.swf", 1);
stop();
to load automatically within a clip and..
on (release) {
gotoAndStop(28);
unloadMovie(4);
loadMovieNum("web_design.swf", 4);
}
to load from a button..
It all works correctly when i burn the .swf but not .exe
What Gives!
Thanks for your help
Please Can Someone Sort This Out For Me Asap FTP
hi everyone! I am so desperate.... basically my Ibook packed up and i havent got an FTP, my mate designed a site and just left me with the actual file but i have no means of getting up online.... all i need to do is send someone the .swf he gave me, and my FTP details to get the stuff transferred and then my site will be up!
The reason it is so vital i get this done now, is because the site is part of a job application!!!! please can someone email me
adelarks@btinternet.com
I will then fwd on the file and it should be easy as 1,2,3
Hope someone will be kind to help me
Ade
Help Please ASAP< ActionScript
Hello!
In my flash movie, I have an array of data.. At the end of the movie, I want to take this array and have it in an XML object so that when the user clicks a certain button, that XML object is sent to a server-side PHP file. Could someone please help me with this ASAP??
Thanks,
Susanna
Scene Help ASAP
i need to know how to transition scenes, when i insert
on (release) {
gotoAndPlay("Scene_2",1);
}
it just loops the scene, i need a responce in the next hour because this project is due tomorow!
thanks!
Preloader Help Asap
I'm trying to use the preloder code shown below. I copied this code from the Flashkit forum. I added line 1, the loadMovie()code.
1 - Problem: My movie ignor the loadMovie function
2 - Of all the code I have researched, none show me how to use the getBytesLoaded() function so I can actually see the bytes gradually being loaded into a text field.
loadMovie("sound/Screen 6.swf", "_level100");
_root.stop();
PercentLoaded = _root.getBytesLoaded()/_root.getBytesTotal()*100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale, PercentLoaded);
} else {
_root.play();
}
percentDone = Math.ceil(percent)+"%";
bytesloaded = (_root.getBytesLoaded()/1000);
bytestotal = (_root.getBytesTotal()/1000);
bytes_loaded = Math.ceil(bytesloaded)+"kb";
bytes_total = Math.ceil(bytestotal)+"kb";
Second Attempt:
I also tried the code below. It is placed on the root in the first frame.
Prob: This code will dispaly the TOTAL in both fields instantly. Whereas I thought the getBytesTotal would display a gradule increase in bytes as they are being loaded.
function floader() {
loadMovie("sound/Screen 6.swf","_level100");
var total = _root.getBytesTotal()
this.onEnterFrame = function(){
loading = _root.getBytesLoaded();
if (loading >= total){
trace("loading...");
//gotoAndPlay("Credits", 1);
} else {
trace("loading done");
stop();
}
}
}
What am I possibly doing wrong??? This preloading thing should be easoy enough. HOw come so many posts???
Thanks
iaustin
I Need All Your Helps Asap
Hi all!!!
...this is for my university graduated project...i really need your help!!!
i am getting trouble with Flash Remoting with .NET when implementing my web-base app...
And i really really need your helps to my situation:
I use Flash MX 2004 v7.02 and Flash Remoting Component 2004, and i use .NET asembly method.
Here is my configuration on my PC (they are imgs and you can view it):
The dll files
The Database & other files
The C#codepage
The AS codepage with functions get & call services.
The .NET compiler while compiling the C# codepage without bugs
The NetDebugger satus after i generated the FlA file. you can see the function "InsertData" could nor run correctly
And the detail of this bug.
Here the Manipulating Data from Mook's Book that i refered. But it came these bugs
I use database MS Access.
The problem comes when the function "InsertData" that contained INSERT SQl query did not run.
and NetDebugg come a bug "Operation must use a upateable query"
And my question is "Why did it comes that bug" ?
If one of you used to get the same problem. pls guide me!!
Big thanks to all ya for reading me!!!
Help Needed Asap
Hello there everyone,
Im in a spot of bother:
http://www.flashkit.com/board/showth...hreadid=606044
Please help!
Thank you!
Caching ASAP
Instead of waiting for the user to click on a button to start loading the corresponding jpg in the picHolder_mc can I tell Flash to start downloading all of the pics when the user first loads the root site?
-Pez
|