Controlling Flash with HTML

  • vx
  • Newbie
  • Newbie
  • vx
  • Posts: 6

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Ray2004
  • Novice
  • Novice
  • User avatar
  • Posts: 17
  • Loc: Kuwait

Post 3+ Months Ago

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
  • vx
  • Posts: 6

Post 3+ Months Ago

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
  • Posts: 17
  • Loc: Kuwait

Post 3+ Months Ago

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

Post 3+ Months Ago

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
  • htvu
  • Posts: 1

Post 3+ Months Ago

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 12 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.