Skip to main content
Participating Frequently
March 5, 2007
Question

flash button to detail-page

  • March 5, 2007
  • 7 replies
  • 420 views
I made a button in. This button is part of a repeated region in a master-page and should "onClick" go to the detail-page.
I don't know if it is possible to make a detail-page link to a flash-button in Dreamweaver? Or is there a possibility to give the detail-link already in Flash?
This is the detail-link in Dreamweaver:
This topic has been closed for replies.

7 replies

Inspiring
March 8, 2007
glad to be helpful!

Ullitasch wrote:
> perfect. no it works in every browser! Thanks!!!
March 8, 2007
perfect. no it works in every browser! Thanks!!!
Inspiring
March 6, 2007
it doesn't rollover in IE because ... sorry, it's a long story and i'm
in a hurry. take a look at http://www.adobe.com/devnet/activecontent/

if you click first over any button it'll work. note in your page that
the following code is missing. and it is precisely what avoids the need
to click before you can interact with the Flash movie in IE

<script type="text/javascript">
AC_FL_RunContent('...');
//end AC code
</script>

and BTW, instead of having one Flash movie for each button, you could
have just one movie with all the buttons you need. yeah, i know you're
learning!


Ullitasch wrote:
> thnx. Super - I am learning!
> I managed to pass the variable from the FLASH-button (in leftFrame) to the
> photo (on mainFrame)... it works fine in Safari, but not on PC/IE? Even the
> flash-button doesn't "hover" then...?
> http://www.sanderfoederer.nl/fotografie/portfolio/index.php
>
March 6, 2007
thnx. Super - I am learning!
I managed to pass the variable from the FLASH-button (in leftFrame) to the photo (on mainFrame)... it works fine in Safari, but not on PC/IE? Even the flash-button doesn't "hover" then...?
http://www.sanderfoederer.nl/fotografie/portfolio/index.php
Inspiring
March 5, 2007
Ulitasch wrote:
> I don't know what is " FlashVars and level0 scope"?

FlashVars is one way to pass variables to a Flash movie from HTML very
similar to query strings in the URL. if you pass a var named foto, it
can be accessed with: _level0.foto

take a look at Flash help for FlashVars and levels

> What do I have to put in: var_to_flash=<?php echo ...; ?>',
> Do I replace <?php echo ...; ?> with the link to the detail page?
> "../portfolio/index.php?foto=<?php echo $row_rsPORTFOLIO2['foto_order']; ?>"

just the var name and its dynamic value:

foto=<?php echo $row_rsPORTFOLIO2['foto_order']; ?>

as the path and page name seems to be static it doesn't make sense to
include them in the var; put them in the Flash movie:

getURL("../portfolio/index.php?"+_level0.foto);


> And what do I put in the places after: AC_FL_RunContent('...','...','
> Sorry, this is very new for me..

Dreamweaver 8.0.2 generates that code when you insert a Flash movie and
Code Rewriting > Active content option in Preferences is selected:

AC_FL_RunContent('codebase',' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',...


and don't worry. everybody learn new things each day!
UlitaschAuthor
Participating Frequently
March 5, 2007
I don't know what is " FlashVars and level0 scope"?
What do I have to put in: var_to_flash=<?php echo ...; ?>',
Do I replace <?php echo ...; ?> with the link to the detail page? "../portfolio/index.php?foto=<?php echo $row_rsPORTFOLIO2['foto_order']; ?>"
And what do I put in the places after: AC_FL_RunContent('...','...','
Sorry, this is very new for me..
Inspiring
March 5, 2007
you can pass the dynamic info to the buttons using FlashVars and recover
its value in the Flash movie from the var in level0 scope

anyway, i'd think first about using Flash just for a button


<script type="text/javascript">
AC_FL_RunContent('...','...','width','100','height','50','src','your_button','flashvars','var_to_flash=<?php
echo ...; ?>',...);
//end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ...
<param name="movie" value="your_button.swf" />
<param name="flashvars" value="var_to_flash=<?php echo ...; ?>" />
<param name="quality" value="high" />
<param name="LOOP" value="false" />
<embed src="your_button.swf" flashvars="var_to_flash=<?php echo ...; ?>"
...>
</embed>
</object>
</noscript>

hth,

jdoe

Ulitasch wrote:
> I made a button in. This button is part of a repeated region in a master-page
> and should "onClick" go to the detail-page.
> I don't know if it is possible to make a detail-page link to a flash-button in
> Dreamweaver? Or is there a possibility to give the detail-link already in
> Flash?
> This is the detail-link in Dreamweaver:
>
>
> <a href="../portfolio/index.php?foto=<?php echo
> $row_rsPORTFOLIO3['foto_order']; ?>"></a>
>