Flasher Archive

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


Subject: Re: Re: FLASH: Screen shaking applet
From: Andrew Le Sage
Date: Wed, 22 Nov 2000 18:25:09 GMT

Thanks, that looks very simple indeed. I understood that there were JavaScript's that could exist outside the SWF that could be called and used inside it. Am I totally mad? Or is it that you can use a JavaScript inside the SWF and call it from where ever it lives inside the SWF when you want it to run. Am I still mad?

A

----- Original Message -----
From: Jason Bouwmeester
To: 'flasheratchinwag [dot] com'
Sent: Tuesday, November 21, 2000 5:08 PM
Subject: RE: Re: FLASH: Screen shaking applet


You place it in the html page that contains the swf. It would look something
like this:

<html>
<head>
<title>Page Title Here</title>
<script language="Javascript">
<!--
FUNCTION SCRIPT FROM BELOW GOES HERE
//-->
</head>
<body>
SWF CODE GOES HERE
</body>
</html>

Of course that is a highly oversimplified codebase but hope it helps...

jb

-----Original Message-----
From: Andrew Le Sage [ajsatelectra-uk [dot] com (mailto:ajsatelectra-uk [dot] com)]
Sent: Monday, November 20, 2000 11:34 AM
To: flasheratchinwag [dot] com
Subject: Re: Re: FLASH: Screen shaking applet


Being new to using JavaScript with Flash, can you tell me where to store the
Script that is going to be called. Where and how do I keep it in relation to
my SWF.

A

----- Original Message -----
From: Jason Bouwmeester
To: 'flasheratchinwag [dot] com'
Sent: Monday, November 20, 2000 5:48 PM
Subject: RE: Re: FLASH: Screen shaking applet


That it is...

function shake_xy(n){
if(self.moveBy){
for(i=10; i>0; i--){
for(j=n; j>0; j--){
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}
}
}
}

To call it from Flash, just do a getURL("javascript:shake_xy(5)") - the 5
can be replaced by any number, it just modifies the intensity and duration
of the shake.

HTH,
jb

-----Original Message-----
From: Gahlord Dewald [gahlordatweedsmedia [dot] com (mailto:gahlordatweedsmedia [dot] com)]
Sent: Monday, November 20, 2000 10:24 AM
To: flasheratchinwag [dot] com
Subject: OT: Re: FLASH: Screen shaking applet


On 11/20/00 at 8:55 AM, Lamont, Sarah <SLamontate-g [dot] com> wrote:

> hey everyone,
> I was wondering if anyone knew where I could get that one applet that
shakes
> the viewer's screen? I know it's obnoxious, but I want to apply it to
> something that could be really cool. : ]
> thanks a lot!

I think it's just a piece of javascript called "shake." Check your
javascript
resources.

g

Gahlord Dewald
Weeds Media Consortium
Hoops of Fire. Dancing Bears.
Interactive Designers.
http://www.weedsmedia.com

v: 802.658.4267 x 1
f: 800.863.9606
e: gahlordatweedsmedia [dot] com

Weeds Media Consortium
416 Pine Street
Burlington, VT 05401
USA


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: us citizens: happy thanksgiving., Kurt Dommermuth

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