| User Details | message |
|---|---|
| Panagiotis Fri, 15 Jun 2007 |
Well the scenario is simple, I have 1 main file 2 sub main files and 7 content files (all these files are swf files). The first file called main.swf contains a code that loads the 2 sub main files the header.swf and the loader.swf, the header.swf have buttons that call function to loader.swf to load a content file with transaction. Anything goes fine until I realized that the transaction not working after refresh of browser (I disabled the cache) this problem comes when I load loader.swf through main.swf, loader.swf works perfect as external file. Main.swf Frame 1: stop(); Stage.scaleMode = "noScale"; _global.path = ''; _global._footer_depth = 1; _global._main_depth = 2; _global._hader_depth = 3; // Load Header //loadMovieNum(_global.path+'header.swf', _root.getNextHighestDepth()); this.createEmptyMovieClip('_header', _global._hader_depth); _header._x = _header._y = 0; var header_loader:MovieClipLoader = new MovieClipLoader(); var header_listener:Object = new Object(); header_loader.addListener(header_listener); header_loader.loadClip(_global.path+'header.swf',_header); header_listener.onLoadComplete = function(_header:MovieClip, status:Number):Void { // Load Main _root.createEmptyMovieClip('_main',_global._main_depth); _main._x = 0; _main._y = 197; var main_loader:MovieClipLoader = new MovieClipLoader(); var main_listener:Object = new Object(); main_loader.addListener(main_listener); main_loader.loadClip(_global.path+'load.swf',_main); main_listener.onLoadComplete = function(_main:MovieClip, status:Number):Void { /* // Load Footer _root.createEmptyMovieClip('_footer', _global._footer_depth); _footer.loadMovie(_global.path+'footer.swf'); _footer._x = 0; _footer._y = 700; */ } } Loader.swf Frame 1: var loader:MovieClipLoader = new MovieClipLoader(); var load_listener:Object = new Object(); load_listener.onLoadComplete = function(target_mc:MovieClip):Void { ef.startEffect(); }; loader.addListener(load_listener); var _Load = function (m:String):Void { loader.loadClip(m, _c._cont); }; var _Trans = function (m:String):Void { loader.unloadClip(_c._cont); ef.reverseEffect(); ef.onReverseFinished = function ():Void { loader.loadClip(m, _c._cont); } } _Load('home.swf'); |
| Back | |
| Panagiotis Sun, 17 Jun 2007 |
Also masking doesn’t apply on dynamic input elements. |
| Back | |
| Catalin Serban [eXtend] Mon, 18 Jun 2007 |
Hello, Regarding you second post: in order to have masking on a dynamic text field you need to embed the fonts. Regarding you first post: It will be great if you can send us the FLA file with the issue via support (at) extendstudio (dot) com Cheers, Catalin Serban |
| Back | |
| Panagiotis Mon, 18 Jun 2007 |
Thanks for replying the second post, I forgot to embed the fonts, you were right ;) About first post, I will send the files in a zip. |
| Back | |
| Panagiotis Tue, 19 Jun 2007 |
Hi, I’ve send you by mail a zip file that contains the fla files their swf and an index.html file. The problem is that when I launch the index.html file the transition works fine but when I refresh the page the transition stop working. The subject of email is "Transaction not working after reload" and the attachment called "Transaction not working after reload.zip" (3MB). Regards, Panos |
| Back | |
| Catalin Serban [eXtend] Tue, 19 Jun 2007 |
Hi there, We have received your email and sent you back the fixed files. The problem was that you called evrithing „MovieClipLoader .onLoadCoplete�. As it states in the Flash Documentation, under MovieClipLoader the difference between MovieClipLoader.onLoadComplete and MovieClipLoader.onLoadInitis that the onLoadComplete event is called after the SWF, JPEG, GIF, or PNG file loads, but before the application is initialized, and the onLoadInit is called after the content is loaded and fully initialized. Also the MovieClipLoader.onLoadComplete uses a HTTP status code and that is the reason why it had’t worked after refresh (i gues it had been worked if it were on a server). In most cases is better to use onLoadInit. |
| Back | |
| Panagiotis Tue, 19 Jun 2007 |
Thanks for your reply, truly onLoadInit made thinks work like a charm, I really didn’t knew its existing :P (Just starting with AS, I’m from JS/PHP world :P) but I’ll get used to ;) Thanks again. PS: I didn’t receive any reply at my email, but it’s ok I solve the problem thanks to your reply ;) |
| Back | |
| Catalin Serban [eXtend] Tue, 19 Jun 2007 |
Hello, Please check your Bulk Folder and see if you have the message there, I will also try to send the message again. Thanks, Catalin Serban |
| Back |