Obi1-Cannabis Posted February 13, 2007 Share Posted February 13, 2007 hey!it's not that i don't want to use _xscale or _height ... but _xscale is not what i need because it works in percentage and i want fixed values, and since i have an image inside the movieclip if i try to use _height or _width it simply doesn't show up... is there any other way to resize a movieclip?please... i've been looking for this and i can't seem to find it...big up everyone! Link to comment Share on other sites More sharing options...
smiles Posted February 13, 2007 Share Posted February 13, 2007 My advise is using loader to load your movie clip, using CreateEmptyMovieClip() usually gets some error about size, position ...The loader will help you better if you notice the background of your movie clip, it should be the same with the background that the loader is put on !!! Link to comment Share on other sites More sharing options...
Obi1-Cannabis Posted February 14, 2007 Author Share Posted February 14, 2007 My advise is using loader to load your movie clip, using CreateEmptyMovieClip() usually gets some error about size, position ...The loader will help you better if you notice the background of your movie clip, it should be the same with the background that the loader is put on !!!heya smiles!if by loader you mean a MovieClipLoader, i tryed your idea right now and it does load the images, but it doesn't enter the onLoadComplete nor onLoadInit... i'am breaking myu head here...a=0;vazio = false;xx = 139;while(!vazio){ if(foto[a] != null){ b=5-a; vazio = false; this.img = "img"+a; var loadlistner:Object = new Object; loadlistner.onLoadComplete = function(){ trace("algo aconteceu"); } loadlistner.onLoadInit = function(){ trace("antes ou depois?"); } var mcLoader:MovieClipLoader = new MovieClipLoader();mcLoader.addListener(loadlistener);this[val].createEmptyMovieClip (this.img, b);mcLoader.loadClip("http://cgseguros/imagem.php?id="+foto[a], this[val][img]); xx+= 101;a++;}else{vazio = true;}} Link to comment Share on other sites More sharing options...
smiles Posted February 14, 2007 Share Posted February 14, 2007 Hi Obi1, I think you are better with Action Script than me because the loader I meant is Loader Component 1.Drag the Loader component from the Components panel to the library. 2.Select the first frame in the main Timeline, open the Actions panel, and enter the following code: this.createClassObject(mx.controls.Loader, "my_loader", 1);my_loader.contentPath = "http://....."; 3.Select Control > Test Movie. The Loader with specify width and height will scale your movie clip or image suitably !!!I had tried it with my site and it's good but never with .php Link to comment Share on other sites More sharing options...
Obi1-Cannabis Posted February 14, 2007 Author Share Posted February 14, 2007 this.createClassObject(mx.controls.Loader, "my_loader", 1);my_loader.contentPath = "http://....."; ...The Loader with specify width and height will scale your movie clip or image suitably !!! that seems fine but _width and _height properties doesn't seem to work with the Loader, how am i suposed to set this? Link to comment Share on other sites More sharing options...
smiles Posted February 14, 2007 Share Posted February 14, 2007 try this /* add more */my_loader.scaleContent = true; Link to comment Share on other sites More sharing options...
Obi1-Cannabis Posted February 14, 2007 Author Share Posted February 14, 2007 huf.. i've finally made it now i have another huge problem. when i call this .swf that i created inside another .fla, the properties that i've been working on, don't work, but if i open the swf alone it's perfect...man... i'm going crazy with this... Link to comment Share on other sites More sharing options...
smiles Posted February 15, 2007 Share Posted February 15, 2007 huf.. i've finally made it you scale it successful ?if your movie is rectangle, you put it in square, certainly it is distortedinspite of anything, you must have the suitable rate about height and width between loader and external moviehope I understand you right Link to comment Share on other sites More sharing options...
Obi1-Cannabis Posted February 15, 2007 Author Share Posted February 15, 2007 you scale it successful ?see, scale is my problem. yes i scaled it successfuly (when i play it outside the other file) but when i import it or load it, the scale doesn't work. i didn't used the loader, though... i used the MovieClipLoader that you reminded me when you first talked about loader...tell me something about that loader, if i want to use it in only in frame 100 for example and it's for use inside an movieclip and not in the root, how can i acomplish that? Link to comment Share on other sites More sharing options...
smiles Posted February 16, 2007 Share Posted February 16, 2007 Try to upload this file for youhttp://uploadhut.com/download/image.php/?file=381959.zip you will see inside it is 3 files : try.fla, aotrang.swf,try.swftry.swf using a loader component ( Windows>>Components>>You find Loader and drag into stage)notice the parameters that I set for loader (see in try.fla)I never put a loader component into a movie clip you can try it for yourself Link to comment Share on other sites More sharing options...
Obi1-Cannabis Posted February 16, 2007 Author Share Posted February 16, 2007 i found the problem with my code... i was using _root, so it gave me problems, all i needed was to assign specific objects to it to work.i'm going to try your loader, tough, just to see how it really works.big up! Link to comment Share on other sites More sharing options...
smiles Posted February 16, 2007 Share Posted February 16, 2007 i found the problem with my code... i was using _root, so it gave me problems, all i needed was to assign specific objects to it to work.i'm going to try your loader, tough, just to see how it really works.big up! I always believe you will success Have a nice day !!! ... now I have to pick up the New Year 's Day of my country Link to comment Share on other sites More sharing options...
Obi1-Cannabis Posted February 16, 2007 Author Share Posted February 16, 2007 I always believe you will success Have a nice day !!! ... now I have to pick up the New Year 's Day of my country in that case... Happy New Year!!!stay cool Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now