I got an html page that has small pictures that are links to the big pictures. I want to use the slideshow component, then use the gotoSlide() function. I want the slideshow to go to the same slide as the one clicked. I thought the
query string approached was appropriate, but I can't get it to work.
Passing variables works fine but you are passing them to "tstarksss.html" .
Is there any code in this html file to process the variable and pass is on to the swf file ?
I don't think there's code to handle that ! I'm confused, but think I have it straight now - but it still doesn't work. So, any help would be appreciated.
ok, here what I got :
here is the code that call the swf, it is a slideshow that I exported as a swf and html page.
the tutorial I am trying to use is at : http://www.permadi.com/tutorial/flashQueryString/ it says " You can append a query string following the Flash movie filename, and Flash will get the variable(s) from the query string for you automatically. The variable(s) will go into the _root or _level0 of the movie. "
obviously, I missing something ? I will attach my fun file as well.
Changed the first line a little, there were some extra spaces and added the variable and the .swf extension to the movie name just as it is in the Object tag and the embed tag.
Also what Wilburt I think is asking you is how is slideNum getting the value 0?
You cannot pass a variable to HTML in the URL so unless this page is dynamically created via PHP or ASP or something like that slideNum has to be hand set tot he proper value.
about where slideNum was getting set, that was my mistake in the posting, I thought that as long as it was in the url, flash could get it.
So, the only change I saw was ".swf?slideNum=0" added to the end of the <script> tag, when I did this the movie doesn't work - remove the code, and it works again. ( what I mean by doesn't work - I clicked the tstartksss0.html and it comes up blank - no navigation controls or pictures)
There is another post with the same problem by trntula. He says that you can
change the AC_FL_RunContent and it works, but I didn't quite understand it, so I wanted to find out the real skinny. I did do some research on this before I posted - it seemed like every one was different with no straight, concise and clear solution.
I am not married to the query string approach, I have limited php experience,
but I think I could write something there, albeit it seems a little extreme to go to all of that work just to pass a number. So if you got any ideas of how to
be able to click a html link and get a slidenumber passed in, let me know.
ok, thanks for trying to help me, I'm not sure I really understood what I was doing, but I finally figured it all out. It was so simple I really feel dumb.It was as simple as just dropping in the php code <? php echo $slideNum; ?> for the value parameter in the script, param name, and embed tags in the html file. Then saving as a .php file and ofcourse running it on a php enabled server.
When I said that "with my limited knowledge of php" thing, I was thinking more along the lines of writing a file and reading it- good ol' brute strength programming, but there was a much easier way.
I made examples of passing statically thru the File->Export Settings... and then modifying it to handle query strings. Would the forum be interested in me posting them ? examples for when someone else ask this question ?
Putz, I just tried both the examples and they work like a charm. Everything is well documented and the files are a great help for everybody who wants to get familiar with this subject.
Thanks for sharing!
Everybody thinks of changing humanity,
Nobody thinks of changing himself.
Cool, glad I could help ! wracked my brains out ( at least what I have) trying to figure that out, then realized that it wasn't that hard. We need more examples like that, it would make the koolmoves learning curve much faster.