A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Pb with Variable/Netscape

  1. #1
    Junior Member
    Join Date
    Mar 2000
    Posts
    3

    Post

    When i want to put a variable from a .txt file into a textfield
    on ie5 Appache it's ok
    but with com4.7/apache that doesnt work...(that works on iss)
    Have u a tips or anything else
    Thanks

    &chap=Inguinal Hernia Surgical Anatomy&


    &titr1=Introduction&
    &titr2=Morphological anatomy&
    &titr3=Vascularization/Innervation&


    &fich1=en0401.swf&
    &fich2=en0402.swf&
    &fich3=en0403.swf&
    &eof=true& (testin in my fla if eof eq true to begin anim)



  2. #2
    Junior Member
    Join Date
    Mar 2000
    Posts
    1

    Post

    It looks like you have too many &s. Instead of:

    &chap=Inguinal Hernia Surgical Anatomy&
    &titr1=Introduction&
    &titr2=Morphological anatomy&
    &titr3=Vascularization/Innervation&

    Try:

    chap=Inguinal Hernia Surgical Anatomy&
    titr1=Introduction&
    titr2=Morphological anatomy&
    titr3=Vascularization/Innervation&

    Hope that helps.

  3. #3
    Senior Member
    Join Date
    Feb 2000
    Posts
    195

    Lightbulb

    Just a note.. When creating text files for Flash to read, it is best to avoid line breaks unless you specifically want them (like in a large block of text), since Flash will read all the line break characters as well.

    You may well have trouble with this:

    chap=Inguinal Hernia Surgical Anatomy&
    titr1=Introduction&
    titr2=Morphological anatomy&
    titr3=Vascularization/Innervation&


    Since Flash will try to set the variable "chap" as "[linebreak]chap". That is not good.

    Instead, try:

    chap=Inguinal Hernia Surgical Anatomy
    &titr1=Introduction
    &titr2=Morphological anatomy
    &titr3=Vascularization/Innervation

    There will now be line breaks at the end of all your strings.. but they should not cause as much trouble there.

    This:

    &chap=Inguinal Hernia Surgical Anatomy&
    &titr1=Introduction&
    &titr2=Morphological anatomy&
    &titr3=Vascularization/Innervation&

    May or may not work. Since Flash will attempt to set the variable [linebreak] ("&[linebreak]&"). Remember.. you may not see the line break characters.. but Flash does.


    Also.. this may sound a little silly.. but it's worth a shot.. Make sure that your server has the correct MIME type set for TXT files. (or whatever other extensions you will be using)


    <EMBED src="/cgi-bin/ubb/Members/sigs/00000205.swf" quality=high WIDTH=500 HEIGHT=50 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>

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