This is a discussion on "help please?!:about loadMovie function in layered MCs" within the Flash & Multimedia Forum section. This forum, and the thread "help please?!:about loadMovie function in layered MCs are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
help please?!:about loadMovie function in layered MCs
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
help please?!:about loadMovie function in layered MCs
Hi guys, I need an hint if you please...
I'm making a Flash website, the main swf has got an animation in the timeline, pressing the bottons in the pubblished file you activate this animation that leads to single frames where I've dragged a MC instance called Loading, witch I've used to load at a precise position of the stage an external swf. At the same point in the timeline but another layer I've assigned the AS loadMovie("http://www.baitdesigns.com/lorenza2/giovane.swf", _root.loading); as I want the external swf to load inside the MC "loading". So far so good, works fine, it keeps the previous swf undernith the new as I want. In the timeline of this new swf I want to do the same thing, I need to load another swf on top of the other two, keeping then open, so I write loadMovie("http://www.baitdesigns.com/lorenza2/giovane.swf", _root.loading.loadingGiovane); where "loadingGiovane" is the instance name of the third MC that has to contain the third swf That doesn't work, the third swf seem to load in the "loading" MC instead of "loadingGiovane", plus it replaces the second swf instead on loading upon. You can find the messed up files at baitdesigns.com/lorenza2/index.html I've tried to attach the MC instances to the stage, also giving them a level number So in the first frame of the second swf I wrote: this.attachMovie("loaderGiovane", "loadingGiovane", 2); "loaderGiovane" is the linkage ID "loadingGiovane" is the instance name tried using _root and switching level numbers but no way... Donno if I made myself clear, any clue? Thanks a lot in advance |
|
|
|
|||
|
Re: help please?!:about loadMovie function in layered MCs
I want to make sure, in your first external .swf that is being loaded, do you have an empty movieclip within it called loadingGiovane?
PM me the source file and I can take a look at it if you want. Cheers, Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
|||
|
Re: help please?!:about loadMovie function in layered MCs
Hi Scott, yea the instance of the MC LoaderGiovane, called "LoadingGiovane"
was located in the first external swf's timeline. Looks like I found a way to make it work: the biggest problem seems to be the preloader at the begin of any swf that is been loaded, if I take it off it works, with this AS: createEmptyMovieClip("loading",1); loadingGiovane._x = 0; loadingGiovane._y = 20; loadMovie("http://www.baitdesigns.com/lorenza2/giovane.swf", loading); this was attached to the frame where I want my animation to start. It creates an EmptyMovieClip, with the Instance name "loading" and on level 1. It specifies the exact position on the stage and it loads the swf. Still when the Internet line slow down it doesn't work properly, the swfs need a preloader, could you suggest one that can work with this method? the current one I'm trying to use has got an Instance on stage at the first frame, inside is a dynamic text field with nothing inside, attached to the Instance we find this code: onClipEvent (enterFrame) { var bytes = _root.getBytesTotal(); var bytes_loaded = _root.getBytesLoaded(); if (bytes_loaded == bytes) { _root.gotoAndPlay(2); this.kirupatxt = "movie loaded"; } else { _root.gotoAndStop(1); this.kirupatxt = "loading ("+bytes_loaded+"/"+bytes+")"; } } Where I'm going wrong? Thanks a lot |
|
|||
|
Re: help please?!:about loadMovie function in layered MCs
The code above will work fine...this should be on frame 1 of this .swf: http://www.baitdesigns.com/lorenza2/giovane.swf
within that .swf you would want to create another layer on your timeline named "actions" and put this code onto the 1st frame in that layer...not on any objects on the stage. Cheers, Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| loadMovie(),loadMovieNum() | al2000123 | Flash & Multimedia Forum | 2 | Aug 6th, 2007 05:07 |
| Loadmovie - Centering pictures | cocoonfx | Flash & Multimedia Forum | 1 | Jul 22nd, 2007 16:36 |
| loadmovie function not working when in browser | nikising | Flash & Multimedia Forum | 2 | May 19th, 2007 20:20 |
| loadMovie function (and absolute/relative URL's) | DocBoy52 | Flash & Multimedia Forum | 1 | Aug 26th, 2006 05:16 |
| need help with loadmovie.... | courtjester | Flash & Multimedia Forum | 1 | Jun 7th, 2004 08:11 |