help please?!:about loadMovie function in layered MCs

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 14th, 2007, 10:00
New Member
Join Date: Sep 2007
Location: Italy
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 17th, 2007, 15:15
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 18th, 2007, 08:14
New Member
Join Date: Sep 2007
Location: Italy
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 18th, 2007, 17:43
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 18th, 2007, 17:51
New Member
Join Date: Sep 2007
Location: Italy
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: help please?!:about loadMovie function in layered MCs

Ok I'll try that, thanks Scott
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 08:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42