Hi
I've a main movieclip in which I have loaded 5 - 6 external SWF files. First file has a link to the last one, say first one is About Us page and has a link to contact us page. How can I make the link targetting the contact us page (that is basically a external loaded SWF)?
Targetting
Hi, i just saw this post and im wondering if u have the answer... my problem is this.. i also have a main movie with a menu, im not loading external .swf, im just loading the information i need from diferent movie clips, but the thing is i have a product button, when i click on it i can open my submenu, but if i want to get inside in one of the options, i just cant, in as2 was very simple, but i have all the site in as3 with fx etc etc so i dont know what to do !
can u help me ?
thnks
Send me your files
e-lizardesign,
I find that I'm unable to solve most problems just from a description. So if you would send me your files, I will take a look at them for you. I've also written you an email, so all you have to do is reply and attach the files.
Always beware of saying that things were so simple in AS2, or that they were easier somehow. Anything that you could do in AS2 can be done in AS3. Some things in AS2 were actually harder, and AS3 makes the same tasks easier (I could give you specific examples if you were to press me for them)! Mostly, things aren't harder or easier either way, just different. Undeniably there is a learning curve to AS3. You just need to get to the other side of it.
Layout would be like this:
Okay, let's say your loaded movie clips are all 600 pixels wide, and 400 pixels high (just for the sake of argument). If you are using the same 2 x 6 layout as the page you showed me, the coordinates to tween to would be:
0, 0 -600, 0
0, -400 -600, -400
0, -800 -600, -800
It also seems to me that the pages should move, but the navigation buttons should stay put--that way the user wuold be able to move around easily.
Thanks for the reply.
Thanks for the reply. Actually I don't want to show or hide the loaded SWF files. I want to bring the target loaded movie in front of screen through tweening. I'm using TweenLite class.
Look at this www.dezine-concepts.com/demo
It's something like this, on main movie clip i've loaded 6 swf files. Clicking on the first page will zoom the page in through tweening. Suppose first page contains a link to contact us page, I need is, when I click that link, that take me to the contact us page throught tweening (something like dragging).
Use addChild and removeChild on Loader instance
Hey Motasim,
I'll assume that you used a separate Loader instance to load each "page." Once you've loaded all the external swf's , you can show / hide them just by using addChild() and removeChild() on the loader:
addChild(contactUsLoader);
This could be in response to a button click:
contactUs_btn.addEventListener(MouseEvent.CLICK, showContactPage);
function showContactPage(event:MouseEvent):void {
addChild(contactUsLoader);
}