0
problem with loading external png & gif image ?!
New Here
,
/t5/animate-discussions/problem-with-loading-external-png-amp-gif-image/td-p/436053
Oct 16, 2007
Oct 16, 2007
Copy link to clipboard
Copied
hello,
i used this action :
this.createEmptyMovieClip("mcHolder", this.getNextHighestDepth());
var mclLoader:MovieClipLoader = new MovieClipLoader();
mclLoader.loadClip("cloud.png", mcHolder);
/*var oListener:Object = new Object();
oListener.onLoadInit = function(mcContent:MovieClip):Void {
mcContent._xscale = 50;
mcContent._yscale = 50;
};
mclLoader.addListener(oListener);*/
to load png & gif image and don't work but the same action work with jpg & swf file. why ?
Note:
I'm using flash cs3 & flash with flash player 9
Regards,
Crimson
i used this action :
this.createEmptyMovieClip("mcHolder", this.getNextHighestDepth());
var mclLoader:MovieClipLoader = new MovieClipLoader();
mclLoader.loadClip("cloud.png", mcHolder);
/*var oListener:Object = new Object();
oListener.onLoadInit = function(mcContent:MovieClip):Void {
mcContent._xscale = 50;
mcContent._yscale = 50;
};
mclLoader.addListener(oListener);*/
to load png & gif image and don't work but the same action work with jpg & swf file. why ?
Note:
I'm using flash cs3 & flash with flash player 9
Regards,
Crimson
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Guru
,
/t5/animate-discussions/problem-with-loading-external-png-amp-gif-image/m-p/436054#M266492
Oct 16, 2007
Oct 16, 2007
Copy link to clipboard
Copied
I'm not really sure how this would work at all. Also if your
using CS3 you must have the Publish settings set to AS2 or this
would not work. A more proper syntax structure would be:
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
AlMostabed
AUTHOR
New Here
,
/t5/animate-discussions/problem-with-loading-external-png-amp-gif-image/m-p/436055#M266493
Oct 17, 2007
Oct 17, 2007
Copy link to clipboard
Copied
i create flash file with actionscript 2.0 not actionscript
3.0 and all i want is to test the movie that's all but nothing work
:(
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Guru
,
/t5/animate-discussions/problem-with-loading-external-png-amp-gif-image/m-p/436056#M266494
Oct 17, 2007
Oct 17, 2007
Copy link to clipboard
Copied
did you insert the code the way that I'd reformatted it
above?
and do you have the file 'cloud.png' in the same folder as the FLA file?
and do you have the file 'cloud.png' in the same folder as the FLA file?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
AlMostabed
AUTHOR
New Here
,
/t5/animate-discussions/problem-with-loading-external-png-amp-gif-image/m-p/436057#M266495
Oct 17, 2007
Oct 17, 2007
Copy link to clipboard
Copied
"did you insert the code the way that I'd reformatted it
above?"
yes
"and do you have the file 'cloud.png' in the same folder as the FLA file?"
and yes 🙂
yes
"and do you have the file 'cloud.png' in the same folder as the FLA file?"
and yes 🙂
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Guru
,
/t5/animate-discussions/problem-with-loading-external-png-amp-gif-image/m-p/436058#M266496
Oct 17, 2007
Oct 17, 2007
Copy link to clipboard
Copied
hmmm .... this should be working. try replaceing the
'this.getNextHighestDepth()' with 0 (zero).
also, do you have the CS3 publish settings set to AS2 (just making sure)?
also, do you have the CS3 publish settings set to AS2 (just making sure)?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
AlMostabed
AUTHOR
New Here
,
/t5/animate-discussions/problem-with-loading-external-png-amp-gif-image/m-p/436059#M266497
Oct 18, 2007
Oct 18, 2007
Copy link to clipboard
Copied
don't work 😞 😞 😞
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Guru
,
/t5/animate-discussions/problem-with-loading-external-png-amp-gif-image/m-p/436060#M266498
Oct 18, 2007
Oct 18, 2007
Copy link to clipboard
Copied
hmmm... this is strange, it's a pretty standard code block.
In fact I just tested it and it works fine. are you certain that you have the 'cloud.png' in the same folder as the FLA it's the only thing I can think of :)
Try the code with a different image file target, put it in the same directory.
Is this code located on the main timeline?
In fact I just tested it and it works fine. are you certain that you have the 'cloud.png' in the same folder as the FLA it's the only thing I can think of :)
Try the code with a different image file target, put it in the same directory.
Is this code located on the main timeline?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
AlMostabed
AUTHOR
New Here
,
LATEST
/t5/animate-discussions/problem-with-loading-external-png-amp-gif-image/m-p/436061#M266499
Oct 18, 2007
Oct 18, 2007
Copy link to clipboard
Copied
i know this is strange if u see Flash Professional 8
Essential Training from lynda company
http://movielibrary.lynda.com/html/modPage.asp?ID=169
in chapter 15.ActionScript Essentials lesson Loading JPEGs, GIFs, and PNGs
i try to test it but don't work ???!!!!!!!!!!!!
i have 'cloud.png' in the same folder as the FLA and i try different image file ( gif & png ) nothing work at all :(
Is this code located on the main timeline?
Yes
http://movielibrary.lynda.com/html/modPage.asp?ID=169
in chapter 15.ActionScript Essentials lesson Loading JPEGs, GIFs, and PNGs
i try to test it but don't work ???!!!!!!!!!!!!
i have 'cloud.png' in the same folder as the FLA and i try different image file ( gif & png ) nothing work at all :(
Is this code located on the main timeline?
Yes
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

