Welcome, Guest
  • Author Topic: text fields on movieclips  (Read 4450 times)

    jiffyloop

    • Server what's that
    • *
    • Posts: 22
    • Flash-db Rules
      • View Profile
      • Email
    text fields on movieclips
    « on: 01/16/02, 12:57 »
    I implemented the E-Cards on my website. I made my own e-cards and I have the dynamic text fields in a movie clip living on the root timeline. When I view the SWF file on my desktop it works fine...but then when I upload the files and view them online, the text doesn't show up.

    Flash-db

    • Administrator
    • Systems Administrator
    • *****
    • Posts: 1876
      • View Profile
      • Flash-db.com
    Re:text fields on movieclips
    « Reply #1 on: 01/16/02, 17:19 »
    I just tried it out and everything seemed to work fine with the Valentines day one.  I recieved the Email with my custom message and everything.  Did you get the problem fixed in the past couple minutes?

    ------From Previous Email
    Code: [Select]
    My question is still...how do you call up the dynamic text fields inside a
    movieclip?? Is there any extra code to add?? The dynamic text fields work
    fine on the _root, but when I place them in a movie clip, they don't show
    up. Actually, take that back. They will show up on a preview, but when I get
    the email sent to me with the link, then it doesn't show up. Any advice??
    You can check out what I've done at:

    [url=http://www.superlofi.tv/ecards]http://www.superlofi.tv/ecards[/url]
    click on valentine's day, then the ecard "My Heart is falling for you"
    thats the only one with the dynamic text field inside a MC.
    Flash-DB

    jiffyloop

    • Server what's that
    • *
    • Posts: 22
    • Flash-db Rules
      • View Profile
      • Email
    Re:text fields on movieclips
    « Reply #2 on: 01/16/02, 17:28 »
    which card did you pick?? Its the Valentine's Day card...the 3rd one down called "My heart is falling for you"...it has all the hearts falling down!!

    http://www.superlofi.tv/ecards

    Flash-db

    • Administrator
    • Systems Administrator
    • *****
    • Posts: 1876
      • View Profile
      • Flash-db.com
    Re:text fields on movieclips
    « Reply #3 on: 01/16/02, 17:48 »
    Ok, everything with that card seemed to be working but you are correct and the text did not show up in the movie that was sent.  

    I checked the text file generated for the card I sent and found the following:  toName=Jeff&toEmail=Jeff@Flash-db.com&fromName=Jeff&fromEmail=Jeff@Flash-db.com&introMessage=This is a test&created=Ecard Created on Wednesday 16th of Jan..

    Meaning that the text file is being written to properly.  The variables are just not displaying in the flash movie.

    If you are using the text within a Movie Clip which is probably the case (as you mentioned)- Then the path would have to change in the text file or you would have to load the text file in the movie to that MC.  Because their are a couple of parts and not every E-card is the same I would recommend conforming this one card to the others and not using any text within a movie clip.  The reason being is that it would be more difficult to change all the cards for just this one card.  

    That's a little hard to explain but when your using so many different e-cards it would be alot easier if all the text area's are on the root of the movie instead of inside a movie clip.  

    (By the way - Your ecards site Looks really good)
    « Last Edit: 01/16/02, 17:48 by Flash-db »
    Flash-DB

    jiffyloop

    • Server what's that
    • *
    • Posts: 22
    • Flash-db Rules
      • View Profile
      • Email
    Re:text fields on movieclips
    « Reply #4 on: 01/16/02, 17:58 »
    Well if I decided to place all my dynamic text fields inside movie clips, how would I call those?? I just wanted to have some of my E-card text be animated. I just don't understand why it works on the preview, but not when you actually receive the card.

    Flash-db

    • Administrator
    • Systems Administrator
    • *****
    • Posts: 1876
      • View Profile
      • Flash-db.com
    Re:text fields on movieclips
    « Reply #5 on: 01/16/02, 18:04 »
    Since you can't load the text file 4 or 5 different times into all of the Movie Clips - It might be best if you changed the script around.

    For example:  In the PHP file you could change this part, $EcardText = "ToName=$ToName&..."

    to something like $EcardText

    = "_root.MC1.ToName=$ToName&.."

    That way the variable will be sent to the MC1 Movie clip instead of the main timeline.  You would specify a Target in the Script instead of the Movie.  All of them would have to be changed to the correct path to the text field located in the Movie Clip.  Be sure to give all of the Movie Clips Instance Names, as you will be referencing them by that.  If that makes sense.

    I guess technically you can load the text file 4 or 5 different times to the different movie clips directly (Using the Target attribute of Loadvariables) but that may take longer for it to load.  An example of this would be:

    loadVariables ("http://www.flash-db.com/Ecards/dBText/"+EcardText+".txt", "_root.MC1");
    loadVariables ("http://www.flash-db.com/Ecards/dBText/"+EcardText+".txt", "_root.MC2");
    « Last Edit: 01/16/02, 18:07 by Flash-db »
    Flash-DB