ActionScript 3.0 :: Loading Images Doesn't Work Online?

Aug 23, 2010

But it works fine locally.

I've created an extremely simple flash website. I need it to display some pictures and to keep the filesize down I want to load these images on demand. The images are hosted on my server in folders in the same directory as the website swf and the html file that initializes the swf.

I use the most rudimentary way of loading an image, it looks like this:

Code:
var loadStart:Loader = new Loader();
loadStart.load(newURLRequest("images/start/screenshotstart.jpg"));
startScreenshot.addChild(loadStart);

When I upload the website to the server it simply does not display the image, it's not loaded, the place where it's supposed to be is blank.

I've searched the site and there have been some threads with similar issues but the answers given just don't seem relevant. Something about cross domain policies, but all my images are on the same domain as the website swf.

View 2 Replies


Similar Posts:


ActionScript 1/2 :: Loadvars Doesn't Work Online?

Jul 13, 2010

I've got a simple text file with a variable in it: &tekst=This is a test&
 
I'm loading it with LoadVars and let the text of one dynamic textfield be replaced by the 'tekst' variable.
 
stop();
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if (success) {

[Code]....
 
This works offline, but online the text isn't replaced? This should work right?
 
The code and the dynamic textfield are both on frame 1. The swf only has this one frame. The txt, swf and html file are at the same location.

View 2 Replies

ActionScript 2.0 :: Loadvars Doesn't Work Online

Jul 13, 2010

I've got a simple text file which I want to read with LoadVars:

Code:
&tekst=This is a test&

I'm loading it with LoadVars and let the text of one dynamic textfield be replaced by the 'tekst' variable.

ActionScript Code:
stop();
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {

[code]....

This works offline, but online the text isn't replaced? This should work right? So what's wrong? All I've got is this one frame with code and a dynamic textfield.See attached files. The published files .html .txt and .swf are all in the same location.

View 8 Replies

ActionScript 2.0 :: [CS3] Load Data From A .txt File, It Doesn't Work Online

May 11, 2008

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?

View 2 Replies

ActionScript 3.0 :: Parsing An Xml File Containing Some Namespaces - Online Tutorials Doesn't Work

Sep 20, 2011

I am totally new to actionscript (barely could set up the IDE environment for Linux). I have trouble parsing an xml file containing some namespaces. All the tutorials and samples i found online are not working for me. the file looks like this:

[Code]...

View 3 Replies

ActionScript 3.0 :: Loading In Images Online?

Jun 28, 2009

I'm making a 3d fly-through gallery, which is XML controlled, and loads in thumbnails, and then after loads in the images when you click on the thumbnails.Everything works fine when on my local hard drive, but after testing it on a website, it doesn't work.It loads the XML fine, but it never loads the images, or the thumbnails. The .xml file is in the same directory as the .swf, but the images and thumbnails are each in their own folders ("images" and "thumbnails").The funny thing is that it only does this when I tested it using Mozilla Firefox. I tried with Internet Explorer, and voila, it works magically!

I'm using the Loader class, and URLLoaders to load in everything, including the XML file, so it's either a thing about the different directories, or the fact that it's images...

View 4 Replies

ActionScript 2.0 :: Buttons Disappear After Loading From Xml Online But Work Fine On Machine?

Aug 9, 2007

i am using flash 8 professional and making my portfolio site using xml with flash. when you click the red buttons on the right, thumbnails appear on the left (and when you click those, more thumbnails appear, and then you click those and the image appears.) on my machine it works properly, BUT when i upload it, the thumbnails appear and then erase themselves (all except the first two). it's inconsistent and totally weird. i changed some of the code, tried messing with the publishing settings, and re-uploaded and nothing changed. a friend who works at an actionscript company said it doenst make sense that it works differently on my machine than online. she also confirmed that the way i embedded the swf in the html is correct

View 3 Replies

Actionscript 3.0 :: Tag Doesn't Work On Images In Html Textfield

Apr 14, 2009

I've got some HTML text in my XML which i load in flash. But when i try to use an image as a link using <a href="http://site.com"><img src="img.jpg"></a> nothing happens when i click the image. Links work fine unless the image is wrapped in the "a href"-tag. Anyone know how to solve this?

View 6 Replies

ActionScript 3.0 :: Loading XML Generated By PHP Doesn't Work

Oct 6, 2009

I checked format. This is the xml output:
 
<?xml version="1.0" ?>
<root>
<nivel nombre='A1'>
<item>

[Code]....

To see the xml, but itīs php. It hasnīt generated it.
 
 I follow every tutorial. This is the way. Is there any other way to make it "EXECUTE" the php code?? it donesnīt seem to work. The same happens when i assign it to an XML in AS3. It doesnīt work.

View 9 Replies

Professional :: SWF File Doesn't Load Images Correctly And Buttons Do Not Always Work Properly.

Jan 7, 2011

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.

View 2 Replies

ActionScript 2.0 :: SWF File Doesn't Load Images Correctly And Buttons Do Not Always Work Properly

Jan 7, 2011

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.

View 9 Replies

Flash :: Loading SWF Doesn't Work When SWF Is Stored On Local PC

May 2, 2011

I have an HTML file which contains a Flash .FLV player; which then loads a given FLV video and plays it. The idea is all these files are stored locally on the PC as part of an application install, we use HTML/flash for the help/manual. On my PC it works fine but on a user's PC nothing is displayed. However if I host the exact same file-structure online and give them the URL, it works perfectly.

I am guessing this is a security issue of some sort but have no idea how to address it. The browser being used is actually a XULRunner app, i.e it's the FireFox 3 engine but not actually FF. Since my PC isa developer PC it's entirely possible I've done something in the past on another project that makes it work, rather than my PC being special in some way. For reference the HTML has the following in it - this is generated from some 3rd-party app:

[Code]...

View 1 Replies

ActionScript 2.0 :: Why The Loading Screen Doesn't Work Properly

Dec 19, 2010

I have been trying to get my file to work for a day and a half now. Any help with the error or why the loading screen doesn't work properly [URL]

View 9 Replies

ActionScript 2.0 :: Loading French Characters Doesn't Work?

Nov 12, 2004

im loading a text from a mysql-db with php. I use url encoding/decoding but still my flash shows a small "square" instead of "ïŋ―" (for example) in the textfield (using arial). Embedding the font doesnt work either i think.

View 1 Replies

ActionScript 2.0 :: Loading Dynamic Swfs Doesn't Work

Jan 16, 2006

To load a swf, I tried using the following code

[Code]...

View 2 Replies

ActionScript 2.0 :: Loading Game Second Time Doesn't Work

Feb 1, 2007

I have built this AS2 game that uses quite a few classes and library symbols.It works fine the first time you play the swf. But if you try to do the whole ctrl + ENTER in the Flash IDE, it doesn't seem to load any of the assets that are dynamically attached to the stage.This also happens if you have another swf use loadMovie to load it.I have all the dynamically attached symbols assigned with the linkage and set to export on the firstFrame. There is an include .as file on the first frame of the fla.

View 3 Replies

ActionScript 2.0 :: Loading External Swf Stuck Or Doesn't Work?

Aug 8, 2011

I'm doing a project and I faced problem with loading external swf I have main swf which load external swf which work alone but when I load it from main swfall code do not workI tried and searched for solved codes but in vain)I tried this code whick makes external swf work but the buttons in main swf disappear

tn.onPress = function() {
this._parent.loadMovie("01.swf", "input");
};

[code].....

View 4 Replies

ActionScript 2.0 :: Loading External Txt Doesn't Work In MX2004?

Nov 1, 2004

Okay I have some files built in MX that use this on the main timleine:

Code:
function textLoad(filename) {
loadText = new LoadVars();

[code].....

View 9 Replies

ActionScript 3.0 :: Flags Menu - Loading Swf With Parameters Doesn't Work

Nov 23, 2009

I have a flash website, with two menu the main menu that loads by Loader class swf files with the respective content. And the secondary menu that changes the language of the site. How do u implement the action of having the site translation?

1)Passing params Load file.swf?langid=n then reading by loader info (this one is not easy to test since loading swf with params doesn't work in flash ide debug env.)or

2) on load complete cast the loader to a movieclip the accessng a main func with the task of translating the whole swf contents(the same func i should have at point 1)

View 0 Replies

ActionScript 3.0 :: Loading External Images Won't Work Within A Class

Aug 27, 2009

I'm trying to load external images in the usual way;

Code:
loader=new Loader();
loader.load(new URLRequest(_thumb));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoadComplete);
private function onLoadComplete(e:Event):void{
thumb.addChild(loader);
}

But when it comes through to the onLoadComplete Function, I get a sandbox violation. I've tried using Security.allowDomain and a crossdomain.xml file, but it just won't work. Even more annoyingly, if I do the exact same thing, but within the main class file, it works fine.5 or so of these classes that need to load images are loaded from an XML file (which also works fine without allowdomain etc). Is there some sort of conflict going on because of there being more than one of them?

View 1 Replies

ActionScript 3.0 :: Video Doesn't Play Online

Aug 6, 2009

If I open the swf on my computer, it plays with no problem at all. When I upload and try to open the file in my browser, I click the initial image that takes you to frame 2 to play the video, and it just sits there blank and does nothing. Could anyone take a look at it for me? [URL]

View 1 Replies

ActionScript 2.0 :: OnLoadError Doesn't Trigger Online?

Aug 30, 2009

The problem is that no matter what file name I try to load it does trigger the onLoadError but always the onLoadInit even though the file doesn't exist. Local it's working but not online. Here's the code:

import flash.net.FileReference;
var jpgListener:Object = new Object();
jpgListener.onLoadProgress = function(file:FileReference, bytesLoaded:Number,

[code].....

View 1 Replies

SWF Works Fine On PC, But Doesn't Execute Online

Sep 3, 2009

I created a custom google voice callback swf so someone could put in their phone number, and google voice will call them and connect them to me (essentially calling me). Everything works fine when i run it from my computer, but when I put it online it doesn't work.

The way it works is you put in your own phone number and name, then click call, and it rings the phone of the phone number you put in. This doesn't happen when accessing it from online though.

I've provided a link to the fla for your view, and I'll also post the embed code I have on my site.

Embed code:

Code:
<div id="gvoice">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="616" height="162" id="gvwidget"

[Code].....

View 1 Replies

IDE :: Swf Doesn't Play Online, Only From Hard Drive?

Mar 31, 2009

I uploaded the swf and embedded flv into the correct directories, but the movie still play online. Even trying to preview it from the CMS won't play.

View 1 Replies

ActionScript 2.0 :: Dynamic Masks - Trail Doesn't Resize And The Mask Still Doesn't Work

Oct 16, 2009

I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:

Code:
var i:Number = 0;
var myInt:Number;
var t:MovieClip;[code].....

in the function, but now the trail doesn't resize and the mask still doesn't work.

View 1 Replies

ActionScript 3.0 :: 2 Flash GMaps / Both Loading Locally But Only 1 Loading Online

Apr 11, 2011

I'm building a flash website which uses a google map for a contact section and another one generated via external class for a projects section (for each one of the projects available there will be generated a map and a marker).This website uses SWFAddress and each of the projects receive SWFAddress dynamicaly via xml, pulling in the name of the project.The problem is when I test the website localy, on Flash IDE both the maps are loaded fine, but once I try it online on a webserver just the map on contact section is being loaded.I've tried to use a different key for each other -the contact section map key based on an url.Does anyone know what the problem might be? Is it because I'm using 2 maps on the same website? Is it because the url generated by SWFAddress is too long (I tried to generate a key based on something like URL...

View 0 Replies

ActionScript 2.0 :: Won't Work When Online?

Sep 15, 2009

I've made a flash site and everything seems fine when I test it in flash and publish and run from my computer.However, when I upload it to my domain the external loader won't load my homepage initially. And I believe I've got a piece of script to tell it to do so.If you open up another page and return to the homepage it works fine.P.S I do have a preloader page prior to my homepageThe external loader script is:

ActionScript Code:
//------------Initialisation-----------\
var currentPage = ("home_btn")

[code].....

View 0 Replies

Buttons Work In Test But Not Online?

Jun 25, 2009

When i test my movie the buttons work fine they get the URL that i want but then when i upload it to my page it does not get the URL. Am i uploading it wrong??? I Uploaded the SWF to the Server and posted it that way is there more involved or did i do something wrong in the actual movie. [URL]

View 5 Replies

Professional :: Links Work In Dreamweaver But Not Online?

Aug 12, 2011

I am trying to figure out why my flash files work correctly locally but don't after I upload them. I am using Mac Flash CS4 and AS2. (They were CS3 files originally)
 
When I use Safari to view the uploaded files and check the Activity window it shows the files load but they don't show up. I have a main swf and others are loaded into it using:

[Code]...

View 4 Replies

ActionScript 3.0 :: Width Doesn't Work - How To Make It Work

Apr 21, 2010

I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.

I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.

Code:
navigatorDown_btn.width = 410;
navigatorDown_btn.x = (stage.stageWidth/2)-(navigatorDown_btn.width/2);
trace(navigatorDown_btn.width); // output: 410

View 4 Replies







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