Actionscript 3 :: URLRequest Or Loader Simply Not Working On Some Computers?

Aug 24, 2010

So my problem may be a little bigger than that, but I'm not certain. I'm creating a custom flash photo viewer for a client that dynamically loads the images with Loader objects. It takes a folder name in a specified directory on the server and calls a php page (using URLRequest) to get the workable contents of the folder. And then it loads it up from that array.

Here's the problem: it works FINE on my machine and every machine I've tested it on, but it DOESN'T work on my client's machine or some of his customer's machines. The loader bar that's at the bottom of the screen doesn't start to fill, which means that the images aren't starting to even load, and the status bar indicates that it continues to wait for a the server, yet never finishes waiting. This is consistent on a single machine, but varies across machines.

I've added diagnostics (a custom class I made to track certain vars and collect errors) to the thing to catch any errors, but it reports nothing on my client's machine. I've added flash version checking code, so the possibility of a lower version messing it up is gone... I guess my question is, is there anything (security, environment, etc) that I could have overlooked that doesn't allow request objects or something to work on certain machines?? I've been ripping my hair out trying to figure this out!

[Code]....

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Can't Open JPG Using Loader And URLRequest

Mar 27, 2012

I am loading an image using Loader class and with URLRequest, but for some reason I am struggling to reference a file in a sub folder of the root (where the SWF is exporting to) this is local testing and I am assuming that if I refer using an absolute path on a web server it would work - but I do prefer to use relative paths for simplicity.I get the above error, but I know that the file name is correct as moving it to the same folder as the SWF works fine - but in implementation should I wish to organise hundreds of JPGs and create a gallery it would be a bit messy to store them at root level. As mentioned previously I am working on a local drive at present, and have no plans to move to a web server as this is just a test file for my own learning purposes.i have tried "folder/filename.jpg" and even on the unlikely side "folderfilename.jpg" and even further far-fetched "../rootfolder/folder/filename.jpg".The only issue is the path, I am sure of it - but the filename is correct.

View 1 Replies

[CS5] Font Not Working Correctly On Other Computers?

Oct 14, 2010

In my flash game the font i choose looks perfectly fine on my computer (being played from a website) but when i use a computer at school or my friends computer, all the font is ALWAYS times new roman.. this happens with every game i make..

I tried switching from tlf text to classic text.... but it didn't change at all.. can someone help please? I have been facing this problem for months now.

View 4 Replies

Actionscript :: Object (key-value) Use For URLRequest/Loader Classes?

Aug 19, 2011

I am trying to get my Actionscript program to turn in a key-value (more specifically: a key, value1, value2) object into a server. I am doing the html request properly, but I'm not sure what kind of object to send;

View 1 Replies

ActionScript 2.0 :: [CS3] LoadVars.sendAndLoad Only Working On Some Computers

Jan 15, 2009

I'm writing a very simple flash app (AS 2) to sign users up to an email newsletter; the way it works is that it uses LoadVars to hit a (same-domain) PHP script via POST with the user's email address. The PHP script then passes the info through to another domain via curl to sign up the user.

So far, so good, and it works on roughly 70% of the computers on which it's been tested (it's being tested live from the website, not locally). However, on some computers, it doesn't appear that the LoadVars.sendAndLoad call is being made, as the email addresses sent from those computers aren't showing up on the subscriber list. I know that the PHP script still works on those computers as I've made a barebones HTML form that acts in exactly the way the Flash app does (POSTs to same PHP script with same variables, etc) and it works on all computers.

Here's the relevant AS:

submit_btn.onRelease = function(){
submitOutAnimation();
this.enabled = false;

[Code]....

View 2 Replies

Flash :: URLRequest & Loader EventListener Not Firing For Image?

Dec 17, 2010

I'm loading images via a URLRequest and Loader classes and I want to manage the image when the request is complete. The example below doesn't fire the event when it is complete. The same code would work find for a URLLoader, but not a Loader object. Basically the image loads and the event listener is never fired. Can anyone tell me how to get an event to fire when Loader finishes loading an image.

var imageReq:URLRequest = new URLRequest("http://www.google.com/images/nav_logo29.png");
var imageLoader:Loader = new Loader();

[Code].....

View 1 Replies

ActionScript 3.0 :: Use Multiple Instances Of The Loader Class With One URLRequest?

Apr 21, 2010

I'm creating an image loader with a specific effects that requires layering multiple masks over the same movieclip. in the timeline it looks like this:

What I want to do is add an instance of the loaded image into each of these masked movieclips. I'm trying this:

create a new instance of the loader and store it in an Array

Code:
for (var j=0; j<allThumbs.length(); j++) {
imgLoader = new Loader();
img_arr.push(imgLoader);

[Code]....

The only way I've been able to get this to work is to create an entirely new Loader object for each movieclip instance. Doing it this way loads the same image 4 times... that's not acceptable.

how I can store the image that is loaded and reuse it in the different movieclip instances?

View 1 Replies

ActionScript 2.0 :: Change The Working Directory So That Index.swf Can Simply Call Projects.html?

Dec 6, 2003

My main movie calls loadMovieNum("projects/index.swf", 1); . Therein, the movie index.swf calls loadText.load("projects/projects.html");.

Is there a way to change the working directory so that index.swf can simply call projects.html, without referencing the projects directory? This is particularly useful bc the text file calls a number of links.

View 1 Replies

ActionScript 3.0 :: New URLRequest Not Working

Nov 2, 2009

I cannot ascertain why the code for one set of navigation buttons I've created works, but similar code does not. The code is rather lengthy, but I've pulled out the salient components to see if the Interwebs could help.

Here's the script that IS working:

Listener code:

Code:
cswordbutton.addEventListener(MouseEvent.CLICK,fetchcswordassets);
And the function code that goes with it:

Code:
function fetchcswordassets(e:MouseEvent):void{
var url:String = "knowntomeURL";

[Code].....

1) All of the actions are in a separate layer in the first frame;

2) There is only one scene;

3) I've given the same button a different instance name in many cases, to coincide with different expectations (URLs).

View 4 Replies

ActionScript 3.0 :: URLRequest Only Working On My Machine?

Nov 10, 2010

I have a few links in a game to take the user to to a page where they can buy a product. If I publish and test the game on my own machine all the links work fine but I have tested it on several other machines (macs and pcs) and the links are completely dead and nothing happens.[code]

View 2 Replies

ActionScript 3.0 :: Stop(); Not Working With Multi URLRequest

May 17, 2011

When I place one link in AS3 with a stop everything works great!
 
stop();     import flash.events.MouseEvent;
//---link1      var getLink1:URLRequest = new URLRequest("http://www.google.com");    

[Code]....

View 3 Replies

Flex :: Html5 - File Upload Not Working Using URLRequest

Feb 13, 2012

I used upload functionality by html . using given code it's working fine .

[Code]...

BUT GETTING Bad request error . so anybody know , what did i wrong in code.

View 1 Replies

Professional :: URLRequest Lost - Error 1046: Type Was Not Found Or Was Not A Compile-time Constant: URLRequest

Aug 12, 2009

In my movie i have a link button with following, simple, function creating a link:

[Code]...

lately i've associated a class file (.as) to my movie and immediately after, when publishing the movie i got the following error message: 1046: Type was not found or was not a compile-time constant: URLRequest. as well as a couple of other related error messages: 1180: Call to a possibly undefined method URLRequest. 1180: Call to a possibly undefined method navigateToURL. when i remove the link to the class file, the problem goes away. also, i have checked the class file for mentioning of "URLRequest" and nothing is there.

View 9 Replies

Professional :: Second Loader Not Working

Jun 19, 2010

The following action script for loader is working fine:

var l:Loader=new Loader();
addChild(l);
l.load(new URLRequest("MyLogo.swf"));

But when I added one more loader to it like the following...It doesn't show anything but gives an error:

[Code]....

View 5 Replies

IDE :: AS2 CS3 Image Loader Not Working In IE

Dec 1, 2008

I'm trying to simply have 4 images at a time appear, then scroll over one image when a button is clicked. I'm using the Loader component to call in the external jpgs. This works perfectly in Firefox and when I preview it in Flash, but in IE the images don't load properly. I'm scaling them down using the Loader parameters, but IE usually tries to load the full-sized images. You can see the problem if you visit [URL]

View 1 Replies

ActionScript 3.0 :: URL Loader Not Working Properly

Jun 25, 2009

I'm trying to do in this case is populate a List UIComponent that I created with information that I get back from the PHP file. For some reason the loader.addEventListener(Event.COMPLETE, userOnLoad) isn't working and my program never gets any farther than that.

Here is my code:
import fl.controls.*;
import flash.display.Sprite;
import fl.managers.StyleManager;
DECLARATIONS
var backgroundArea:Sprite = new Sprite();
var loginArea:Sprite = new Sprite();
var userArea:Sprite = new Sprite();
[Code] .....

View 1 Replies

ActionScript 2.0 :: Image Loader Not Working

Jun 22, 2007

why this isn't working with as 1.0? I have to publish it with 1.0 for other reasons. basically i want a simple preloader:

[Code]...

it goes straight to 100% when viewed through the download simulator, but the image isn't actually loaded. I don't really know as 1.0, just 2.0.

View 1 Replies

ActionScript 3.0 :: Tween Not Working With Loader()?

Dec 24, 2009

I want to create an image slideshow. When the user clicks the next button, I want the current image to fade out and the next image to fade in. I'm using Loader to load images, using .load(new URLRequest("imagename.jpg"). When the first image loads and next button is pressed, the image fades out just fine. The problem is when the second image loads. the image loads, but doesn't fade in, it just appears without the tween. Here is my code:

Code:
import flash.display.MovieClip;
import flash.events.MouseEvent;
import com.greensock.*;

[Code]....

View 7 Replies

ActionScript 3.0 :: AIR Using Loader To Load .png Not Working On IOS?

Dec 6, 2011

I'm trying to load a .png and display it but the iPad and iPhone show a white screen. Here is my code:

Code:
public class Test extends Sprite
{
private var loader : Loader;
private var urlRequest : URLRequest;

[code]....

This works fine when tested in AIR but not when I test on the device using the [TEST on DEVICE] build. My TestImage.png is in the bin folder where my Test.swf gets compiled into.

View 7 Replies

ActionScript 3.0 :: Display.Loader Not Working In Firefox?

Mar 14, 2012

I just inherited some code that produces an embedded rdio music player into a swf. It works great in firefox and safari, except the embedded player does not appear in Firefox... Is this a common issue with the Loader class or contentLoaderInfo events?

import flash.display.Loader;
import flash.display.Sprite;
import flash.display.StageAlign;

[code].....

View 1 Replies

ActionScript 3.0 :: Flash - Loader Loading Swf Not Working?

Apr 22, 2010

I'm having trouble with a simple loader not loading an external swf file.I have a set of menu buttons (created from a class) that store the swf file name. When these are clicked they run a function that supposed to load the swf file but for some reason it doesn't (but maybe it does load it, just not display it). So here's the code:

Code:
var urlLoader:Loader = new Loader();
var pageHolder:Sprite = new Sprite();

[code].....

View 3 Replies

ActionScript 3.0 :: Loader Resize Not Working In Distributed SWF?

Jul 5, 2009

I have recently created a game in Flash CS3 with AS3 which displays a random picture (this is a pretty integral part of the game).I have written a small procedure to resize the picture to an appropriate size for the flash application. This is as follows:

ActionScript Code:
function onComplete(ev:Event):void {
var maxheight = 240;
var maxwidth = 400;

[code]....

Here is where it is called, please just take for granted that d_arr[1] contains the correct URL of the image I want to load :-)

ActionScript Code:
var url = d_arr[1];
var urlRequest:URLRequest = new URLRequest(url);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);

[code]...

This resizes the picture when it is fully loaded. This seems to work fine on my own site, but on the sites to which mochi ads has distributed it, it doesn't resize the image at all, even if it is left to fully load.

View 1 Replies

ActionScript 3.0 :: Loader Stops Working On Server?

Oct 23, 2009

In my current flash application I and my co-workers are using Loader to load some SWFs from our server. It works perfectly while we have the flash application on our computers running it trough Adobe Flash CS3 but when we publish it and move the html page to our server and try and run it from there the loading doesn't seem to start. I have the firebug plugin for Firefox so I checked if flash actually loaded the images and according to firebugs network monitor it found all needed resources and downloaded them successfully. But the behaviour of our application is as if the loading starts but the complete event is never sent.

View 3 Replies

ActionScript 3.0 :: Getting Preloader Working Using The Loader Class

Feb 4, 2008

I'm having trouble getting my preloader working using the Loader class, here's the code so far...

[Code]...

View 5 Replies

ActionScript 3.0 :: URL Loader Complete Event Not Working?

Jan 26, 2009

I have a really simple class that loads in some XML and splits it into an array, but for some reason the URLLoader wont trigger the COMPLETE event.

Code:
package com.georgecrabtree {
import flash.events.Event;
import flash.net.URLLoader;

[Code].....

View 6 Replies

IDE :: Loader Class Working In Flash, But Not In Browser?

Sep 21, 2009

I'm running into a problem loading an external swf. Check it out here: [URL]

If it's working right, the top and bottom red areas should end up looking exactly the same.

I have "init.swf" loading "cc_home.swf" into a container. When successful, it should fade up (that animation is in "init.swf") and then load the white text (cc_home.swf). What you're seeing on that page is init.swf on top, and cc_home.swf down below.

When I test init.swf directly from Flash, it works fine. In the browser, though, it doesn't load the movie.

Here's the code I'm using in "init.swf" to load cc_home.swf (which I got from Kirupa):

var mycontainer:MovieClip;
var myloader:Loader = new Loader();
var urlrequest:URLRequest = new URLRequest("cc_home.swf")
myloader.load(urlrequest);

[Code]....

View 1 Replies

ActionScript 3.0 :: Flash Loader Loading Swf Not Working?

Jan 17, 2011

I'm having trouble with a simple loader not loading an external swf file.

I have a set of menu buttons (created from a class) that store the swf file name. When these are clicked they run a function that supposed to load the swf file but for some reason it doesn't (but maybe it does load it, just not display it). So here's the code:


Code:
var urlLoader:Loader = new Loader();
var pageHolder:Sprite = new Sprite();
pageHolder.height = 420;

[Code]....

The "page loaded" trace is being displayed, so must load the swf but not show it.
I can't even see the preloader. I also tried a very simple swf file with just some shapes and 1 frame but still no luck.

View 1 Replies

Professional :: Var Loader - Event Complete Not Working Properly

Mar 6, 2011

I have confirmed to my satisfaction that the following code never triggers the Event.COMPLETE of var loader:

var loader:URLLoader = new URLLoader();
var req:URLRequest = new URLRequest(contact_url);
var variables:URLVariables = new URLVariables();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
req.method = URLRequestMethod.POST;
[Code] .....

However, it does in fact send the emails it is designed to send! Why doesn't it complete when in fact the work is done?

View 3 Replies

ActionScript 3.0 :: Video Progress Loader Partially Working.?

Jan 6, 2011

On my stage I have a mc (videoLoader) with the mc (loadBar) inside it. When I preview the movie it shrinks loadBar to where it should, but it doesn't expand as the video loads.

ActionScript Code:
this.addEventListener(Event.ENTER_FRAME, loading);
function loading(e:Event):void[code].........

View 3 Replies

ActionScript 3.0 :: Loader Not Working - Error #2007: Parameter Url Must Be Non-null

Dec 5, 2009

I am trying to load an image. The image paths are stored in an xml file called "setup.xml". I'm getting the strangest error. Never seen it before.

[Code]...

View 3 Replies







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