Visualizzazione dei risultati da 1 a 4 su 4

Discussione: Comandi Su Testo

  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2003
    Messaggi
    109

    Comandi Su Testo

    qualcuno di voi sa dirmi se è possibile assegnare un comando flash ad un testo?
    Mi spiego meglio, posso tranuillamente assegnare dei link ad un testo dando i comandi HTML come ad esempio "pippo <a href'link'>pluto</a> paperino" in modo che da flash cliccando sulla parola pluto mi si apra un nuovo link. Allo stesso modo vorrei sapere se è possibile assegnare alla parola pluto il comando di loadmovienum o comunque altri comandi in flash.

    GRAZIE

  2. #2
    dalla Guida online di Flash (basta premere F1)

    html (TextField.html property)
    public html : Boolean

    A flag that indicates whether the text field contains an HTML representation. If the html property is true, the text field is an HTML text field. If html is false, the text field is a non-HTML text field.

    Availability: ActionScript 1.0; Flash Player 6

    htmlText (TextField.htmlText property)
    public htmlText : String

    If the text field is an HTML text field, this property contains the HTML representation of the text field's contents. If the text field is not an HTML text field, it behaves identically to the text property. You can indicate that a text field is an HTML text field in the Property inspector, or by setting the text field's html property to true.

    Availability: ActionScript 1.0; Flash Player 6

    Example
    The following example creates a text field that sets the html property to true. HTML-formatted text displays in the text field.

    this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160, 22);
    my_txt.html = true;
    my_txt.htmlText = " this is bold text ";


    Per il secondo quesito forse sarebbe meglio utilizzare qualcosa di diverso dal campo di testo.
    L'unica cosa che mi viene in mente è un'interazione con un Javascript inserito nella pagina HTML che incorpora il filmato Flash....

  3. #3
    Utente di HTML.it
    Registrato dal
    Aug 2001
    Messaggi
    7,261

    Re: Comandi Su Testo

    Originariamente inviato da before
    qualcuno di voi sa dirmi se è possibile assegnare un comando flash ad un testo?
    Mi spiego meglio, posso tranuillamente assegnare dei link ad un testo dando i comandi HTML come ad esempio "pippo <a href'link'>pluto</a> paperino" in modo che da flash cliccando sulla parola pluto mi si apra un nuovo link. Allo stesso modo vorrei sapere se è possibile assegnare alla parola pluto il comando di loadmovienum o comunque altri comandi in flash.

    GRAZIE
    Convertilo in un pulsante, oppure fai un nuovo pulsante e nella sua lt ci metti il testo.

    Occhio all'area attiva (ultimo frame), devi metterla che copra interamente la zona del testo.
    Il re è nudo (cit).

  4. #4
    Utente di HTML.it
    Registrato dal
    Dec 2003
    Messaggi
    109
    perfetto, potresti farmi un esempio di come inderire il javascript nell'html?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.