;

PDA

Click to See Complete Forum and Search --> : Slide Show help A.S.


lorenw
09-18-2005, 12:51 PM
I downloaded the slide show from Necromanthus.

I want to add a caption to the images so I made a dynamic text box named cap.

In the action script I added a line of code which is similar to the slide show from Hillary Bridel.
scr.loadMovie("Images/image"+pic+".jpg", "_self");
cap.load("Images/image"+pic+".htm");

The contents of the .htm has
cap=Flash Text

I cannot get it to work though and was hoping someone could shed some light on loading dynamic text using action script.


Thank you very much
Loren

necromanthus
09-19-2005, 05:39 AM
Click on "File / Export Settings" and set the backward compatibility for dynamic text.
Or ... select the cap dynamic text box, right mouse click, Show Properties, and set the Variable Name as cap
;)

lorenw
09-19-2005, 11:19 AM
I have done everything you suggested but still no luck.

I see that the counter has inputvar for its variable name and is referenced in the actionscript simply as input . . . . any way I tried capvar and cap for the variable name in properties.

When I inserted the dynamic text box I made all settings identical to the counter box and added shape 7 to the movie clip and is the same size as the dynamic text box and all have the same properties.

As a test I had the "cap" display the image numbers that were in the "input" to make sure things were working and displaying.

Also if text is entered into "cap" it appears in the text box when the slide show is playing. If text is entered into "input" it does not appear where the numbers appear.

Export settings are correct also . . . I checked off everything.

Thank you for helping with this . . . I can see many uses for it in a dynamic website

Lorenw

lorenw
09-24-2005, 05:39 PM
I got it to work finally - All of the images now have individual captions.

If anyone is curious about this I tried
scr.loadMovie("Images/image"+pic+".jpg", "_self");
loadVariables("Images/image"+pic+".htm","_root");

My dynamic text field is called cap and behavior - variable name is cap and since there is not a reference to "cap" anywhere in the action script, how and why this works is way beyond me but it does.

lorenw
09-24-2005, 05:49 PM
I get it!! I load the variables contained in the .htm file which of course is cap=Image 1 text. There were just sooo many cattle that I missed the heard.

I do a lot of php and if I dont see the $ Im lost.