Preload Goes To 98% Then Freezes
Ok it was working perfectly and now I get a big freeze at 98% when I test the movie with XAT so I can see what it loads like in a 56k connection. Whats the deal! It was working and I changed nothing to my beginning loading
script.
Here is a screener of my timeline as you can see I have nothing in my first three frames. All that is in them is the loading graphics and my preload code.
Here is that too.
Frame:2
---------------------------------------
bLoaded = _root.getBytesLoaded;
bTotal = _root.getBytesTotal;
Frame:3
---------------------------------------
if(bLoaded == bTotal && bLoaded != 12){
gotoAndPlay(4);
}else{
gotoAndPlay(2);
}
FlashKit > Flash Help > Flash MX
Posted on: 06-30-2002, 03:32 PM
View Complete Forum Thread with Replies
Sponsored Links:
Flv Freezes
I am trying to stream a 20 sec 1.9K flv from a server as part of a splash page I am building for a client. The swf, html, and flv files are all in the same directory; both on my PC and on the server. I also have a preloader coded which seems to be working great. I can open the html file with the embedded swf file (which uses a NetStream to play the flv) locally in IE and I have no problem. Works great. When I deploy these to the server, everything loads great and plays for 10sec then freezes. I can wait all day under the assumption I'm having some kind of buffering issue, but no dice. When it freezes that's it. I can even wait for a minute and refresh the page just to see if indeed it is a buffering issue, and hope that maybe the entire flv is in the browser's cache and that it will now play in its entirety. It still freezes in the same place. I'm fairly confident that nothing is wrong with my code, but here it is anyway:
The flv is loaded through a movieClip named GardenWalk which contains this code: ....
View Replies !
View Related
My Swf Freezes
Hello
Well this is one of my first little project with AS3 and I'm going to attach my script and see if any of you can tell me what I did wrong because I'm sure its not even close to right.
I'm working on something that loads many external pngs from a xml file.
The problem I am having is that whenever I click on one of the buttons the animation just freezes on me. In internet explorer it seems to work better but in firefox it locks up all the time. If anyone has any advice for me that would be great.
You can view this project at http://www.toddkirckof.com/prospects
My Project Files
http://www.toddkirckof.com/prospects...ect_Module.zip
View Replies !
View Related
Flv Freezes........HELP
I am trying to stream a 20 sec 1.9K flv from a server as part of a splash page I am building for a client. I'm using the NetStream Class. The swf, html, and flv files are all in the same directory; both on my PC and on the server. I also have a preloader coded which seems to be working great. I can open the html file with the embedded swf file (which uses a NetStream to play the flv) locally in IE and I have no problem. Works great. When I deploy these to the server, everything loads great and plays for 10sec then freezes. I can wait all day under the assumption I'm having some kind of buffering issue, but no dice. When it freezes that's it. I can even wait for a minute and refresh the page just to see if indeed it is a buffering issue, and hope that maybe the entire flv is in the browser's cache and that it will now play in its entirety. It still freezes in the same place. If anyone can help, it would be appreciated immensely.
View Replies !
View Related
Flv Freezes........HELP
I am playing a 20sec flv as part of a splash page for a client. I have a swf that plays the flv embedded in an html file.......simple enough. When I test the page locally, I have no problem. When I deploy the page to the server; guess what...........I have a problem!!!!!! The flv freezes at about the 10sec mark but the audio still plays with no problem. The audio is an MP3 embedded in the swf, but the video is an flv that I am loading into the swf via a NetStream Object. My preloader works fine, and I see no rhyme or reason for the problem I'm having. If anyone can help........PLEASE HELP!!!!!!!!!! Thanks!
View Replies !
View Related
Nav Freezes Up
ive built a fairly simple nav bar, but when scrolling over the top, it some times freezes up. is there a easy script or something i can do with the buttons that trigger the event in order to cease all freezing?
View Replies !
View Related
Flash MX Freezes Up
I want to believe that I am not alone when it comes to this issue...
I am running Flash MX on Windows XP SP1 and I am constantly having issues with Flash when it comes to tracing any bitmaps or previewing a SWF in a browser. Flash will lock up and then not respond. I have tested this problem on various machines (Pentium II to Pentium 4 / Windows 98 to XP with different copies of MX) and the results have been the same. It is very annoying to have to "End Task" numerous times just to get one project finished.
Any suggestions or help?
Thanks!
View Replies !
View Related
File Just Freezes
I'm workin on a projet where when a plane reaches a cetain speed say 13 and above the wings fold in and when its at 13 or less. On the first frame of the stage i have
wings = "open";
This changes when the speed is greater than 13 to
wings = "closed";
The code to open/close the wings mc is:
Frame 1
if (_root.wings=="open") {
nextFrame();
} else if (_root.wings=="closed") {
gotoAndStop(3);
}
Frame 2
gotoAndStop(1);
Frame 3 is the mc with the wing opening
Frame 4
if (_root.wings=="closed") {
nextFrame();
} else if (_root.wings=="open") {
gotoAndStop(6);
}
Frame 5
gotoAndStop(1);
Frame 6 is the mc with the wing closing
Heres the problem when I add (wings = "open" and play the file the file slows down and comes up with this error tellin me to abort the script. Anyone know whats going on???????
View Replies !
View Related
Swf Freezes During Play
I have a very graphic intensive swf. there has been alot of time put into it. im having problems with it, while i watch the swf it freezes in certain spots for a second or 2. there is foreground rain in it and I tried removing it to fix the problem but it still is there. ive also tried it on flash 5 and flash mx 6. but the problem still persists.
i attached the swf file so u can see it and hopefully pinpoint what is wrong with it. but i put a blackbar over most of the movie because i dont want it to be fully scene on the internet yet. but you will still be able to see the parts that freeze up. there is no sound on the file either to save on file size. i pray that anyone can solve this problem. thank you
View Replies !
View Related
Playback Sometimes Freezes
OK folks having a problem here. For the past few months I have been working on a section of my jobs website. There are many layers of flash involved and we finmally have the site working the way we want it to. Just one thing is happening. Here is a link: http://www.hdr-designs.com/ (After you click High speed connection click interior decorating, then skip intro and on the menu click Movie). when it switches from one set of photos to the next (Without you clicking) sometimes the next screen freezes, just showing the background. There isn't a stop action or anything going on. Is there any reason this would happen? If so is there anyway to stop it? if you look at it you may not see it because it only happens once in a while. Any help would greatly be appreciated. Thanks!
-= greendog =-
View Replies !
View Related
FlashMX04 Freezes
Hello All,
I've had FlashMX 2004 for a while now, but just recently it has been stalling on me.
It stalls all the time now for some reason. I had the Task Manager open on Performance when it stalled, and the CPU was running at 20%, and then it jumped up to 100% and back down to 20% while stalling my computer.
Someone told me to reinstall Flash so I did, but I still have the same problem,
anyone have a solution?
Tim
View Replies !
View Related
Flash Freezes....
Well I dont know what is going on but everytime I try to remove a chunk of frames flash freezes...But it's funny because the frames I wanna remove are only about 10 frames and the .fla is only like 10mb...I've tried restarting, reinstalling with no luck..what can I do?!
View Replies !
View Related
Movie Freezes
I'm having a problem where the movie I'm working on freezes for no apparent reason once it gets to a certain spot. I realize that's pretty vague, but does anybody have an idea what the problem may be?
View Replies !
View Related
Everything Freezes After RemoveChild
I haven't been able to find a thread addressing this problem, so I'm posting it here.
The problem is simply that I'm more or less unable to to use removeChild.
What I want to do is remove a movieclip when it collides with another movieclip (remove the enemy when he collides with the player controlled vehicle)
To achieve this I use a hitTestObject (the hitTestObject exists in a function that runs every frame):
ActionScript Code:
if(_player.hitTestObject(_enemy))
{
removeChild(_enemy);
}
And guess what, that works. But the game does not only remove the _enemy, it also freezes everything (everything being the player controlled vehicle) and starts giving me an "ArgumentError":
Quote:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display:isplayObjectContainer/removeChild()
at Plain/::gamePlay_handler()
Now, I've had this problem before on earlier games I've made, but they've all been pretty small games and due to my lazy nature I've simply not bothered with using removeChild (instead I've changed the coordinates to -50000 or made the movieclips invisible) but this time I want to do it properly, so if anyone knows what I'm doing wrong/what I need to do to prevent this problem, please reply.
View Replies !
View Related
Form Freezes
I have a couple forms in my flash site that allows the user fill out information and submit it through remoting. My problem is with the text input fields on the form. It is happening sporatically from what I can tell. When a user clicks into a field, everything seems to freeze and the user is unable to click to the next field without clicking in some whitespace to take the focus off of the original field. Then the user is able to click into another field. Is this the normal action of how the fields work in Flash or am I experiencing something out of the norm? If I can get some type of feedback, it would be appreciated.
One form is a movie clip located inside of a scrollpane, but another for is located in a movie clip loaded into another SWF file.
View Replies !
View Related
Flash CS3 Freezes
I have repeated problems with Flash freezing. The mouse ceases to work. My only recourse is to shut down Flash and re-open.
I'm running on Windows 2003 Server.
There is no indication through the task manager that memory is a problem, nor do I find anything in the event log.
Does anyone else experience this problem? Any suggestions?
Thanks.
View Replies !
View Related
Preloader Freezes Up HELP
My page is over 6MB, preloader freezes up some where in 5-6000K. What I should do, create more preloaders? ok, if I do that how I put them in there?
Or is this just too large to net use?
Go there and see it...
www.orientaldecor.fi
View Replies !
View Related
Computer Freezes Up...
Does anybody have a clue why would my computer freez when i tried to look scene 2 in my movie , scene 1 is preloader , scene 2 main movie....
That didn't happen 1 day ago...Is there a bug in MX FLASH 2004....
View Replies !
View Related
Do While Loop Freezes
grrr, k, this is probably too simple, but I just can't get around it and here's what I want to do:
I have an array with let's say 10 items (keuzes_arr) in it and I want to put 'm on stage randomly, but every item can only be placed once. So I created a little loop, but for some reason the loop freezes constantly.
This loop creates a random number, checks if it's already been used. And if not it use it to place the item on the stage.
PHP Code:
do { randomNum = Math.round(Math.random() * (keuzes_arr.length - 1)); for (j=0; j < randomNum_arr.length; j++) { if (randomNum_arr[j] == randomNum) { randomCheck = true; break; } } } while (randomCheck);
Note: this loop is already in another for-loop, so maybe it's just too much looping ... but I don't see any other way to pull this off.
View Replies !
View Related
Xml Mp3 Player Freezes In IE
I have a flash website that has a xml streaming mp3 player and a preloader bar. It works perfectly in firefox. But when I access it for the first time in Internet Explorer the mp3 player doesnt start it just freezes at its first frame. But if I access the site again the mp3 player will work perfectly every other time I access it. It also works perfectly when I access the file locally so I am guessiing it has something to do with the server. Do any of you know how I can fix this?
View Replies !
View Related
Game Freezes
my Game freezes when the condition is not achieved
it stops for 3 seconds then resumes
What should happen is the ability to attack should go away for 3 seconds
any suggestions
Source file attached
thanks
View Replies !
View Related
SWF Freezes Online
Hi.
I'm working on some simple Flash AS3 development for a client. As of now, I'm nearly there, but for some reason - the swf file suddenly freezes. Its meant to randomly select images (except for the first one), but most of the time it just comes back with the one
The file structure is as follows:
preloader.swf - Preloader.as - file.swf - class.as
You can see what I mean here: http://www.directdesign.co.uk/clients/flipit/
Let me know if this is a common problem, if you need to see the actual class files etc
Thanks in advance!!
View Replies !
View Related
Preloading Swf Freezes At 100%
There is no problem when I test with-in flash, although once uploaded to a server the first time you visit the site (there is an external swf loaded in the index) the preloader freezes when it gets to 100%, displaying the text 100%.
This only happens the first time you visit the site, if you refresh or re-visit there is no problem.
This code is inside an MC and placed on the stage.
This is absolutely killing me, I've finished a website but can't hand it over until I figure out how to fix this. I have searched forums, scoured resources, to no prevail..
I am not a fluent coder, I can slightly understand it and piece it together - but I just can't find whats wrong with this?
==========================
var request:URLRequest = new URLRequest("index.swf");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Progress Event.PROGRESS, loadProgress);
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, loadComplete);
function loadProgress(eventrogressEvent):void
{
var percentLoaded:Number = event.bytesLoaded / event.bytesTotal;
percentLoaded = Math.round(percentLoaded * 100);
this.percentLoaded.text = String(uint(percentLoaded)) + "%";
}
function loadComplete(event:Event):void
{
trace("Load Complete");
}
loader.load(request);
this.addChild(loader);
View Replies !
View Related
Preloader Freezes Up HELP
My page is over 6MB, preloader freezes up some where in 5-6000K. What I should do, create more preloaders? ok, if I do that how I put them in there?
Or is this just too large to net use?
Go there and see it...
www.orientaldecor.fi
View Replies !
View Related
Computer Freezes Up...
Does anybody have a clue why would my computer freez when i tried to look scene 2 in my movie , scene 1 is preloader , scene 2 main movie....
That didn't happen 1 day ago...Is there a bug in MX FLASH 2004....
View Replies !
View Related
Movie Freezes On First Viewing
Hello,
I have created a movie that will run on a site as a promotional advertisement - which will get people to sign-up for the web-site.
It was a long movie, with many graphics, so I had to cut it into 2 different movies. During the first movie, the second movie is loading (in the 10th frame, I believe).
Now, many times, when it is watched only once, the movie stops after the first SWF has completed and then it doesn't advance to the next movie. Now, when you refresh and watch the movie again, it plays fluidly, all the way through.
Anyone know what I can to make this work every time (since it will most likely only be viewed once per visitor)?
Here is the movie: Messed Up Movie
Thank you,
Dan
View Replies !
View Related
Site Freezes Upon Reload
My site was working fine and dandy until i got to work on the preloader....I used the tutorial, "Creating an Advanced Preloader in Flash" by Programming Art, with which I preload my main movie into level 0 and a movie called layout.swf into level 100. It all works the first time you look at it on the web, but if you refresh your window or close your browser and reopen it, the browser freezes and i get the "a script in this movie is causing Flash Player 6 to run slowly...do you want to abort" error message.
Having looked through other people's posts who had similar problems, I've learned that infinite loops will cause this problem. Being as how the movie did not freeze before i created the preloader, is it safe to assume that the problem lies in the preloader? There are no do/while loops in any of the movies i load, and excluding the movie with the preloader, the loaded movies are only one frame in length...so i can't see were it would be looping. Has anyone else had a similar problem with that preloader tutorial?
Thanks
--Jaime
View Replies !
View Related
My PreLoader Freezes The Web Site.
I built a simple preloader in the first scene of a flash movie and place it on a html page. The rest of the html page has an image header and an image footer. When the page tries to load on the web.....the preloader scene freezes and there is a Flash player error that states the script trying to run is complex and it is slowing the flash player too much.....it asks if I want to end the script. I click yes and it stays froozen until I end the task in the task manager.
Now, when the flash is grabbed by itself on the web, that is when it is not sitting on a html page....the movie works great and the preloader does it's job no porblem.
I am sure it has something to do with it being placed on the html page....not sure how to fix it though.
The script for the first frame of the preloader scene looks like this:
if (_framesloaded>=_totalframes) {
gotoAndPlay("Main", 1);
} else {
gotoAndPlay("Preloader", 1);
}
The script for the last frame of the preloader scene looks like this:
gotoAndPlay(1);
Any suggestions on whats going on would be greatly appreciated.
Tom
View Replies !
View Related
Movie Freezes, Next Not Working?
1st if this has been addressed before I appoligize, the boss doesn't like to see me not coding
my problem:
I have to create a flash presentation to be distributed on cd. I kind of know the basics, and I was able to put something together. My problem is that when i compile the movie together with all the scenes, some simple do not work. the time line navigation is consistantly the same though the movie so I am at a loss as to why it freezes on some scenes and works fine on others. If i compile each scene idividually they work as intended.
I would love some help on this.. and it's for a non-profit human services organization; so you can feel like you are making a difference
Zip file is below in MX
ZIP FILE
Problem 1st appears in scene 12
View Replies !
View Related
Flash Freezes With This....help Me Defrost
hi all
Please help my sanity!
I have a mc which I want to duplicate approx 10 times. each mc will following the first, scrolling across the screen to its destination with a bounce effect at the end...but I cant even duplicat this mc for some reasons flash freezes. Can anyone help.
code:
for (i=1; i<7; i++) {
duplicateMovieClip(_root.frontpage.homepageimages. homeimage03.mainimagemask.bounce, "bounce"+i, i);
this["bounce"+i]._x = (i*45)+75;
this["bounce"+i].xpos = (i*75)+50;
}
I sit and wait in hope!
View Replies !
View Related
Actionscript Freezes The Player
I use Flash MX, the syntax checker reports no errors but, when it runs it freezes the player. Sending an error message: "The script causes the player to run slowly, do you want to abort the script?"
on (release) {
{
shortabout._alpha=0;
var i=0;
do {
shortabout._alpha=shortabout._alpha+i;
i+20;
}
while (i<101)
}
}
Maybe I should not attach the loop to the on (release) mouse event. If so, where should I put the code?
Thanks for looking
View Replies !
View Related
Check Site To See If It Freezes?
Can I have a few people let me know if this freezes on them?
http://www.bizztools.net/rm.html
One of my clients said it stalled and only half of it loaded and then did the
"this script contains bugs,..." pop up window.
If it stuffs up for you can you tell me what OS and broser you are using and if you know what version flash you have.
Do the green red and yellow lines appear in the graph?
Thanks
View Replies !
View Related
[F8] Flash Freezes Up With Actionscript
Okay, for class, we have to make an animation with a turkey. That was the only guideline.
My Idea: Have the turkey controllable by the arrow keys(Actionscript). When you go to a certain spot on the Y-axis, a ball from off screen shoots at the turkey till its right before it(Actionscript). Then, it goes to a new scene or further in the frames and it shows a 'blood' splat and the blood does a shape-tween into 'Happy Thanksgiving'.
My Progress: So far, I have the turkey controllable. >_> Thats about it. I really don't know how to get it to jump to frames/scenes, when I tried earlier when I tested my movie it just looped straight through without pausing on one scene, meaning it just flashed the first and second scene repeatedly.
My problem: Other than above, which i would be very grateful if someone answered, is that I somehow produced a code for the 'bullet' that somehow freezes flash.
Heres the code:
Code:
onClipEvent (keyDown) {
var dtx = this._x-Turkey._x;
if (Turkey._y-this._y<=50) {
for (dtx; dtx<=10; dtx-5) {
_x = _x-5;
}
}
}
The Variable dtx was intended to get the distance in x between the bullet and the turkey
If anything else is needed lemme know.
View Replies !
View Related
XML Loading Freezes Flash
I believe the title explains my problem pretty well. I can't see why this would freeze flash though :/
ActionScript Code:
//MAIN
var traceOn:Boolean = true
var frame:Number = 0;
var nlines:Number = 0;
var lArray:Array = new Array();
var lArrayB:Array = new Array();
var lInterval:Array = new Array();
var textcolor:Number = 0x8DEAFE;
var listener:Object = new Object();
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.load("xmlData.xml");
menu_Button_Header = [];
menu_Button_Tooltip = [];
myXML.onLoad = function(success) {
if (success){
for (i=0; myXML.firstChild.childNodes.length; i++) {
menu_Button_Header[i] = myXML.firstChild.childNodes[i].attributes.header;
menu_Button_Tooltip[i] = myXML.firstChild.childNodes[i].attributes.tooltip;
//trace(menu_Button_Header[i] + ", " + menu_Button_Tooltip[i]);
}
}
}
My xml file is in the same folder as my fla.
Code:
<?xml version='1.0' encoding='utf-8'?>
<pages>
<page header="Info" tooltip="More information about us and this site." />
<page header="Mental Mayhem" tooltip="A sidescrolling game with a deep story." />
<page header="Sinister Shoot-out" tooltip="Our newest project and so far the most fun one." />
</pages>
Any reason why this would freeze flash?
View Replies !
View Related
Pop-ups + Audio Stream In Swf = IE Freezes?
What can that be
I have created several swf files, in different pop-up windows, as audio players in order to preview an Album.
You can check it at: http://www.venue-athens.com/eng/music/index.php
The situation is that if you start previewing the album and closing the pop-up windows (before the audio ends) after the 4th - 5th try internet explorer freezes.
Any ideas on that?????
View Replies !
View Related
Swf File Freezes Browser :s
hi
please help, I have a flash MX swf file that freezes the browser when included in a web page. It calls text from an external .txt file.
I've put it here:
http://www.iainwebber.co.uk/cv/testpage.htm
many thanks!
iain
View Replies !
View Related
Trace Bitmap....freezes
Trace bitmap works fine on "looser" settings but when I try to get the greatest fidelity by using tighter settings, it traces
about 3/4 and then just freezes up and i have to force quit Flash and start over.
Any idea??
This is the tight setting I'm using to maintain picture fidelity:
Color Thres: 10
Min Area: 1
Curve: pixel
Corner Thres: Many Corners
I've also tried using smaller size jpegs and bitmaps....no cigar.
thank you!
View Replies !
View Related
Quicktime Export Freezes
When I export to quicktime from CS3 the progress bar moves all the way to
the right then freezes. I have left it overnight and still it hasn't
changed. It is only a short Flash movie. What's going on??
I notice some other threads in this NG which seem to point to the same prob,
though not sure as over-zealous mod removes posts from less than 2 months
ago so can't see full thread!
View Replies !
View Related
FileReference Upload Freezes
I am building an app that needs to upload files to a web server. Very straight-forward stuff: I create a FileReference instance and assign a SELECT event listener. I call browse() when they click the browse button. When they select a file, I assign event listeners for CANCEL, COMPLETE, IO_ERROR, PROGRESS, SECURITY_ERROR, and HTTP_STATUS. Then I call the upload() method. I assign some URLVariables to the URLRequest object that is passed to the upload method (the account ID, what I want the file to be renamed to, etc.). Nothing out of the ordinary as far as I can tell. But...
For some reason, Flash will randomly freeze up during the upload. If I am testing it in the Flash IDE, it freezes up Flash entirely and I have to kill the IDE's process. If I am testing it in a browser, it locks up the browser (all tabs) and I have to kill the browser's process. I can't find any rhyme or reason to why this is occurring. The only thing consistent is that it only occurs during the upload. Sometimes it works flawlessly, but other times (about half the time) it freezes up. The freeze happens at random points during the upload as well; sometimes it never shows any progress before freezing up, sometimes it gets to 68%, other times it gets to 100%. I'm running an XMLSocket in this application as well, could there be some sort of networking issue with these two systems running simultaneously?
Some details:
The OS is Windows XP.
The Flash version is 9.0.
It uses ActionScript 3.
Any help would be greatly appreciated.
Thanks
View Replies !
View Related
LoadVars Can't Access URL - Then Freezes
Hi,
Guys did that ever happen to any of you before? You use a loadVars object (or even a loadVariables object) to get some data from a URL , but the server of that URL is down (or some kind of problem is happening with it),,.. and then it's as if your flash movie is just looping forever to get it?
Ofcourse, you then get the window saying something like "A script in this movie is letting your movie stop working. Do you want to abort the script" more or less.
Is there some kind of timeout function that I can use, in case loadVars can't access that URL, then it just breaks, and continues normally????? Ofcourse, giving a bad URL , will just give an onLoad event, with a "false" parameter, indicating that the URL wasn't loaded successfully.. but I'm talking about when the URL actually exists, but say the server is startign up, or there is a problem with, say, the Apache server on there... or something.
I hope my problem is clear.
View Replies !
View Related
FLV Plays One Frame Then Freezes
Does anyone know of any reasons that this might be happening?
ATTACH CODE-----------------------------------------------------------------------
var my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.html = true;
my_xml.onLoad = function(success) {
if (success) {
var videos = this.firstChild.childNodes;
var number_vids:Number = videos.length;
for (var i = 0; i<number_vids; i++) {
var currVid = videos[i];
var currVidElements = currVid.childNodes;
var currVidTitle = currVid.firstChild;
var currVidImageFile = currVidTitle.nextSibling;
var currVidImageFile_str = currVidImageFile.firstChild.toString();
var currVidHead = currVidImageFile.nextSibling;
var currVidVidFile = currVidHead.nextSibling;
var currVidVidFile_str = currVidVidFile.firstChild.toString();
var currVidLength = currVidVidFile.nextSibling;
var currVidLink = currVidLength.nextSibling;
var currVidLink_str = currVidLink.firstChild.toString();
// trace("Elements "+i+": "+currVidElements.length);
// trace("Title "+i+": "+currVidTitle.firstChild);
//trace("Image File "+i+": "+currVidImageFile.firstChild);
// trace("Head "+i+": "+currVidHead.firstChild);
// trace("Video File "+i+": "+currVidVidFile.firstChild);
// trace("Length "+i+": "+currVidLength.firstChild);
// trace("Link "+i+": "+currVidLink.firstChild);
var the_video = _root.vid_menu.vidClips.attachMovie("vidclip_maste r", "vidclip_"+i, 10+i, {_x:0, _y:90*i});
the_video.onRelease = function() {
var theString:MovieClip = this._name;
var thesubString:String = new String();
thesubString = (theString.substring(theString.lastIndexOf("_")+1, theString.length));
var theNumString:Number = Number(thesubString)+1;
// LOAD VIDEO
load_the_vid(theNumString);
//trace("videos/clip0"+theNumString+".flv");
};
B_lank.onRelease = function() {
getURL(currVidLink_str, "_blank");
};
the_video.highlighter.onEnterFrame = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 100;
} else {
this._alpha = 0;
}
};
the_video.image_holder.loadMovie(currVidImageFile_ str);
the_video.Clip_number.htmlText = currVidTitle.firstChild;
the_video.Title.htmlText = currVidHead.firstChild;
thevideo.Duration.html = true;
the_video.Duration.htmlText = currVidLength.firstChild.nodeValue;
}
}
};
my_xml.load("videos_r2.xml");
_root.vid_menu.scroller.up_but.onRelease = function() {
clearInterval(moving_dn);
};
_root.vid_menu.scroller.dn_but.onRelease = function() {
clearInterval(moving_up);
};
_root.vid_menu.scroller.up_but.onDragOut = function() {
clearInterval(moving_dn);
};
_root.vid_menu.scroller.dn_but.onDragOut = function() {
clearInterval(moving_up);
};
_root.vid_menu.scroller.up_but.onReleaseOutside = function() {
clearInterval(moving_dn);
};
_root.vid_menu.scroller.dn_but.onReleaseOutside = function() {
clearInterval(moving_up);
};
_root.vid_menu.scroller.up_but.onPress = function() {
clearInterval(moving_up);
moving_dn = setInterval(move_em_dn, 10);
};
_root.vid_menu.scroller.dn_but.onPress = function() {
clearInterval(moving_dn);
moving_up = setInterval(move_em_up, 10);
};
function move_em_up() {
if (vid_menu.vidClips._y>=(-1*(vid_menu.vidClips._height-150))) {
_root.vid_menu.vidClips._y -= 1;
}
}
function move_em_dn() {
if (vid_menu.vidClips._y<=10) {
_root.vid_menu.vidClips._y += 1;
}
}
function load_the_vid(theNumString:Number) {
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
stream_ns.setBufferTime(.1);
thevideo.attachVideo(stream_ns);
//stream_ns.play("videos/chris_close_for_import.flv");
stream_ns.play("videos/clip0"+theNumString+".flv");
stream_ns.onMetaData = function(infoObject:Object) {
for (var propName in infoObject) {
trace(propName+" = "+infoObject[propName]);
}
};
stream_ns.onStatus = function(infoObject:Object) {
trace("infoObject: "+infoObject.code);
if (infoObject.code == "NetStream.Play.Start") {
//stream_ns.pause();
stream_ns.clear();
}
if (infoObject.code == "NetStream.Play.Stop") {
}
};
}
View Replies !
View Related
Loop Freezes The Game
im trying to make a vision field that will stop you from seeing anything but what he sees in front of him, it works so far but when he rotates near 180 or -180 the game freezes, i have no idea what to do use the arrow keys to make him look right and left and when he looks to close to the left the screen freezes.
View Replies !
View Related
Preloader Freezes While Downloading XML
Problem: My preloader freezes while downloading the XML file and all of a sudden displays the data.
I am working with a Flash file that has a AS 3.0 code on the first frame that displays the preloader and plays it. The entire preloader is in a separate movie clip that is dragged onto the stage (Frame 1) and given an instance name. No where in the AS coding do i see that instance name for that movie clip being used. XML file is being parsed in Frame 10 and is displayed in Frame 15. I want it to show the preloader while it is downloading or parsing that XML. Any suggestions, as to what could be causing the problem.
Thanks,
View Replies !
View Related
Preloader Freezes In Explorer
Works fine in firefox. However in IE, movie loads fine first time, but if the page refreshes, it hangs at the preloader. May be a classic problem, I see it mentioned a lot, but I haven't been able to find any easy work-around. Of course, once the movie is loaded remotely, it's cached, so not sure how to tell IE that. Tried various other things like Math.round and pcent >= 99 to no avail.
Here is the code:
Code:
import flash.display.*;
this.stop();
this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING);
function PL_LOADING(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
lbar.scaleX=pcent/100;
lpc.text=int(pcent)+"%";
if(pcent==100){
this.gotoAndPlay("start");
}
}
thanks
View Replies !
View Related
Flash Download Freezes
I thought I'd chuck this one out to the'panel' to see if anybody had experienced similar problems.
When I'm looking at BS sites and sites for critique on US, I very rarely experience a case where the % loading bar just basically freezes and I have to hit refresh to start reloading it.
However, this happens quite a lot on my own sites I've noticed, as have some of the people who are trying to look at them.
Is this because I've coded it badly or is it more likely to do with the host I'm using? (who is fairly cheap, it has to be admitted).
Any advice would be gratefully received (although not on the banned hosting topic! )
Cheers,
Robbie
View Replies !
View Related
Swf File Freezes When Loading
Hi guys,
I have a problem with a flash site that was built in Flash Pro 8.
It only loads halfway and freezes. But if you hit refresh, it will continue loading from where it froze.
The swf file is 1.62mb.
When exporting the movie in flash there are no signs of bugs.
My internet connection is 1.5 mega bit. and seems to load no worries, but i've also tested it on 256k and 512k connections and this is when the problem seems to occur.
The site is hosted on a mates web server. He checked it out as well and has the same problem. He checked and there is nothing on the server side of things to be causing this to happen.
He suggested trying a flash debugging program to find where the problem is.
I'm not too good with stuff like this, so I don't know where or how to check this kinda problem.
Can anyone please point me in the right direction as to how I can solve this dilema.
Any help would be truly appreciated. This is annoying the hell outta me!
Thanks for your time guys.
Cheers
Pnut
View Replies !
View Related
Animated Custom Mouse That Freezes
I am trying to use a movie clip to cover up the mouse. When you click the hand closes and picks up the tiger, but then after that, the hand freezes up. Does anyone know what my problem might be? Please check it out at...
http://www.uebs.stier.org/tigerpickup.swf
view the .fla at
http://www.uebs.stier.org/tigerpickup.fla
please let me know what you think my problem might be. Thanks a lot.
-Chris
View Replies !
View Related
Text Tool Freezes Application
I am using Flash MX on Win NT 4. I am able to create a simple movie using shapes, but as soon as I click the TEXT tool and enter a word in the text field, Flash "freezes". I must use "Task Manager" to exit the application, and the same thing continues to happen. I've also tried to export movies to .swf and though I can view them on my machine, others can't.
I'm a newbie and need a nudge in the right direction... how can I figure out what's going wrong here? Any help appreciated.
Lori9
View Replies !
View Related
|