A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Slide Show help A.S.

  1. #1
    Member
    Join Date
    Feb 2004
    Location
    Sunny St. Petersburg, FL
    Posts
    38

    Slide Show help A.S.

    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

  2. #2
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    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

  3. #3
    Member
    Join Date
    Feb 2004
    Location
    Sunny St. Petersburg, FL
    Posts
    38
    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

  4. #4
    Member
    Join Date
    Feb 2004
    Location
    Sunny St. Petersburg, FL
    Posts
    38
    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.

  5. #5
    Member
    Join Date
    Feb 2004
    Location
    Sunny St. Petersburg, FL
    Posts
    38
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center