Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Re: JavaScript & Flash
From: Stefan Keel
Date: Tue, 15 Dec 1998 08:45:44 GMT

|>I'm sure this question has been asked before but:
|>
|>On my site, I have it set up to test the users page
|>by placing a flash file on the opening page.
|>(i.e. http://www.sohh.com/awards - turn ya speakers down)
|>
|>Now, if the user has the correct plug in, then they
|>will see a Flash animation that will open up a
|>mini-window which will play another Flash
|>animation.
|>
|>Please note, that my mini-window is just calling the
|>.swf file and not a .html file.
|>
|>Now my question is, at the end of the 2nd animation,
|>I want to add a button that says "Register", when the
|>user clicks the button, it should close the mini-window,
|>and control the browser window that opened it.
|>
|>If anyone has any suggestions please let me know.
|>
|>Thanks,
|>
|>
|>
|>Steven Samuel
|>
|>
|>SOHH

I'm pretty new to Flash, so I'm not exactly sure how you would make this
work. But if there is any way in which one can assign a script to your
button, here's one which will close a window. You'll have to href the
parent window in order to get the user back to where they started, or in
this case to the desired 'register' url. This is untested, so if someone
with more JavaScript knowledge than I want's to have a look, let me know
what's wrong. I used it previously in a straight poop HTML page, so I don't
know how it will work in Flash.
<<<<<<<<<<<<<<Start Script>>>>>>>>>>>>>
<script><!--
function CSScriptInit() {
CSAction(new Array('B29B5F3B0'));
}
function CSAction(array) {
var result;
for (var i=0;i<array.length;i++) {
result = CSAct[array[i]][0](CSAct[array[i]]);
}
return result;
}
CSAct = new Object;
function CSCloseWindow(action) {

window.close()

}CSAct['B29B5F3B0'] = new Array(CSCloseWindow);

// --></script>
<<<<<<<<<<<<<<End Script>>>>>>>>>>>>>
Good luck,

Stefan Keel
One's Design
sakoneathalcyon [dot] com


------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: FLASH: Re: JavaScript & Flash, SOHH

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]