Jump to content


Can't get loadvariables to work with this template


1 reply to this topic

#1 shybru

    New Member

  • New Members
  • Pip
  • 1 posts

Posted 07 January 2008 - 01:42 PM

Ok basically i want the 'lorem ipsum' text for each section to come from an external file. I've changed the text field to dynamic in section 1 with the variable being named HomeContent. This is my text file (named meka.txt):

&HomeContent=Howdy partner&

Under scene 1 I have the following script:

onFrame (1, afterplacedobjectevents)
{
trace("load variables from a text file");
loadVariables("meka.txt");
}

onFrame (49) {
stop();
}

This should work right? I'm a noob so i'm at peace with the probable fact that I'm wrong. Please enlighten me.

#2 Wolf Gross

    Advanced Member

  • Moderator
  • PipPipPip
  • 23919 posts
  • Gender:Male
  • Location:Perth/Australia

Posted 07 January 2008 - 02:05 PM

...that won't work, it will interfere with the rest of scripting of the template, this template is not designed to load external text. External text is a "Device" font and device fonts can not be masked and/or effects applied to - and both have been used for the text fields.
...unless your scripting skills are advanced enough to change and re-design the set-up of the template and use something like this...
SWiSHmax: Scrollbars for Dynamic Text

wolf
Posted Image
Web Wolf Wonder Web Works

SWiSHsites modified





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users