Page is a not externally linkable
- Code, Content, and Presentation
-- Flash and Shockwave
---- Problem loading images into Flash carousel via XML


rocknbil - 6:21 pm on Apr 10, 2008 (gmt 0)


Without being there, I'm shooting in the dark, but maybe the following will help.

I did check the paths and the XML and FLA are in the same directory,

Here I hope you mean images. :-) Different methods are used to load movies as opposed to images or other static data.

it just shows the background shape of the innermost movie clip. . . . It doesn't work within the authoring environment or when embedded in a page.

Are you familiar with the trace() command in Flash? In the authoring environment, this will be one of the most useful debugging tools. Follow your ActionScript through and wherever you suspect a problem, insert trace().

var nextImg = imgArray[i];
trace('next image should be ' + nextImg);

You can store variables in it or just use it for benchmark messages to see if a function is loading:

onEnterFrame = function() { trace('got to frame 4'); }

A window will pop up with the values as it's running. This will only work when testing from the authoring environment, and if you export it with trace() in the coding, it won't hurt a thing, it's all ignored when exporting to .swf. Trace the project through, see why the images aren't loading up.

With regards the FLV files that I hope to "embed", these will categorically not play within the carousel item?

It sounds like you have an image viewer, right? Somewhere in this project will be a setting for how long each will display - example, 5 seconds. When the image loads, a timer is set to move to the next images.

If you have 10 second video clips, it will change halfway through the video. You need to set the timer off on the end of the video, whenever that is.


Thread source:: http://www.webmasterworld.com/flash/3621143.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com