+ Reply to Thread
Results 1 to 2 of 2

Resize immagini caricate dinamicamente

This is a discussion on Resize immagini caricate dinamicamente within the Actionscript 3.0 base forums, part of the Flash Italiano category; ciao, posto il seguente script semplificato per caricare dinamicamente un'immagine, po i vi pongo la domanda: var mioLoader:Loader = new ...

  1. #1
    Junior Member Settled In thephilosopher is on a distinguished road
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Resize immagini caricate dinamicamente

    ciao, posto il seguente script semplificato per caricare dinamicamente un'immagine, po i vi pongo la domanda:

    var mioLoader:Loader = new Loader();
    mioLoader.load(new URLRequest("immagine.jpg"));

    contenitore_mc.addChild(mioLoader);

    Ora, dato che l'immagine che viene caricata è troppo grande, è possibile ridimensionarla tramite script?

    Ho provato tramite le proprietà height e width:

    contenitore_mc.height = 200, ecc.ecc.

    ma in questo modo l'immagine non viene caricata probabilmente perchè non entra nel clip ridimensionato...

  2. #2
    CSS.FlepStudio.org Moving My Stuff To The FlepStudio Onsitus is on a distinguished road Onsitus's Avatar
    Join Date
    Jul 2007
    Posts
    1,436
    Rep Power
    7

    Re: Resize immagini caricate dinamicamente

    Ciao,

    credo che quel pezzo di codice postato da Flep potrebbe aiutarti:
    http://www.flepstudio.org/forum/flas...e.html#post249

+ Reply to Thread

Similar Threads

  1. AS2 News caricate da XML problema link
    By Lupen in forum Flash Italiano
    Replies: 4
    Last Post: 22-11-10, 08:21
  2. Drag'n Drop di foto caricate da XML
    By thaiboys in forum Actionscript 3.0 avanzato
    Replies: 0
    Last Post: 26-05-09, 16:07
  3. tour guidato con immagini caricate dall'esterno
    By nigno64 in forum Actionscript 3.0 base
    Replies: 0
    Last Post: 10-02-09, 15:38
  4. textFormat dinamicamente
    By oscaroxy in forum Actionscript 3.0 avanzato
    Replies: 2
    Last Post: 18-11-08, 12:30
  5. Visualizzare immagini caricate da xml
    By Fedepag in forum Actionscript 3.0 base
    Replies: 3
    Last Post: 22-04-08, 16:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts