ActionScript 2.0 :: (MX) XML File Doesn't Load When Upload
Oct 9, 2004
I created a movie that loads an XML file into flash and then.. does stuff with it (Like put text into text fields) My problem is that it works when I test it on my computer, but when I upload it and test it on my website, the XML file doesnt load. The movie is the XML load into has been loaded dynamically, as has the one above it (Like this: Lobby Clip > Games room clip > newgames Clip)
Ran into a weird Flex bug (i guess)... I am uploading using URurlLoader.load(urlRequest)... on cancel button click, urlLoader.close() is called.. but this doesnt abort the upload the file shows up on the server. Is this a Flex bug or am I missing something? Can anybody confirm if they have been able to abort an upload / load with the urlLoader.close() method call?
We use the FileReference component to upload file in Flex. But if the application is deployed within an environment having NTLM authentication (Windows Integrated Authentication), the upload capability will not work, and each time a message box will be popup asking the user to input credentials.I've queried some resource from internet and it seems this is a bug of FileReference component.
I've searched, but I don't believe flash (actionscript 2.0) itself offers a "select filefield" and fileupload functionality?
That's why my swf has a button which opens a popup window. In the window the user has the ability to upload a file to the server. That's no problem.
But I would like to send the filename back from the popup to the swf. How on earth can I manage that?
I can't use Loadvars.sendAndLoad in the swf because then my visitor does not see a popup and can't select the files. Loadvars.load doesn't work in popup?
my listener.onComplete = function(selectedFile:FileReference) is fired without any file in the upload dir. if the file is small and I wait a bit I can see the file (through FTP) coming up on the server, but most of the times the "onComplete" if fired without any file being saved.
can I add something to this php code to make sure the file is uploaded?
I have a basic site for an old age home. Recently I decided to put a Flash Movie on the Homepage but even though all files are loaded and links correct it won't show in either IE or Firefox...
The movie should be loading here (...bellvilleseniorsentrum.com/engels/home.html)
There is a white space where the movie should be loading... But it doesn't...
I've done lots of sites with the same kind of movies and they all work fine... But this ons just doesn't work. It views fine when I test it on my computer but as soon as I load it - nothing...
I follow this turtoliar Loading External Texts into Flash Using the LoadVars() Class
Everything works great it load the txt file but the problem is that if i insert a lot of text inside in txt file and open the flash it load only some lines and the it cut them.
So I am having a problem with the flash file at this site: [URL]
Everything is working fine, except for the preloader, which only seems to load after the entire file is 100% loaded, which leaves people who visit the site staring at a black screen for quite some time... The code on the preloader frames is as follows:
frame 1 (which has the background for the preloader/ actual load bar etc} var percent:Number = Math.floor(getBytesLoaded()/ getBytesTotal()*100); textBox.text = percent + "%"; textBox._alpha = 80;
[Code]....
Also, if you want to check out the actual program just click when you get to the main screen and click to create new shape (mouse x and y change opacity and speed respectivly) I'm using actionscript 2
I have created a main file,which has a navigation with buttons.Each button loads an external swf file.In one of the external swf files I have created an xml gallery.I have created some empty movieClips which work as holders and they load the images.It works great when I publish it,although it doesn't work when I publish the main file.It just doesn't load the images.
I'm using LoadVars to load variable data into flash from a .txt file.Pretty simple - when uploaded onto a server, I can see the data loaded but no one else can, not even other accounts on my computer!Could this be a CHMOD permission problem? Could this a problem with my AS? A problem with directories? A problem with URLs?Anybody have a good method that simply loads vars from a .txt file and can also do it online?
i've created two textarea fields that pull data from a textfile in the same directory and formats it with CSS. it tests fine on my computer, but when i upload it, it doesn't show the txt file contents. It's just blank. I've been looking around everywhere to try and find a solution, but i can't seem to find anything. Also, the scrollbar on the side of the textarea doesn't load in IE but loads in firefox.
I have a big problem - I decided to make a website using flash as I am good with photoshop and thought it would be fairly easy to construct in flash using tutorials. All went well except now the website is published, weird things happen. The homepage works fine but when you click on "portfolio" some of the buttons don't appear and when you try the buttons, some images don't appear. Occasionally some of the buttons take you to the wrong place also. When I test the movie in flash, everything works fine so I can't work it out. I am a complete novice so advice will have to be spelt out in black and white.
I decided to make a website using flash as I am good with photoshop and thought it would be fairly easy to construct in flash using tutorials. All went well except now the website is published, weird things happen. The homepage works fine but when you click on "portfolio" some of the buttons don't appear and when you try the buttons, some images don't appear. Occasionally some of the buttons take you to the wrong place also. When I test the movie in flash, everything works fine so I can't work it out.
After moving a web site to another server flash upload stopped working. After some debuging and isolating the problem I found out that in SWF file (used for multiple upload) FileReference.upload() method doesn't work. URL called by item.upload(_root.uploadScript) isn't called.
Here is the code:
flash:
listener.onSelect = function(fileRefList:FileReferenceList){ var list:Array = fileRefList.fileList; var item:FileReference; _root.toUploadCount = list.length;
I created a preloader. When I test it in Flash CS4, it works fine. When I upload the swf files to my server, the preloader doesn't work. I put both swf files in the same folder.
Once the first file is successfully uploaded and the data is returned from server (onUploadCompleteData), I begin to upload the second file from FileList. Here comes the funny - listeners onOpen, onProgress, onComplete are successfully invoked in Flash, the filereference is indeed the filereference of the second file, size matches. But the onUploadCompleteData is never invoked. I checked in IE HTTP Analyzer and there is a simply no outgoing data (0 bytes), even tho the request is made. So the file "finishes" uploading like nothing would have happened but actually it didn't upload at all.
I tried to add a 30 seconds delay between uploads and that works flawless till now. So I tried, 1 sec, 3, 5, 10... didn't work. I simply cannot let a 30 seconds delay between uploads.
ActionScript Code: public function upload(file:FileReference){ //IntervalManager.clearInterval(this, "uploadInterval"); <- added interval for testing, works with 30 secs
As URLLoader launches requests without any issue (I'm monitoring network and flash activities via FireBug in FF 3.6.13), the FileReference upload method doesn't. The odd thing is that no error is thrown AND (the strangiest) the complete and the progress events are correctly fired while no request has been done, and my php isn't receiving anything !
ActionScript Code: var file:FileReference = new FileReference(); function mClick(mEvt:MouseEvent):void {
i have a little trouble with my xml menu, i have this code, but went i call my full image and try to upload doesn't work. I try to put my full image in and Movie Clip with the name of contenedor. But appear a message saying "Error opening URL All work perfect less the onPress.
I recently made simple changes to a class file and a document class when I run on my PC it works when I upload to my host godaddy it doesn't reflect any change. I've tried several different browsers making sure to clear cache first but no change the only thing I can think of is that the server is caching some of the files. Do they do that? If so is there a script I can run to refresh the server cache?
Is there any "mainstream" library used for this purpose? Commonly spread, well maintained, documented etc.I found these (using flash):
Uploadify - not many releases, latest 12/2010, no documentation (!) SWFUpload - latest release 03/2010, documentation fancyupload - looks buggy.
phpfileuploader - looks heavyweight, and looks commercial (?) I cannot read the licence (you can download it but are you allowed to use it forever without paying?) plupload New version of pure javascript (no flash) Valums' ajax upload claims to handle file size limit and progress bar, which is quite suspicious to me: these features require to guess the file size before the upload, which seems impossible in javascript (look also here). Or can it work?
I am trying to upload a file on server using File class. Its working fine on local machine. But when i a placing the php file on server, it is giving Error #2038: File I/O Error.
I'm using Agile Uploader in my project to resize image before upload on client side.And it works fine except one thing: if image name contains cyrillic letters it fails with server error 500.
How to avoid this or if needed how to rename file with english letters "on fly" (possibly with javascript).
i need some help with this photo gallery im working on. im pretty sure i have almost everything correct but for some reason i cant get the thumbnails when clicked to link up with the img. i want it to show.
well i cant really upload the file here i just found out so i can email it to whoever leaves there email
if someone could take a look at the file and tell me what im doing wrong that would be so helpful ive been working on it for the past 2 days trying to fig. out whats wrong searching everywhere and i just cant fig. it out.
If you have an .as file in the global include directory do you have to upload it to your server with the flash file or does it compile the flash file with the included info?
I'm trying to figure out if there is a way to allow a user to upload a file in the background and let them continue to interact with flash movie, while the file is being uploaded. E.g. if they are uploading a 50mb file, we don't want the whole interface to be locked up for 10 minutes while the file uploads, it's be great if they can continue to interact in the movie while the file uploads. I'm guessing if they refresh the page, or navigate away from the movie, that the upload process would get cut off and there isn't anyway around that. Couple of ideas I had:
1. My first thought is that we could use a popup window with a upload form in it. Which is simple, but not very cool.
2. Use some sort of ajax background uploader in conjunction with flash ... not sure exactly if this is possible.
I have a flash site (finally) but I need to host it through dreamweaver. I cant do it. I tried loading it thru the media option and it gave me an error. I have a lot riding on this site and Im at the last step only to find some new obstacle in my way.
I recently used Flash to create the header for my website. However, when I tried to upload my .fla file along with the .swf (which had no problem), I couldn't because the file format isn't supported. Is there any way I can get around this?
Also, I heard that you have to upload some .js file or something.
uploading files on Mac system. The same code runs perfect on a Windows system. Below is a snippet of the code I am using:
public class BrowseImage extends MovieClip { public var fr:FileReference = new FileReference(); public var ff:FileFilter = new FileFilter("Images", "*.jpg;*.gif;*.png;*.pdf,*.JPG,*.JPEG,*.GIF,*.PNG"); private var timeStamp:String;
[code].....
Once the file gets uploaded to the server, I load it into my application.Also, the script runs fine if there isn't any space in the file name of the file to be uploaded.