ActionScript 2.0 :: LoadVars Can't Access URL - Then Freezes

Apr 19, 2006

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.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Security Preventing LoadVars Access?

Apr 3, 2007

Im sure this is a classic problem. I am doing a flash project for a client.

This flash movie (lieing on Server A) calls an XML file on a totally different server (Server B). HOWEVER, it never reaches this xml file (although it reads the xml correctly when the flash is run on my computer). But to get it to run on my computer, I had to go into the global security panel and add the location of the SWF.

Now I tried everything to get the XML loaded on the SWF which lies on Server A. I went into the global security panel and added the folder on Server A containing the SWF, and the folder on Server B containing the XML file. However, it's still not working.

View 4 Replies

ActionScript 2.0 :: Can't Access Variable From Outside Of The LoadVars Object's Scope

Feb 23, 2004

You will find enclosed a ".zip" file in wich there's a ".fla" file, a ".txt" file and 6 ".jpg" images. Frame 1 of the FLA only has a "Preload" class/constructor found on another site and works well. Frame 2 launches the graphic interface construction. The file "externalVar.txt" has one variable "maxVin" with a value of 6.

I would like to know WHY i can't acces this variable from outside of the loadVars object's scope (i would better say from outside of its ".onLoad" methode scope). In fact, when i trace my variable "maxVinNum" from outside of this function, flash player return "undefined". Even if i declare "maxVinNum" on the _root (_root.maxVinNum). For information, at the start of frame 2, i have let an instruction in comment: //var maxVinNum = 6; When we activate this instruction, then the variable is directely declared and everything works well. This test allow us to verify that scripts are not bugged. Here is the script of frame 2, some of you may understand quickly what's wrong :

[Code]...

View 3 Replies

Professional :: LoadVars Returning Escaped String - Variable Access Not Possible

Aug 21, 2010

I am fetching some variables from a URL and get the result. While I can iterate through it via e.g.:

[Code]...

View 7 Replies

ActionScript 2.0 :: Access That Array From A Function Using A LoadVars Object Called LoadDVDsText?

Feb 28, 2004

I'm using an onLoad function (importing variables from a text file) and I'm creating arrays within a for loop in the onLoad function.
I'm using something like this:

Code:
this["dvdAry" + i] = this[indexAry[i]].split("##");
So say the first array is called dvdAry0 .

How can I access that Array from a function? Please note the function, the onLoad function and the arrays are all being created on the same timeline.I've tried tracing the array dvdAry0 from the function after the array is created in the onLoad function, but it comes up as undefined. Is the array created on the object that I'm using onLoad on?I'm using a loadVars Object called loadDVDsText.

View 2 Replies

ActionScript 2.0 :: TUTORIAL Error - Change LoadVars() Into LoadVars()?

Apr 13, 2004

One of the moderators, could you've a look at this tutorial: [URL] it doesn't works with me, maybe because I've 2004 so if you change loadVars() into LoadVars() it should work

View 2 Replies

ActionScript 2.0 :: Using LoadVars.getBytesLoaded And LoadVars.getBytesTotal?

Sep 1, 2003

Whenever i try to display anything returned by LoadVars.getBytesLoaded or Load....Total, it gives me NaN.

View 14 Replies

Long SWF Freezes Near End

Sep 21, 2009

I have a long timeline based animation, about 23 minutes in full.  When I test or publish the movie, the SWF freezes with about one and a half minutes of playback time left. The streaming audio, however, continues to play.I know that the error isn't due to some sort of errant stop action at that point in the animation because I have it broken up into several scenes, and if I test the final scene by itself, it does not freeze and plays back correctly.  Also, if I rearrange the scenes, the SWF still freezes about 21 minutes and 20 seconds into the animation, which, after rearranging, corresponds to a different point in the animation.

View 1 Replies

ActionScript 1/2 :: Video Freezes 1 Second In?

Sep 6, 2011

I have a flv which is in the same root folder as my exe. I have a navigation bar which takes me to the specific point in the timeline where the video is. Once the video comes up it plays for 1 second and then freezes. If I manually scrub the timeline past that point the video will continue and loop as intended, but right off the bat everytime the video freezes?
 
I'm at a complete stand still, Have tried reinstalling flash player, tried installing old versions of Flash player, nothing seems to fix it.

View 7 Replies

ActionScript 3.0 :: Why Transition Between SWFs Freezes

Aug 12, 2009

I have a problem with a flashsite I'm working on. It freezes when I click on the page with the most content on it. I use the "alpha" transition.

Here's the code:
import fl.transitions.*;
import fl.transitions.easing.*;
var p1age1 = new page1;
var p2age2 = new page2;
var p3age3 = new page3;
[Code] .....

View 3 Replies

MX Playback Hiccup/freezes On Frame

Jun 30, 2010

I finished my flash logo for work and am now having a problem when trying to publish/export/play the file. On frame 110 when the first shimmer crosses the "M" I get a hiccup on that frame, it should be a smooth transition. Once the video plays once the replay works fine, but this is going to be the intro to our website, one time view.

The playback was working great the day before. Today, after some more tweeks, not so good. Only thing I could fathom was maybe too many masks (added 1 more today, 3 in total) were being applied but I tried removing all masks and am still having the same problem.

Visit the link to view intro:Metagraphics Intro

View 2 Replies

Flash :: Button Bar Duplicating And Freezes

Jun 28, 2009

I created a button bar with 6 buttons that display separate content.  When I click on one of my buttons, it brings up the content alright, but on release creates an entire duplicate set of buttons on top of my existing set of buttons.  I can click on another button, and it will display content okay, but add yet another set of buttons on top of itself. after 2 buttons it basically freezes. why are my buttons in essence copying itself, and how can i correct.

View 6 Replies

ActionScript 3.0 :: Connection Error Freezes Swf For IE

Feb 26, 2011

Using AS3 on Flash CS5 Pro. I've got a parent.swf which passes info to/from a child.swf via the following code:

[Code]...

The connection works fine except that when IExplorer loads the parent.swf it tells the user that "To help protect your security, Internet Explorer has restricted this webpage from running scripts ..." The thing is that even if the user now clicks ok, the swf freezes. I've checked why this is and I found that what is happening is that IE runs the swf again and this triggers the error : "ArgumentError: Error #2082: Connect failed because the object is already connected. at flash.net::LocalConnection/connect()". This double connection attempt freezes the swf.

How should I capture this error and prevent this from happening? I'm a normal programmer and have never done any error capturing before. Also, there is one particular child.swf (there are several) which to me seems to be the same as all the others; I wrote the same code precisely as far as the connection is concerned. However, only on the Chrome browser, it does not load like the others and freezes the swf. Curiously, it works fine when I test it on my laptop/Chrome, but refuses to load when I try from a remote computer. Has anyone seen anything like this? Is it a browser/plugin error or something on my side?

View 1 Replies

Banner Freezes / Crashes Browser

Oct 21, 2010

I've got an animated banner for my site which I've grown quite attached to. It's a scene of the sky with the Title of my site on it and there are clouds that move constantly across it.Now the tricky part and part that I think might be freezing up the browser (firefox) is that the background changes depending on your computers time.So if you visit my site and the time is past 6:00PM, the day background will change to night.It's not an instant change though. You actually have to refresh to get it to change. Anyway, if I let the site/banner sit in my browser as either the active tab or the non-active tab for at least 10 minutes, the whole browser will freeze up. The only way to stop it from freezing up is to close it and restart it.I don't know what I did wrong, but I was hoping you guys could tell me. The file size is not that big (262kb). The images were converted from .jpg to vector, so I can't see why it'd be too graphic intensive. Basically I'd just like to be able to run it at the current resolution and quality, but not have it crash people's browsers.

View 3 Replies

ActionScript 3.0 :: Website Freezes In Safari

Oct 2, 2009

When i open the site [url].. in any other browser except safari it seems to work fine. When opening in safari it is loading 5 thumbnails of 6 and just freezes. After 5 min of wait it shows the error[code]...

If I open the site again it works. But if the cache is clean( if i clean cache) it is not working the first time. Thus all users that open my site in Safari for the first time get stuck on the loading.

View 2 Replies

ActionScript 3.0 :: SoundSpectrum Freezes Mybrowser

May 25, 2010

I have created a mp3 player to stream 15 mp3s, each is about 5Mb & about 5 minutes long.

I have also created a simple visual equalizer with SoundMixer.computeSpectrum(). It is only 128 simple lines dancing across the whole page.

It all looks fine, except after playing for about 2 tracks, the browser is frozen and need to be shut down.

I wonder if this is due to the download limit of the server or the SoundSpectrum, or some other issues?

View 3 Replies

ActionScript 3.0 :: Tween Freezes Even When Using Package?

May 13, 2011

I have a tween, and it keeps stopping before it complete. With some research, I found it was a scope issue, and that the solution was to put it into a package, like so:

ActionScript Code:
package globals{
import fl.transitions.Tween;
public class globals {
public static var tween:Tween;
}}

Then, I have this line:
ActionScript Code:
globals.globals.tween=new Tween(obj,prop,func,begin,finish,FPS,useSeconds);
The animation continues to freeze.

View 1 Replies

ActionScript 3.0 :: Video Freezes - But The Sound Is Still On?

Sep 13, 2011

I am streaming user cameras through fms server. And sometimes (I don't know when) the picture of some camera freezes, but the sound is still on.I think that something is wrong with Video object, because if I recreate Video object to freezed camera (with the same stream) the picture starts again.

View 3 Replies

Actionscript 3.0 :: Fullscreen Sometimes Freezes Video?

Jan 13, 2010

I just noticed it while working on a new project. When I enter fullscreen with fullscreeensourcerect in Internet Explorer and then exit again, there are leftovers (artifacts) from the video still visible where they should not be. I have attached a screenshot to demonstrate. The same flash movie works in firefox withouth these artifacts staying onscreen. Internet Explorer Version: 8.0.6001.18702Firefox Version: 3.5.7Nvidia Geforce GTX 260 (Driver version: 195.62)

flash code:
Code: Select allpackage
{

[code].....

View 3 Replies

ActionScript 2.0 :: Do While Loop Freezes Constantly

Jan 10, 2006

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.

[Code]...

View 3 Replies

ActionScript 2.0 :: FLV Plays One Frame Then Freezes?

Mar 14, 2007

Does anyone know of any reasons that this might be happening?

ATTACH CODE-----------------------------------------------------------------------
var my_xml = new XML();
my_xml.ignoreWhite = true;

[code]......

View 1 Replies

ActionScript 3.0 :: Script Slows Down And Freezes?

Mar 18, 2010

I had to write a script that pulls image names out of a mysql database and load them into a flash. It's some kind of slide show, 2 movie clips objects that go from left to right and when one reaches the end of the main frame borders then go back to starting position, change its picture and go from left to right again. I think that problem might be some memory leak (from the Loader). i have to finish this project ASAP.This is the script:

import flash.display.Sprite;
import flash.system.System;
import flash.net.NetConnection;[code]..............

View 16 Replies

ActionScript 3.0 :: Loader Freezes With Certain Web Hosts?

Feb 9, 2009

I've recently registered with MS Office Live where I now host my site, and my embedded .swf file will not load properly... however, all was fine with my old host . My Office Live URLAll files uploaded there are the exact same as the ones hereAs you can see, the site will not load (although behaves differently with certain browsers, it will not load normally).What exactly do I need to do to fix this? Is there anything I can add to the preloader code? Here's what I have at the moment:

import flash.display.*;
this.stop();
this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING);

[code]......

View 1 Replies

ActionScript 2.0 :: FLV Progress Bar Freezes When Scrubber Is Used?

Feb 9, 2011

people on these forums have been really kind to me in the past, so I thought I'd try to get some feedback on a problem that I'm currently working on and have approached from a number of angles. While building my own FLV playback component (progress bar which doubles as scrubber (i.e., has a slidable knob, etc.) included), I ran into the following problem:

Once a button that begins download of an FLV is released and the FLV begins loading, the progress bar (which represents the FLV's timeline/total/loaded amounts, etc.) increases (width), however, if during this process a user starts to drag the knob, the width of the progress bar is 'stunted', in other words, while the 'onPress' event is active, the 'videoStatus' event is disabled (the event/function responsible for the proportionate increase of the FLV progress bar's width).

[Code]...

P.S. Using intervals is not really option as this entire process was originally created using intervals (if anyone else is familiar with Lee Brimelow's video tutorial on FLV playback components), however, upon realising that two simultaneously-running intervals won't do the trick, he posted an updated version using 'onEnterFrame' events... (the problem seems to be however, that whether you use two intervals or two 'onEnterFrame' events, the scrubber breaks...) therefore, going back to intervals would probably be taking a step backwards..

View 1 Replies

ActionScript 3.0 :: FLV Files - Video Freezes Mid Way And Really Jittery

Nov 9, 2009

The project (Flash CD) is compiled of activities and videos. There are several videos in a row and they all load as external swfs. The third video freezes about mid-way through, but sometimes it doesn't - and then it's the other videos that freeze and are really jittery. Apparently the CD doesn't work on particular operating systems... But shouldn't that just be their hardware? The exe and swf's are all flash player 9. Even when I run the project locally it freezes. What's going on? How can I fix this?

View 4 Replies

ActionScript 3.0 :: Flash 10 Running In FullScreen Freezes

Dec 10, 2008

I have had an issue come up a couple times with publishing a stand-alone projector with Flash Player 10. When running in fullscreen mode, the visual of the program will freeze occasionally. The program actually continues to run in the background, and respond to clicks, but you can't see it happen. If you escape out of fullscreen mode, then you can see the program running, and the result of the touches (clicks) that you couldn't see in fullscreen mode.The strangest part is that the program continues to run, but the screen just doesn't update.

View 22 Replies

Professional :: Button Is Released And Movie Freezes?

May 4, 2010

I made a gallery, and i have 5 buttons. For each button a movieclip plays (a fade efect from 0 to 1 alpha). The movie is shown as long as the mouse button is held down, by having the scene return to the starting frame which has no movie clip. The problem is that if the mouse is within the movie clip when the button is released the movie freezes until i click another. More precisely it doesn't go to the first frame. How can i fix the problem?

View 9 Replies

Professional :: Flash Movie Freezes When Navigating Map

May 18, 2010

I am creating a map (a jpg) and when you click in certain hotspots it uses tween lite to change the scale of the map to 50 to show info on the region. There are 20 regions and every region has its own JPG (900x600px 60k each). All JPG are inside the SWF (its size is 1.3Mb). The problem is that when you are navigating the map sometimes freezes and you need to refresh the page to unfreeze it. Could be this because the large amounts of images or maybe the scale of 50 I am using?

View 1 Replies

Flex :: Web Application Gets Progressively Slower And Freezes

Aug 26, 2010

I have a Flex web application where I am visualizing data (for different countries) in the form of charts. The data is in the form of CSV files. There are individual files for individual charts i.e. one file has all data pertaining to one chart for all countries.I have a left navigation menu that allows one to see data on a country by country basis. As I view more and more countries, the web application becomes progressively slower till it freezes completely. The problem goes away if I refresh the browser and empty the cache.I am using the URLLoader class in flex to read the CSV data into a string and then I am parsing the string to generate the charts.I realize this is happening because more and more data is somehow accumulating in the browser.

View 1 Replies

Actionscript 3 :: Flash Client Freezes When Minimized

May 24, 2011

We are building a multiplayer flash game using actionscript 3. The game is supposed to work in real-time.

We have an issue where if ou minimize the game client, it freezes- I can see this by previewing the minimized window, my character which is supposed to walk across the room has frozen. This causes a real-time issue because anything happening while a players client is minimized will be missed...

Does anyone know why the flash client would stop/freeze when minimized, and if there is a way to prevent this?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved