Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: F5 combining multiple external variables (bug???)
From: Scott Rouse
Date: Thu, 21 Dec 2000 22:01:36 GMT

Three possibilities come to mind...

1)Flash is going to read those variables as strings and not numbers so "+"
may be the problem. Flash does all the declaration of variables for you so
it may not be obvious or consistent how all the variables are being declared
(strings or numbers) when comparing an exteral variable and an internal one.
Use "add" instead and see what happens. It will force Flash to see them as
strings.

2) The way that you are loading variables is parcular to me.

> text = loadVariablesnum ("text.txt", 0);

I have not come accross any such structure in any examples I have seen.
When you load Variables you don't need to put them anywhere (thats what the
"0" is doing) such as a variable named "text". I can't really see that
anything is really happening as far as the declaration of variable "text" is
concerned. All that is needed is:

loadVariablesnum ("text.txt", 0);

At this point all the variables are located at _root.yourVariable unless you
load them into a clip.

3)I have loaded variables many times and have not strayed from even slightly
from a strict MIME format which is generally:

VariableName1=VariableValue1&variableName2=VariableValue2&....etc.

> text=
> &matter1=Alphacon v. Digital Financial, Inc.
> &matter2=Werner Electric v. Jones

(If I am reading your email right) this doesn't seem to follow that...there
is a value missing from the first variable and there are returns in it...But
since you don't have a problem receiving "matter1" and "matter2" this may
not be a problem, but it seems to be a flag to me.

I am guessing that number one is probably closer to the problem than two or
three, but...

Hope this helps,
Scott
www.onlineexhibit.net

----- Original Message -----
From: <jmerrillatelftech [dot] com>
To: <flasheratchinwag [dot] com>
Sent: Thursday, December 21, 2000 1:40 PM
Subject: FLASH: F5 combining multiple external variables (bug???)


>
> I posted this yesterday without a response... I posted earlier this
morning
> and I never saw it appear.... another post of mine on a different matter
> showed up almost instantaneously... I know I'm being impatient for a
reply,
> but this is driving me nuts! Fixing this would make it a very merry
> Christmas. Anyway, I narrowed my problem down further, and need help
> solving it.
>
> FACT 1: In F5, I can load & display an external variable, like so:
> (contents of external file, "text.txt")
>
> text=
> &matter1=Alphacon v. Digital Financial, Inc.
> &matter2=Werner Electric v. Jones
> ...this works great - contents of variables "matter1" and "matter2" load
> and displays fine in a dynamic text field using text = loadVariablesnum
> ("text.txt", 0);
>
> FACT 2: I can also combine & display two variables I create in Flash
> internally, like so:
>
> var1="My name is: ";
> var2="Jason";
> sentence= var1+var2; ...this also works great - contents of variable
> "sentence" displays fine in a dynamic text field.
>
> Now, here's the kicker: I can't seem to combine & display two or more
> externally loaded variables! For example:
>
> (contents of external file, "text.txt")
> text=
> &matter1=Alphacon v. Digital Financial, Inc.
> &matter2=Werner Electric v. Jones
>
> (then the actionscript in F5)
> text = loadVariablesnum ("text.txt", 0);
> matters=matter1+matter2;
>
> (dynamic text field set to "matters" displays nothing, while others set to
> display "matter1" or "matter2" display fine!)
> ???????? Am I missing something very obvious? (very possible!) Thanks
in
> advance...
>
> Jason Merrill
> Multimedia/Courseware Developer @ ELF, Issaquah, WA
> 425.369.5214
> SerengetiUS.com - "Where Law Does Business"
>
> Seattle Macromedia Authorware User's Group
>
> Jason Merrill
> Multimedia/Courseware Developer @ ELF, Issaquah, WA
> 425.369.5214
> SerengetiUS.com - "Where Law Does Business"
>
> Seattle Macromedia Authorware User's Group
>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: F5 combining multiple external va, jmerrill

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]