Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Flash CS3 e testi in html

This is a discussion on Flash CS3 e testi in html within the Articoli e tutorials forums, part of the Flash CS3 e Actionscript 3.0 category; Flash CS3 supporta alcuni tags html in modo da poter importare o scrivere dei testi in formato html. Il Flash ...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 e Actionscript 3.0 > Articoli e tutorials

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 19-09-07, 15:41
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
Flash CS3 e testi in html

Flash CS3 supporta alcuni tags html in modo da poter importare o scrivere dei testi in formato html.
Il Flash Player riconosce i tags utilizzando la proprietà htmlText della classe TextField.
Quindi ad esempio: nomeIstanzaCampoDiTesto.htmlText='Filippo';

Vediamo quali sono i tags supportati dal Flash Player 9 ...

Anchor Tag.

Il tag <a> e questi attributi: href, event, target



Bold tag <b>



Break tag <br>



Font tag <font> e questi atributi: color, face, size



Image tag <img> e questi attributi: scr, width, height, align, hspace, vspace, id, checkPolicyFile



Italic Tag <i>



List item Tag <li>



Paragraph tag <p> e questi attributi: align, class



Span tag <span> e questi attributi: class



TextFormat tag <textformat> e questi attributi: blockindent, indent, leading, leftmargin, rightmargin, tabstops



Underline tag <u>



Inoltre Flash CS3 supporta le seguenti entità html:

&lt, &gt, &amp, &quot, &apos



Ho creato un piccolo esempio di come utilizzare la proprietà htmlText della classe TextField:
Code:
package
{
	import flash.display.MovieClip;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.events.TextEvent;
	import flash.net.URLRequest;
	import flash.net.navigateToURL;
	
	public class TestiHtml extends MovieClip
	{
		public function TestiHtml()
		{
			createField();
		}
		
		private function createField():void
		{
			var tf:TextField=new TextField();
			tf.x=20;
			tf.y=50;
			tf.autoSize=TextFieldAutoSize.LEFT;
			tf.htmlText="Luna Rossa è nella finale della Luis Vuitton Cup, clicca Quì per vederla.";
			
			addChild(tf);
			tf.addEventListener(TextEvent.LINK,cliccato);
		}
		
		private function cliccato(t:TextEvent):void
		{
			var request:URLRequest=new URLRequest(t.text);
			navigateToURL(request);
		}
	}
}
Risultato:










Buon divertimento !
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 13-04-08, 13:08
Junior Member
 
Join Date: Mar 2008
Posts: 17
Rep Power: 0
incvizitor is on a distinguished road
Re: Flash CS3 e testi in html

ma si può inserire dei tag per le immagini? Mi spiego: Si può fare in modo che in mezzo del testo ci sia un'immagine???????
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 21-04-08, 08:06
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
Re: Flash CS3 e testi in html

Sì,
devi usare il tag img
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 21-04-08, 22:55
Junior Member
 
Join Date: Mar 2008
Posts: 17
Rep Power: 0
incvizitor is on a distinguished road
Re: Flash CS3 e testi in html

grazie, flep
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Flash CS3 flash cs3 html totonino Flash CS3 Design 2 23-10-08 15:35
Testi html dentro XML Flep Articoli e tutorials 9 13-10-08 23:40
Photoshop CS3 Effetto erba su testi Flep PhotoShop 1 28-07-08 22:34
Actionscript 3 caurina > NO alpha per testi dinamici ehijon Actionscript 3.0 base 4 03-07-08 17:21
Actionscript 3 Prob. Testi dinamici Nedyc Actionscript 3.0 base 0 30-06-08 11:12


All times are GMT. The time now is 11:34.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406