  | |  | html text from loaded data | html text from loaded data
2004-02-16 - By JayFlash
Back I 've tryed without success to have html-formatted text display as such when
loaded from xml CDATA nodes into a dinamic textfield in flash.
Accordingly, the Flash Help states:
<quote > You must use ActionScript to apply HTML tags to text fields
</quote >
should I understand by that that you must perform some kind of string
replacement to have tags working right when loaded into flash?
Somehow, itīs not what appears to be said here:
http://chattyfig.figleaf.com/ezmlm/ezmlm-cgi?1:sss:86636:cbeffjfceifoidbjmcm
f#b
This is what I currently use to display links and other html tags properly:
String.prototype.convertToHtml = function(){
var obj = this;
var obj = obj.split( "<a ").join( " <font
color=\ "#0000ff\ " > <u > <a ").split( "/a> ").join( "/a > </u > </font > ");
var obj =
obj.split( "< ").join( " < ").split( "> ").join( " > ").split( "" ").join( "\ "
");
return obj;
}
Let me know,
Jay.
-- --Mensagem original-- --
De: Richard [mailto:richardleggettmk@(protected)]
Enviada em: segunda-feira, 16 de fevereiro de 2004 12:54
Para: flashcoders@(protected)
Assunto: Re: [Flashcoders] Passing Variables
Calling loadVariables() in this example does nothing, you are passing your
variables in using name value pairs like this:
test_passingvars.swf?value= <%Session( "vStudentID ") % >& <%Session( "Fname ")% > " >
When to access both "value " and "value2 " variables you would need something
like this:
test_passingvars.swf?value= <%Session( "vStudentID ")
% >&value2= <%Session( "Fname ")% > " >
You can then access them from within flash with _root.value or _root.value2.
(Note the _root is not needed when coding on the timeline or accessible
scope.
-- -- Original Message -- --
From: "Brunswick, David " <dbrunswick@(protected) >
To: <flashcoders@(protected) >
Sent: Monday, February 16, 2004 3:49 PM
Subject: [Flashcoders] Passing Variables
> Hello, i am trying to figure out how to display two variables in flash
being
> passed by an .asp page here is my code
>
> ON my asp page in the embed src i put
> <param name= "movie " value= "test_passingvars.swf?value= <%=
> Session( "vStudentID ") % >& <%=Session( "Fname ")% > " >
>
> IN Flash i am using loadVariables( "passingvars.asp ", "_root ");
> a dynamic text field with value in my var field. I am able to get the
> session vstudentID to show but not the second fname. What am i doing
wrong?
>
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> Supported by Fig Leaf Software
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> Be sure to check the archives and the wiki:
> http://chattyfig.figleaf.com/
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104351
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> To unsubscribe send a blank e-mail to:
> Normal Mode: flashcoders-unsubscribe@(protected)
> Digest Mode: flashcoders-digest-unsubscrive@(protected)
>
>
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104355
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104361
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |