;

PDA

Click to See Complete Forum and Search --> : Help with Slideshow please


mark_fla
08-21-2006, 07:30 PM
I am stuck and I'm sure that it's a simple mistake but... dang if I can get this slideshow working on a webpage. The swf file works great and I can run it directly from the web. But when I pull up the page that reference it, it won't run. Can someone help me please?

Here's link to html file where swf is embedded (http://www.greaterpinellaspoint.com/slideshow.htm)

Here's directory where files are located (http://www.greaterpinellaspoint.com/slideshow/)

Thanks very much!

mark_fla
08-21-2006, 08:00 PM
Ok, so I went back into KoolMoves and let it export the html but the slideshow still doesn't work even from this page. Hmmm... what am I missing?

Chris_Seahorn
08-21-2006, 08:17 PM
Well,,,that would be great if any of it was useful to us. We need the fun file...we have no idea what you are doing...calling...invoking...scripting...placing.. .etc etc that could be buggering it up.

Attach it if possible ;)

mark_fla
08-21-2006, 08:24 PM
Here is the fun file:

Chris_Seahorn
08-21-2006, 08:46 PM
make two movieclips in an empty movie. They will default to mc1 and mc2.


paste this on frame 1 and run it:

mc1.loadMovie("http://www.greaterpinellaspoint.com/slideshow/maximo%20gate%202.JPG");
mc2.loadMovie("http://www.greaterpinellaspoint.com/slideshowmaximo gate 2.JPG");

The upper link is how your browser reads your images with spaces in the names. That is the urlencoded equivilent. It is more forgiving than flash and converts the spaces on the fly.

The lower link is the links as flash is seeing them...with the spaces since it reads the names as you've pasted them in the GUI. Flash is very strict in this sense and has to get them urlencoded if spaces must be used.

http://actionscript.hobby-site.com/examples/mark_fla.jpg

clear all spaces in the names and you'll be styling :) ;)

mark_fla
08-21-2006, 10:10 PM
Hi Chris,

Ouch... I've been bitten by that file names in flash issue before. Ok, I've changed the file names and redone the swf file. But unfortunately it's still not working, evidently I'm doing more than one thing wrong. I've attached the fun file.

Here is URL for webpage (http://www.greaterpinellaspoint.com/slideshow.htm)

Here is directory of files (http://www.greaterpinellaspoint.com/flash/slideshow/)

Thanks for your help!

mark_fla
08-21-2006, 10:43 PM
Kind of weird that it will play just fine if I call it directly as in:

Direct link for swf file (http://www.greaterpinellaspoint.com/flash/slideshow/slides.swf)

File sizes are incorrect but it does run.

Chris_Seahorn
08-21-2006, 11:07 PM
I had no issue:

http://actionscript.hobby-site.com/examples/markfla/slides_test.html

I right clicked downloaded the first five just like in your list of pics in the component. Opened the fun file and smoked every pic you had listed and started again. One at a time you browse...add the file (it defaults to the same dir) and add. I then Saved the fun file IN THE SAME FOLDER and exported to the same folder.

When you import things into Koolmoves...you must be consistent with where you add things and how you add them because it will remember (that is why we get "can't find image" errors when we edit fun files outside their original creation folder and the paths get skewed).Even though you did not import the mage..it made a note of it's path which later was changed somehow.

mark_fla
08-21-2006, 11:09 PM
Ok, now it's playing one file out of 17. Plays west6.jpg which is next to last in the list and just sits there. Not sure what I've done but I think I've made a mess of things. Any ideas?

mark_fla
08-21-2006, 11:10 PM
Ok, thanks Chris. I'm going to start from scratch and see if I can get it straight this time. Thanks for your help

Chris_Seahorn
08-21-2006, 11:22 PM
Everybody does it...I did it too ;)

These components are something very cool. This one in particular has a lot going on under the hood when you use that "Browse" button...that is when Bob's wizardry kicks in because what on face value may be a simple Browse button is really a lot happening inside the app that you never see and path of the file you browse to is used in many ways (guessing).

Chris_Seahorn
08-21-2006, 11:27 PM
Remember...if you put it on the web everything (subfolders and all) must match what they were when you authored. You can leave the fun file offline but if you make a folder named mark.....add all those pis in it...create a new fun file with a component....save it as mark.fun....go back and add the pics by browsing to each inside the mark folder by adding items...export it.....remove the fun file and hit that SWF online...it will run. I know it will....I'm lookin at one :)

mark_fla
08-22-2006, 12:35 AM
Hi Chris,

Ok, I know what it is now. Everything has to be in the same directory, html file, swf, and image files. This is not how I wanted to run this but I can't figure any other way.

I have a slideshow on my home page, and I wanted a subdirectory to contain the swf file and images. But for now it appears that everything has to be in root directory. That is unless you know another way.

Thanks
Mark

Chris_Seahorn
08-22-2006, 12:55 AM
no...you can choose images from a subdirectory as long as that same directory structure is the same as the way the directories are setup on the server..

You could use a folder named mark...with subfolder named pics and save the fun file in the main mark folder. When you select with the Browse button...navigate to the subfolder....choose and add. As long as on the web the pics folder in beneath the SWF it will work...making sense or no?

http://www.somepath.com/Mark/slideshow.swf
http://www.somepath.com/Mark/pics/pic1.jpg
http://www.somepath.com/Mark/pics/pic2.jpg
http://www.somepath.com/Mark/pics/pic3.jpg

etc etc

mark_fla
08-22-2006, 01:30 AM
Hi Chris,

I've tried a directory structure like you mentioned. But when I set it up this way I can not play the slideshow in these subdirectories from my html file in the root such as www.somepath.com/index.htm.

And yes I am using the Browse button and navigating to file and I make sure the directory structure is the same on the server.

I hope that I mentioned that I'm loading images externally and not embedding them into the swf file.

w.brants
08-22-2006, 01:39 AM
When you use the gui to set external images for slides, the paths aren't used and the images need to be inside the same directory as the swf file. When you set it up manually using actionscript you can use subdirectories without a problem. It's just the way Bob implemented it into the gui.
You can always ask him if he will consider supporting subdirectories in the next KM version.

Chris_Seahorn
08-22-2006, 08:18 AM
See that...I just learned something myself :) It really doesn't?

I usually feed them with a snake like the one in the Exchange so I apologize for assuming it did read subdirectories (really doesn't???...lol).

mark_fla
08-22-2006, 09:00 AM
Yeah, Bob just confirmed it with me via email as well.

No problem, for now as long as everything including html file are all in same directory it works fine. Maybe next version of Koolmoves will support subdirectories for slideshow.

Thanks!

Chris_Seahorn
08-22-2006, 09:38 AM
Yeah, Bob just confirmed it with me via email as well.
In that case...thanks to Wilbert for confirming to the rest of us :thumbsup: