Cant rezise loaded jpg's!!

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default Cant rezise loaded jpg's!!

    two add things happen : i cant rezise the movieclips and rotation sets itself
    to 90
    here is the code

    lista_xml = new XML()
    lista_xml.load("lista.xml")
    lista_xml.ignoreWhite = true

    lista_xml.onLoad =function (success)
    if (success == true)
    at = new Array()
    bt = new Array()
    rootNode = lista_xml.firstChild
    blahxml = rootNode.firstChild
    var i
    i=0
    while(i<Number(rootNode.attributes.num))
    at[i] = blahxml.attributes.psrc
    bt[i] = blahxml.firstChild.nodeValue
    blahxml = blahxml.nextSibling
    i++

    textXML.text = "XML load Succsessful!"
    construlle()



    function construlle()
    var i,n,pix:String
    n=Number(rootNode.attributes.num)
    for(i=0;i<n;i++)
    pix=String(at[i])
    _root.strip.createEmptyMovieClip("pic"+i,i+1)
    loadMovie(pix,_root.strip['pic'+i])
    with (_root.strip['pic'+i])
    _x = i*110
    _y=0
    _width = 100; // doesn't wor
    _height = 50; // doesn't wor



    for(i=0;i<n;i++)
    pix=String(at[i])
    _root.strip.createEmptyMovieClip("pic"+String(n+i) ,n+i+1)
    loadMovie(pix,_root.strip['pic'+String(n+i)])
    with (_root.strip['pic'+String(n+i)])
    _x= n*110 + i*110
    _y=0
    _width = 100; // doesn't wor
    _height = 50; // doesn't wor





    any help would be greatly apreciated



    jony_calavera Guest

  2. Similar Questions and Discussions

    1. some JPG's won't be placed
      Hi, I'm using indesign to place (CRTL D) JPG images and suddenly I can't place certain JPG's which appear to be exactly as the others which I can...
    2. Size of dynamicaly loaded JPG's
      Hi, I'm using already the new object MovieClipLoader and the listeners and so on, but when I look at the size I always get 0 by 0 size --- What am...
    3. Need help loading jpg's
      Hi all I'm having problems preloading jpg's and displaying them Here is what I want to do Preload jpg's from a dir this.pathToPics =...
    4. OK, Here we go again saving jpg's
      "Being a hacker has many drawbacks... " Yeah, dude, like having no one with any sense of intelligence, who PAID honest, hard earned dollars (took...
    5. My jpg's stink
      OK, I admit to being a hacker in the old sense of the word. (Untrained, unmethodical, clueless in general). But how come my files that look pretty...
  3. #2

    Default Re: Cant rezise loaded jpg's!!

    jony_calavera wrote:
    > two add things happen : i cant rezise the movieclips and rotation sets itself
    > to 90
    > here is the code
    >
    > lista_xml = new XML()
    > lista_xml.load("lista.xml")
    > lista_xml.ignoreWhite = true
    >
    > lista_xml.onLoad =function (success)
    > if (success == true)
    > at = new Array()
    > bt = new Array()
    > rootNode = lista_xml.firstChild
    > blahxml = rootNode.firstChild
    > var i
    > i=0
    > while(i<Number(rootNode.attributes.num))
    > at[i] = blahxml.attributes.psrc
    > bt[i] = blahxml.firstChild.nodeValue
    > blahxml = blahxml.nextSibling
    > i++
    >
    > textXML.text = "XML load Succsessful!"
    > construlle()
    >
    >
    >
    > function construlle()
    > var i,n,pix:String
    > n=Number(rootNode.attributes.num)
    > for(i=0;i<n;i++)
    > pix=String(at[i])
    > _root.strip.createEmptyMovieClip("pic"+i,i+1)
    > loadMovie(pix,_root.strip['pic'+i])
    > with (_root.strip['pic'+i])
    > _x = i*110
    > _y=0
    > _width = 100; // doesn't wor
    > _height = 50; // doesn't wor
    >
    >
    >
    > for(i=0;i<n;i++)
    > pix=String(at[i])
    > _root.strip.createEmptyMovieClip("pic"+String(n+i) ,n+i+1)
    > loadMovie(pix,_root.strip['pic'+String(n+i)])
    > with (_root.strip['pic'+String(n+i)])
    > _x= n*110 + i*110
    > _y=0
    > _width = 100; // doesn't wor
    > _height = 50; // doesn't wor
    >
    >
    >
    >
    >
    > any help would be greatly apreciated
    >
    >
    >
    well to resize you have to wait for the image to load. but if you use
    _xscale and _yscale you can set the size of your holder clip before you
    load it.

    chris Guest

  4. #3

    Default Re: Cant rezise loaded jpg's!!

    Exactly, if the image is not there you can't resize it!
    Use a callback to know when it is loaded.
    CesareRocchi Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139