Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
jony_calavera #1
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
-
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... -
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... -
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 =... -
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... -
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... -
chris #2
Re: Cant rezise loaded jpg's!!
jony_calavera wrote:
well to resize you have to wait for the image to load. but if you use> 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
>
>
>
_xscale and _yscale you can set the size of your holder clip before you
load it.
chris Guest
-
CesareRocchi #3
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



Reply With Quote

