ActionScript 3.0 :: Image Not Loading Properly In IE But Ok In FF Or Safari
Oct 30, 2008
I made a simple slideshow type viewer for a client. It works wonderfully for me in OS X using Safari and Firefox, and it works in Firefox under windows as well. Linky Now, the guy writing the backend stuff for the site uses windows, and noticed that when you navigate *away* from the page, and then go back, the images don't load. In IE 7. He sent me a screenshot using some http debugger.
Screenshot So, we figured we'd use a "cache buster" in IE. I made the flash append "?<RANDOM_STRING>" when requesting the images, but it doesn't seem to do the job. The HTTP debugger shows the request occurs, but Flash never actually receives the image. Here's the entirety of the class "SlideshowImage" which is responsible for loading the images ( and other junk, like photo credits, etc ). Hopefully somebody with more AS3 experience can hit me with the proverbial clue stick. I've been writing AS2 for a long time, but AS3 for only the last 6 months or so. I've never seen these problems in AS2, so I assume I'm doing something wrong in AS3.
A final note. I know that the XML file which describes the slideshow is being correctly loaded, since I can see the correct copy overlay and other factors. It just appears that the images never come down the pipe.
View 1 Replies
Similar Posts:
Nov 17, 2010
The latest versions of firefox and Safari both cannot display email links. For some reason they don't parse ou the "mailto:".
View 5 Replies
May 9, 2010
I'm loading data from an XML file via Actionscript. Here's the portion of the code that loads the XML [code]...
View 1 Replies
Sep 28, 2011
I am having issues with my movie not loading in Safari.
I am publishing the movie from Flash CS4 and using all the code it spits out in the html page. It works fine in IE and FF but not Safari.
Is there something I have to change or add into the code within the html page??
[URL]
View 1 Replies
Mar 31, 2011
I've built a form, and next to my form element I've placed a flash object. When the page is loaded, the form is display: block, and the flash object is display: none.
The layout looks something like (the img is there so that if the user doesn't have flash, the gif animation will play instead):
[Code]...
View 2 Replies
May 10, 2010
I seem to have a problem with loading data from an XML file via Actionscript. It appears to only display/load in IE and Firefox, but not in Safari.[code]
View 1 Replies
Oct 11, 2007
is there anything I need to do different when loading XML into an actionscript for the Safari browser?
my first item in the XML is not showing up in Safari, and in IE it is...
View 2 Replies
Dec 9, 2011
I have a simple swf in an invisible <div>; when user mouseover's the <div> becomes visible.The swf has a ExternalInterface.addCallback( "..." , ... ) to create connection to js that needs to be called at load, such that by the time user mouseovers the flash-js connection is working.PROBLEM: on windows safari the flash does not go through its loading sequence until the user finally mouseovers
View 1 Replies
Mar 4, 2008
I load images from an XML file and sometimes everything would load up just fine, but there are times when flash would stop loading in the middle of my my list...
[URL]
On firefox, all items usually would load up all the time but there are occassions where it would only load 3 out of 8 or some anywhere before it's suppose to finish. If you keep hitting refresh on the link i posted, you'll see. its even worse on safari since it would seldom load the whole thing... never had a problem with IE though.
here is the code im working on
Code:
var productHolder:MovieClip = productHolder_mc;
var bannerHolder:MovieClip = bannerHolder_mc;
var paginationHolder:MovieClip = paginationHolder_mc;
var whatIsaLoading:String = "";
[code]....
View 2 Replies
Jan 29, 2010
A strange issue in Safari (both Mac and PC) versions... coming to the site with a clean cache and the Flash file, loads in cut in half, and hugging the top of the browser. A refresh fixes the issue!
View 2 Replies
Feb 7, 2010
Is there a major issue with rendering Flash in Safari?
I have search for a way to display, for example, Adobe Home Page in Safari and be able to see all the menus "on top" and have not found a solution.
I have tried setting wmode to either opaque or transparent but no change.
I am using the latest download of Safari (vs 4.0.4[531.21.10]) on Windows 7.
View 1 Replies
Apr 5, 2012
How could it be a SWF is not loading in internet explorer chrome on windows but works fine on firefox and safari on osx? I called the file like myhomepage.fr/videoplayer.swf
Does this direct all of swf is non supported on IE?
View 1 Replies
Sep 30, 2010
If been trying to refurbish my website using solely OSMF but, the sound part gives problems in various browsers. It works in IE6 and FireFox but, it doesnt in Chrome and Safari. Does anyone know what is happening and what their differences are when it comes to file loading?[URL]check it for yourself clicking the buttons in various browsers the Flash button uses native flash sound libs the OSMF button the OSMF implementation.
Main.as
Code:
package {
import org.osmf.elements.AudioElement;
import org.osmf.media.MediaPlayer;
import org.osmf.media.URLResource;
[code]....
View 1 Replies
Jul 22, 2009
I'm loading XML, but I'm having trouble making a for loop so that I can output into text fields my xml info.I use this to load and put into the output window. Eventually I will put it into a text field.What I want really to do is for flash to output a list. This is what I want it to look like.
PHP Code:
var newsXML:XML = new XML();
newsXML.ignoreWhite = true;
var output:String = "";
[code]....
If you look at this XML you will see that there are many different TOURNAMENTS. What I want is to have them all in a list.
View 1 Replies
Jun 18, 2009
I decided to use a loader method for a flash project. When I load swf files from a folder on my computer into my main movie, it loads just fine. However, when I try to load the same exact swf files from a remote server, the script fails on me giving me an error like this: TypeError: Error #1034: Type Coercion failed: cannot convert Com@2f949bc9 to Com.I had imagined that this was due to security domains, so I had tried something like this:[code] SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property. file:although everywhere states it should work.I even have makeshift class files for those SWF's on the server with Security.allowDomain(["*"]);
View 5 Replies
Apr 21, 2011
So I made a flash that uses a preloader, then once finished loading mc1 should be visible and playing along with a couple buttons. It loads properly most of the time, but maybe 10% of the time mc2 loads instead of mc1, no buttons are visible, and mc2 isn't even playing (refreshing the browser makes everything work properly btw). Is there some way I can make it load properly 100% of the time?
View 1 Replies
Jul 28, 2011
I have a form that loads from a request through a zip code widget from another page. THe widget populates two of the form fields immediately, on submit, on the new page.My problem is that I have a pretty complicated piece of flash on there as well that has ONE main issue.My flash is essentially a pie chart that lights up on mouseOver events and onClick events in the form check boxes.It works like it should except for the fact that on initially loading the page the javascript will not see the pre-populated check box and perform the corresponding highlighting action.This only happens in fields that are populated through the widgets, if a user checks the boxes it works fine as I have an onClick event handler attached to it.I wrote a preselect function that will determine if the field is preselected or not by a widget and then pass that on down the line to highlight it correctly (which it does as long as I have the alert functioning). Now, if I add an alert inside of the script (it doesn't matter where, as I've tried them in every function) it works like it suppose to and sees the fields that are populated immediately by the widget and highlights the corresponding field as it is suppose to.Why would an alert box be the only thing keeping this working. It is the simplest of alerts, but removing that breaks my code.Here is my code:(I placed three * on either side of the alert that I am talking about)
YAHOO.namespace("SOME.Place.QuoteRequest");
/**
* @projectDescription SOME.util.QuoteRequest is the namespace for all quote request related functions. This is a supplemental controller for quote request pages.
* @return (object) function executes automatically when parsed and returns references to it's public members
* @author web development[code]..........
View 1 Replies
Mar 26, 2012
im trying to learn flash actionscript 3.0 basically i just want to learn how to put 1 simple picture into a flash document using XML so far ive got
<Gallery>
<IMAGE TITLE="Picture">Desert.jpg</IMAGE>
</Gallery>
thats my XML code DESERT is a picture on my laptop from the sample pictures
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
[Code]....
this is my flash code when i run it i get a ton of errors which im confused about also the myLoader is a textarea box with the instance name myLoader
View 1 Replies
May 21, 2009
I'm loading XML, but I'm having trouble making a for loop so that I can output into text fields my xml info. I use this to load and put into the output window. Eventually I will put it into a text field. What I want really to do is for flash to output a list. This is what I want it to look like.
PHP Code:
var newsXML:XML = new XML();
newsXML.ignoreWhite = true;
var output:String = "";
newsXML.onLoad = function(success) {
if (success) {
var news:Array = newsXML.firstChild.firstChild.childNodes;
[Code] .....
If you look at this XML you will see that there are many different Tournaments. What I want is to have them all in a list. I also want to have scrolling bar.
View 6 Replies
Oct 6, 2008
Ive been having trouble with Flash Player for quite some time now. I can watch some videos, but it takes some struggling to get them to work.
For example, on NFL.com, I can't watch any videos by clicking "Play", the video will just grey out and remain that way forever. However if I can find the video on the list underneath the player, sometimes when I click on the thumbnail the video starts automatically and I can watch it.
On Patriots.com things are a little worse. The player controls underneath the video don't load at all and I cant watch
[Code]...
View 1 Replies
Apr 10, 2005
I found a script which loads text from a TXT file. Now the code worked fine on a button, but as soon I put that code on a MC it doesn't load the variables properly. That meas; I don't any script errors, but the text doesn't appear in the dynamic texterea.
Code:
on (release) {
loadVariables ("document1.txt", "");
mytext.scroll=x
}
Now I want this script to work on a MC!
View 4 Replies
Mar 2, 2011
I am developing a movie which panning an image. Following code works fine but it leaves blank area when i run it (when i switch to full screen at browser).
function panThisImage(target:MovieClip, speed:Number,speed1:Number, dir:int) {
var mousePercent:Number = mouseX / stage.stageWidth;
var mousePercent1:Number = mouseY / stage.stageHeight;[code]..................
View 1 Replies
Mar 15, 2011
following this exampleI'm trying
import com.extjs.gxt.charts.client.model.ChartModel
ChartModel cm = new ChartModel(graphTitle, "color: #738995;font-weight: bold;font-size: 20px; font-family: arial; text-align: left;");
[code]......
View 1 Replies
Feb 10, 2012
I managed to get the swf to load fine on this page (www.diamondraindesign.com) until I added a full-screen invisible button that goes over the slides. It uses the same counter to sync with them so that whenever someone clicks on it they go to the proper page. Unfortunately, now only the link works to the first page item, and sometimes I can't even see the slides 'loading' text, just a white background. If I take the link button out, the slides are fine. Why is the link interferring, and how do I get it to sync and not stop the slides?
View 11 Replies
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
Oct 26, 2004
check this out: [URL] this swf does use this code:
Code:
optredens = new LoadVars();
optredens.load("optredens.txt");
optredens.onLoad = function(){
_root.aankomend = this.aankomend;
_root.geweest = this.geweest;
}
as you see in the swf you first have to switch with "aankomende optredens" en "gespeelde optredens" before you can read the aankomende optredens text... why? i just want it to load immediately, so you can read it... without having to read "undefined"
View 4 Replies
Apr 10, 2007
this is my xml file
Code:
<game>
<question type="image">
[code]......
View 2 Replies
Oct 26, 2004
[URL] this swf does use this code:
Code:
optredens = new LoadVars();
optredens.load("optredens.txt");
optredens.onLoad = function(){
[code]...
as you see in the swf you first have to switch with "aankomende optredens" en "gespeelde optredens" before you can read the aankomende optredens text... why? i just want it to load immediately, so you can read it... without having to read "undefined"...
View 4 Replies
Apr 14, 2007
I have some problems with Bitmap displaying properly loaded image, when providing variables as width and height in the constructor as opposed to numbers, example:
[Code]....
Running the app with this code cuts away half of the picture from right and half of the picture from the bottom. Since the BitmapData is filled with solid white background, the clipping is clearly visible. When line marked with [*] is commented out, and line marked with [**] is uncommented instead, the whole picture displays and all is just as expected. The only difference between those two lines of code is, that in line [*] are used some properties+variables, and constants are used in line marked with [**].
View 5 Replies
Feb 1, 2009
I recently created a visual quiz app which asks a question and then gives 4 image answers.The problem that I'm having is that the images don't shrink the image into their quadrants, but rather, zooms in on the top left corner of the image.Can anyone tell me what I have to change in the following code to make the images display at a set width (so that they fit in the quadrants proportionally).Here is what the SWF looks like now. As you can see the images become distorted because they are being stretched. What should happen is that the images be displayed at a fixed width and variable height.
Code:
var dataXML:XML = new XML();
var arrSounds:Array = new Array();
[code].....
View 1 Replies