PDA

View Full Version : panoramic picture doesn't seem to load?


notsotrickyricky
08-08-2008, 08:24 PM
I'm not sure I understand how flash works with pictures. I have assumed that they were saved as part of the swf file? But I have run across an instance now where the swf file loads in the browser but doesn't show the picture? You can scroll left and right and see when you get to the end but it is only displaying a solid red background and not the image?

It plays perfectly locally on my computer but not when uploaded to the kiosk it is made for, (which runs winXP and uses flashplayer 9) or when it is uploaded to a website and tried to run in the browser?

Am I supposed to somehow facilitate this? I did load the original picture, the one I imported into the flash file, up to the website and tried running it then and it still would not show the picture?

Going nuts on this and would be most graciously happy for any help or direction that someone might offer! :)

Thank you!

atomic
08-08-2008, 08:50 PM
Attach your .fla to this forum.

notsotrickyricky
08-08-2008, 09:47 PM
Attach your .fla to this forum.

I just tried to upload as an attachment and it failed? It may be too big? Is there a limit? The fla is 9.8 meg? I'm using a high res picture for my panoramic view.

should I just post what could I'm using as snippets?
(everything works fine locally on my puter) plays without a hitch. only on internet or the kiosk computer I'm tryin to load it on does it just show a red background instead of the picture?

I just loaded my fla to this address:www.coreyscorner.com/scroll.fla
I just tried it and it brings up a window to open or save. Hope that will help.

atomic
08-08-2008, 10:11 PM
Limit is 500KBs once zipped up...

Use a file sharing site as www.rapidshare.com and provide a link to download it from there.

notsotrickyricky
08-08-2008, 10:23 PM
Limit is 500KBs once zipped up...

Use a file sharing site as www.rapidshare.com and provide a link to download it from there.

Not sure if you saw my edit to the previous post so here is the addy for the fla again. www.coreyscorner.com/scroll.fla

I should mention again that it plays fine for me when I test it locally as it may for you but if I put it on a website and access it it doesn't load the picture but it plays. You can tell it plays when you let it get to one end of the picture or the other. So the file seems to work fine with the exception that the picture is lost?

Edit: Oh yeah the preloader you see is not part of what I want in there. I just built it to see if it would help to make sure everything was gettting loaded. That part of the code and the frames it uses won't be there when I make it final.

atomic
08-08-2008, 10:44 PM
Maximun width or height of any given movie clip in Flash can't exceed +/-2880 pixels.
Your picture is 13,585 pixels wide! See any contradiction here?

You'll have to slice your picture into 5 slices (each smaller than 2880 pixels), use 5 movie clips, all tagged together back in Flash, and controlled by actionscript...

And you'll definately need a preloader on this!

notsotrickyricky
08-08-2008, 10:51 PM
Maximun width or height of any given movie clip in Flash can't exceed +/-2880 pixels.
Your picture is 13,585 pixels wide! See any contradiction here?

You'll have to slice your picture into 5 slices (each smaller than 2880 pixels), use 5 movie clips, all tagged together back in Flash, and controlled by actionscript...

And you'll definately need a preloader on this!

Thank you very much atomic! I will do as you say but I'm curious as to why it doesn't have an issue when I test it locally? I can play the swf with a flashplayer or run it from inside flashcs3 and it plays fine? Even on my home computer it runs fine? One other question do you have any code tips for run the clips one after another so there doesn't seem to be a seam? I actually have no idea where to start with that?

Edit: also if I may ask do you think I'll need a preloader when once the file is loaded it will never be offline unless I install another version? It will be on a kiosk that runs 24 hours a day

notsotrickyricky
08-08-2008, 11:33 PM
Hi atomic did you read my last post and edit?

atomic
08-09-2008, 12:26 AM
Can't really explain why it works locally and not online... Most likely differences in the standalone player and the browser plugin players...
And I'm not at all familiar with kiosks, so don't know anything about those...

As for the preloader, I was talking for online use... Not for kiosk...

If you don't preload all 5 slices online, there will be a jerk, when the scroller hits each slice on the initial download at least... After the initial download it should run smoothly...

To tag each slice to the previous one, you would base your scroller's code on the first slice, and then just need to position the second slice movie clip, according to slice #1's x coordinate + slice #1's width, thus whenever slice #1 moves in any direction, then slice #2 will follow it...

Slice #3 would follow slice #2 and so fourth...

notsotrickyricky
08-09-2008, 09:57 PM
To tag each slice to the previous one, you would base your scroller's code on the first slice, and then just need to position the second slice movie clip, according to slice #1's x coordinate + slice #1's width, thus whenever slice #1 moves in any direction, then slice #2 will follow it...

Slice #3 would follow slice #2 and so fourth...

can you suggest some way to do this. I have been trying to figure this out since you posted it and am not having much luck? I don't know how to reference each clip for one thing? I have them instance named, part1_mc, part2_mc etc and that is the same as the linkage name which I enabled.
I was tryin to create a variable that would track the current movie like,
var currentMovie = part1_mc; but that isnt working. and if # 2 follows number one using #1's x coords? wouldn't that just continue past the amount of pixels allowed? 2880? I do appreciate you assistance. :)