How To Detect If A Flash File Is Broken
Hello. I can't believe I found nothing about this when searching the net... but here goes:
How can I see if a flash file (.swf) is broken?
And by broken I mean it hasn't been downloaded/uploaded completely. Like if you upload a flash file to your friend and when the file is only 75% uploaded your Internet goes down.
The flash file have complete headers and background information/dimensions etc, but it does not have an ending! When a broken flash file is played it will either not show (if you right click it it will say "Movie not loaded") or in some cases play like normal up until the end where it will just stop.
I have now explained how we humans know the flash file is broken. What I wish to do is detect wheather it is broken or not by using a program (.exe) or by executing code (PHP/ASP).
Is it possible to search for a end byte or something? I'm assuming the flash format has some sort of end-of-file signature, but I'm not experienced with such things so I need your help.
--
Short version of above:
How can I detect if a flash file hasn't been downloaded completely by means of a program or a script?
Important: Please understand that involving the program that either recieves or sends the flash file is not an option. The solution must be appliable to any old flash file found on your hard drive to check if it's broken or not.
--
It is very important for me to find a solution to this problem, and I'm sure the answer will be appreciated by many surfing to this page through their search results.
Thank you for your time.
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 05-10-2008, 12:55 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Detect A Broken XML From Server - Please Help
Hello,
I'm working on a client-server app which receives large XML through XMLSocket.
The problem is that the java machine on the server sometimes splits large XMLs into 2 or more shorter strings.
meaning that the following XML:
Code:
<doc1 name="test">This is some text< /doc1>
might be sent in this formif it was much longer)
XML1:
Code:
<doc1 name="test">Thi
XML2:
Code:
s is some text< /doc1>
Now, I can catch these XMLs in 2 ways:
One is with the XMLSocket.onData event which will give me the 2 XMLs string which I could concatenate together and parse, but, that would require me to write my own XML parser, which will probably be less efficient than the core library parser.
The 2nd option to get these cut XMLs is through XMLSocket.onXML which is equivalent to parsing the cut XML documents. If I could get error messages upon parsing wrong structured XML (like the cut one) I could probably solve it, but instead, the XML class parser just adds the missing closing tags like that it would look like if we parse the first cut XML:
Code:
<doc1 name="test">Thi</doc1>
I don't have any idea how to detect these kind of XML documents, please help me with this.
Thanks a lot.
Me.
Detect Broken Image Links Before Loading On Stage
I've just finished a flash projector for my company's lobby that displays all members of the staff in a dynamically generated grid with a page for each department. Flash reads an xml file generated from our Active Directory using php.
I've just discovered a bug. We have several employees that don't wish to have their images displayed; the autogenerated path to their images are therefore false. When the screen loads, a blank space appears where the movieclip is supposed to load.
How do I detect that the image link is bad (must be simple as flash gives out debug errors)? I would like to load an alternate image for staff with missing images.
Here's a snippet of where the movie clips are generated:
Code:
for (i=0;i<nodes.length;i++) {
attachMovie("container", "new"+i, i, {_x:xPos, _y:yPos});
//load the image from the xml nodes array
this["new"+i].photo.loadMovie("images/staff/"+nodes[i].attributes.photo);
}
Help File Broken
My Flash help file now just displays the drop down index and no content, some sort of corrupt file I imagine. Anyone know how to fix this?
Broken Help File
My Flashelp File is broken, can open it drop open directories but no help files will trigger. Anyone know of a fix other than reloading it from the install disc?
Help File Broken
My Flashelp File is broken, can open it drop open directories but no help files will trigger. Anyone know of a fix other than reloading it from the install disc?
Download Link To M4v File Broken...
i've been trying to get a button (within a flash site) to trigger the download of a m4v file to the users' computer (and then launch itunes, would be nice). a getURL alone can't find the file... but i tried going through a PHP file, and it only downloads .3KB of the file. i'm not familiar w/ PHP, and i'm tired...
any ideas?
-thanks
Detect When Flash File Ends By Closing Browser Window
Okay, this one was hard to explain in the title.
What I want to do is know when a user hits another web address or closes the browser window so that I can write out the session ended information to a database. Is this possible? I write to the database when the swf file is started, and can write to it if I hit an end button within the swf file, but my concern is - what if someone doesn't hit the end button and just closes the browser. Can that be captured from flash or some other script?
Thanks for any help.
How To Detect The End Of FLV Movie File Which Is Embede Into A SWF File?
Hello everyone,
I have a Flash Movie File (FLV) which has been embeded into a SWF file. I use the following code to call the external SWF file into another SWF file which is loaded into my website.
// Create a Movie Clip to load the swf Movie into
this.createEmptyMovieClip("MyExternallyLoadedSWFMovieHolder", 0);
/* Create a variable to hold the location of where the external swf Movie can be located and the file name of the swf Movie to be loaded in externally as an externally loaded swf Movie. e.g. the path to the image could be like c:myFolderMySWFMovie.swf or http://www.MyWebSite.com/myFolder/MySWFMovie.swf or if the swf file is in the same location you can use just the swf file name. */
// Change the URL below:
var MyVariable = "demo.swf";
// Set the loaded content's location on the Stage
MyExternallyLoadedSWFMovieHolder._x = 0;
MyExternallyLoadedSWFMovieHolder._y = 0;
// Stop on this frame
stop();
I am using GetURL() to load the html that has the movie file in it.
I would like to close the pop-up window omce the movie reaches the end. Can someone tell me how I can do that?
Thank you very much and have a great day.
Khoramdin
Edited: 10/05/2007 at 11:54:17 PM by Khoramdin
How To Detect The End Of A .swf File?
Hi Guys
I'm pulling my hair out trying to figure this one out?
I originally had a load of .flv videos that I was playing & using an addEventListener to detect the end of the video & replay it (as in a loop), see below:
ActionScript Code:
<mx:VideoDisplay id="myVideo" show="setupVideo();myVideo.play()" source="videos/myVideo.flv" maintainAspectRatio="true"
height="70" volume="0" autoPlay="false" autoRewind="true" />
public function setupVideo():void {
myVideo.addEventListener(VideoEvent.COMPLETE, replayVideo);
}
public function replayVideo(e:Event):void {
myVideo.play();
}
I now have to create a standalone copy of this Flex application that can be run from a CD.
My problem is, you need to embed the video to get it to play, but you can't embed .flv files, so I converted them to .swf files,
embedded them but now can't detect the end of the video playback to restart it?
Thought I could do something like this?
ActionScript Code:
<mx:Image id="myVideo" show="setupVideo();myVideo.load()" source="{myVideo}" height="70" maintainAspectRatio="true" />
[Embed(source="videos/myVideo.swf")]
private const myVideo:Class;
public function setupVideo():void {
myVideo.addEventListener(Event.COMPLETE, replayVideo);
}
public function replayVideo(e:Event):void {
myVideo.load();
}
Any help would be much appreciated...
Thanks
Neil
I Seem To Have Broken Flash
Its displaying the layers, the timeline, and the work area as 3 columns rather than the timeline on top.
How do you make it go back to having thee timeline on the top. Its driving me insane, and ive no idea how i did it, or how o change it back!!
?
[F8] IS Flash Broken?
I have a question, I am working in Flash8 using ActionScript 2.0, document is set up as a 2.0 document, so that shouldn't be the problem. I am scripting a simple preloader. This EXACT script has worked on other animations so I am not sure what the problem is.
within my first scene i have a 1 frame layer for the action stop();
and on the layer below it i have a 1 frame movieclip called preloader
within preloader i have a dynamic text field called pc_txt with the variable "pc"
on a script layer i have the following:
var pc = 0;
this.onEnterFrame = function(){
pc = Math.floor((_root.getBytesLoaded() /_root.getBytesTotal()) *100);
this.pc_txt.text = pc+"%";
if (pc>99) {_root.play();}}
IT WILL NOT PLAY THE MOVIE!, the dynamic text field updates fine, but when it gets to 100% the movie will not play, it will not go to the next scene no matter what I do, unless I rightclick and press play. What could be the problem?
**edit : nothing will play this movie except for eliminating the stop on the first scene... I even tried scrapping the preloader and just having a simple button that advances to the next scene. it does not work either...
Is It Me Or Is My Flash Broken?
Hi,
As from yesterday, whenever I click a tool in the tool menu (selection,oval, rectangle, line) the 'options' at the bottom of the tools menu (where u find the snap to object, and object drawing mode) dont change! Its frustrating because I need to be able to turn object drawing mode off but my object drawing mode isnt there!
Is my flash broken or have i hidden them?
Please Help!!
Detect Changes In External File
The title doesn't quite say it all, but it gets me started.
An MC on my stage contains a dynamic textbox with the variable myNum. The variable is imported from a tiny text file in the same directory. The MC is 2 frames long and continually loops, pulling the variable in using loadVariablesNum. The text file is editable outside of Flash by other users.
I'm trying to add a sound event, but ONLY if the variable changes. The problem I'm having though is that your everyday detection code, onChanged doesn't respond. I'm guessing because the change it's looking for is within flash, not without.
Is this making sense? If so, any way around it? Can I succesfully detect a variable change, if it happens outside of flash, as it's being pulled in?
Detect The Version Of A .swf File
Is there a way, either in flash or windows to figure out what version of flash a .swf file has been exported?
I'm not asking about the users player version, but the version of a .swf file.
(We've got several dozen .swf files that have been exported in different versions and need to know which ones are what.)
Any info or direction would be appreciated.
Flash Bug, Or Broken Brain
I don't know if this is because of my scripting, or is flash just being mean to me? Does anyone have any suggestions on fixing this problem? When you click on the buttons and wait for the MC animation to finish everything works fine, but when you quickly click on the btns it screws everything up. Please try out the movie and advise:
http://xotex.net/jenni/beta_1.html
Its pretty basic, I have this function which controls the menu:
subNavX's are the little bottom menus MCs that slide down. each button call the function like setTopNav(1) etc.
function setTopNav(x) {
if (_root.state == 0) {
_root.state = 1;
// its open
eval("_root.subNav"+x).gotoAndPlay("open");
debugText.text = "open = " + x;
oldx = x
} else if (state == 1) {
// its a closed
_root.state = 0;
eval("_root.subNav"+oldx).gotoAndPlay("close");
debugText.text = "closed = " + x;
}
}
Thats it.
The sliding animation is in the MC.
Please don't laugh!! This is the only way I could think of doing it... Can anyone offer a better way??
Thanks,
-- jenni
Help On The Mac Flash Player Broken?
Hello all,
I have been building a nice simple product demo piece. Nothing too fancy and, all in all, some quick and dirty ActionScript that makes my insides cringe at the sloppyness of it all.
Well, point is, as I am starting to add some pizzaz, motion and other things to make it more visually appealing, I found myself testing on a Mac and Bam, half my buttons are not working!
this.onPress = function() {
if (bText != "loading...") {
_root.gotoAndPlay(100);
}
}
This is an example of the button. Very simple eh? Same thing on each of my buttons (frame number chages), YET on the last two buttons they just don't work at all.
In addition, I have some roll-over buttons that simply do not work.
So, anyone know of this bug? Buttons working and then not working?
Point being, all this runs great on the PC.
Thanks!
CreateTextField - Flash 8. Broken?
Hi
I'm using Flash 8 / AS 2.0.
I have the following code within a class which extends MovieClip:
Code:
private function addBalloonText(balloonRef:MovieClip):Void
{
trace(balloonRef);
var tf:TextField = balloonRef.createTextField("_balloonText",
balloonRef.getNextHighestDepth(),
0,
0,
balloonRef._width,
30);
trace(tf);
var format:TextFormat = new TextFormat();
format.color = 0x000000;
format.font = "Arial-12";
format.size = 12;
tf.antiAliasType = "advanced";
tf.embedFonts = true;
tf.thickness = 20;
tf.gridFitType = "pixel";
tf.multiline = true;
tf.wordWrap = true;
tf.text = "Here is some dummy text, just for testing";
tf.setTextFormat(format);
trace("balloon text ref is " + tf);
}
When I pass a reference to my balloon clip (a valid movieclip on the stage) in the method the 'trace(tf);' prints 'undefined'. When I pass a reference to 'this' in the method everything works as expected.
Any ideas? Is this a bug in flash?
Detecting A Broken Url Within Flash
When using a bad url in the loadMovie() function, you'll get an output window saying "Erorr Opening URL...". Anyone know of a way to detect this in flash in order to set a variable to false once this happens?
Php Switcher + Flash + IE = Broken?
I am using the PHP switcher by Chris Clark (http://www.alistapart.com/articles/phpswitch/)
and I am using a small flash interface to switch styles. 4 to be exact.
I had this working before so i know it is possible.
What is the problem is that when a user clicks on 1 of the style selectors (a star shape) it does not change the style, it simply goes to the index.php , only after pressing on a navigation link does the style change to whatever was picked.
You might think this to be a php issue, but I have spoken with chris and his only guess as to what is happening is that IE is caching a little over-aggressively.
I believe it might be some settings in Flash or the flash version.
This Flash style switcher does work perfectly in Firefox btw.
Is there some issue known between using a flash and a php link in IE? Any guidence or help is appriciated.
the way I have the flash link is as follows:
Code:
on (release) {getURL("http://domain.com/switcher.php?set=main", "_self");}
Broken Flash Php Mailer...
I've made one before (infact I just copy and pasted the code from one flash file to another, and copyed my .php file to the new server because I was lazy).
this is the code in my flash file
Code:
stop();
///////////////////// php mailer
send_mc.onRelease = function() {
//mail($address, $subject, $memo, $mail)
_root.address = "alexstudio.us@gmail.com";
_root.subject = "Flash Mailer";
_root.memo = memo.text;
_root.headers = mail.text;
//
//defines PHP server loc
url = "http://www.alexjsmith.com/emailer.php";
//
//sends data to server
_root.loadVariables(url, "POST");
//
//sends user to "confirmation" screen
play();
};
then I have two input text filds with the instance names.
the php script at alexjsmith.com is as fallows
PHP Code:
<?php
mail($address,$subject,$memo,$header);
?>
but I dont get an email. I dontknow a lot about php so I dont know whats going on.
I do know if I point my actionscrtip to my old server I'm about to stop using, to the same exact php file, it works fine.
I've contacted my host and they dont know whats wrong, they wrote a simple email script and it works
PHP Code:
<?php
$to = 'alexstudio.us@gmail.com';
$subject = 'the subject';
$message = 'Test message has been sent to alexstudio.us@gmail.com';
$headers = 'From: webmaster@example.com' . "
" .
'Reply-To: webmaster@example.com' . "
" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
echo "Test message has been sent to alexstudio.us@gmail.com";
?>
again I dontknow much about php but did a new version come out recently? Maybe this is old? or I have to load the vars a new way? IDK!
HELP! >,<
Library Broken In Flash CS4
Hi,
I have Flash CS4 running on Mac OS X Leopard.
The library in my FLA documents only shows previews of bitmaps. The buttons, graphics and movieclips have a blank space instead of the preview.
Could anyone please advice?
Thanks
New Version Of Flash Broken For Me
For some strange reason, the new version of Flash Player in both Firefox and IE cause a strange problem: videos (ie youtube) will play, but the image will constantly shrink to 1/3 size then grow to full size back and forth. It makes videos nearly unwatchable. This happened right after one of the automatic updates. Strangely, not every video does it, so it seems to matter which flash version was used for encoding.
I've tried uninstalling and reinstalling to no avail. This is incredibly frustrating...
My Flash Player's Broken?
hey all!
So I recently stepped up to the plate and bought a new computer and all the 2004 MX stuff. I went to work on my first project in flash and then published it just on the hard drive. Before, my flash player was working fine in Internet Explorer, but now it doesn't load the swf at all. It just sits on whatever page and says it's loading, but does nothing.
I right click on where the flash is supposed to be and it says that it is Flash Player 5!! What happened? I went to the link to download the newest player and it just sits there and doesn't load anything.
I then opened up a Mozilla window and that still works fine. In Mozilla the player is version 7.
Anybody have an idea of what has happened? I tried doing a search, the the PHP script is returning an error so I couldn't search.
Help..Please...
Flash Looks Like Broken Image?
I have a movie published to flash 7, in the html its embed as 7.
Everytime I check the movie in html it initially displays the movie as broken... why is this?
should I be setting the embed to 6?
Detect Size Of External File From Swf?
Can i detect size of external file from swf?
I have btn link in SWF for XSL file and the file is 1 mb big.
I possible to detect the size of XLS and then show e.g. with preloader the downloaded size?
i use FL MX
thanks jan
Detect Localplayback For Ext. File & Cachebusting...
Most of what I do with flash revolves around injesting XML. One of the biggest problems with that is browser caching. I've seen a number of "best methods" to go about making sure caching never happens, but what would you recommend?
In my case, I always allow my developers to choose where the XML is located via FlashVars in HTML so that they can swap XML quickly. Currently, I've found the following to work really well, but I don't enjoy having to change the _localplayback boolean when I'm testing vs. sending to production. i.e. is there any way I can just detect if playback is on a local machine vs. a webserver?
Here's my AS3 version:
Code:
private var _localPlayback:Boolean = false;
if (_localPlayback) {
_xmlURL = "xml/testData.xml";
} else {
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
_xmlURL = String(paramObj["xmlURL"]) + "?cachebuster=" + new Date().getTime();
}
_dataLoader = new myDataLoader(_xmlURL);
And small second question...what's the best method for creating the cachebuster string? Seen lots of ways to do that to "make sure" its totally random.
Is There A Function To Detect File Names?
Hi Guys
I'm using actionscript to create a custom navigator for a PDF Portfolio. Currently my navigator uses the function getFileExtension(value.filename) to detect the filetype, and then assign an appropriote icon. I'm wanting to change it so that it dectects the filename, and assigns the icon based on that instead. Are there any functions like that, something like getFilename()?
Thanks
Can I Detect Size Of External File From Swf?
Can i detect size of external file from swf?
I have btn link in SWF for XSL file and the file is 1 mb big.
I possible to detect the size of XLS and then show e.g. with preloader the downloaded size?
i use FL MX
thanks jan
Can I Detect Size Of External File From Swf?
Can i detect size of external file from swf?
I have btn link in SWF for XSL file and the file is 1 mb big.
I possible to detect the size of XLS and then show e.g. with preloader the downloaded size?
i use FL MX
thanks jan
Can You Detect Wich File Is Loading?
is there somekinda function or so that are able to detect wich swf is currently loading and trigger some code accordingly?
say I want a holder to move to B if 01.swf is loaded and to C if 02.swf is loaded ect. ect.
Flash Player Beta : Tell Us What Is Broken
We are currently running a public beta of the next version of the Flash Player. You can find more info here:
http://radio.weblogs.com/0106797/2002/10/18.html#a313
The beta includes Windows, Mac and Linux builds.
We really need developers to test their content and report ANY bugs with the player. This will help us ensure that we produce the best player possible.
btw, we are giving away prizes for the top beta reports (xbox, ps2 and a few other things).
mike chambers
mesh@macromedia.com
Broken Links - Flash Virus?
I have made a flash website for my band, I taught myself how to use flash so some of the methods may seem strange. However, upon completing the site all of the links from frame to frame and scene to scene have become messed up - if i click a button that is supposed to take me to a certain frame, it takes me to a completely different one. I have no idea whats causing this, all the actionscript seems correct. Is there such a thing as a flash virus? Please help me!!!
p.s if you want to see the file i could email it to you but it's too large to post here
Elastic Slider... Broken For Flash 7 And 8
I have this script for an elastic slider. It works great in flash version 6 or lower but it won't work when I export for flash 7 or 8.
I think it may be due to the 'prototype' property... or it may be a more simple syntax error which I haven't spotted.
Does anyone have any idea how I could make this work for flash 7 or 8??
source file is attached.
here is the code that's in it:
code:
MovieClip.prototype.elasticMove = function(target, accel, convert) {
step = step * accel + (target - this._x) * convert;
this._x += step;
}
code:
onClipEvent (enterFrame) {
elasticMove(_root.newX, 0.7, 0.3);
}
onClipEvent(load){
_root.newX= 303;
}
code:
on(release){
_root.newX=960;
}
[F8] HTML With Flash On CD-ROM - Broken Links
This has probably been covered before, but I can't find the answer and I am losing what sanity I have left.
I have a series of HTML pages; some contain Flash, some do not. These need to reside on a CD-ROM and work together. Problem is, links on pages with Flash will not open pages without Flash, and links on pages without Flash will not open pages with Flash. (These are HTML links, not links in the Flash). If I post these pages on my web server they work fine -- unfortunately the client wants to distribute on CD.
The Flash was published with local network security set to Access Local Files Only. Files are embedded using the Active Content Update - HTTP method in Flash 8. None of the pages access or link to anything outside the CD.
What am I missing?
MediaDisplay Broken In Flash Player 9 For PPC
I had been using a MediaDisplay object to play MP3 files on my site for a while now. When I upgraded to the flash9 player, it completely stopped working. This happens if I load the MP3 files with a full URL or a local one. I get no info in firefox, but in Safari, I get a message "Plug-in cancelled" in the activity window with the file reference. What is going on here? This is on OS X. I haven't tried it on windows yet.
UPDATE: I just tried this on mactel and it works fine with the v9 player, so it looks like this is a PPC-only bug.
UPDATE2: I tried it on XP and it works also. I also tried other flash-based mp3 players like XSPF Web Music Player on sourceforge and that didn't work either.
UPDATE3: I upgraded to the latest player by going to adobe.com/downloads and I still have the problem.
Edited: 01/10/2007 at 09:57:03 PM by UCKevinG
Broken Audio After Flash Upgrade
I did the Flash upgrade, now I have zero audio on all Flash media from all sources.
This is something lots of people are experiencing but there's not much about the issue from Adobe sources.
Our IT specializes in medical systems in the Denver area and he says there are several doctor's office machines and hospitals experiencing the same thing.
Also a Google search for 'flash player audio not working' returns 40 MILLION search hits.
Is there a fix for this yet?
Lance, the IT, got some of the doctor's machines working by unistalling 9, installing FoxIt (to, I think he said block AIR from reloading but I'm not sure) and reinstalling 9.
That didn't work on my video editing workstation. (Notice I said video editing... getting this to work again is VERY important to my work day!!!)
Is there a standalone version of Flash 8 that can be rolled back to?
To quote Jim Carrey as the Grinch...."What is the DEAL?"
Flash Software - Broken Images
Hi!
I have this banner program that runs in Flash. On my desktop the program displays broken images for all of the graphics. The software company seems unable to find a solution for me. The weird thing is the program will run on my laptop just fine. So is there a Flash setting I need to adjust on my desktop? I have FlashPlayer 9 installed on both. I have tried uninstalling Flash using Adobe's uninstaller. I've installed Flash 8 (their solution), but the program will not even load. So I tried Flash 10, same issue with broken images, so went back to 9.
Any ideas?
Julie
How To Get Started With Obj Oriented AS3? (Flash Help Seems Broken)
OK I dont want to be the noob that doesn't read the manual and asks stupid questions, but I'm stuck here. It's been a LONG time since I had any real flash experience (Flash 5 in depth and a little Flash 8). But now my job has lead me back into some flash work & I'm basically starting from scratch. I'm trying to just get a simple SWF to load an external class & have the class retrun a value from a method.
I define
package
{
public class Greeter
{
public function sayHello():String
{
var greeting:String;
greeting = "Hello World!";
return greeting;
}
}
}
in an .as file (which is located in the same directory as my .fla) and then in frame 1 of my time line I have:
var myGreeter:Greeter = new Greeter();
mainText.text = myGreeter.sayHello("Bob");
When I try & test the movie I get 2 errors:
1046: Type was not found or was not a compile-time constant: Greeter.
LoadVars Broken In Flash 7 Onward?
This script works fine when I publish for Flash 6:
// create a new LoadVars instance
thisVars = new LoadVars();
thisVars.Load("variables.txt");
thisVars.onLoad = function() { // check if vars all loaded
if (thisVars.loaded = 1) { // vars completely loaded
trace(thisVars.loaded);
trace(thisVars.file);
gotoAndPlay(2);
} else { // The data didn’t load at all. Display error
trace("error: data didn't load");
} // end "if loaded==1" statament
}
But when I publish for Flash 7 or later, the data does not load!
I'm using a Mac running OSX 10.4.11 with Flash CS3.
Please help,
Mac Flash 9 Debug Player - Can It Be Broken?
I'm trying to determine if this is a unique case, or if others can confirm this. On Mac PowerPC OS X 10.4.11, Safari and FireFox - I usually run the 9r124 or 9r151 debug player plug-ins.
Every few weeks to a month or so, the players seem to choke - they appear to stall the browser, and rendering comes to a halt. This isn't due to memory leaks or run-time exceptions, it seems the players break down. I'll reinstall the players, and everything is good to go for a finite amount of time.
I realize there could be many factors here, but am curious as to whether this has happened to anyone else? I'm not sure how a player can eventually become disabled - is this possible?
Flash Output Window Broken?
Hi all,
I recently got a newer version of flash (flash 8 pro), everything was working fine for weeks, then now for no reason, it appears my 'Output Window' is broken. Ive tried all the basic tests, trace("howdy"); etc... nothing works, it wont even bring me actionscript errors anymore. Could it be some setting that ive overlooked? or has my installation dicided to tear itself apart?
Omit trace is off, ive gone through every menu screen i can find. Still nothing.... Hopefully you guys know a little more than me...
website design
Detect If A Swf, JPEG, Or Text File Exists
I have just stumbled across something very interesting. I have read a thread of someone wanting to see if a jpeg file existed, most of the answers used load move and checked the byes loaded for a few minutes then is no byes loaded it gave an error, this obviously was not instant feedback,
I just found a way to instantly check for a JPEG file!!! and it's actually quite easy!
if you are farmiluar with the loadVars object you will know that it has an onLoad event, so you load a text file and when it has loaded the onLoad event is fired. in interesting thing about the onLoad event is it has a success parameter passes to it. this is a bool true if loaded and false if not loaded.
it seems that the LoadVars object also works with jpegs!!!
here is the code to check if a jpeg is available
myVars = new LoadVars();
myVars.onLoad = function(success){
if(success){
trace("jpeg exists!!!");
}else{
trace("jpeg not found");
}
delete myVars;
}
myVars.load("images/boots.jpg");
Id like to hear others opinions on this!
Detect Last Modified Date Of Server File
Hi,
i want to detect the last modified date of a file on a server. So that i can determin if a file needs to be reloaded in case it was updated. The original swf file (the one that make the loadmovie) is run on a computer so doesnt run on a server and isnt placed in a html file. The original swf file is run directly from a HD. So my problem is how to detect the lastmodified date of a file on a server starting from a swf file. is there an actionscript method? I know it is possible with the javascript thing document.lastModified, but this isnt a solution for me. Can anybody help me out?
THNX
in attach the fla file in wich i need the script...
Bizarre, ...Entire Flash Site Broken
I added a button last night to my increasingly complex Flash site last night and Pre-viewed and all was fine. Then once I published it to the web it completely flaked out.
What I mean is that, once published half the buttons in my movie (regardless of where or when they occur) send you back to frame one of the movie (which is my preloader) and stops you there. Thus effectively completely dismantling my site. I can not imagine what kind of change would have made such a site wide bug occur.
Any ideas.
www.timlindsey.com
Thanks in advance.
Rindsey
[MX04] Detecting Broken Urls In FLash
When using a bad url in the loadMovie() function, you'll get an output window saying "Erorr Opening URL...". Anyone know of a way to detect this in flash in order to set a variable to false once this happens?
Flash Shows Broken Link In Browser But Not DW
I need some desperate help. I have been putting up videos on my websites for the past year and have never had this problem before. In the last two weeks everytime I have loaded a video into Dreamweaver using flash swfs that connect to the other flash files I upload into the same file in dreamweaver. I then drag the swf into the page and it connects everything. I am still able to watch the video in the preview for Dreamweaver but now everytime I load that video to the server the link is broken. This has been happening on two different websites I have been updating in the last two weeks. When I open the pages in the Safari there is only a green bar showing the link can't be made and the Activity window tells me that the browser is trying to connect to the flv still on my hard drive and not on the server that I uploaded it too. Why is this happening and how do I fix it? Thanks.
Flash Remoting Broken In Firefox, Works In IE
Hi...I have been trying to fix this problem. The Flash Remoting I am using works perfect in IE, but not in Firefox. Here is some of the key code that is used...again, works wonderfully in IE. The process is running here: http://www.fun-florida-getaways.com/tampa-downs.cfm and I would sure like to get this to work in Firefox. Please advise...Thanks, Stuart
ActionScript Code:
#include "NetServices.as"
#include "NetDebug.as"
//set global URL
_global.URL = "http://www.winedefinitions.com/";
/**************************************
CFC startup code to set up gateway connection
***************************************/
//test to make sure this runs only once
if (init == null)
{
init = true;
NetServices.setDefaultGatewayUrl("http://www.winedefinitions.com/flashservices/gateway");
var gw = NetServices.createGatewayConnection();
//var server = gw.getService("cfc.termsCFC", new letterLookup_Result());
var server = gw.getService("cfc.termsCFC");
}//end if
/**************************************
CFC web service call to termlookup in termsCFC.cfc
***************************************/
function cfcSend(lookup:String){
//call web service for termlookup in termCFC.cfc
server.termlookup(new termlookupResult(), lookup);
}//end cfcSend
function cfcLetterSend(letter:String){
//call web service for termlookup in termCFC.cfc
server.letterlookup(new letterlookupResult(), letter);
}//end cfcLetterSend
Flash Script Works, But Broken At 2nd Level
randnum = Math.random()*5;
string = "/admissions/includes/flash/banner"+randnum+".swf";
loadMovieNum(string, 1);
The above is the script I am using in a Flash File on http://milo.usu.edu/admissions and on this page it works great. However on ANY of the second level pages (e.g. http://milo.usu.edu/admissions/information/) it doesn't work...
All of the flash files are located in milo.usu.edu/admissions/includes/flash/
What is going on...? The paths are right, but it doesn't load anything at all on those second level pages. When I change the code at the top to....
randnum = Math.random()*5;
string = "/admissions/includes/flash/banner1.swf";
loadMovieNum(string, 1);
It works just fine... but it's not getting the random banner anymore...
Please help.
EDIT: Now I broke the front page and have no idea what I did. Please help heh...
|