GetBytesLoaded Showing As GetBytesTotal About 50% Of The Time. Help.
I am loading a sound file and have a loop that continually checks getBytesLoaded and compares it to getBytesTotal.
unfortunately the getBytesLoaded is returning getBytesTotal about 50% of the time and then it doesn't download the file at all.
I have stripped it down to the bare bones just checking getBytes Loaded and can't figure out why this is happening.
I am loading the sound off of a button click and if I click the button 5 or 6 times it usually kicks in and starts showing getBytesLoaded but that is not really acceptable. The funny thing is sometimes it goes on the first click. Can anyone give me any hints.
My guess is it has something to do with the large file size and my slow internet connection but then many other people will have a similarly slow conntection.
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-19-2003, 03:19 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Help - GetBytesTotal() And GetBytesLoaded()
hi,
i wonder if anybody can help me,
i have a movie clip called "imgholder" which is on the stage of a movie called main.swf.
I am using "imgholder" to load external .swf files.
This is fine, however when i try to use flash5's new object style code,
e.g. imgholder.loadmovie("test.swf")
Or
loaded = imgholder.getBytesLoaded();
it doesn't work.
At the moment i am using:
loadMovie ("test.swf", "imgholder");
and
test = getProperty("imgholder", _framesloaded);
to achieve the above.
I have also tried using _root.imgholder.getBytesLoaded();
to no avail. should i be using levels?
Thanks in advance,Ben.
Mac GetBytesLoaded() And GetBytesTotal()
in my flash app i have the block:
Code:
if(_root.main_mc.loader_mc.getBytesLoaded() == _root.main_mc.loader_mc.getBytesTotal())
{
...
}
works fine on a pc. i don't think mac supports getBytesLoaded() and getBytesTotal(); i've had some buggy problems in the past with it on a mac. is this true? any way around it?
thanks
Getbytesloaded/getbytestotal ?
I have a few problems with getbytesloaded/getbytestotal.
offline, when I try to trace their value from an object (on stage) in witch I loaded a JPG they both give me the same value. (usually 18 and then around 44 thousands...)
then online I can't trace their value but flash seems to react as if they are both equal. which makes it impossible to make a loader, because
getbytesloaded/getbytestotal always returns 1.
anyway here's how I'm trying to do this.
on 1st frame I got:
content.loadMovie("files/" + _root.selected +".jpg");
then on the 3rd frame:
bl = content.getBytesLoaded();
bt = content.getBytesTotal();
if (bt != bl) {
bar._xscale = bt/bl;
gotoAndPlay(2);
} else {
content._visible = true;
play()
}
thanks..
How To Use GetBytesLoaded And GetBytesTotal
Hey, can anyone help me get this section of code to work? What I am trying to do should be pretty self explanitory . . .
Code:
function swf(clip){
loadMovie("box.swf",clip)
bytesLoad = getBytesLoaded();
totalBytes = getBytesTotal();
if (bytesLoad = totalBytes) {
fadout = setInterval(fade,30,this);
}
trace("function swf is working");
}
GetBytesLoaded() == .getBytesTotal
Hi Forum,
I want to have two preload scenes, pre_load1 scene checks
if (_root.getBytesLoaded() == _root.getBytesTotal())
{
_root.gotoAndPlay("Main", 1);// skip pre_load2 scene and play Main scene
}
If not go to pre_load2 scene and download.
Reason is for repeat visitors so they dont have to view preload again. cheers P
GetBytesLoaded() / GetBytesTotal()
Hello there... I have a small problem with getBytesLoaded() / getBytesTotal() for use with a preloader. I know how to make a preloaded, but ive decided to make a preloader on a specific level that will be loaded into the embedded swf.
so the preloader is accessed by _level200
this works fine. I can use getBytesLoaded() / getBytesTotal() to find out how much is loaded.
example:
Code:
myLoader.myKBs.text = _level0.getBytesLoaded() add "kb/" add _level0.getBytesTotal() add "kb";
//OR use it to get to level the loader is inside
myLoader.myKBs.text = this.getBytesLoaded() add "kb/" add this.getBytesTotal() add "kb";
but the second i try any level BUT "_level0" or "this" then I just get undefined!!! Any ideas? Btw, I KNOW the other levels are there because they are showing up in the embedded file.
thanks guys/gals
GetBytesTotal & GetBytesLoaded?
Hi
I want to load a picture from outside my site and get the size info of that file.
But when I use getBytesTotal & getBytesLoaded it's only return 0 byte.
Code:
...
newImg_mc.loadMovie("http://www.helpexamples.com/flash/images/image1.jpg");
...
trace(newImg_mc.getBytesTotal());
trace(newImg_mc.getBytesLoaded());
...
I want to know the filesize of a file outside my site.
And to be able to see the downloaded bytes.
please someone!
/Stenberg
GetBytesLoaded() & GetBytesTotal()
Say I have 2 files (file a, file b) and I want to use file a to load file b (in a blank movie clip symbol). The problem is that file b has a preloader that uses _root.getBytesLoaded() & _root.getBytesTotal() in it.
These values, however, return the size of 'file a', what should I put in place of _.root (which is in 'file b') so that it returns the size of 'file b' even if I load it from somewhere else?
Thanks
GetBytesloaded && GetBytesTotal Undefined
I'm loading an external swf on a button release. Since the external swf was small I initially didn't have a preload check. The first time the button is clicked the swf doesn't load, but the on the second click the swf would load and play.
I tried using basic tests with _framesloaded and even tried a comparison with (getBytesloaded & getBytesTotal). If all cases , _framesloaded and getBytesloaded & getBytesTotal return "undefined" and the swf loaded only have the second click.
Any ideas.
Lisa
GetBytesLoaded()/getBytesTotal() = Headache
Got a flash piece at http://www.lake.k12.fl.us/makearipple.asp that pops it in a new window.
Problem is, preloader shows up on some machines, not others.
Real frustrating. Because it will show up, say, on a p4 2+ GHZ machine as well as a 128 MB Ram AMD older machine, but won't show up on similar machines running same software, browser and players.
I'd rather use getBytesLoaded vs ifFrameLoaded -- site is a bunch'a mcs that play when buttons are activated, etc. getBytesLoaded is more accurate than ifFrameLoaded in this case.
Also, want preloader to load dynamically, which, as I said above, it does in most cases. It's the times that it chugs along before jumping strait in to the main movie that's got me all frustrated.
Any suggestions are appreciated.
I've tried multiple variations.
Here's preloader code:
----------------------------------
stop();
myInterval = setInterval(preloader, 10);
if (getBytesLoaded() == getBytesTotal()) {
nextScene();
}
function preloader() {
if (getBytesLoaded()>=getBytesTotal()) {
play();
clearInterval(myInterval);
}
myTextField.text=(Math.round(getBytesLoaded()/getBytesTotal())*100)+"% loaded";
progressBar._xscale=(getBytesLoaded()/getBytesTotal())*100;
mask._xscale=(getBytesLoaded()/getBytesTotal())*100;
mask._yscale=(getBytesLoaded()/getBytesTotal())*100;
ripple._xscale=(getBytesLoaded()/getBytesTotal())*250;
ripple._yscale=(getBytesLoaded()/getBytesTotal())*250;
ripple._alpha=(getBytesLoaded()/getBytesTotal())*50;
ripText._alpha=(getBytesLoaded()/getBytesTotal())*100;
}
----------------------------------
Thanks,
Andy
_level1 GetBytesLoaded/getBytesTotal.. Help
Does anybody know how can I make my preloader.. if I want to load music from _leverl1 ?
setProperty("_parent.load_bar", _xscale, ((_level1.getBytesLoaded()/_level1.getBytesTotal())*100));
//this script doesn't work for me
Thanks..
GetBytesLoaded Returns GetBytesTotal...
Okay what I am trying to do should be pretty simple... I've done it quite a few times before but I'm getting nowhere this time. Here's my setup.
I have a main swf that simply is used to load other swfs as links are clicked. Now two different swfs are always loaded at the same time. One is a banner that contains the menu which is never unloaded. And the other is the content swf that is changed as the links are clicked.
Here's the setup: It's not as optimized as it could be because I've been messing it up continuously trying to find the problem.
Code:
//SNIPPET: this is in the banner.
if (loading) {
loading = _root.checkLoading();
if (!loading) {
turnOn();
}
}
//SNIPPET:this is in the main swf
function checkLoading() {
var rbool:Boolean = true;
var loaded:Number = content.getBytesLoaded();
var total:Number = content.getBytesTotal();
lbar.lbar._xscale = loaded/total*100;
lbar.perc = loaded;
if (total == loaded && total > 1) {
rbool = false;
}
return rbool;
}
//SNIPPET: Last here's the setup for content which is also in the banner
if (_root.chg == "2d") {
loadMovie("2dViewer.swf", _root.content);
} else if (_root.chg == "3d") {
loadMovie("3dViewer.swf", _root.content);
} else if (_root.chg == "web") {
loadMovie("webViewer.swf", _root.content);
} else if (_root.chg == "contact") {
loadMovie("contact.swf", _root.content);
} else if (_root.chg == "about") {
loadMovie("about.swf", _root.content);
} else if (_root.chg == "home") {
loadMovie("main.swf", _root.content);
}
Okay now here's my problem. content.getBytesLoaded() returns the same as content.getBytesTotal(). And no it's not 0... it's a large amount of bytes that I am assuming is the actual Total. And it's not loaded yet either, one of the swfs is about 2.5 megs and says it is loaded but it's not even close...
Am I doing something stupid? Probably... if you can help me that would be awesome! In the mean time... I'll scratch my brain some more...
_level1 GetBytesLoaded/getBytesTotal.. Help
Does anybody know how can I make my preloader.. if I want to load music from _leverl1 ?
setProperty("_parent.load_bar", _xscale, ((_level1.getBytesLoaded()/_level1.getBytesTotal())*100));
//this script doesn't work for me
Thanks..
GetBytesLoaded And GetBytesTotal Isnt Getting
Hi! Im going crazy! It seems no matter how I try to get the bytes loaded and total, its not getting them. Im loading a picture into a holder. The swf loads into the holder fine, but the preloader isnt working because the bytes loaded and total are always 0. Here's the code Im referring to...
function load_pic(myLoad, myNum:Number)
{
//this loads the picture into backpics
_root.mc_backpics["img" + myNum].loadMovie(myLoad);
//this is what I cant get working. myLoad isnt referencing the file I think
total = myLoad.getBytesTotal();
loaded = myLoad.getBytesLoaded();
percent = int(loaded/total*100);
and here's how I call it...
var myPage = 1;
load_pic("backpics/pic" + [myPage] + ".swf", myPage);
Thanks!
Rich
MovieClip.getBytesLoaded() And GetBytesTotal() == 0?
For some reason when I load a movie clip these functions always seem to return 0 to me. Does this mean that it loads the movie with the LoadMovie method from the cache memory which makes that value 0? Even then I'd think it would still display that number.
I load it like this in a frame:
LSL=loadingScreen.getBytesLoaded();
LSL shows 0 as a value when I do Debug - List Variables when testing it. It's the same for LST=loadingScreen.getBytesTotal();
Btw I load the MovieClip like this and in the next frame I update those LSL and LST variables:
_root.createEmptyMovieClip("loadingScreen",2);
_root.loadingScreen.loadMovie("LoadingScreen1.swf");
Of course those both values being 0 will always end up in this if statement to fail:
if(LSL<LST){
gotoAndPlay(1);
}
Suggestions to let these methods return the correct values are appreciated a lot.
Problem With GetBytesLoaded And GetBytesTotal With A SendAndLoad
I can't get it work. It's loading fine, but I can't find a way of retrieving the informations. I would like to do a preloader, so I need the getBytesLoaded and getBytesTotal
here is the code I have done :
Code:
stop();
var sendData:XML = new XML();
var replyXML:XML = new XML();
checkProgress = function() {
var lvBytesLoaded:Number = replyXML.getBytesLoaded();
var lvBytesTotal:Number = replyXML.getBytesTotal();
trace("Loaded "+Math.floor(lvBytesLoaded/lvBytesTotal)*100);
};
replyXML.onLoad = function(success:Boolean) {
clearInterval(intervalID);
if (success) {
trace(replyXML.getBytesLoaded()+" Bytes sent.");
} else {
trace("error");
}
};
sendData.sendAndLoad("http://127.0.0.1/RandomThoughtsHandler.ashx", replyXML);
var intervalID:Number = setInterval(checkProgress, 100, replyXML);
GetBytesTotal() And GetBytesLoaded() Not Working When Loading Jpg File Into MC...hlp
Using MX, anyone see a problem with getBytesLoaded() and getBytesTotla() not being returned correctly using this code? Does not work for me. movBirdContainer is just an empty mc with 1 empty frame.
Code:
movBirdContainer.createEmptyMovieClip("movBird", 1);
movBirdContainer.movBird.loadMovie("./image.jpg");
onEnterFrame = function()
{
// Preloader code
var nLoaded = Math.round(movBirdContainer.movBird.getBytesLoaded() / 1024);
var nTotal = Math.round(movBirdContainer.movBird.getBytesTotal() / 1024);
trace("total bytes loaded is: " + nLoaded);
trace("total bytes is: " + nTotal);
trace("percent loaded is: " + Math.round((nLoaded / nTotal) * 100));
}
Sound.duration Continues To Increase After GetBytesLoaded()==getBytesTotal()?
Try this:
ActionScript Code:
var s = new Sound();
s.loadSound('sound.mp3',true);
onEnterFrame = function(){
var a = s.duration+" : "+s.getBytesLoaded()+" / "+s.getBytesTotal();
}
Have sound.mp3 or whatever in the same dir as the fla. Test movie, and simulate download. Notice that the Sound.duration continues to steadily increase even after getBytesLoaded()==getBytesTotal()! Example:
45166 : 201558 / 201584
45322 : 201584 / 201584 // done loading bytes
45558 : 201584 / 201584 // duration increasing??
45793 : 201584 / 201584 // still increasing?! and continues for a long time
I was trying to extrapolate the duration of the mp3, since Sound.duration only returns milliseconds of audio downloaded when loadSound stream is set to true(like above). I got so close, but fear I'm stuck. The discrepancy created by this is as long as 10 seconds, which is not acceptable. I am probably going to have to settle for a nasty alternative, like creating id3 tags(ug) or manually enter all the timestamps into XML. If any gurus have any last ideas, I'm all ears.
GetBytesLoaded() And GetBytesTotal() Return Nothing When Loading Content From Another Domain
I have created a movie that loads various media using loadMovie() and then in many cases performs actions on the newly loaded MCs once the loading is complete. I'm relying on getBytesLoaded and getBytesTotal to know when to run these actions.
This works just fine when the content is on the same server as the movie, but I also need to load content from another domain and this is where it falls apart. The media is actually loading just fine into the target MCs, but the functions that should be running when loading is complete never do. The problem is that getBytesLoaded() and getBytesTotal() both return nothing when the content is loaded from another domain.
I'm stuck with loadMovie and the getBytesLoaded/getBytesTotal check as this movie must be published for Flash Player 6, but I have actually tried using loadClip() and onLoadInit() and I get the same problem - onLoadInit() never runs.
Another weird thing is that testing by previewing in flash doesn't show this problem - the content loads fine and getBytesLoaded and getBytesTotal both return values as expected. It's only when I publish the movie and view in a browser that I have this problem.
Where am I going wrong?
Thanks!
Clock Showing Server Time And Different Time Zones.
Hey all,
I have a clock that shows time according to local pc time but i want it to show according to the server. I have referred to all the Forum threads for the same but couldn't get it done. Is there any server side script to be written..if yes i can't cause i don't know any sever side scripts.I M a Designer and not a Programmer yet i can do action scripting a bit...if anyone can help please thanks in advance
whenever i change the time on my pc the time displayed gets changed.
Here's the code:
MyDate = new Date();
hours = MyDate.getHours();
minutes = MyDate.getMinutes();
seconds = MyDate.getSeconds();
hourAdjust = 0;
hours = hours+hourAdjust;
if (hours>24) {
hours = 0+(hours-24);
} else if (hours<0) {
hours = 24+hours;
}
tellTarget ("hours") {
_rotation = ((../:hours*30)+(../:minutes*.5));
}
tellTarget ("minutes") {
_rotation = ((../:minutes*6)+(../:seconds*.1));
}
tellTarget ("seconds") {
_rotation = (../:seconds*6);
}
gotoAndPlay(1);
Also can we pass an external value for .getHours(); syntax from an html?
Please help it urgent..
GetBytesLoaded() Or Math.round(getBytesLoaded())
hi have a problem with my preloader it is in scene1 and when it loads it goes to scene2 it works fine on my computer but when i upload it to the web it doesn't work right the preloader bar shows up allready loaded can any body help me, here is the script i'am using:
ActionScript Code:
total_bytes=_root.getBytesTotal();
loaded_bytes=_root.getBytesLoaded();
remaining_bytes= total_bytes - loaded_bytes;
percent_done=int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded("main",11){
gotoAndPlay("main",1);
}
Showing The Time Of An MC?
Hi
I have various songs as seperate swf which are loaded into a target into a player, these swf files are streamed. Anyway, I have been able to get a timeline which shows how much of the song has played, but i would now like to add a time which shows how much time of the song has played.
I would prefer the actionscripting for this app to be in Flash 4 but i don't mind Flash 5, if it is not possible in Flash 4.
Thanks in advance
Ashwin
Showing A Time Of A MC?
Hi
I have a music player, where the music files are loaded from external swf. into a MC in my main player.
I would like to display the times in these songs.
Something like the time on the music player at http://www.spalab.com (notice if you ffwd or rewind a song the time changes accordingly)
I don't thinks i can use getimer() because when i ffwd or rwd the song the time will not change accordingly.
Any ideas?
Hope you can help
Thanks
Ash
Showing Time
I am working on a flash piece that would display the amount of time a user has spent in a course. The time is being passed in seconds and then I am using code to break that up to hours, minutes, seconds. I've got the hour part under control, the minutes and the seconds are a little tricky. I found math.round(variable) which rounds the number up or down and this is great for hours, but for minutes, I need only the minutes like 121, I need 1, or 90, I need 30. A bit confusing. But, for example, I am trying to take the number 7285 and display that as 2 hours, 1 minute, and 25 seconds. I can't get substring to work on these numbers. I've tried toString as well and then substring, but to no avail. If any of you have any ideas, I would really love to hear them. Thanks a lot.
Johnny
All Screens Showing At The Same Time
Hi,
I'm working on a screen-based form application in Flash Pro, and when I preview it, all my screens show at the same time, rather than how I specified it in the screen Property panel and added behaviors (hide/reveal).
Does anyone know why is this happening? I had this problem before, and noticed that it would go away if I deleted the screen and re-made it again... this time I don't have that much time...
Can anyone help?
Thanks in advance
Showing The Play Time..
Hiya,
Is there any nice way to show the play time, dd / hh / mm / ss? (days/hours/min/sec..).
TIA
Showing Multiple Time Zones In Swf
Hi all...
Looking for how to show multiple time zones at the same time in a swf for a website........
Frankfurt, NY, Hong Kong - I am in South Africa - so I'll have to show Johannesburg's time as well.
Any ideas please?
Thanks alot
Action For Showing Time Left For Preloader
Hello,
I am making a preloader and I have the total bytes and loaded Bytes and percent bytes now I want to add time left to load (counting down)dynamically, any help would be great.
Thanks
PCRIDE_
Problem Showing Runningtime/complete Time
Hi community,
I'm new to this board and a real Flash newbie as well . (I hope to post in the right forum, if not, mods please move, thank you )
Cause I could't find the answer to my problem in german boards, I try my luck here (hoping to succeed )
I use Flash MX 2004. My problem is that I can't manage to show the current running time and total time of a movie in this project (.fla attached in Schmidl.zip, MX 2004), which shouldn't be too difficult in general.
The project I use is originally designed as a playlist player (.fla attached in Original.zip, MX 2004, reduced to two files instead of 25) which I modified to play only a single file (don't need the playlist) and added a stop button. I use this player for Camtasia screen videos in AutoplayMediaStudio projects. It's the only one which plays the sound correctly in these projects and the design is easy to change.
To the point: I added this AS in picture 3 of the layer "Indicator" to calculate the current position and total time (my file "smoke.swf is replaced by a dummy):
code: LoaderMovies.loadMovie("Smoke.swf");
stop();
allframes = _parent.LoaderMovies._totalframes;
gesamtzeit = Math.round(allframes/25);
filmlaenge(gesamtzeit);
sekunden = Math.round(_parent.LoaderMovies._currentframe/25);
filmposition(sekunden);
function filmlaenge(gesamtzeit) {
gesamt_anzeigesek = gesamtzeit%60;
gesamt_anzeigemin = (int(gesamtzeit/60))%60;
}
//-- Führende Nullen ergänzen:
if (gesamt_anzeigesek<10) {
gesamt_anzeigesek = "0"+gesamt_anzeigesek;
}
if (gesamt_anzeigemin<10) {
gesamt_anzeigemin = "0"+gesamt_anzeigemin;
}
//-- Zeit anzeigen:
film_gesamtdauer = gesamt_anzeigemin+":"+gesamt_anzeigesek;
function filmposition(sekunden) {
anzeigesek = sekunden%60;
anzeigemin = (int(sekunden/60))%60;
}
//-- Führende Nullen ergänzen:
if (anzeigesek<10) {
anzeigesek = "0"+anzeigesek;
}
if (anzeigemin<10) {
anzeigemin = "0"+anzeigemin;
}
//-- Zeit anzeigen:
film_fortschritt = anzeigemin+":"+anzeigesek;
ZeitText = film_fortschritt add " momentan von";
ZeitGes = film_gesamtdauer add " Gesamtzeit";
But even when I only do a "trace (allframes)" the result is "undefined". The calculating script for the time itself should be ok (I hope). I'm really getting sick with that, trying to find the the reason for at least a week and over 30 hours . I think it is not in this script, there must be a wrong dependency somewhere else.
Can someone please, please, please figure out, where the error is ? And please correct it for me. I actually do only need the solution for this problem, caus I need this player. After that I'll never ever touch that Flash stuff again
Thanks for your help in advance and greetings from Bavaria
Schmidl
ps: Normally I work like "not give bread, instead teach how to make bread", but it is really the only thing I need in Flash, that's why I ask for correcting it.
Dynamic Textfield Disappearing 2nd Time Showing?
Hi guys, I´m creating a dynamic password field. Works like a charm.
BUT!
If the user navigates away from the screen it´s on, and come back, the text field can´t take input anymore.
Flash says the field is there.
That it´s a input field.
The pointer changes alrigt, but i cant type into it? and the bug fixing text i put into it disappears.
When navigating to another page i kill the movieclip it´s in with:
ActionScript Code:
removeMovieClip(var_holding_clip);
Anyone ever had a similar problem?
/Micke
Coding For Date & Time + Showing The Amount Of Guests
Hey sup people, Im building a new flash interface, and I've always wondered what the coding was to show the amount of guest users that are on your flash site at any given time. Aswell, Im looking for coding to show the current date & time in EST for flash apps. Any help, tutorial links, suggestions, and or .fla's would be great !
Generate At Compiletime Showing The Date/time Of Compiling
Title should have been: "Generate string at compiletime showing the date/time of compiling"
Hi
Is there any way to generate a string automatically that will show the time and date that it was compiled.
I'd like to put a number in my programs, that I upload to various gaming sites, so I can always see which version of my game they have, whitout me having to manually change the string every time I change and compile it.
Flash 2004 Actionscript - Showing Local Time Only
Hello,
What is the code for getting the local time only. That is to say the time in my country only (Colombia) which is -5 hrs gmt. Therefore only colombian time will show on my website no matter where in the world it is viewed.
Thanks help
magyar
Whats The Coding For Date & Time + Showing The Amount Of Guests
Hey sup people, Im building a new flash interface, and I've always wondered what the coding was to show the amount of guest users that are on your flash site at any given time. Aswell, Im looking for coding to show the current date & time in EST for flash apps. Any help, tutorial links, suggestions, and or .fla's would be great !
Controls Not Showing Up On Page, But Showing Local And Via Direct URL. Why?
Hi everyone,
I'm new here, but a Flash guru I work with said this was the best site for Flash questions and answers.
My understanding of how FLA, FLV and SWF files communicate with each other is somewhat limited, but I get the general concept.
I turned an 11 minute video clip into a FLV file and it looks great (320x240, 30 frames, good audio settings). I then brought it into Flash 8 and chose the clear control overlay and then saved the FLA, the main SWF and the control SWF. I have all four files. All in the same folder. Locally, and on my web server.
Here's the catch. If I double click the SWF file locally, or enter the URL directly, I see the control bar. If I access the page where the SWF is both Object and Embedded, there is no bar. Because I can see the bar locally in Flash Player, and with three browsers (Firefox, Safari and Opera) with a direct URL to the main .SWF video file, I know the coding from Flash 8 was solid and the files are communicating properly. Therefore, my hunch is that I need to add a line of HTML or swap out some parameters in the page source. I see no settings in GoLive (which I know pretty well at this point) that reference controllers or secondary SWF files; i.e., the control bar SWF.
The file is both "embedded" and an "object" when I put it into the HTML layout in GoLive.
Any idea what I did wrong? I know it's one of those simple settings somewhere, but after eight hours of going back and forth, saving and resaving, I'm pretty frustrated. My web software is Flash 8, Flash Player 8 and GoLive CS2.
Any guidance is appreciated. This one stumped my Flash buddy too.
Thanks to all, and I hope I gave enough info. I usually tend to type WAY too much stuff!
Gary
SO What Really Is GetBytesTotal()?
Here is a quick question on the getBytesTotal() function.
When calling this funtion on the _root movie,
i.e _root.getBytesTotal()
It is understood that it will return the total number of bytes of the _root movie.
NOW...
What if the root movie have an empty movieclip on it which is linked to a symbol in a shared library, and is purely there for registration purposes...
Then does getBytesTotal() return the TOTAL including the shared library (which is what I would expect as it is also needed to run the movie) or just the main root movie not taking into account any linkages.
The reason for my question is that I have put a very simple preloader into the first frame of a movie, but when the movie resumes play at frame 2 it seems to have only been half loaded with the linkage part coming in later....and then some other bits of the main root movie after that...
The movie has in fact not fully loaded.
Any ideas in this pls...would be greatly appreciated.
Many thanks
regards
GetBytesTotal()...?
I have been using the method getBytesTotal(), but I have been having a problem with it...so far, I have only been successful using it on _root; if I try to get the total bytes for a MC, it gives me bogus numbers.
For Ex., I have a MC (homeImage) with a large jpg (50k.) When I do:
homeImageBytes = homeImage.getBytesTotal();
and I see the value of homeImageBytes in a dyn txt field, it gives me some wack value like 223 bytes - what's up with that. Why can't I get the # of bytes for a particular MC, but can for root?
Thanks,
Brian Riley
GetBytesTotal
Hello guys. I have this problem: I want to make an instance (movieclip)that contains the "getBytesLoaded" and "getBytesTotal" commands and i want to insert it into my "main" scene so that it shows a progress bar and when it loads to show my logo instead of the progress bar. I know the code looks like this:
if(?.getBytesLoaded()!=?.getBytesTotal())gotoAndPl ay (10)
} else
{
gotoAndPlay (1);
}
;
I don't know what I should put in the code instead of the exclamation marks!
Be carefull!!!I don't want it to be a preloader because I want the user to see the frames at the time that are downloaded not all of them. I just want him to know how many bytes are there left to be complete (don't ask me why!)
Thank you
GetBytesTotal
How can I apply the (getBytesLoaded / getBytesTotal) method on a movie that´s being loaded into a main one?
When I use:
percent = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100) add "%";
it seems that (_root) is refering to the main movie, and not the movie in particular. So what happens is that it goes directly into the next scene and the animation gets all mess up. The file is 205K so it´s not that small to jump without preload.
Suggestions are welcome
-----
Manuel
GetBytesTotal?
Someone please throw some light here for me!
I have the following code
movieSize = this.getBytesTotal();
Now this gives me the total file size of the swf right.
But what I would like to get is just the size of the first two sceens,
I have absolutly no actionscript exp, so I am in desperate need of some assistance, as I would not even know which section to swap out!!! lol!
Also if someone could point me to a good beginneers document on actionscripting, I would be 4ever grateful, I have looked through the help files with MX but it reads in stero and is of no help to me.
Andy
GetBytesTotal
I have some text that I’m loading dynamically into a text box. I’ve used loadVariablesNum to get the .txt file into it. However when I try to use the getByteTotal method it gives me nothing.
Help me!
GetBytesTotal HELP
Hi, I can't find a way to get the total bytes from an external swf?
I have an MC, in that mc i have a dynamic field where i want to show the total bytes (getBytesTotal) of an external swf, how do i specify this? I can't get it to work!
I do now how to use the getBytesTotal but I don't know how to get this value of an external swf. Please help!
I use Flash MX.
|