00:00
00:00
View Profile Louissi
Use this email for business inquiries: louissi@armorgames.c om

Age 35, Male

Programmer

Cégep du Vieux Montréal

Montreal, Quebec, Canada

Joined on 9/27/03

Level:
14
Exp Points:
2,030 / 2,180
Exp Rank:
31,198
Vote Power:
5.61 votes
Rank:
Safety Patrol
Global Rank:
30,273
Blams:
198
Saves:
123
B/P Bonus:
6%
Whistle:
Normal
Trophies:
25
Medals:
372
Supporter:
11m 30d
Gear:
6

Major problem, need help

Posted by Louissi - August 5th, 2008


Hey guys! I am making a big big big game, and I came across a huge problem. My game has over 60 unique units, which mean that the library of my .fla file is REALLY huge. Flash just can't handle it anymore, and crashes every 5 min. I can't optimize it(already did) and I can't cut through the content.

I think I found a solution: I will load my units from external .swf. Sooo, the thing is, I want to load these swf only once, at the start of the game. Here is how it goes:

I divided my units in many packets, and set every unit to be "exported for Actionscript" in the library.
This way, ill load the .swf and its library at the beginning of the game and I will be able to attach the units MC over runtime.

NOT!

First, I tried to load the .swf on the main stage (_root). It completely replaced the whole stage.
So I decided to upload it in an empty MovieClip. It works!

My problem is, when I try to attach a movieclip it is only working if I attach it in the loaded Movie Clip.

Exemple:
lets say I uploaded the swf in a MovieClip named _root.dynamic_unit1.
If I want to get my unit from the swf's library, i have to do the following:
_root.dynamic_unit1.attachMovie("unit1 ","new_unit",1); (which is working)
_root.attachMovie("unit1","new_unit",1 ) (THIS IS NOT WORKING);

So the big problem is that I have to get that MovieClip from the library in an other MovieClip in my game.

Example: _root.game.units.unit1.anims.HERE

Any genius could help me?


Comments

Uhhhhh... Well.... shit.

srry man. all i can think is...your screwed. srry i cant be of use right now. UNLESS u make the WHOLE thing AGAIN. but i don't think u would wanna do that

I am sure its possible, www.dofus.com They made a game entirely based on multiple .swf, there must be a way!

This seems like a similar problem that was had with the MGS collab.. maybe you should try and find out how they fixed it ?

Although this is bad news, I do see some good in it.

Age of War 2 is worth the waiting.

thanks?

Well your problem is very complicated..I can't help you sorry but you will find a way Age of War 2 will be fucking epic since the first one was fun and well..great. I guess the only thing I can do is good luck with solving your problem.

I'm guessing you're using AS2, here is a small tutorial on linking to a swf, and accessing the symbols: <a href="http://www.tutorialized.com/view/tutorial/How-to-use-an-external-.swf-as-a-library/3920">http://www.tutorialized.com/view/tuto rial/How-to-use-an-external-.swf-as-a -library/3920</a>. I've never had to do this but, Good luck. =)

wow thanks it will work

EDIT: mmm I found a better way

Well first of all, you'rem, right, it's possible. In a game I was working the programmer did that in about an hour.

So, I'm a designer, but maybe this helps.

I believe the lower code's not supposed to work, unless you wanted to attach the movieclip to the root, the movie itself.

Since you need it on the loaded clip, why don't you follow the first syntax, but instead of loading in a clip on the stage, create an empty movieclip and alter his _name to whatever is needed. then attack the clip to this empty mc.

I hope this helps. Good luck.

My bro is smart he may be able to help you but he isen't vary experiented with makeing games he could help. Mabey.

sorry i cant help you but if you ask ppl who did huge games like yours you could ask them maybe mindchamber or jazza could help i just wanted to point out in age of war your invincible if you use the double turret and 2 missile turrets my enemy i let him get to the super soldiers then they got blasted so then i went and used my money that i got from the turrets and made 9 super soldiers!

Not sure what you have to do. honestly, I just left a comment in your main blog asking you a question on HOW you make your flash-actionscript games - particularly like AGE OF WAR. It's so enjoyable - I want to start learning how to make games like this.

u rock man ur work is awesome

well dont give up
maby if u saved add ons to another computer...........

Hi! I hope you've already found a solution. If not, then I'll continue Balvuc's though about the empty mc's. (I'm not that experienced, nor a genius, mind you, but eager to help/inspire)

The attachMovie attaches mc's to whatever it's told to. The second version line doesn't work, cause that attaches the mc to the _root, and in so doing replaces everything else there. My experiences are that only 1 attachment can go to 1 thing at a time...

So you'd have work with "additional" (empty) mc's in the main file, with the external mc's attached to them. The "main" scripts would only handle the additional ones, and they'd in return handle the attached ones. You'd have to create lots of empty mc's... like 1 for every symbol you need, so they don't get tangled. But yes, the problem IMO stays: you'll have to use other mc's to get the external ones.

I don't claim it's 100% what I said, I don't know if it's of any use, but if it helped just a tiny bit...

Peace

i have a thought why dont you just erase some data on your fla file and if this works dont think im a geniues im only 9

okay

so now you might have a solution

if this solution works then oooooooooooooooooohhhhhhhhhhhhh yeeeeeeeeeeeeeaaaaaaaaaaaaah!

also if your better soulution doesent work remember to try mine

i hope you can finish the game!!! were all counying on you louissi, Good luck!!!

well how would you rate the graphics for the game so far things like that can mess up your system because its not really important people come for the game not the graphics

More Results