is there a way to get a jpg’s image and height (before dynamically loaded) within flash? the only way i could do it was to load the image into a containerMC, but i would like to do it before the image loads. the only other way i could think of was to send the image link to a php script and returning its height/width to flash.
i can also do that in photoshop or fireworks, but that’s not what i meant, i meant if i could get the dimensions within flash without loading them first into a container. storing the info in xml or getting dimensions through php could do it, but is there another way within flash?
Sorry Chris but i don`t have any answers either. What i did when this was necessary was just put the names/dimensions in a textfile.
in textfile/
var1=movie1%2Eswf%2C220%2C120%7Cmovie2%2Eswf%2C120%2C220%7Cmovie3%2Eswf%2C220%2C220%7Cmovie4%2Eswf%2C330%2C260%7Cmovie5%2Eswf%2C420%2C340%7Cmovie6%2Eswf%2C170%2C120
inflash/
lv = new LoadVars();
lv.onLoad = function() {
arr1 = lv.var1.split(“|”);
for (var n = 0; n != arr1.length; n++) {
arr1[n] = arr1[n].split(“,”);
}
};
lv.load(“mytext.txt”);
output/
Variable _level0.arr1 = [object #6, class ‘Array’] [
0:[object #7, class ‘Array’] [
0:“movie1.swf”,
1:“220”,
2:“120”
],
1:[object #8, class ‘Array’] [
0:“movie2.swf”,
1:“120”,
2:“220”
],
2:[object #9, class ‘Array’] [
0:“movie3.swf”,
1:“220”,
2:“220”
],
3:[object #10, class ‘Array’] [
0:“movie4.swf”,
1:“330”,
2:“260”
],
4:[object #11, class ‘Array’] [
0:“movie5.swf”,
1:“420”,
2:“340”
],
5:[object #12, class ‘Array’] [
0:“movie6.swf”,
1:“170”,
2:“120”
]
]