Current Position:Home > Simple Button

Simple Button

Update:10-11Source: network consolidation
Advertisement
I have a Dynamic page that is a parts list in a MySQL
database that I show on a page using PHP in Dreamweaver.
The page uses a repeat region to list the parts depending on
what nav link is clicked and what I want to do is add a flash
button to the repeated region that when clicked will take you to a
larger view. I have all of this setup and working fine except for
the flash button.
For instance when the page is loaded you may see 10 parts
listed and the button will show up 10 times also, on button next to
each part listed. I am currently using a simple image as a link to
the larger view and it works fine. The link looks like this.
largeview.php?SearchField=<?php echo
$row_Recordset1['Part']; ?>
My problem is that flash doesn't read the php in this code:
"<?php echo $row_Recordset1['Part']; ?>". I need flash read
the php code so it knows what part number to show.
Is there any other code that can be used to have Flash read
the php code?
I hope I explained this properly and any help would be
greatly appreciated!
Mark this message as the answer.
Print this message
Report this to a Moderator
Nickels55
User is offline
View Profile
Senior Member Posts: 2048
Joined: 01/11/2006
Send Private Message
08/16/2007 07:41:46 PM
Reply | Quote | Top | Bottom
Tutorial on the subject:
http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm
~Flashtard - Giver of poor advice~
Mark this message as the answer.
Print this message
Report this to a Moderator
painlessbart225
User is online
Junior Member Posts: 3
Joined: 08/16/2007
Send Private Message
08/16/2007 09:28:43 PM
Reply | Quote | Top | Bottom | Edit
I guess I don't understand this very well I can't seem to get
it to work.
I can get the part # to show on the page using:
print "myVar=$x";
but the button link I am trying to use is:
largeview.php?SearchField="myVar=$x"
I know this isn't right but the button is just a button using
the option in Dreamweaver to Insert > Media > Flash Button
and the only option is a link.
how should I write the link so that the flash button will
read it?

The Best Answer

Advertisement
I fixed my own problem.... here's for anyone else with a similar situation or for future people searching the forums
just use
setLayout(null); This is not the recommended solution. Try resizing your frame. Does the position of you button remain centered relative to the frame?
You should be using a LayoutManager as was suggested above. You should read the tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers. I would probably use something like:
JPanel south = new JPanel( new FlowLayout( FlowLayout.CENTER ) );
panel.add( button );
contentPane.add( panel, BorderLayout.SOUTH);
  • Simple button script not working Update:10-11

    I am using AS2 and need help figuring out why this simple button script is not working: stop(); buttonWS1.onRelease = function(){                     gotoAndStop("Stage1and2_Boss",4); buttonWS2.onRelease = function(){                     nextFra

  • Simple button to play symbol....? Update:10-11

    I have a symbol "NA". It is an animated map that scales up and then back in place when closed. I have added a button to the main stage to play this symbol with the following code on the "click" event: sym.getSymbol("NA").play

  • Simple button not functioning? Update:10-11

    I've been staring at this code for an hour. Maybe I need a break? This is a very simple button that just won't accept my touch events. I have a movie clip. It's instance name is "boardA." The name of the symbol is "letterA" and it is l

  • Simple Button Hit Zone not working Update:10-11

    I am somewhat new to Flash CS4 andt am having a problem making simple buttons in Flash CS4 on a Macintosh: I have made a few buttons with a graphic and can go into them and successfully create the Up, Over and Down stages of the graphic. Then when I

  • Simple button problem Update:10-11

    I am having a real problem creating a simple button - I have created a Flash file using Action script 2, and when I create a simple button - text with a rectangle as a background, (see http://www.elkhavenestate.com), and the over state is behaving in

  • Simple button help needed! Update:10-11

    I want to make a simple round button that glows when you mouse over it and depresses when you click it. Apparently to do this I need to use Filters to make the glow and bevels. But Filtersonly work on movie clips, buttons and text. So I make a circle

  • Simple button in AS3 Update:10-11

    hello everybody, in my website I have a simple button that should trigger at every click a different frame. Browsing the net I have found the AS for the simple button (attached code) that works for a sigle click. Would please tell me the AS to give t

  • Simple Button.Text not changing properly Update:10-11

    Hi all, The WPF learning curve is steep. I have pulled my hair over this simple Button.Text change and I can't get it to work. In WinForms this works: Public Class Form1 Private Sub BTN_1_Click(sender As Object, e As EventArgs) Handles BTN_1.Click BT

  • Can't get Simple button to Load Movie Clip Update:10-11

    Hi I've looked around for the answer to my question on this forum but havent found it so here it goes. I am working on this company's Flash site that was built by an outside studio. I am using CS3. The url to the site is http://www.bubbakeg.com. (thi