Re: [Flashcoders] loadmovie
Use loadClip and wait for the onLoadInit to fire, then resize. http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1580.html hth. B On Fri, Feb 29, 2008 at 7:45 AM, Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] wrote: I am loading a movie via: holder_lesson.loadMovie(lessons/+_root.wlesson+.swf); the problem is the movie is maxing to the size of the swf and not the size of the clip it is being loaded into... it takes up the whole swf... I am even trying to resize it: holder_lesson._width = 967; holder_lesson._height = 572; holder_lesson._x = 3; holder_lesson._y = 23; what's up? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] loadmovie
Theodore, How was holder_lesson created? If it has been scaled up from some other mc, the loaded movie will also be scaled up. Best to use a non-scaled clip as a holder. AS2 example: this.createEmptyMovieClip(holder_lesson,this.getNextHighestDepth()); holder_lesson._x = 10; // or wherever you want to place it holder_lesson._y= 10; // or wherever you want to place it holder_lesson.loadMovie(lessons/ + _root.wlesson + .swf); As Bob mentioned, you can also resize after loading but you must wait until the onLoadInit event has fired. In AS2 you'd use MovieClipLoader class to handle this. Marc At 06:45 AM 2/29/2008, you wrote: I am loading a movie via: holder_lesson.loadMovie(lessons/+_root.wlesson+.swf); the problem is the movie is maxing to the size of the swf and not the size of the clip it is being loaded into... it takes up the whole swf... I am even trying to resize it: holder_lesson._width = 967; holder_lesson._height = 572; holder_lesson._x = 3; holder_lesson._y = 23; what's up? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] loadmovie
And if you are loading it into a clip that you've set _xscale + _yscale on, the movie replaces those properties when it's loaded. loadMovie essentially replaces the movie it's called from, wiping its properties. On Fri, Feb 29, 2008 at 1:28 PM, Marc Hoffman [EMAIL PROTECTED] wrote: Theodore, How was holder_lesson created? If it has been scaled up from some other mc, the loaded movie will also be scaled up. Best to use a non-scaled clip as a holder. AS2 example: this.createEmptyMovieClip(holder_lesson,this.getNextHighestDepth()); holder_lesson._x = 10; // or wherever you want to place it holder_lesson._y= 10; // or wherever you want to place it holder_lesson.loadMovie(lessons/ + _root.wlesson + .swf); As Bob mentioned, you can also resize after loading but you must wait until the onLoadInit event has fired. In AS2 you'd use MovieClipLoader class to handle this. Marc At 06:45 AM 2/29/2008, you wrote: I am loading a movie via: holder_lesson.loadMovie(lessons/+_root.wlesson+.swf); the problem is the movie is maxing to the size of the swf and not the size of the clip it is being loaded into... it takes up the whole swf... I am even trying to resize it: holder_lesson._width = 967; holder_lesson._height = 572; holder_lesson._x = 3; holder_lesson._y = 23; what's up? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] loadmovie
Yes, my apologies. I guess I was mixing up dynamic properties with the standard properties. Dynamic properties do get wiped, but standard ones are preserved, as Marc states. loader2.idiot = jonathan; loader2.onRelease = function(){ this.loadMovie(circle.swf); } // then once it is loaded trace(loader2.idiot); // traces undefined, (which is clearly not true. we know exactly who the idiot is, yes?) On Fri, Feb 29, 2008 at 3:22 PM, Marc Hoffman [EMAIL PROTECTED] wrote: Jonathan, Sorry, but as far as AS2, you're wrong. A loaded movie inherits the properties of the clip it's loaded into. Test it yourself. Create circle.swf, a movie of a round circle. Create a base movie with two loaders (loader1 and loader2) based on a square mc. Code it like this: loader2._xscale = 50; loader1.onRelease = function(){ this.loadMovie(circle.swf); } loader2.onRelease = function(){ this.loadMovie(circle.swf); } Test the base movie. loader1 loads the circle as a circle. loader2 loads it as an elipse half as wide as it is high. Marc At 11:19 AM 2/29/2008, you wrote: And if you are loading it into a clip that you've set _xscale + _yscale on, the movie replaces those properties when it's loaded. loadMovie essentially replaces the movie it's called from, wiping its properties. On Fri, Feb 29, 2008 at 1:28 PM, Marc Hoffman [EMAIL PROTECTED] wrote: Theodore, How was holder_lesson created? If it has been scaled up from some other mc, the loaded movie will also be scaled up. Best to use a non-scaled clip as a holder. AS2 example: this.createEmptyMovieClip(holder_lesson,this.getNextHighestDepth()); holder_lesson._x = 10; // or wherever you want to place it holder_lesson._y= 10; // or wherever you want to place it holder_lesson.loadMovie(lessons/ + _root.wlesson + .swf); As Bob mentioned, you can also resize after loading but you must wait until the onLoadInit event has fired. In AS2 you'd use MovieClipLoader class to handle this. Marc At 06:45 AM 2/29/2008, you wrote: I am loading a movie via: holder_lesson.loadMovie(lessons/+_root.wlesson+.swf); the problem is the movie is maxing to the size of the swf and not the size of the clip it is being loaded into... it takes up the whole swf... I am even trying to resize it: holder_lesson._width = 967; holder_lesson._height = 572; holder_lesson._x = 3; holder_lesson._y = 23; what's up? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] loadmovie
Thanks - worked perfectly -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Wohl Sent: Friday, February 29, 2008 10:21 AM To: Flash Coders List Subject: Re: [Flashcoders] loadmovie Use loadClip and wait for the onLoadInit to fire, then resize. http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/ht ml/wwhelp.htm?context=Flash_MX_2004file=1580.html hth. B On Fri, Feb 29, 2008 at 7:45 AM, Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] wrote: I am loading a movie via: holder_lesson.loadMovie(lessons/+_root.wlesson+.swf); the problem is the movie is maxing to the size of the swf and not the size of the clip it is being loaded into... it takes up the whole swf... I am even trying to resize it: holder_lesson._width = 967; holder_lesson._height = 572; holder_lesson._x = 3; holder_lesson._y = 23; what's up? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] loadmovie
Well-put, Jonathan. Thanks for a useful clarification -- wish all idiots were as clever as you! -Marc At 12:59 PM 2/29/2008, you wrote: Yes, my apologies. I guess I was mixing up dynamic properties with the standard properties. Dynamic properties do get wiped, but standard ones are preserved, as Marc states. loader2.idiot = jonathan; loader2.onRelease = function(){ this.loadMovie(circle.swf); } // then once it is loaded trace(loader2.idiot); // traces undefined, (which is clearly not true. we know exactly who the idiot is, yes?) On Fri, Feb 29, 2008 at 3:22 PM, Marc Hoffman [EMAIL PROTECTED] wrote: Jonathan, Sorry, but as far as AS2, you're wrong. A loaded movie inherits the properties of the clip it's loaded into. Test it yourself. Create circle.swf, a movie of a round circle. Create a base movie with two loaders (loader1 and loader2) based on a square mc. Code it like this: loader2._xscale = 50; loader1.onRelease = function(){ this.loadMovie(circle.swf); } loader2.onRelease = function(){ this.loadMovie(circle.swf); } Test the base movie. loader1 loads the circle as a circle. loader2 loads it as an elipse half as wide as it is high. Marc At 11:19 AM 2/29/2008, you wrote: And if you are loading it into a clip that you've set _xscale + _yscale on, the movie replaces those properties when it's loaded. loadMovie essentially replaces the movie it's called from, wiping its properties. On Fri, Feb 29, 2008 at 1:28 PM, Marc Hoffman [EMAIL PROTECTED] wrote: Theodore, How was holder_lesson created? If it has been scaled up from some other mc, the loaded movie will also be scaled up. Best to use a non-scaled clip as a holder. AS2 example: this.createEmptyMovieClip(holder_lesson,this.getNextHighestDepth()); holder_lesson._x = 10; // or wherever you want to place it holder_lesson._y= 10; // or wherever you want to place it holder_lesson.loadMovie(lessons/ + _root.wlesson + .swf); As Bob mentioned, you can also resize after loading but you must wait until the onLoadInit event has fired. In AS2 you'd use MovieClipLoader class to handle this. Marc At 06:45 AM 2/29/2008, you wrote: I am loading a movie via: holder_lesson.loadMovie(lessons/+_root.wlesson+.swf); the problem is the movie is maxing to the size of the swf and not the size of the clip it is being loaded into... it takes up the whole swf... I am even trying to resize it: holder_lesson._width = 967; holder_lesson._height = 572; holder_lesson._x = 3; holder_lesson._y = 23; what's up? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] loadMovie from subdirectory - change base path
Can you use the base attribute in the params to set somewhere that you can then use relative paths. |param name=base value=http://www.example.com/pages/; http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_04157sliceId=2 http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_04157sliceId=2 Glen | Bob Leisle wrote: One simple solution would be to physically move your controller swf into the screens directory and run it from there. Then they'll all have the same path and no retrofitting needed. hth, Bob Amanda Kuek wrote: @Deepanjan Das, @JC Thanks for your replies! It seems that, despite my fondest hopes, there is no easy way to retro-fit hundreds of SWFs originally built without this loadMovie() requirement in mind. Cheers and thanks :-) On Jan 30, 2008 8:05 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, check this out: http://objectpainters.com/blog/2007/01/03/where-am-i-relative-paths/ The getPath things works in most cases. If you want a more complex version that takes more things into account, you can use this: You will need to replace the RuntimeExceptions with your own error mechanism (eg traces, regular errors). /** * Resolves pAssetPath against pBasePath. * * - if pAssetPath is not a relative path, pAssetPath is returned (eg the full url) * - if pBasePath is an empty path, pAssetPath is returned * - if pBasePath is a relative path, an error is thrown * - in all other situation a path is returned which may still be or not valid. * * @param pAssetPath, a full or relative url * @param pBasePath, a full or empty url, this url MAY contain a file as well, it is stripped automatically * */ public static function resolve (pAssetPath:String, pBasePath:String):String { //no base path if (pBasePath == null || pBasePath.length == 0) return pAssetPath; if (pAssetPath == null) { throw new RuntimeException ( Assetpath cannot be null., Path, arguments.callee, null, null); } //file asset path if (pAssetPath.indexOf (http) == 0 || pAssetPath.indexOf (ftp) == 0 || pAssetPath.indexOf (rmtp) == 0 || pAssetPath.indexOf (file) == 0) return pAssetPath; //asset is relative, test basepath for correctness if (pBasePath.indexOf (http) != 0 pBasePath.indexOf (ftp) != 0 pBasePath.indexOf (rmtp) != 0 pBasePath.indexOf (file) != 0) { throw new RuntimeException ( Basepath is not null and not a full url, but needs to be either empty or a full url., Path, arguments.callee, null, null); } //so now we know that pAssetPath is a relative url and pBasePath is a full url. //first normalize both urls so that we are dealing with only one type of separator var lAssetPath:String = pAssetPath.split (\\).join(/file://%22).join(%22/ ); var lBasePath:String = pBasePath.split (\\).join(/file://%22).join(%22/ ); //strip everything after ? to strip parameters from basepath if (lBasePath.indexOf(?) -1) { lBasePath = lBasePath.substr (lBasePath.lastIndexOf(?)); } //check if basepath ends with /, if not check if everything after / contains a . //if it ends with / it is a directory, if it doesnt end with / and everything after contains a . we assume //we are dealing with a file, otherwise a directory if (lBasePath.charAt (lBasePath.length-1) != /) { //and the last part contains a . cut it off var lLastDir:String = lBasePath.substr (lBasePath.lastIndexOf(/)); if (lLastDir.indexOf (.) != -1) { //dealing with file lBasePath = lBasePath.substr (0, lBasePath.lastIndexOf(/)+1); } else { //assume the last part was a dir and the trailing slash was forgotten, so add it lBasePath += /; } } //at this point we have a relative url and full directory path with a trailing / //now create two stacks var lAssetStack:Array = lAssetPath.split (/); var lBaseStack:Array = lBasePath.split (/); //remove trailing / from baseStack to provide a correct starting point, //our invariant is that each directory 'starts' with a slash and not ends lBaseStack.pop(); //remove any superflous items (pointers to current directory //. points to current dir and isnt relative // points to double slashes or a starting slash, we remove that too while (lAssetStack[0] == . || lAssetStack[0] == ) { lAssetStack.shift(); } //remove .. from assetStack AND end of basestack while (lAssetStack[0] == ..) { lAssetStack.shift(); lBaseStack.pop(); } return lBaseStack.join(/)+/+lAssetStack.join(/); } Usage eg: xml.load (Path.resolve (assets/config.xml), _clip._url)); greetz JC On Wed, Jan 30, 2008 at 6:24 AM, Deepanjan Das [EMAIL PROTECTED] wrote: Hi, You need to keep duplicate files if you want it to work as single and also when loaded from main movie. Easiest way is to create an xml directory at the place where the main movie resides and set the path as xml/1.xml also copy this directory in the screens directory so ths ame path will work for both :) Hope this helps Deepanjan Das On Jan 30, 2008 10:10
Re: [Flashcoders] loadMovie from subdirectory - change base path
Hi, i think this applies to using an html file in location a loading an swf from location b. Seeing Amanda has two different basepaths, setting the base to nr 1 will confuse nr 2 and vice versa. Copying everything to the same directory like Bob said seems a good and simple solution though:). greetz JC On Fri, Feb 1, 2008 at 11:31 AM, Glen Pike [EMAIL PROTECTED] wrote: Can you use the base attribute in the params to set somewhere that you can then use relative paths. |param name=base value=http://www.example.com/pages/; http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_04157sliceId=2 http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_04157sliceId=2 Glen | Bob Leisle wrote: One simple solution would be to physically move your controller swf into the screens directory and run it from there. Then they'll all have the same path and no retrofitting needed. hth, Bob Amanda Kuek wrote: @Deepanjan Das, @JC Thanks for your replies! It seems that, despite my fondest hopes, there is no easy way to retro-fit hundreds of SWFs originally built without this loadMovie() requirement in mind. Cheers and thanks :-) On Jan 30, 2008 8:05 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, check this out: http://objectpainters.com/blog/2007/01/03/where-am-i-relative-paths/ The getPath things works in most cases. If you want a more complex version that takes more things into account, you can use this: You will need to replace the RuntimeExceptions with your own error mechanism (eg traces, regular errors). /** * Resolves pAssetPath against pBasePath. * * - if pAssetPath is not a relative path, pAssetPath is returned (eg the full url) * - if pBasePath is an empty path, pAssetPath is returned * - if pBasePath is a relative path, an error is thrown * - in all other situation a path is returned which may still be or not valid. * * @param pAssetPath, a full or relative url * @param pBasePath, a full or empty url, this url MAY contain a file as well, it is stripped automatically * */ public static function resolve (pAssetPath:String, pBasePath:String):String { //no base path if (pBasePath == null || pBasePath.length == 0) return pAssetPath; if (pAssetPath == null) { throw new RuntimeException ( Assetpath cannot be null., Path, arguments.callee, null, null); } //file asset path if (pAssetPath.indexOf (http) == 0 || pAssetPath.indexOf (ftp) == 0 || pAssetPath.indexOf (rmtp) == 0 || pAssetPath.indexOf (file) == 0) return pAssetPath; //asset is relative, test basepath for correctness if (pBasePath.indexOf (http) != 0 pBasePath.indexOf (ftp) != 0 pBasePath.indexOf (rmtp) != 0 pBasePath.indexOf (file) != 0) { throw new RuntimeException ( Basepath is not null and not a full url, but needs to be either empty or a full url., Path, arguments.callee, null, null); } //so now we know that pAssetPath is a relative url and pBasePath is a full url. //first normalize both urls so that we are dealing with only one type of separator var lAssetPath:String = pAssetPath.split (\\).join(/file://%22).join(%22/ ); var lBasePath:String = pBasePath.split (\\).join(/file://%22).join(%22/ ); //strip everything after ? to strip parameters from basepath if (lBasePath.indexOf(?) -1) { lBasePath = lBasePath.substr (lBasePath.lastIndexOf(?)); } //check if basepath ends with /, if not check if everything after / contains a . //if it ends with / it is a directory, if it doesnt end with / and everything after contains a . we assume //we are dealing with a file, otherwise a directory if (lBasePath.charAt (lBasePath.length-1) != /) { //and the last part contains a . cut it off var lLastDir:String = lBasePath.substr (lBasePath.lastIndexOf(/)); if (lLastDir.indexOf (.) != -1) { //dealing with file lBasePath = lBasePath.substr (0, lBasePath.lastIndexOf(/)+1); } else { //assume the last part was a dir and the trailing slash was forgotten, so add it lBasePath += /; } } //at this point we have a relative url and full directory path with a trailing / //now create two stacks var lAssetStack:Array = lAssetPath.split (/); var lBaseStack:Array = lBasePath.split (/); //remove trailing / from baseStack to provide a correct starting point, //our invariant is that each directory 'starts' with a slash and not ends lBaseStack.pop(); //remove any superflous items (pointers to current directory //. points to current dir and isnt relative // points to double slashes or a starting slash, we remove that too while (lAssetStack[0] == . || lAssetStack[0] == ) { lAssetStack.shift(); } //remove .. from assetStack AND end of basestack while (lAssetStack[0] == ..) { lAssetStack.shift();
Re: [Flashcoders] loadMovie from subdirectory - change base path
@Deepanjan Das, @JC Thanks for your replies! It seems that, despite my fondest hopes, there is no easy way to retro-fit hundreds of SWFs originally built without this loadMovie() requirement in mind. Cheers and thanks :-) On Jan 30, 2008 8:05 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, check this out: http://objectpainters.com/blog/2007/01/03/where-am-i-relative-paths/ The getPath things works in most cases. If you want a more complex version that takes more things into account, you can use this: You will need to replace the RuntimeExceptions with your own error mechanism (eg traces, regular errors). /** * Resolves pAssetPath against pBasePath. * * - if pAssetPath is not a relative path, pAssetPath is returned (eg the full url) * - if pBasePath is an empty path, pAssetPath is returned * - if pBasePath is a relative path, an error is thrown * - in all other situation a path is returned which may still be or not valid. * * @param pAssetPath, a full or relative url * @param pBasePath, a full or empty url, this url MAY contain a file as well, it is stripped automatically * */ public static function resolve (pAssetPath:String, pBasePath:String):String { //no base path if (pBasePath == null || pBasePath.length == 0) return pAssetPath; if (pAssetPath == null) { throw new RuntimeException ( Assetpath cannot be null., Path, arguments.callee, null, null); } //file asset path if (pAssetPath.indexOf (http) == 0 || pAssetPath.indexOf (ftp) == 0 || pAssetPath.indexOf (rmtp) == 0 || pAssetPath.indexOf (file) == 0) return pAssetPath; //asset is relative, test basepath for correctness if (pBasePath.indexOf (http) != 0 pBasePath.indexOf (ftp) != 0 pBasePath.indexOf (rmtp) != 0 pBasePath.indexOf (file) != 0) { throw new RuntimeException ( Basepath is not null and not a full url, but needs to be either empty or a full url., Path, arguments.callee, null, null); } //so now we know that pAssetPath is a relative url and pBasePath is a full url. //first normalize both urls so that we are dealing with only one type of separator var lAssetPath:String = pAssetPath.split (\\).join(/file://%22).join(%22/ ); var lBasePath:String = pBasePath.split (\\).join(/file://%22).join(%22/ ); //strip everything after ? to strip parameters from basepath if (lBasePath.indexOf(?) -1) { lBasePath = lBasePath.substr (lBasePath.lastIndexOf(?)); } //check if basepath ends with /, if not check if everything after / contains a . //if it ends with / it is a directory, if it doesnt end with / and everything after contains a . we assume //we are dealing with a file, otherwise a directory if (lBasePath.charAt (lBasePath.length-1) != /) { //and the last part contains a . cut it off var lLastDir:String = lBasePath.substr (lBasePath.lastIndexOf(/)); if (lLastDir.indexOf (.) != -1) { //dealing with file lBasePath = lBasePath.substr (0, lBasePath.lastIndexOf(/)+1); } else { //assume the last part was a dir and the trailing slash was forgotten, so add it lBasePath += /; } } //at this point we have a relative url and full directory path with a trailing / //now create two stacks var lAssetStack:Array = lAssetPath.split (/); var lBaseStack:Array = lBasePath.split (/); //remove trailing / from baseStack to provide a correct starting point, //our invariant is that each directory 'starts' with a slash and not ends lBaseStack.pop(); //remove any superflous items (pointers to current directory //. points to current dir and isnt relative // points to double slashes or a starting slash, we remove that too while (lAssetStack[0] == . || lAssetStack[0] == ) { lAssetStack.shift(); } //remove .. from assetStack AND end of basestack while (lAssetStack[0] == ..) { lAssetStack.shift(); lBaseStack.pop(); } return lBaseStack.join(/)+/+lAssetStack.join(/); } Usage eg: xml.load (Path.resolve (assets/config.xml), _clip._url)); greetz JC On Wed, Jan 30, 2008 at 6:24 AM, Deepanjan Das [EMAIL PROTECTED] wrote: Hi, You need to keep duplicate files if you want it to work as single and also when loaded from main movie. Easiest way is to create an xml directory at the place where the main movie resides and set the path as xml/1.xml also copy this directory in the screens directory so ths ame path will work for both :) Hope this helps Deepanjan Das On Jan 30, 2008 10:10 AM, confusticate and bebother these dwarves! [EMAIL PROTECTED] wrote: Hello Flashcoders, I'm trying to make a main movie (controller.swf) that loads other movies (screen1.swf, screen2.swf, etc), which are stored in a subdirectory called screens. In controller.swf I'm using loadMovie(screens/screenx.swf) to load the movies from the screens subdirectory, and this works fine. But the problem is that the movies in the screens
Re: [Flashcoders] loadMovie from subdirectory - change base path
One simple solution would be to physically move your controller swf into the screens directory and run it from there. Then they'll all have the same path and no retrofitting needed. hth, Bob Amanda Kuek wrote: @Deepanjan Das, @JC Thanks for your replies! It seems that, despite my fondest hopes, there is no easy way to retro-fit hundreds of SWFs originally built without this loadMovie() requirement in mind. Cheers and thanks :-) On Jan 30, 2008 8:05 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, check this out: http://objectpainters.com/blog/2007/01/03/where-am-i-relative-paths/ The getPath things works in most cases. If you want a more complex version that takes more things into account, you can use this: You will need to replace the RuntimeExceptions with your own error mechanism (eg traces, regular errors). /** * Resolves pAssetPath against pBasePath. * * - if pAssetPath is not a relative path, pAssetPath is returned (eg the full url) * - if pBasePath is an empty path, pAssetPath is returned * - if pBasePath is a relative path, an error is thrown * - in all other situation a path is returned which may still be or not valid. * * @param pAssetPath, a full or relative url * @param pBasePath, a full or empty url, this url MAY contain a file as well, it is stripped automatically * */ public static function resolve (pAssetPath:String, pBasePath:String):String { //no base path if (pBasePath == null || pBasePath.length == 0) return pAssetPath; if (pAssetPath == null) { throw new RuntimeException ( Assetpath cannot be null., Path, arguments.callee, null, null); } //file asset path if (pAssetPath.indexOf (http) == 0 || pAssetPath.indexOf (ftp) == 0 || pAssetPath.indexOf (rmtp) == 0 || pAssetPath.indexOf (file) == 0) return pAssetPath; //asset is relative, test basepath for correctness if (pBasePath.indexOf (http) != 0 pBasePath.indexOf (ftp) != 0 pBasePath.indexOf (rmtp) != 0 pBasePath.indexOf (file) != 0) { throw new RuntimeException ( Basepath is not null and not a full url, but needs to be either empty or a full url., Path, arguments.callee, null, null); } //so now we know that pAssetPath is a relative url and pBasePath is a full url. //first normalize both urls so that we are dealing with only one type of separator var lAssetPath:String = pAssetPath.split (\\).join(/file://%22).join(%22/ ); var lBasePath:String = pBasePath.split (\\).join(/file://%22).join(%22/ ); //strip everything after ? to strip parameters from basepath if (lBasePath.indexOf(?) -1) { lBasePath = lBasePath.substr (lBasePath.lastIndexOf(?)); } //check if basepath ends with /, if not check if everything after / contains a . //if it ends with / it is a directory, if it doesnt end with / and everything after contains a . we assume //we are dealing with a file, otherwise a directory if (lBasePath.charAt (lBasePath.length-1) != /) { //and the last part contains a . cut it off var lLastDir:String = lBasePath.substr (lBasePath.lastIndexOf(/)); if (lLastDir.indexOf (.) != -1) { //dealing with file lBasePath = lBasePath.substr (0, lBasePath.lastIndexOf(/)+1); } else { //assume the last part was a dir and the trailing slash was forgotten, so add it lBasePath += /; } } //at this point we have a relative url and full directory path with a trailing / //now create two stacks var lAssetStack:Array = lAssetPath.split (/); var lBaseStack:Array = lBasePath.split (/); //remove trailing / from baseStack to provide a correct starting point, //our invariant is that each directory 'starts' with a slash and not ends lBaseStack.pop(); //remove any superflous items (pointers to current directory //. points to current dir and isnt relative // points to double slashes or a starting slash, we remove that too while (lAssetStack[0] == . || lAssetStack[0] == ) { lAssetStack.shift(); } //remove .. from assetStack AND end of basestack while (lAssetStack[0] == ..) { lAssetStack.shift(); lBaseStack.pop(); } return lBaseStack.join(/)+/+lAssetStack.join(/); } Usage eg: xml.load (Path.resolve (assets/config.xml), _clip._url)); greetz JC On Wed, Jan 30, 2008 at 6:24 AM, Deepanjan Das [EMAIL PROTECTED] wrote: Hi, You need to keep duplicate files if you want it to work as single and also when loaded from main movie. Easiest way is to create an xml directory at the place where the main movie resides and set the path as xml/1.xml also copy this directory in the screens directory so ths ame path will work for both :) Hope this helps Deepanjan Das On Jan 30, 2008 10:10 AM, confusticate and bebother these dwarves! [EMAIL PROTECTED] wrote: Hello Flashcoders, I'm trying to make a main movie (controller.swf) that loads other movies (screen1.swf, screen2.swf, etc), which are stored in a subdirectory called screens. In controller.swf I'm using loadMovie(screens/screenx.swf) to load
Re: [Flashcoders] loadMovie from subdirectory - change base path
Hi, check this out: http://objectpainters.com/blog/2007/01/03/where-am-i-relative-paths/ The getPath things works in most cases. If you want a more complex version that takes more things into account, you can use this: You will need to replace the RuntimeExceptions with your own error mechanism (eg traces, regular errors). /** * Resolves pAssetPath against pBasePath. * * - if pAssetPath is not a relative path, pAssetPath is returned (eg the full url) * - if pBasePath is an empty path, pAssetPath is returned * - if pBasePath is a relative path, an error is thrown * - in all other situation a path is returned which may still be or not valid. * * @param pAssetPath, a full or relative url * @param pBasePath, a full or empty url, this url MAY contain a file as well, it is stripped automatically * */ public static function resolve (pAssetPath:String, pBasePath:String):String { //no base path if (pBasePath == null || pBasePath.length == 0) return pAssetPath; if (pAssetPath == null) { throw new RuntimeException ( Assetpath cannot be null., Path, arguments.callee, null, null); } //file asset path if (pAssetPath.indexOf (http) == 0 || pAssetPath.indexOf (ftp) == 0 || pAssetPath.indexOf (rmtp) == 0 || pAssetPath.indexOf (file) == 0) return pAssetPath; //asset is relative, test basepath for correctness if (pBasePath.indexOf (http) != 0 pBasePath.indexOf (ftp) != 0 pBasePath.indexOf (rmtp) != 0 pBasePath.indexOf (file) != 0) { throw new RuntimeException ( Basepath is not null and not a full url, but needs to be either empty or a full url., Path, arguments.callee, null, null); } //so now we know that pAssetPath is a relative url and pBasePath is a full url. //first normalize both urls so that we are dealing with only one type of separator var lAssetPath:String = pAssetPath.split(\\).join(/file://%22).join(%22/ ); var lBasePath:String = pBasePath.split(\\).join(/file://%22).join(%22/ ); //strip everything after ? to strip parameters from basepath if (lBasePath.indexOf(?) -1) { lBasePath = lBasePath.substr (lBasePath.lastIndexOf(?)); } //check if basepath ends with /, if not check if everything after / contains a . //if it ends with / it is a directory, if it doesnt end with / and everything after contains a . we assume //we are dealing with a file, otherwise a directory if (lBasePath.charAt (lBasePath.length-1) != /) { //and the last part contains a . cut it off var lLastDir:String = lBasePath.substr (lBasePath.lastIndexOf(/)); if (lLastDir.indexOf (.) != -1) { //dealing with file lBasePath = lBasePath.substr (0, lBasePath.lastIndexOf(/)+1); } else { //assume the last part was a dir and the trailing slash was forgotten, so add it lBasePath += /; } } //at this point we have a relative url and full directory path with a trailing / //now create two stacks var lAssetStack:Array = lAssetPath.split (/); var lBaseStack:Array = lBasePath.split (/); //remove trailing / from baseStack to provide a correct starting point, //our invariant is that each directory 'starts' with a slash and not ends lBaseStack.pop(); //remove any superflous items (pointers to current directory //. points to current dir and isnt relative // points to double slashes or a starting slash, we remove that too while (lAssetStack[0] == . || lAssetStack[0] == ) { lAssetStack.shift(); } //remove .. from assetStack AND end of basestack while (lAssetStack[0] == ..) { lAssetStack.shift(); lBaseStack.pop(); } return lBaseStack.join(/)+/+lAssetStack.join(/); } Usage eg: xml.load (Path.resolve (assets/config.xml), _clip._url)); greetz JC On Wed, Jan 30, 2008 at 6:24 AM, Deepanjan Das [EMAIL PROTECTED] wrote: Hi, You need to keep duplicate files if you want it to work as single and also when loaded from main movie. Easiest way is to create an xml directory at the place where the main movie resides and set the path as xml/1.xml also copy this directory in the screens directory so ths ame path will work for both :) Hope this helps Deepanjan Das On Jan 30, 2008 10:10 AM, confusticate and bebother these dwarves! [EMAIL PROTECTED] wrote: Hello Flashcoders, I'm trying to make a main movie (controller.swf) that loads other movies (screen1.swf, screen2.swf, etc), which are stored in a subdirectory called screens. In controller.swf I'm using loadMovie(screens/screenx.swf) to load the movies from the screens subdirectory, and this works fine. But the problem is that the movies in the screens subdirectory often reference XML files (which also live in the screens subdirectory). All works well when you play the individual screenx.swf files, obviously, but when you play controller.swf, it is looking for the XML files in the same directory as itself (one directory up). How can I fix this problem so that playing controller.swf works fine, as well as
RE: [Flashcoders] loadMovie question
You should try masking your movieclip through code, as you are loading into it with code : movieclip_a.masked.setMask(movieclip_a.mask); then your masked movieClip should remain masked even if you load a jpeg inside it. I say should, but I've not tested this precise setup ... HTH Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [p e r c e p t i c o n] Sent: 2 février 2007 11:26 To: flashcoders Subject: [Flashcoders] loadMovie question Hello all, i'm trying to load a jpg into a movie clip that is nested within a movieclip and masked by another movieclip within the same clip for example movieclip_a.mask movieclip_a.masked the problem is that the jpg is showing up on top of everything...shouldn't it be behind the mask even if it is larger than everything else? thanks p ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.411 / Virus Database: 268.17.19/663 - Release Date: 2007-02-01 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.411 / Virus Database: 268.17.19/663 - Release Date: 2007-02-01 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] loadMovie question
It sounds like you are not loading the JPG to the right target. Make sure your loadmovie is loading correctly. On 2/2/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: Hi Alain, I would think that would work too, but i tried that as well...not sure what's happening... in fact all of my coordinates are all screwed up...plus i've noticed that when i change the width of some clips it literally skews the clip as if i used the transform tool...very strange as i haven't touched the matrix of the clip... i've never had this happen before so i quite baffled thanks p ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] loadMovie question
Yes or use the MovieClipLoader class var mLoader:MovieClipLoader = new MovieClipLoader(); mLoader.load(movieclip_a.masked, image.jpg); If you load your jpeg to a depth of 0 it might overwrite the masked movieClip and thus you lose the mask as for the skewing, have you rotated or modified your clips inside the IDE before applying your modifications ? this might affect the actual way it is resized. Othewise I'm with you ... this is indeed weird. You might have to rebuild a new Flash file if this persists ... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: 2 février 2007 12:25 To: Flashcoders mailing list Subject: Re: [Flashcoders] loadMovie question It sounds like you are not loading the JPG to the right target. Make sure your loadmovie is loading correctly. On 2/2/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: Hi Alain, I would think that would work too, but i tried that as well...not sure what's happening... in fact all of my coordinates are all screwed up...plus i've noticed that when i change the width of some clips it literally skews the clip as if i used the transform tool...very strange as i haven't touched the matrix of the clip... i've never had this happen before so i quite baffled thanks p ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.411 / Virus Database: 268.17.19/663 - Release Date: 2007-02-01 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.411 / Virus Database: 268.17.19/663 - Release Date: 2007-02-01 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] loadMovie question
it sounds like you might be targeting the main clip and not the nested clip beneath the mask. mc mc.mask, mc.holder_mc (empty) - beneath the mask on a layer mc.holder_mc.loadMovie(foo.jpg); - should be affected by the mask layer inside of the mc movieclip On 2/2/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: Hello all, i'm trying to load a jpg into a movie clip that is nested within a movieclip and masked by another movieclip within the same clip for example movieclip_a.mask movieclip_a.masked the problem is that the jpg is showing up on top of everything...shouldn't it be behind the mask even if it is larger than everything else? thanks p ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- eric e. dolecki senior interactive engineer http://www.ericd.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] loadMovie question
and what are you tracing exactly ? that's only the result. But at first glance Target looks like a file path and not a clip path to me ... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [p e r c e p t i c o n] Sent: 2 février 2007 12:49 To: flashcoders Subject: [Flashcoders] loadMovie question here's what the output window is spitting out... Target not found: Target=/screen_container/card1/image_container Base=_level0.screen_container.card1.image_container the clip is on the stage...which this trace confirms image container: _level0.screen_container.card1.image_container thanks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.411 / Virus Database: 268.17.19/663 - Release Date: 2007-02-01 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.411 / Virus Database: 268.17.19/663 - Release Date: 2007-02-01 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] loadMovie question -- better explaination
Hey Buddy, You dont have to start a new thread, you can just continue with the original post :) On 2/2/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: ok so i noticed that where i have the clip that i'm loading into matters... so here's how my movieclip is set up. there are about 20 frames the background spans all 20 the mask begins at frame 10 as does the clip that i'm trying to load the jpg into... before i load the jpg i goto frame 10 so it should be a valid clip at that point, but that's when i get the target errors, i moved the clip i'm loading into to frame 1 and the error goes away, but no jpg ??? thanks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] loadMovie question
Had that problem once, that was because I had a number in the instance name, which flash wasn't handling well... How are you assigning the '1' to 'card1' ? read this: http://chattyfig.figleaf.com/pipermail/flashcoders/2006-December/177045.html On 2/2/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: here's what the output window is spitting out... Target not found: Target=/screen_container/card1/image_container Base=_level0.screen_container.card1.image_container the clip is on the stage...which this trace confirms image container: _level0.screen_container.card1.image_container thanks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] loadMovie in a duplicated movieclip
Sorry Jason, I was typing from memory, not copy / paste... this[newName]._x = menu_ds.HorizontalPos; Doesn't work for me, and the only reason I ended up using eval() is because it's the only thing that worked! This code doesn't work... duplicateMovieClip(dupButton, newName, i); this[newName]._x = menu_ds.HorizontalPos; this[newName]._y = menu_ds.VerticalPos; I scoured the net and eval() was the only answer I could find... I'm publishing Flash 8, AS2 Thanks... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 16 January 2007 16:49 To: Flashcoders mailing list Subject: RE: [Flashcoders] loadMovie in a duplicated movieclip And could anyone explain why this.[newName]._x = menu_ds.HorizontalPos; doesn't work? Improper syntax. Try: this[newName]._x = menu_ds.HorizontalPos; Also, would recommend against using eval() in this case and use the [] operator instead. Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.13/632 - Release Date: 16/01/2007 16:36 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] loadMovie in a duplicated movieclip
Well, to dig deeper, it's hard to comment because I don't know what _root.menu_ds.hasNext() does, or how _root.menu_ds.Type is set, or how dupButton is determined. There could be any number of things wrong there. Why are you using a while loop out of curiosity? Also, I usually avoid duplicateMovieClip because I always see people complain about it - either buggy or it's limitations. For those situations, I usually create an empty movie clip and attach from the library. Not saying that's the right approach, just what I have found works best for me in most situations. eval() is the old way, Adobe is pushing Actionscript to sctrict ECMA specifications, which means using the [] operator instead. If this[newName] doesn't work, then something is wrong with the scope, and I don't know where your clips are set up relative to that statement. Have you tried sprinkling some traces in your code to find out what's failing and where? Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] loadMovie in a duplicated movieclip
Hi Jason, I've put buttons in the duplicated movieclips, and they always trace back as +level0.button_28 or whatever the button number was when created... I've also traced every variable coming from menu_ds and they all work as they should... The while loop and the hasNext() come right out of the help files when iterating through a dataset, I had never used either before. I think the next step is to look into creating an empty movieclip and attaching from the library... This is just too much headache to be worth it... Thanks for your time... Don -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 17 January 2007 15:17 To: Flashcoders mailing list Subject: RE: [Flashcoders] loadMovie in a duplicated movieclip Well, to dig deeper, it's hard to comment because I don't know what _root.menu_ds.hasNext() does, or how _root.menu_ds.Type is set, or how dupButton is determined. There could be any number of things wrong there. Why are you using a while loop out of curiosity? Also, I usually avoid duplicateMovieClip because I always see people complain about it - either buggy or it's limitations. For those situations, I usually create an empty movie clip and attach from the library. Not saying that's the right approach, just what I have found works best for me in most situations. eval() is the old way, Adobe is pushing Actionscript to sctrict ECMA specifications, which means using the [] operator instead. If this[newName] doesn't work, then something is wrong with the scope, and I don't know where your clips are set up relative to that statement. Have you tried sprinkling some traces in your code to find out what's failing and where? Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.13/632 - Release Date: 16/01/2007 16:36 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] LoadMovie adds style to UIComponents?
Hi, Brilliant! I managed to get a result using the Loader component too. Thanks for your reply, I will try to post this somewhere online with a useful demo, but have a stack of work and homework to do first... Glen Wade Arnold wrote: Another post on this list directed me to the answer. http://ariaware.com/products/optimizer/downloads/docs/hints___tips/the_c orrect_way_to_load_in_external_swfs_that_contain_v2_components.htm I did change my loader out to be a loader component because I was still having focus problems. However just using the following code fixed my green area problems. holder._lockroot = true; holder.loadMovie(test.swf); ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] LoadMovie adds style to UIComponents?
Another post on this list directed me to the answer. http://ariaware.com/products/optimizer/downloads/docs/hints___tips/the_c orrect_way_to_load_in_external_swfs_that_contain_v2_components.htm I did change my loader out to be a loader component because I was still having focus problems. However just using the following code fixed my green area problems. holder._lockroot = true; holder.loadMovie(test.swf); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: Wednesday, November 22, 2006 12:44 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadMovie adds style to UIComponents? Hi, I had a similar problem with a site that I was trying to load in another small preloader swf and asked the list, but received no answer - sorry. I tried overriding global styles in the preloader swf, but had no joy with this method. Anyone found a solution to this??? Glen Wade Arnold wrote: I have one swf file that has a couple textinputs and textareas. When I run the swf alone it does not draw the green default boarder on focusIn. However if I load that same SWF via another swf into a symbol holder.loadMovie(test.swf); then I get the green boarder when I click on the textinput and textarea. Is there a way to disable this? It does not seem as though using setStyle allows me to keep the boarder from showing under focusIn. Thanks! Wade Arnold ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] LoadMovie adds style to UIComponents?
Hi, I had a similar problem with a site that I was trying to load in another small preloader swf and asked the list, but received no answer - sorry. I tried overriding global styles in the preloader swf, but had no joy with this method. Anyone found a solution to this??? Glen Wade Arnold wrote: I have one swf file that has a couple textinputs and textareas. When I run the swf alone it does not draw the green default boarder on focusIn. However if I load that same SWF via another swf into a symbol holder.loadMovie(test.swf); then I get the green boarder when I click on the textinput and textarea. Is there a way to disable this? It does not seem as though using setStyle allows me to keep the boarder from showing under focusIn. Thanks! Wade Arnold ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] LoadMovie library
Tony, You just have to access them from the scope they where born to. I can access them indeed in the scope where they are created. But the problem is that I can't add other assets (movieclips) to that scope. I want this because I want to separate code from viewing assets, and import different templates. I want for example to put my video object on the scope of my imported assets so I can mask my video object. I want to use a mask of the imported assets and I want to put some imported assets like a shadow border on top of my video. This is only possible if I get my video object on the same scope as the imported assets or if I get the assets that I want on top of the video object in a different movieclip (duplicatemovieclip). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Lee Sent: donderdag 10 augustus 2006 6:49 To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadMovie library Bart, I don't find a solution where I can get my movieclips away of the library container to some movieclip on the main.swf. I think if you look at the technotes you'll find that it can't be done. That doesn't mean you can't use loaded movie library assets. You just have to access them from the scope they where born to. Tony ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] LoadMovie library
I want this because I want to separate code from viewing assets, and import different templates. I feel your pain Bart. Unfortunately it's a no can do: http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1519.html Do a text search for library and scan the page, you should get the idea. I want for example to put my video object on the scope of my imported assets so I can mask my video object. I want to use a mask of the imported assets and I want to put some imported assets like a shadow border on top of my video. This is only possible if I get my video object on the same scope as the imported assets or if I get the assets that I want on top of the video object in a different movieclip (duplicatemovieclip). I see what you mean. I think it'd take some serious monkey business to make that work. Tony ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] LoadMovie library
I think I will be forced to use the bitmap class of flash 8 to take a bitmap of the imported assets and copy thos bitmaps on to the stage :-s This has 2 big disadvantages: - processor overkill, first load a movieclip into a container, take a bitmap copy of that movieclip, create new movieclip, put that bitmap into the new movieclip, remove the movieclip from the container (imagine this for 500 assets ...) - the quality of a bitmap is not that of a vector, so I will have to make the vector movieclips quit big so I don't lose to much detail when I make a bitmap and a user scales his window to a bigger screen. I'm getting disappointed by Flash, how old is this program? And you can still don't have a good working runtime external library. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Lee Sent: donderdag 10 augustus 2006 11:38 To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadMovie library I want this because I want to separate code from viewing assets, and import different templates. I feel your pain Bart. Unfortunately it's a no can do: http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/h tml/wwhelp.htm?context=Flash_MX_2004file=1519.html Do a text search for library and scan the page, you should get the idea. I want for example to put my video object on the scope of my imported assets so I can mask my video object. I want to use a mask of the imported assets and I want to put some imported assets like a shadow border on top of my video. This is only possible if I get my video object on the same scope as the imported assets or if I get the assets that I want on top of the video object in a different movieclip (duplicatemovieclip). I see what you mean. I think it'd take some serious monkey business to make that work. Tony ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] LoadMovie library
Hi Naz, I tried that but it also didn't help because I need to put some mc of my main.swf between some library assets on the stage. And I don't find a solution where I can get my movieclips away of the library container to some movieclip on the main.swf. I also tried swapDepths, but that also didn't help. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Nazareno Sent: dinsdag 8 augustus 2006 18:23 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] LoadMovie library How about if you loadMovie your entire Library SWF into your main SWF, then access your library files via mainSWF.librarySWF.libraryAsset syntax? Not sure, but you may have to create instances of your library asset on the stage and name them properly... -Naz DISCLAIMER: This Message may contain confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you received this message in error please notify your Mail Administrator and delete this message immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of GMA New Media, Inc. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] LoadMovie library
Bart, I don't find a solution where I can get my movieclips away of the library container to some movieclip on the main.swf. I think if you look at the technotes you'll find that it can't be done. That doesn't mean you can't use loaded movie library assets. You just have to access them from the scope they where born to. Tony ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] LoadMovie library
First of all, try MovieClipLoader to load your swf's.. If you don't want to use a runtime shared library, then I'd suggest making each movieclip you want to load at runtime a separate swf. You can export MovieClips directly from your library. also, as long as it is set to export for actionscript, you can attach any MC you want, to any other MC you want at runtime. On Aug 8, 2006, at 9:01 AM, Bart Albrecht wrote: Hi, I looked on the internet and did not find the answer. I read a few times can't be done What I want to do is load movieclips in my main.swf from a library.swf and put those movieclips on the root or put movieclips from the root in the controller of my loadmovie. Secondly I want to add a movieclip who is in my main.swf library to the controller_mc. But this is not possible. I also try to put a movieclip which I loaded from the library.swf to the root. But also that is not possible. I cannot make use of the shared library because the name of the library.swf should be dynamic. Here is the code: Where I load a circle mc from the library.swf into the controller_mc. This works. Where I load a circleRoot mc from the library of the current swf to the controller_mc. This does not work. Where I load a circle mc from the library.swf onto the current root. This also does not work. this.createEmptyMovieClip(controller_mc, 1); var libMovie = library.swf; controller_mc.loadMovie(libMovie); this.onEnterFrame = function(){ var tLoaded, tBytes; tLoaded = controller_mc.getBytesLoaded(); tBytes = controller_mc.getBytesTotal(); var percentage = int(tLoaded*100/tBytes); if (isNaN(tBytes) || tBytes 4) return; if (tLoaded/tBytes = 1) { delete this.onEnterFrame; //attach circle from library.swf to controller_mc in the main.swf controller_mc.attachMovie(circle, circle_mc, controller_mc.getNextHighestDepth()); //OK //attach circleRoot from main.swf library to controller_mc in the main.swf controller_mc.attachMovie(circleRoot, circle2_mc, , controller_mc.getNextHighestDepth()); //NOT OK //attach circle from library.swf to the root of my main.swf _root. attachMovie circle, circle_mc, _root.getNextHighestDepth()); //NOT OK } } Is there perhaps an other way to load external movieclips from an other swf (library.swf) onto the root of the main.swf? Thx, Bart ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] LoadMovie library
Thx for your reaction. Unfortunately a shared library for each movieclip, would result in over 1000 swf's and this all for just calling some movieclips from an external library, is overkill I think. I hope there is still a better way for doing this. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Bedar Sent: dinsdag 8 augustus 2006 16:20 To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadMovie library First of all, try MovieClipLoader to load your swf's.. If you don't want to use a runtime shared library, then I'd suggest making each movieclip you want to load at runtime a separate swf. You can export MovieClips directly from your library. also, as long as it is set to export for actionscript, you can attach any MC you want, to any other MC you want at runtime. On Aug 8, 2006, at 9:01 AM, Bart Albrecht wrote: Hi, I looked on the internet and did not find the answer. I read a few times can't be done What I want to do is load movieclips in my main.swf from a library.swf and put those movieclips on the root or put movieclips from the root in the controller of my loadmovie. Secondly I want to add a movieclip who is in my main.swf library to the controller_mc. But this is not possible. I also try to put a movieclip which I loaded from the library.swf to the root. But also that is not possible. I cannot make use of the shared library because the name of the library.swf should be dynamic. Here is the code: Where I load a circle mc from the library.swf into the controller_mc. This works. Where I load a circleRoot mc from the library of the current swf to the controller_mc. This does not work. Where I load a circle mc from the library.swf onto the current root. This also does not work. this.createEmptyMovieClip(controller_mc, 1); var libMovie = library.swf; controller_mc.loadMovie(libMovie); this.onEnterFrame = function(){ var tLoaded, tBytes; tLoaded = controller_mc.getBytesLoaded(); tBytes = controller_mc.getBytesTotal(); var percentage = int(tLoaded*100/tBytes); if (isNaN(tBytes) || tBytes 4) return; if (tLoaded/tBytes = 1) { delete this.onEnterFrame; //attach circle from library.swf to controller_mc in the main.swf controller_mc.attachMovie(circle, circle_mc, controller_mc.getNextHighestDepth()); //OK //attach circleRoot from main.swf library to controller_mc in the main.swf controller_mc.attachMovie(circleRoot, circle2_mc, , controller_mc.getNextHighestDepth()); //NOT OK //attach circle from library.swf to the root of my main.swf _root. attachMovie circle, circle_mc, _root.getNextHighestDepth()); //NOT OK } } Is there perhaps an other way to load external movieclips from an other swf (library.swf) onto the root of the main.swf? Thx, Bart ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] LoadMovie library
How about if you loadMovie your entire Library SWF into your main SWF, then access your library files via mainSWF.librarySWF.libraryAsset syntax? Not sure, but you may have to create instances of your library asset on the stage and name them properly... -Naz DISCLAIMER: This Message may contain confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you received this message in error please notify your Mail Administrator and delete this message immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of GMA New Media, Inc. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] LoadMovie Problem?
this is complete nonsesnse, take a look to the manual, first, not sure if loadMovie to _root is proper solution, create new movieClip, and load to it and most important: you have to wait for the movie being loaded, which is the hardCore and basic knowledge for every flash programmer :-) good luck Martin - Original Message - From: Dhiraj Girdhar [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 31, 2006 8:35 AM Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
Hi, Please tell me, what is the main problem with loading the movie on root? I tried another solution i.e. loading in some other movie which is working fine but I don't know the reason. :( Please clear my doubts. DJ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Weiser Sent: Tuesday, January 31, 2006 3:23 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadMovie Problem? this is complete nonsesnse, take a look to the manual, first, not sure if loadMovie to _root is proper solution, create new movieClip, and load to it and most important: you have to wait for the movie being loaded, which is the hardCore and basic knowledge for every flash programmer :-) good luck Martin - Original Message - From: Dhiraj Girdhar [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 31, 2006 8:35 AM Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
Use C: pages.swf since \ is used to escape characters -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: dinsdag 31 januari 2006 12:00 To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
Use C: pages.swf ...and remove the space in there as well... Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Frank Pepermans Sent: Tuesday, January 31, 2006 6:18 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Use C: pages.swf since \ is used to escape characters -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: dinsdag 31 januari 2006 12:00 To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
Hey Jason, Thanks for your reply. Sorry, it was just a typo mistake (C:\\ pages.swf). I just want to know problems of loading the SWF file on root movie. Creating a new movie clip and loading that SWF file in that will solve the purpose but it is not clearing my doubt. Let me explore this problem in more detail. If I am loading the movie clip in some other movie clip (except root) then the control will be still in previous movie. But I want the control in new movie clip which I am going to load. Is it making any sense? Please correct if I am wrong. Dhiraj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, January 31, 2006 4:30 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
Well, a couple of reasons. I mean you can, it's possible, but the reason for container clips is so you have the ability to load more than one clip. If you load into _root, everything in that movie clip will be replaced by the new clip you are loading in, and if you try and load a second clip into _root, only the second clip will appear, the first clip will be overwritten: loadMovie(clip1.swf, _root); loadMovie(clip2.swf, _root); //only clip2.swf will appear And loading from c:, I can't see how that would be wise in almost any circumstance, but maybe you have a reason to do so. As for _root itself, a lot of people will tell you its not wise to reference it, because as Flash applications gain hierarchies, _root changes often and is not a reliable reference to hard code into your application. I don't mean to be harsh, only to answer your questions. Hope that helps. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 6:33 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Hey Jason, Thanks for your reply. Sorry, it was just a typo mistake (C:\\ pages.swf). I just want to know problems of loading the SWF file on root movie. Creating a new movie clip and loading that SWF file in that will solve the purpose but it is not clearing my doubt. Let me explore this problem in more detail. If I am loading the movie clip in some other movie clip (except root) then the control will be still in previous movie. But I want the control in new movie clip which I am going to load. Is it making any sense? Please correct if I am wrong. Dhiraj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, January 31, 2006 4:30 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] LoadMovie Problem?
This line: _root.Test.loadMovie(clip.swf, _root); Should either be: Test.loadMovie(clip.swf); or loadMovie(clip.swf, Test); (and drop the use of _root gollygoshdarnnit!) You have instead combined both methods. By stating the movieClip name first and then LoadMovie, the second paramter is not needed. If you don't state the movieClip being loaded into first and then LoadMovie, then you do need the second paramter to tell it where to load the movie clip in to. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 7:06 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Hi Jason, Again thanks for your reply. But still my doubt is not clear. Please check the following code... // Code on first movie clip. _root.createEmptyMovieClip(Test, 1); _root.Test.loadMovie(clip.swf, _root); // Introducing a dummy time interval to wait until SWF file is not loaded. _root.$SI = setInterval(_root.func, 10); function func () { if ((_root. Test.getBytesLoaded() == _root. Test.getBytesTotal()) _root. Test._height 0 _root. Test._width 0) { // Going to second page in loaded movie. _root.Test.gotoAndStop(2); clearInterval(_root.$SI); _root.$SI = undefined; } } // code in second movie clip. // Displaying the name of the movie clip creating in first clip to load the clip. trace(_root.Test._name); Now it will work fine. But in case of loading the movie in root it is not working. It will load its first page only. Please let me know if I am not able to clear the problem. Dhiraj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, January 31, 2006 5:14 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Well, a couple of reasons. I mean you can, it's possible, but the reason for container clips is so you have the ability to load more than one clip. If you load into _root, everything in that movie clip will be replaced by the new clip you are loading in, and if you try and load a second clip into _root, only the second clip will appear, the first clip will be overwritten: loadMovie(clip1.swf, _root); loadMovie(clip2.swf, _root); //only clip2.swf will appear And loading from c:, I can't see how that would be wise in almost any circumstance, but maybe you have a reason to do so. As for _root itself, a lot of people will tell you its not wise to reference it, because as Flash applications gain hierarchies, _root changes often and is not a reliable reference to hard code into your application. I don't mean to be harsh, only to answer your questions. Hope that helps. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 6:33 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Hey Jason, Thanks for your reply. Sorry, it was just a typo mistake (C:\\ pages.swf). I just want to know problems of loading the SWF file on root movie. Creating a new movie clip and loading that SWF file in that will solve the purpose but it is not clearing my doubt. Let me explore this problem in more detail. If I am loading the movie clip in some other movie clip (except root) then the control will be still in previous movie. But I want the control in new movie clip which I am going to load. Is it making any sense? Please correct if I am wrong. Dhiraj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, January 31, 2006 4:30 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged
RE: [Flashcoders] LoadMovie Problem?
Hi Jason, Again thanks for your reply. But still my doubt is not clear. Please check the following code... // Code on first movie clip. _root.createEmptyMovieClip(Test, 1); _root.Test.loadMovie(clip.swf, _root); // Introducing a dummy time interval to wait until SWF file is not loaded. _root.$SI = setInterval(_root.func, 10); function func () { if ((_root. Test.getBytesLoaded() == _root. Test.getBytesTotal()) _root. Test._height 0 _root. Test._width 0) { // Going to second page in loaded movie. _root.Test.gotoAndStop(2); clearInterval(_root.$SI); _root.$SI = undefined; } } // code in second movie clip. // Displaying the name of the movie clip creating in first clip to load the clip. trace(_root.Test._name); Now it will work fine. But in case of loading the movie in root it is not working. It will load its first page only. Please let me know if I am not able to clear the problem. Dhiraj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, January 31, 2006 5:14 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Well, a couple of reasons. I mean you can, it's possible, but the reason for container clips is so you have the ability to load more than one clip. If you load into _root, everything in that movie clip will be replaced by the new clip you are loading in, and if you try and load a second clip into _root, only the second clip will appear, the first clip will be overwritten: loadMovie(clip1.swf, _root); loadMovie(clip2.swf, _root); //only clip2.swf will appear And loading from c:, I can't see how that would be wise in almost any circumstance, but maybe you have a reason to do so. As for _root itself, a lot of people will tell you its not wise to reference it, because as Flash applications gain hierarchies, _root changes often and is not a reliable reference to hard code into your application. I don't mean to be harsh, only to answer your questions. Hope that helps. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 6:33 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? Hey Jason, Thanks for your reply. Sorry, it was just a typo mistake (C:\\ pages.swf). I just want to know problems of loading the SWF file on root movie. Creating a new movie clip and loading that SWF file in that will solve the purpose but it is not clearing my doubt. Let me explore this problem in more detail. If I am loading the movie clip in some other movie clip (except root) then the control will be still in previous movie. But I want the control in new movie clip which I am going to load. Is it making any sense? Please correct if I am wrong. Dhiraj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, January 31, 2006 4:30 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] LoadMovie Problem? You also have a space in there: C:\\ pages.swf I would not recommend loading from c: -you can't guarantee the file will always be there can you? Loal from a relative url instead, and don't try and load into _root - create and empty movie clip instance, and load into that. Jason Merrill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dhiraj Girdhar Sent: Tuesday, January 31, 2006 2:35 AM To: Flashcoders mailing list Subject: [Flashcoders] LoadMovie Problem? Hi All, I am trying to load a new SWF file on root movie clip using following action script code, but it is not working properly. It is loading its first frame only. But the SWF file (to be loaded) is having more than one pages. loadMovie(C:\\ pages.swf, _root); _root.gotoAndStop(3); Any solution? Regards: Dhiraj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] LoadMovie Problem with JPEGs
You'll need a holder of sorts: ImageHolder movieclip that holds all the info including the ImageMC which actually displays the picture On 1/23/06, Robert Sandie [EMAIL PROTECTED] wrote: Having a problem loading in an image within an AS2 class and LoadMovie with jpegs. It loads the image perfectly but as soon as it does this it automatically deletes all existing variables that are running within the class. Instead of it losing all information upon loadMovie would like to keep it. class ui.overlay extends EventClip { . public function showImage(url:String, text: String):Void{ this.loadMovie(url); this.text=text; _delegate = EventDelegate.create(this, onHitDataGrid); datagrid.addEventListener(datagrid, _delegate); } private function onHitDataGrid(e:Object):Void{ trace(text); //works when don't load the jpeg.. does not work when I do load the jpeg. .. } I have tried loading the movie into another movieclip inside of this class and still no success. This is a little unusual and really my first time loading in Images dynamically. Been struggling with this one for a while. Anyone know what might be going on? -Rob ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Ramon Miguel M. Tayag ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] LoadMovie Problem with JPEGs
Pressed SEND too soon and caught an oops!! it should be : // public function overlay(){ holder_mc=createEmptyMovieClip(holder_mc,1); } // Not sure the setup but the vars are getting wiped away for sure so its some kinda scoping issue.Loading the movieclip into this should wipe the variables out. Loading them into an emptymovieclip, shouldn't. class ui.overlay extends EventClip{ // not sure what eventClip is but whatever.. private var holder_mc:MovieClip; private var text:String; public function overlay(){ holder_mc.createEmptyMovieClip(holder_mc,1); } public function showImage(url:String,text:String){ holder_mc.loadMovie(url); this.text=text; trace(TEXT has been set+this.text); _delegate = EventDelegate.create(this, onHitDataGrid); datagrid.addEventListener(datagrid, _delegate); } public function onHitDataGrid(obj:Object){ trace(TEXT has been set+this.text); } } Having a problem loading in an image within an AS2 class and LoadMovie with jpegs. It loads the image perfectly but as soon as it does this it automatically deletes all existing variables that are running within the class. Instead of it losing all information upon loadMovie would like to keep it. class ui.overlay extends EventClip { . public function showImage(url:String, text: String):Void{ this.loadMovie(url); this.text=text; _delegate = EventDelegate.create(this, onHitDataGrid); datagrid.addEventListener(datagrid, _delegate); } private function onHitDataGrid(e:Object):Void{ trace(text); //works when don't load the jpeg.. does not work when I do load the jpeg. .. } I have tried loading the movie into another movieclip inside of this class and still no success. This is a little unusual and really my first time loading in Images dynamically. Been struggling with this one for a while. Anyone know what might be going on? -Rob ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] LoadMovie Problem with JPEGs
sorry! disregard my post.. On 1/23/06, Ramon Tayag [EMAIL PROTECTED] wrote: You'll need a holder of sorts: ImageHolder movieclip that holds all the info including the ImageMC which actually displays the picture On 1/23/06, Robert Sandie [EMAIL PROTECTED] wrote: Having a problem loading in an image within an AS2 class and LoadMovie with jpegs. It loads the image perfectly but as soon as it does this it automatically deletes all existing variables that are running within the class. Instead of it losing all information upon loadMovie would like to keep it. class ui.overlay extends EventClip { . public function showImage(url:String, text: String):Void{ this.loadMovie(url); this.text=text; _delegate = EventDelegate.create(this, onHitDataGrid); datagrid.addEventListener(datagrid, _delegate); } private function onHitDataGrid(e:Object):Void{ trace(text); //works when don't load the jpeg.. does not work when I do load the jpeg. .. } I have tried loading the movie into another movieclip inside of this class and still no success. This is a little unusual and really my first time loading in Images dynamically. Been struggling with this one for a while. Anyone know what might be going on? -Rob ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Ramon Miguel M. Tayag -- Ramon Miguel M. Tayag ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] loadMovie question
try attachMovie(), its well documented in the help files ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] loadMovie question
Just to expand on that, loadMovie loads an external SWF or JPG (and more in Flash 8) into a MovieClip. attachMovie loads a named MovieClip from your flash library into a MovieClip. On Dec 11, 2005, at 11:08 PM, Flash guru wrote: try attachMovie(), its well documented in the help files ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] loadMovie question
Thanks, finally got it working. Just to expand on that, loadMovie loads an external SWF or JPG (and more in Flash 8) into a MovieClip. attachMovie loads a named MovieClip from your flash library into a MovieClip. On Dec 11, 2005, at 11:08 PM, Flash guru wrote: try attachMovie(), its well documented in the help files ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Loadmovie and sounds
attachSound() - method which attached sound object from library if want load sound you must use method loadSound() if you say gotoAndPlay(step2) in event onSoundComplete() - you say it objSound but not you movie use link to movie clip, example: var objSound = new Sound(); var handler = this; //link to movie clip with label step2 objSound.attachSound(step1) objSound.start(0, 0) objSound.onSoundComplete = function(){ handler.gotoAndPlay(step2) } stop(); 2005/11/9, Brunswick, David [EMAIL PROTECTED]: Hello I am using LoadMovie to play multiple swfs within the loaded swf I am using the sound object as so var objSound = new Sound() objSound.attachSound(step1) objSound.start(0, 0) objSound.onSoundComplete = function(){ gotoAndPlay(step2) } stop(); Although I can not get the sound to play when loaded into the parent clip. What should I change in the loaded file to play the sound? David Brunswick Training Specialist II VeriSign E - [EMAIL PROTECTED] P - 912-527-4110 elearning.verisign.com Knowledge Speaks - Wisdom Listens - Jimi Hendrix ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders