Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 10, 2016, 12:58:53 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: How does he do that?  (Read 2807 times)

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 2,888
    • View Profile
    • Donate to Member
How does he do that?
« on: May 18, 2006, 07:31:30 PM »
This is kinda neat, but... How does he do that? Synchronized flash/java? Seems to only work on XP and allow new windows to be resized.
http://www.malgusto.com/ventanas/#

housetier

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 1,321
    • View Profile
    • Donate to Member
Re: How does he do that?
« Reply #1 on: May 18, 2006, 07:45:32 PM »
if by "seems to work" you mean "click to see" opens a new window showing a video where some person makes faces and goofs around, then it works under linux as well.

if you don't understand the above sentence, try this one: it works under linux ;-)

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 2,888
    • View Profile
    • Donate to Member
Re: How does he do that?
« Reply #2 on: May 19, 2006, 01:13:13 PM »
No, see how he pokes the side of the window and all? It's supposed to move the window he's in. Like when he pokes in an upward motion, the window inches up a bit every time his finger hits the top. And when he punches the screen, the window resizes and pops back. It doesn't work on my NT4 station running FireFox, it kinda works in Opera, and it works fully with Firefox on XP. Maybe I could record it in Wink...

housetier

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 1,321
    • View Profile
    • Donate to Member
Re: How does he do that?
« Reply #3 on: May 19, 2006, 01:17:23 PM »
I didn't see any window movement. Probably because I forbid javascript to do more than change images when hovering over a link.

Rover

  • Master of Smilies
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 630
    • View Profile
    • Donate to Member
Re: How does he do that?
« Reply #4 on: May 19, 2006, 11:14:07 PM »
Here's part of the code:

<html>
<head><title>Malgusto.com</title></head>
<script language="JavaScript">
<!--
i=200;
j=200;
resizeTo(224,174);
moveTo(i,j);
function mover(destino)
{
switch(destino)
{
case "arriba":
j-=10;
break;
case "abajo":
j+=10;
break;
case "izquierda":
i-=10;
break;
case "derecha":
i+=10;
break;
}
moveTo(i,j);
}
//-->
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
    <param name="movie" value="moverventana.swf">
    <param name="quality" value="high">
    <embed src="moverventana.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed></object>
</body>
</html>
Insert Brilliant Sig line here

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,666
    • View Profile
    • App's Apps
    • Read more about this member.
    • Donate to Member
Re: How does he do that?
« Reply #5 on: May 19, 2006, 11:56:27 PM »
You want to know what is inside the flash file? The script? I will only post it if mouser says it's ok.

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 2,888
    • View Profile
    • Donate to Member
Re: How does he do that?
« Reply #6 on: May 22, 2006, 10:48:46 AM »
Aaah... See, that is what I was looking for. Seems there IS a script inside the flash file that dumps commands to the Javascript engine?
Neat trick, but now to do something useful with it...

Housetier: Yes, of course, with Javascript off it won't work. I assume the behavior would be the same with Java on if you're using Firefox. Which means I can watch Mr. Gusto at home on my Slackware box... If I wanted. (neat trick, but it's not worth much more...)