General Question

cschack's avatar

Loading a Flash movie via an external link?

Asked by cschack (227points) April 20th, 2008

OK, so I’m making a pretty simple website, and it will have a a few different picture galleries. What I’d like to do is build the shell with HTML and CSS (pretty basic site); background graphics, main menu and so on, then have the Flash galleries load into an empty movie clip when you click the hyperlinks in the main menu. I really don’t want to make a giant flash film. Now, I know I can do it with an iframe, but I’d rather avoid it. Hopefully the question makes sense, I’m not a pro (obviously)

Thanks in advance!

Observing members: 0 Composing members: 0

1 Answer

paulc's avatar

Your best bet is to use javascript to call methods in the main flash file that cause it to load your individual galleries and dispose of old ones. If you’re using AS3 then you’ll need to expose that method using ExternalInterface.addCallback(). Then all you need to do is make that callback method load in whatever is passed to it (or however you want it to function).

Answer this question




to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
Knowledge Networking @ Fluther