SWF within a SWF within a SWF... Help...

This is a discussion on "SWF within a SWF within a SWF... Help..." within the Flash & Multimedia Forum section. This forum, and the thread "SWF within a SWF within a SWF... Help... are both part of the Design Your Website category.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 21st, 2007, 21:31
Junior Member
Join Date: Apr 2007
Location: USA
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy SWF within a SWF within a SWF... Help...

Ok, here's my problem. I'm trying to load a .swf into a moveClip, which contains the content of a selected page. This works fine.

What isn't working is this: When the content loads, I want to load into it some animation (in a smaller movieClip). The animation is pretty large, so I don't want to make the user wait forever while both the text and the animation loads.

Unfortunately, the internal movieClip never loads when I simulate a download. When I just test the movie, it works fine. I don't know what to do. I'm almost positive I have the correct path to the empty movieclip...

Check out what I'm doing at www.thekeelings.org/audible
The page I'm talking about is the "Contact" page, at the bottom, below the second orange dotted line

Thanks
Reply With Quote

  #2 (permalink)  
Old Apr 21st, 2007, 22:19
Junior Member
Join Date: Apr 2007
Location: USA
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SWF within a SWF within a SWF... Help...

Code:
this.mc_bottom_graphics.loadMovie("contact_example s.swf");
Reply With Quote
  #3 (permalink)  
Old Apr 23rd, 2007, 13:57
Reputable Member
Join Date: May 2006
Location: NC, USA
Age: 16
Posts: 355
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to MrMadison Send a message via MSN to MrMadison Send a message via Skype™ to MrMadison
Re: SWF within a SWF within a SWF... Help...

Well...Try the Loader component if your in Flash 8 and just set the content path. It saves a little time and takes little, if any, code.
If your not in Flash 8....
Try and make that "almost positive" into a completely positive.
Reply With Quote
  #4 (permalink)  
Old Apr 23rd, 2007, 14:03
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: SWF within a SWF within a SWF... Help...

hmmm, seems like he answered his own question already...lol
Reply With Quote
  #5 (permalink)  
Old Apr 23rd, 2007, 14:04
Reputable Member
Join Date: May 2006
Location: NC, USA
Age: 16
Posts: 355
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to MrMadison Send a message via MSN to MrMadison Send a message via Skype™ to MrMadison
Re: SWF within a SWF within a SWF... Help...

uhhhhhhhh..................lol
*runs away

Maybe....maybe not...the world may never know.
Reply With Quote
  #6 (permalink)  
Old Apr 23rd, 2007, 21:22
Junior Member
Join Date: Apr 2007
Location: USA
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SWF within a SWF within a SWF... Help...

Thanx for the input gents! Yes, I did figure it out this afternoon. The problem was a preloader I was using on the bottom content.

I had made reference to a variable in the _root file, rather than the _parent SWF.

I guess I do have another question though. Is it too outrageous to have those bottom animations on the "Contact" page? I would like that portion to load faster, but reducing image size and quality is not really an option I'd like to use.

Any suggestions?
Reply With Quote
  #7 (permalink)  
Old Apr 25th, 2007, 21:00
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: SWF within a SWF within a SWF... Help...

Personally, I doubt anyone would wait that long to view what is there on the contact page. It took quite a while to load since it was 2 megs. By that time I could have wrote down your contact information 3-4 times.

I'd say reduce the file size or just take it out.

My 2 cents,

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #8 (permalink)  
Old Apr 25th, 2007, 21:44
Junior Member
Join Date: Apr 2007
Location: USA
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SWF within a SWF within a SWF... Help...

Yeah, that's kind of what I was thinking. Sort of a long time to wait just for eye-candy. Maybe I'll just put in some small still pics or something.

Thanks for the feedback
Reply With Quote
  #9 (permalink)  
Old Apr 25th, 2007, 21:51
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: SWF within a SWF within a SWF... Help...

Yeah I'd do a couple static images to eliminate any loading and so on. You could even set it up to display random images from an array of 10-15 or something like that if you want. Wouldn't do much to file size and a nice effect.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #10 (permalink)  
Old Apr 26th, 2007, 03:47
Junior Member
Join Date: Apr 2007
Location: USA
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SWF within a SWF within a SWF... Help...

That sounds cool. Where can I find out how to do this?
Reply With Quote
  #11 (permalink)  
Old Apr 26th, 2007, 16:42
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: SWF within a SWF within a SWF... Help...

Here is some information about arrays:

http://www.kirupa.com/developer/actionscript/array.htm

Here is the function to randomize your array:

Code: Select all
// Here is a simple function for randomizing the array
function randomsort(a, b) {
        return Math.random()>.5 ? -1 : 1;
}
//usage example
var array = [1, 2, 3, 4, 5];
array.sort(randomsort);
trace(array);
//traces 4,3,1,5,2
What I did when I created a card matching game that radomized the card postions and graphics on each card was to put all of that data into an xml document and to call the xml doc into flash and put it into an array, then randomize, then display.

Hopefully this will start you in the right direction. :-)
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
Reply

Tags
loadmovie, swf

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


All times are GMT. The time now is 01:51.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43