PDA

View Full Version : Passing Variables



Furious5
January 31st, 2003, 03:59 PM
Ok guys, I need your help

I am really struggling with this one, and I hope you can help me out.

I have a main movie, and use the following code to call an external movie:

on (release) {
loadMovie ("http://www.furious5.co.uk/ext/portfolio.swf, "_root.container");
}

Fine I've no problems with this, however once I am in portfolio.swf I want to be able to call an ASP file when I click on a button

I.e if I click button 1, I get files records for ID 1 and if I click button 2, I get file record for ID 2. The button click happens in the main movie, any ideas have I can pass a variable in between seperate movies?

senocular
January 31st, 2003, 05:29 PM
once you load the swf into container, it is no longer "seperate" it then becomes what you know as 'container'. so to reference that movie just refernce container. _root.container IS portfolio.swf's _root

Furious5
February 1st, 2003, 05:43 AM
Erm ok

So how would I go about coding passing the variable?

senocular
February 1st, 2003, 10:18 AM
_root.container.variable