Flasher Archive

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


Subject: Re: FLASH: F5 combining multiple external variables (bug???)
From: jmerrill
Date: Thu, 21 Dec 2000 23:45:15 GMT


Scott, now that I look at it, my Flash 5 actionscript manual reads
(concerning the use of "&")

referring to "&" (bitwise AND) the manual reads:
"Flash 5 or later. In Flash 4 the operator was used for concantenating
strings. In Flash 5 the operator is a bitwise AND, and the add and +
operators concantenate strings. "

As for using "add", it says:
"...the "add" operator is depricated in Flash 5, and use of the + operator
is recommended when creating content for the Flash 5 player"
Depricated meaning not recommended...

as for "+", it uses the example:
"today is my" + "birthday"

It still then seems like using "+" is the preferred way to concantenate
strings, as it says it will work fine with both numeric and string values.

Jason Merrill
Multimedia/Courseware Developer @ ELF, Issaquah, WA
425.369.5214
SerengetiUS.com - "Where Law Does Business"

Seattle Macromedia Authorware User's Group



"Scott Rouse"
<sfrouse@everm To: <flasheratchinwag [dot] com>
ore88.com> cc:
Sent by: Subject: Re: FLASH: F5 combining multiple external variables (bug???)
owner@chinwag.
com


12/21/00 01:53
PM
Please respond
to flasher






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





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
  RE: FLASH: F5 combining multiple externa, Phillip Kerman

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