Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
RES: [Flashcoders] html text from loaded data

RES: [Flashcoders] html text from loaded data

2004-02-16       - By JayFlash

 Back
> >textfield1_txt.htmlText = _root.dataXml.firstChild.firstChild.childNodes;
> >textfield1_txt.htmlText = textfield1_txt.text;


Thanks so much. works like a beauty. =)

The only thing I still seem to be missing here is why are these kinda
stopgap solutions so often necessary in Flash. :P

Cheers,

J.















-- --Original Message-- --
From: JayFlash [mailto:jayflash@(protected)]
Sent: 16 February 2004 16:22
To: flashcoders@(protected)
Subject: [Flashcoders] html text from loaded data

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:cbeffjfceifoidb
jmcm
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)




-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----

This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of Cimex Media Ltd and
any affiliated companies, unless specifically stated. It is intended
for the use of the individual or group to whom it is addressed. If
you have received it in error, please delete it from your system,
do not use, copy or disclose the information in any way nor act in
reliance on it and please notify postmaster@(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:104362
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
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:104375
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)