Flasher Archive

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


Subject: RE: FLASH: Assigning an URL to dynamic text
From: Vinh Tran
Date: Fri, 29 Sep 2000 13:32:03 +0100

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");
}
}


Vinh

-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Randy
Kato
Sent: Thursday, September 28, 2000 2:33 PM
To: flasheratchinwag [dot] com
Subject: Re: FLASH: Assigning an URL to dynamic text


Vinh,

I'm not sure what you're asking, but if you want to dynamically tie the URL
to
the message, you can variable-ize the number so your variable names become
"messagex" and "urlx" where x is a numeric variable.

If you're just trying to make links within the text, HTML would be the easy
way.
What formatting problems are you having?

HTH,
Randy

Vinh Tran wrote:

> All:
>
> Does anyone know how to assign an URL to dynamic text in ActionScript? I
> could use HTML text but version 5 seems to format the text incorrectly.
The
> requirement is to assign a different URL depending on the text being
> displayed. The following pseudo-code may help to understand what I'm
trying
> to do....
>
> message1 = "This is message 1";
> message2 = "This is message 2";
> url1 = "http://www.someURL.com";
> url2 = "http://www.anotherURL.com";
>
> messageInstance:dynamicText = message1;
> messageInstance:dynamicText.url = url1; // This is where I need the help.
> Is this possible?

--
'''''' ' ' ' ' ' ' ' ' '
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



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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, Randy Kato

Replies
  Re: FLASH: Assigning an URL to dynamic t, Randy Kato

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