Flash Button created from Dreamweaver

Posted on 2006-05-12
Last Modified: 2013-12-24
Passing a variable from a coldfusion page.

I have a coldfusion page and a Flash Button that was created using Dreamweaver MX.

I edited the Flash Button's link property using Dreamweaver MX.  I typed in the following code on the link property box:

javascript: MM_openBrWindow('act_revise.cfm?id="#get_num.id_num#"','testpage','status=yes,width=1000,height=500')

The variable #get_num.id_num# is coming from the page where the flash button is residing. I want to pass this variable to the new pop up page.  The varaible wil not pass.  

Can someone please help?

Question by:jramos74
    LVL 7

    Expert Comment

    I have not used a flash button's link property before, but it occurs to me that this (Flash) object may have no knowledge of CFMX variables as it is being included (Precompiled) by the Coldfusion server, and that its link property will probably contain a script with the #get_num.id_num# variable unevaluated.

    Is this what you mean by saying the variable will not pass?  Does it show the variable in the URL string as "#get_num.id_num#" instead of evaluating it to the actual value?

    Author Comment

    Yes. I have a query and I need to pass a variable from .cfm page to another .cfm page using the flash button as the bridge.
    LVL 7

    Expert Comment

    Can you post the code for your flash button from the CFM page where it is included?

    Author Comment

    Here is the code for the flash  button:

     <td width="17%"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  width="100" height="30">
          <param name="BGCOLOR" value="">
          <param name="movie" value="edit.swf">
          <param name="quality" value="high"><param name="SCALE" value="noborder">
          <embed src="edit.swf"></embed>
    LVL 7

    Accepted Solution

    Ok, I dont think you can make this work in the manner you are attempting, however - I am prepared to be corrected.

    To make it work, I would change your link property on the flash button, which is currently:
    javascript: MM_openBrWindow('act_revise.cfm?id="#get_num.id_num#"','testpage','status=yes,width=1000,height=500')

    to something like :
    javascript: my_function_name()

    Then, on your CFM page, add some javascript:

    function my_function_name() {

    This assumes, of course, that you have the variable "get_num.id_num" already defined above where you place the <script></script> content on your page.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
    Now that Expression Web 4.0 ( is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
    The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
    The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now