PDA

View Full Version : matter of AS



cocolicchio
February 1st, 2006, 07:55 AM
Hi everyone,

Well,i am not very good at AS and everyday i have a new issue to think of.
On a site i am doing this:
1)Preload the main scene(frames 1 and 2 with AS)
2)Main scene is :bg tweening + 1 banner (mc) + animated menu(mc)

To open the new mcs with the contents(links,pictures,whatever) i am using loadMovie.

The thing is i want to have an empty mc to load an mc (with tweening etc) .To do this i believe i have to add _root.emptymc.loadMovie("whatevericallit.swf"); in the main timeline on the main scene and not inside a mc,right?
If i do like this i will have the scripts for the preloader in the main scene and will have to add the scripts for the loadMovie in the _root,right?

How would i do it?

Thanks for any helpfull time spent answer.
Christian

pensamente
February 1st, 2006, 08:11 AM
if you want to add and you don't do this is your timeline u must create one, and for this you can do it with AS

this example may help you (found in help)

var container:MovieClip = this.createEmptyMovieClip("container", this.getNextHighestDepth());
var label:TextField = container.createTextField("label", 1, 0, 0, 150, 20);
label.text = "Hello World";

cocolicchio
February 1st, 2006, 12:52 PM
Oi Pensamente,

Valeu pela resposta,de repente sou eu que to fazendo um pouco de confusao em relacao a Timeline e outras coisas.Como eu nao uso puramente AS as vezes me encontro em dificuldade,mas ao mesmo tempo acho muito legal encontrar as saidas.

Christian.

cocolicchio
February 1st, 2006, 03:27 PM
Hi ,
Well,i just got it.
I wanted to preload everything in one step.
I got it putting the preload on scene 1 and then the main thing on scene 2.

Thanks.
Christian (www.cocolicchio.com (http://www.cocolicchio.com))

pensamente
February 2nd, 2006, 05:48 AM
:beer:
b dia
estou a começar agora o dia
resulta sempre começar pelo inicio, um passo de cada vez ;)