Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

problem with loading external png & gif image ?!

New Here ,
Oct 16, 2007 Oct 16, 2007
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
TOPICS
ActionScript
513
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Oct 16, 2007 Oct 16, 2007
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:
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 17, 2007 Oct 17, 2007
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 :(
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Oct 17, 2007 Oct 17, 2007
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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 17, 2007 Oct 17, 2007
"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 🙂
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Oct 17, 2007 Oct 17, 2007
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)?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 18, 2007 Oct 18, 2007
don't work 😞 😞 😞
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Oct 18, 2007 Oct 18, 2007
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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 18, 2007 Oct 18, 2007
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines