Jump to content


Problem with loading .swf


  • You cannot reply to this topic
6 replies to this topic

#1 laban (swe)

    Young Padawan

  • Members
  • Pip
  • 9 posts

Posted 25 April 2006 - 03:46 AM

When I load a .swf into an existing .swf my computer becomes really slow. Flash also deletes some of the layers in the loaded .swf. Does anyone know what might be causing this?

I also wonder if there is possible to make flash print out every decimal when you for example search for radio chanels(I hope you get this question).

#2 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 25 April 2006 - 04:58 AM

How are you loading the swf?
I normally create an emtpy_mc dynamically and replace it with the loaded one.

Can you explain the 2nd question more precisely? thx

PS: are you from sweden?

#3 laban (swe)

    Young Padawan

  • Members
  • Pip
  • 9 posts

Posted 25 April 2006 - 06:58 AM

View Postfunkysoul, on Apr 25 2006, 11:57 AM, said:

How are you loading the swf?
I normally create an emtpy_mc dynamically and replace it with the loaded one.

Can you explain the 2nd question more precisely? thx

PS: are you from sweden?
First of all I have a basic layout that does not change when i load my .swf. I use the command loadMovieNum on a button to load the .swf. How would the empty_mc command look like if I would like to load say mp3.swf when I push a button?

I have a fake radio that scans for chanels when i push a seek button. While it is searching it also displays the frequency fore example 106,3... my problem is that when the counter reaches for example 108,0 it writes out 108 and i don't want it to.

And yes, I am from Sweden....

Edited by laban (swe), 26 April 2006 - 02:35 AM.


#4 laban (swe)

    Young Padawan

  • Members
  • Pip
  • 9 posts

Posted 26 April 2006 - 07:38 AM

Trying to solve my problem (which I have not done yet) I ran into another problem. I you use the command _root.createEmptyMovieClip("empty",1); is there anyway to load a movieclip into this newly created movieclip?

#5 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 26 April 2006 - 08:42 AM

 loadMovie("yourloadedmovie.swf", empty);


#6 laban (swe)

    Young Padawan

  • Members
  • Pip
  • 9 posts

Posted 26 April 2006 - 10:00 AM

View Postfunkysoul, on Apr 26 2006, 03:41 PM, said:

 loadMovie("yourloadedmovie.swf", empty);
ok, I get that... but if I write this bit of code instead:
loadMovie("MP3.swf",_root.mp3);
Does this mean that i have created i MC in _root and loaded it with mp3.swf? And if so, how do i display/play this MC?

What I am looking for is that I want to preload several .swf's and with a click load one of these clips into my "original" movie... If I just load my .swf's with a click on diffrent buttons it takes too long time. for example:

_root.createEmptyMovieClip("empty",1);
mp3_btn.onPress = function(){
		loadMovie("mp3.swf", empty);
}
radio_btn.onPress = functio(){
		loadMovie("radio.swf",empty);
}

This takes too long! =)

Or is there some other way that solves my problem?

Another thing that I wondering about is if flash has a limit for maximum number of levels, movieclips, buttons, images etc.

Edited by laban (swe), 26 April 2006 - 10:40 AM.


#7 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 26 April 2006 - 02:39 PM

maximum levels= 999

regarding the loading time.. I would suggest you putting a preloader into each mc.. other then that, I don't see any other workaround at the moment





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users