PDA

View Full Version : Question of Syntax



Darlz Arlz
October 22nd, 2004, 03:09 PM
Hi,

I am trying to get into coding and I've been looking through the Macromedia help files for over an hour now. So I have a section(page) where thre is an "intro" transition with buttons. When the user clicks on a button, the script remembers which button clicked while playing an "exit" transition, then going to the requested page.


Page: Home
[INTRO] -- <Home> -- [OUTRO]

This is the format of each section, there are specific transitions for each page. So instead of attaching:



[INTRO] -- <Home> -- [OUTRO to "about"]



[OUTRO to "links"]

[OUTRO to "sponsors"]

I'm trying go for effiency in file size. Does anyone know the name of this process so I can look it up?


Thanks
<Makana

Darlz Arlz
October 23rd, 2004, 05:31 PM
hi,

i guess i asked this question the wrong way. What i'm really wondering is if I can do this:


//variable names

var home
var about
var performance

***user clicks "about" button***

on(release);
goToAndPlay ("outro");
goToAndPlay ("about");


Can I have those two directions in one mouse click? I know I would have to define that variable. I'm not familiar with ActionScript, but I've been learning C++. Can someone please help me, thanks.

Darlz Arlz
October 23rd, 2004, 07:20 PM
thanks adam,

i'm actually not trying to play the two clips simultaneously but I was wondering if i could sequence a "goToAndPlay" command like that. Like when "outro" is done playing then go to "about" once that is done. I know the theory of how I want to do it, but i just dont know how to look it up, or what that would be called. I know I can use variables but I just dont know how to code that. Thanks!