Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

flash button to detail-page

Explorer ,
Mar 05, 2007 Mar 05, 2007

Copy link to clipboard

Copied

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:
TOPICS
Server side applications

Views

391
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 05, 2007 Mar 05, 2007

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 05, 2007 Mar 05, 2007

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 05, 2007 Mar 05, 2007

Copy link to clipboard

Copied

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!

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 06, 2007 Mar 06, 2007

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 06, 2007 Mar 06, 2007

Copy link to clipboard

Copied

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
>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 08, 2007 Mar 08, 2007

Copy link to clipboard

Copied

perfect. no it works in every browser! Thanks!!!

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 08, 2007 Mar 08, 2007

Copy link to clipboard

Copied

LATEST
glad to be helpful!

Ullitasch wrote:
> perfect. no it works in every browser! Thanks!!!

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines