Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

themitchnz

Members
  • Posts

    4
  • Joined

  • Last visited

themitchnz's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks for the reply. I figured it would be more of a Flash Issue, so I just wanted to ensure I wasn't doing something blatantly wrong.
  2. Hi, I am having issues with random stuttering while scrolling an image. I am creating a simple panorama image viewer, The image is loaded in via LoaderMax as well as settings related to scrollSpeed wrapEnabled etc.. Basically I load in the image, add it to a movieClip and then add the MovieClip to a BlitMask and then tween the scrollX value of the blitMask. Once I set the fps to 60 the tween is nice and smooth 90% of the time but every now and again it stutters for 2-5secs then goes fine again. I am using a few images I found on google images as test cases, and none are extremely large (around 1500x500px). I have created a very simple example that recreates the stuttering. Just hold the mouse down to scroll. It happens every 10 secs or so. Here is a link to the fla, it is in Google Drive which tries to open the file, but gives a download link once that fails. (the attach option in the post topic wouldn't accept it?) https://docs.google.com/open?id=0B4XU51X_f9wCT0d0aFhIY0V3akE I'm hoping I am just doing something wrong rather than it being something outside my control e.g. Garbage Collection. I should note, that it has to run on Flash Player 9, Thanks!
  3. Sorry for the late reply. I was creating a simple version to upload, but when I tested it, it worked as expected and I was unable to recreate the IO error. I should also point out that this error was only appearing in Flash Player 9. My XML was loading in another image separate from the rest, outside my images node as follows: It turns out that by cutting and pasting that seperate ImageLoader in with the rest it allowed all the alternate Url's to work as expected. I'm still not willing to remove my poor coding skills as a probable cause of the failure (I'm still pretty green!), but it's also likely to be FP9 being weird as usual.
  4. Im using an XML loader to load in some images, xml is as below: ]]> </contentTextField> <br /> </ImageLoader><br /> <br /> <ImageLoader name="Yellow" url="images/yellow.png" alternateURL="images/yellow.png" load="true"><br /> <contentTextField><![CDATA[ ]]> </contentTextField> <br /> </ImageLoader><br /> <br /> <ImageLoader name="Red" url="images/red.png" alternateURL="images/red.png" load="true"><br /> <contentTextField><![CDATA[ Because the swf & xml will be uploaded to several locations on a server I am prepending the urls with the string imagesFilePath var xmlFilePath:String = root.loaderInfo.url.replace(".swf",".txt"); //get filepath to load xml var imagesFilePathAry:Array = root.loaderInfo.url.split('/'); var imagesFilePath:String = ""; //get path to images for (var i = 0; i < imagesFilePathAry.length -1; i++) { imagesFilePath += imagesFilePathAry[i]; imagesFilePath += "/"; } The problem is that it fails to load the images on my work computer as it can't find the files, at home it's fine, uploaded to the server is fine. It works on the work computer when I don't prepend the urls (i.e. it is happy with the relative filepath) but then it no longer works when uploaded to the server, as it requires the full path What I am expecting to happen is this; On the server - it loads from the the prepended url with the full file path. On the work computer - (for whatever reason) it can't find the images from initial url so switches to alternateURL and loads the images from the relative filepath However it still give an IOError on the work computer so I'm assuming both the url and the alternateURL are getting prepended with the full filepath?? Any help would be greatly appreciated either with getting a filepath that will always work or getting the alternateURL to work. I've been struggling with this for the last day and half now!.
×