Flasher Archive

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


Subject: Re: FLASH: Assigning an URL to dynamic text
From: Randy Kato
Date: Fri, 29 Sep 2000 16:27:04 +0100

Vinh,

I'm not sure, and haven't tested it, but the problem might be in the mixing of
F4 and F5 syntax and the way they handle the target paths. Try one or the
other...I'd recommend the F5 way. Here are two versions of your pseudo-code:

F5:

if (command == "loadMessages") {
testObj.count = 2;
testObj.message0 = "This is message 1";
testObj.message1 = "This is message 2";
}


F4:

if (command == "loadMessages") {
SetVariable("testObj/count", "2");
SetVariable("testObj/message0", "This is message 1");
SetVariable("testObj/message1", "This is message 2");
}

HTH,
Randy


Vinh Tran wrote:

> Randy:
>
> I was able to fix my problem. I had to use the eval() method to get the
> urlX and messageX to work. However, I have a different problem that you may
> be able to help me with.
>
> I am trying to send variables from javascript and have the flash player call
> FSCommand to retrieve these variables. I am calling FSCommand on the main
> timeline on the first frame. I have confirmed that the FSCommand works but
> the SetVariable method doesn't seem to be working for me. These variables
> are also used in the main timeline. Do I need to have the variables already
> defined in Flash before using SetVariable? If so, where do I define these
> variables.
>
> Here's some pseudo-code....
>
> function test_DoFSCommand(command, args) {
> var testObj = InternetExplorer ? test : document.test;
>
> if (command == "loadMessages") {
> testObj.SetVariable("count", "2");
> testObj.SetVariable("message0", "This is message 1");
> testObj.SetVariable("message1", "This is message 2");
> }
> }

--
'''''' ' ' ' ' ' ' ' ' '
Randy Kato - Web Master
Braincraft

627 Broadway, Suite 504, NYC 10012
T 212.539.1680 F 212.539.1741
http://www.braincraft.com
...... . . . . . . . . .



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: FLASH: Assigning an URL to dynamic t, Vinh Tran

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