-
-runnin into problems again-
hey,
ok- so im makin a site to show my graphic art. My intro swf leads to another "graphiclogo" swf whith this action
on (release) {
_root.contents.loadMovie("graphiclogo.swf");
in the graphiclogo i am linking external jpgs :
function load_jpg_or_swf(targetMC, jpgURL) {
_root.holder.mtClip.loadMovie(jpgURL);
attachMovie("loader", "loadMC", 1000);
loadMC.loadtarget = _root.holder.mtClip;
loadMC.onEnterFrame = is_loaded_results;
loadMC._x = 250;
loadMC._y = 175;
}
function is_loaded_results() {
this.proportionloaded = this.loadtarget.getBytesLoaded()/this.loadtarget.getBytesTotal();
this.percentage = this.proportionloaded*100;
this.displaypercentage = Math.floor(this.percentage)+" %";
_root.loadMc.bar._xscale = Math.floor(this.percentage);
if (this.proportionloaded == 1) {
this.removeMovieClip();
}
}
b1.onRelease = function() {
yourJPGurl = "images/frost.jpg";
// works with jpg or swf!!!
load_jpg_or_swf(mtClip, yourJPGurl);
};
So my prob is that the images dont appear!? when i only play the swf graphiclogo by itself the images (meaning the frost.jpg) appear, but when i open my intro page the link works to graphiclogo but no images appear....
starvin to learn why..//would appreciate some help
/almitra
-
FK'n_dog
could be a pathing issue, try -
_root.content.holder.mtClip.loadMovie(jpgURL);
loadMC.loadtarget = _root.content.holder.mtClip;
or
this.holder.mtClip.loadMovie(jpgURL);
loadMC.loadtarget = this.holder.mtClip;
-
THX..
the second one works but when the image loads i get this on the screen in the movie:
loading...
NaN%
this is what i wrote :
function load_jpg_or_swf(targetMC, jpgURL) {
this.holder.mtClip.loadMovie(jpgURL);
loadMC.loadtarget = this.holder.mtClip;
attachMovie("loader", "loadMC", 1000);
loadMC.loadtarget = _root.holder.mtClip;
loadMC.onEnterFrame = is_loaded_results;
loadMC._x = 250;
loadMC._y = 175;
}
function is_loaded_results() {
this.proportionloaded = this.loadtarget.getBytesLoaded()/this.loadtarget.getBytesTotal();
this.percentage = this.proportionloaded*100;
this.displaypercentage = Math.floor(this.percentage)+" %";
_root.loadMc.bar._xscale = Math.floor(this.percentage);
if (this.proportionloaded == 1) {
this.removeMovieClip();
}
}
b1.onRelease = function() {
yourJPGurl = "images/frost.jpg";
// works with jpg or swf!!!
load_jpg_or_swf(mtClip, yourJPGurl);
};
-
Ask the Geezer -- im asking
hey Geezer or anyone who can help me...
i copyed ur code so figured u would understand my problem..
pleeeeeeseeeezzzeee help .............
----almitra
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|