Controlling Flash with HTML

  • vx
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Sep 17, 2004
  • Posts: 6
  • Status: Offline

Post September 17th, 2004, 5:08 pm

Hi Folks -

I need help with understanding interaction between html and flash.

My site is a single html page with a single flash movie embedded. I need to be able to control scenes (not just frames) from an html text link.

Does anyone have any good pointers towards tutorials or sample bits of code.

Please help if you can. I'm banging my head against a wall. ;-)

Thanx

Vx
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 17th, 2004, 5:08 pm

  • Ray2004
  • Novice
  • Novice
  • User avatar
  • Joined: Aug 09, 2004
  • Posts: 17
  • Loc: Kuwait
  • Status: Offline

Post September 18th, 2004, 1:15 pm

I am a newbie as well, but i recall reading somewhere that a new scene typically starts with a frame number = to the last frame number of the previous scene + 1 . So you could have "gotoandplay" or "gotoandstop" links on a flash menu.
But, As to how control the navigation through a html menu .. well thats beyond me and I actually posted a topic to that effect earlier..
Good luck
  • vx
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Sep 17, 2004
  • Posts: 6
  • Status: Offline

Post September 18th, 2004, 1:26 pm

Don't worry folks. I found a work around for my solution.

I am no longer using scenes in my movie - I am using external files to change my content depending on which variable is loaded into the page. Thus I have only 1 scene (which is much easier to update).

I am not really a 'flash' person so I'm learning lots in the process. What better way to spend a Saturday night. ;-)
  • Ray2004
  • Novice
  • Novice
  • User avatar
  • Joined: Aug 09, 2004
  • Posts: 17
  • Loc: Kuwait
  • Status: Offline

Post September 27th, 2004, 2:52 am

Elaborate more dude, I would like to know more about how u managed this !! :-0
  • elektric
  • Graduate
  • Graduate
  • User avatar
  • Joined: Sep 20, 2004
  • Posts: 130
  • Loc: Mexico
  • Status: Offline

Post October 2nd, 2004, 3:22 pm

I am not the expert either, but I know PHP can help you to move between frames into your flash file,

If you use URL values as for example:

domain.com/myfile.php?myvalue=1

inside the php file, include
<?
$thephpvalue = $_GET['myvalue'];
?>

Inside your swf, use the function:
Load Variables ("myfile.php", 0)

to Load the values inside your php file.

Then make a condition, (just help me with syntax, since I am not sure about it, this is just how it may work)

gotoAndPlay(thephpvalue);

Hope it works.
  • htvu
  • Born
  • Born
  • No Avatar
  • Joined: Oct 21, 2004
  • Posts: 1
  • Status: Offline

Post October 21st, 2004, 8:35 pm

Go there and get what u want.
http://www.permadi.com/tutorial/flashjscommand/

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 35 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.