| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jun 2004
Posts: 9
|
Hi
I need to be able to run an actionscript function in a flash movie from a html page in an iframe. Firstly is it possible, or should I go back to the drawing board, secondly - if it is possible how do i do it? Here is the script I have so far... On the page in the iframe.. HTML Code:
<script language="javascript" type="text/javascript"> <!-- var movie = window.top.movie; movie.SetVariable('/bar:target', '4'); movie.director(); //--> </script> Code:
function director() {
if (/bar:target</bar:current) {
/bar:direction = "b";
} else if (/bar:target>/bar:current) {
/bar:direction = "f";
} else if (/bar:target == /bar:current) {
/bar:direction = "null";
}
goto = (String(/bar:direction+/bar:current));
trace(goto);
bar.gotoAndPlay(goto);
}
It all works fine, but if you click "back" the iframe changes but the slider does not scroll back to the correct person - I need to to change when the iframe page loads. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|