loadvars

Using LoadVars to load cbsnews.com sometimes returns GIF89a

For some reason when I use LoadVars in actionscript 2 to load cbsnews.com, I sometimes properly get the html for the page and other times I get GIF89a. I'm not sure what this means, so any help or suggestions would be appreciated. Here is some sample code to test it yourself. var foo:LoadVars = new LoadVars(); foo.onData = function(bar)...

How is a POST request from cURL in PHP like/unlike a POST request from loadVars in Flash?

All, Sorry - this is probably a very strange question. I'm working on a Flash RIA. One of the things it does is call an ASP page (that resides on another domain) to retrieve some data. However, that ASP page requires users to log-in to that site before they're allowed to call that ASP page. So, my first attempt at getting this to wor...

Why is LoadVars() in FlashLite 3 SWF running on Nokia Remote Device Access not returning variables

I am trying to debug a FlashLite 3 application that uses LoadVars.sendAndLoad() to contact a server and return variables from a PHP page. When I run this in Adobe device central it works ok but when I install the SWF on a phone at Nokia Remote Device Access service and output the results of the resultVars I get nada... here is my code - ...

What is the best way to detect file existence in Flash using as2?

I need to check for file existence in Flash on x number of videos. I've tried LoadVars and MovieClipLoader. LoadVars works but it actually loaded the entire video before reporting its done. Without a way of knowing that its started, I can't delete it before its done. I don't what to load the entire video, i just want to check that its th...

Is it possible to modify a global var from inside a function (AS2)?

Hello, being my first time to post a question on a site this kind, I'll try my best to do it OK. I'm Using ActionScript 2.0 attempting to check the existance of a certain file, with this code (I found it browsing the net): var myPelican:Number = 0; var myVars = new LoadVars(); myVars.load("portfolio_img/("+pCounter+").jpg"); myVars....

Flash «a script in this movie» - caused by loadVars or setInterval?

Hi Forum This is someting weird... I have a Flash-file that loads external SWFs. There I use LoadVars to get external data from a server. When the data has arrived, I'm using setInterval to call a function that fades-in the content. So far so good. But when I switch menus (a.k.a. unload one movie to load another) before all the data...

Is it possible to add a request header to a LoadVars when using GET (Flash AS2)

I'm working on a project built in Flash AS2. One of the things I need to do is load JSON data. In the past, I've had no problem with this - LoadVars works just fine. However, on this project, the JSON service that I'm calling requires the http request to include an ACCEPT header with "application/json". LoadVars has an addRequestHea...