ActionScript 2.0 :: Dynamic Hyperlink (multi Row Data)?

May 11, 2004

I have created a flash file named "test.swf" and this file will call the "getdata.asp" file to retrieve the data from the database. There are multiple rows of returned data.

Code Description
----- ------------
A1 Notebook <button>
A2 PC <button>
A3 VGA Card <button>
A4 Projector <button>

How do I make the hyperlink to each of the <button> so that whenever a <button> is clicked, the "http://localhost/getdetail.asp?code=<key>" will be called, whereby <key> is the code associated to each of the row.This is the code in my Flash file.

for (i=0; i<ids_length; i++) {
codes
duplicateMovieClip(codes, "codes" add i, depth);[code].....

View 4 Replies


Similar Posts:


IDE :: How To Make The Multi-hyperlink

Sep 10, 2009

i got a problem with building a Menu for my website, i'm using CS3, Actionscript 3 and i've a lot of buttons for one page, but i don't really know how to code them, because i juz know how to code single Button example :

btn1.addEventListener(MouseEvent.CLICK, goToEnter);
function goToEnter(event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.exaple.com"));
}

so this is for single button, how if there are 5 buttons?

View 2 Replies

ActionScript 3.0 :: Multi Images With Different Hyperlink?

Aug 21, 2010

how to code actionscripts3.0 for multi images with different hyperlink on Flash CS4?I tried but only 1st image work. There is error for 2nd and 3rd image

View 1 Replies

Data Integration :: List Component - Multi-select Retrieve Data

Feb 26, 2007

I'm having trouble retrieving the value of a multi-select list component. It always traces the last value selected, but I need to trace all values to parse the data.

I've been using trace(myList.value);

View 2 Replies

Data Integration :: List Component - Multi-select Retrieve Data?

Nov 18, 2010

I'm having trouble retrieving the value of a multi-selectlist component. It always traces the last value selected, but Ineed to trace all values to parse the data

View 8 Replies

Dynamic Image With Hyperlink?

Jan 19, 2010

I want to make a flash movie which will load image and its hyperlink dynamically from external source. I know this is very common over the internet and as per some of the tutor I've done loading the image part but not able to sort out how to hyperlink that Below is the code

Code:

myData = new LoadVars()
myData.load("anastasio.txt")
myData.onLoad = function(succes)
{

[code]....

The text file "anastasio.txt" just have this line "image=photo.jpg". "holder_mc" is a blank movie clip. The image is loading properly but I dont know how to hyperlink that!! Can any one let me know how to do that dynamically.

Also, this is a very simple way of loading the image from text file but in real this will come from DB. The Admin will insert the image name and the url in DB and uploads the image to a specific folder from where the flash will load that image. I'm thinking what could be a better way from below to do the above stated task:

1) On insertion into DB, I need to create an XML file from DB fetching the image name and url and writing them to XML file. And every time the flash will load these from XML file instead of connecting to DB server.

2) No XML file. The flash will communicate with a PhP page which will fetch the records from DB and give it to flash for loading

I know both the ways for loading data into flash i.e. from XML or DB. I just wanted to know which could be the best!! In my opinion, XML file would be a better option since no DB connectivity every time on website but there will be only one record at a time which will get changed once in every month which is preventing me from creating XML file for just 1 record!!!

View 2 Replies

ActionScript 2.0 :: Dynamic Image With Hyperlink?

Jan 19, 2010

I'm a totally new bee in Flash scripting. I want to make a flash movie which will load image and its hyperlink dynamically from external source. I know this is very common over the internet and as per some of the tutor I've done loading the image part but not able to sort out how to hyperlink that Below is the code

Code:
myData = new LoadVars()
myData.load("anastasio.txt")
myData.onLoad = function(succes)
{
if(succes)

[Code]..

2) No XML file. The flash will communicate with a PhP page which will fetch the records from DB and give it to flash for loading

I know both the ways for loading data into flash i.e. from XML or DB. I just wanted to know which could be the best!! In my opinion, XML file would be a better option since no DB connectivity every time on website but there will be only one record at a time which will get changed once in every month which is preventing me from creating XML file for just 1 record!

View 1 Replies

ActionScript 2.0 :: Create A Hyperlink In A Dynamic Text Box?

Apr 4, 2003

Ok, it is possible to create a hyperlink in a dynamic text box. But it is possible to load a Movieclip from this hyperlink, instead a web address?

View 5 Replies

HTML :: Using JSON To Parse Data In Flex - Hyperlink RollOvers

Feb 18, 2010

I am using JSON to parse HTML data with customized html tags in Flex. Flex's support for HTML is pretty minimal, so I am wondering if it's possible to do a simple font color change rollover effect on these links. Currently I have found that Flex only supports a few HTML tags, but also supports CSS through Flex's whack CSS methods. Can I manipulate HTML that is written in my JSON files through an external CSS file? Or better still using a simple tag with the JSON file?

View 2 Replies

ActionScript 3.0 :: Showing RSS Feed In Dynamic Text Box (with Hyperlink)

Mar 16, 2010

I am currently trying to pull RSS data into a project for my first time and am trying to get 3 (potentially 4) boxes filled with rss data that will be updated. So far, I am going with Actionscript 3. So far I have the code below, but it puts data in a listbox. What is the easiest way to put the data in three dynamic text boxes inside a movie clip, so I have one for the title, one for description and one for link (shown as 'read more' text but a link using the url from the rss value)?I am really banging my head against the wall on this one and want to get it sorted asap,I have also attached an image to show what I am trying to do:I also want to know if it's possible to show rss values only if they exist. For example, my xml feed currently only has 3 items that change, and i will be assigning these to boxes, but is it possible to display a fourth if it exists, and if it doesn't it just shows the first?[code]

View 3 Replies

Professional :: ClickTag On Dynamic Hyperlink Text In Scroll Box

Aug 15, 2011

Is it possible to add a ClickTag for tracking purposes to dynamic text (hyperlink) in a scrollbar box in Flash CS5?  I have ever only added a ClickTag to a button and/or banner before.

View 1 Replies

ActionScript 2.0 :: Hyperlink In Dynamic Text Field From Xml File

Mar 25, 2009

I'm pulling data from an XML file into dynamic text fields in Flash. I have a field where I want to pull in a different url for each node, but display the same text and I'm not sure how to set that up.

View 4 Replies

ActionScript 2.0 :: Dynamic HTML Text... Hyperlink Triggers Function?

Jul 22, 2004

I have a flash movie with a dynamic loading textfield formatted in html. What I'm looking to do is format (using a tag?) the loaded html code to have a hyperlink (<a href?>) gotoAndPlay(2) or perform other functions.

View 3 Replies

ActionScript 1/2 :: Multi-array - Output The Data?

Jun 24, 2009

Here is the data:

[Code]...

Here is an example with some of the above data:

[Code]...

I have all of the data combinations, I just cannot, for the life of me, figure out how to output the data

View 10 Replies

Flash :: Parsing XML Data To Multi Dimensional Array

Mar 16, 2010

i'm still transitioning from as2 to as3, i'm having trouble with parsing XML data to Multi dimensional array, below is the onComplete handler which is succesfully tracing 'event.target.data' but outputs 'A term is undefined and has no properties' when tracing _vein_data[0][0].xPos. I'm guessing there is a easier way to approach it than this attempt

[Code]...

View 1 Replies

ActionScript 2.0 :: Sorting Data Into Multi-row Grid With X Items Per Row

Nov 12, 2008

I have 20 items, I want to display them as a grid with of 5 items per row.

ie:

1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20

Code:
var total:Number = 20;
var photo_num:Number = 5;
var num_row:Number = total/photo_num;

[Code]....

View 1 Replies

Professional :: Add A Simple Hyperlink In My Xmlhtml Hyperlink In My Xml?

Jan 11, 2010

I want to do is add a simple hyperlink in my xmlhtml hyperlink in my xml.how to do a hyperlink in xml.This is what I do know,you can add the <a href="http:[url]...but that does not work for me,when i save and preview my fla, it takes away my scroll bar that i have.I have also seen somwhere you can use the <?[[DATA tag, but this aswell doesnt work for me in my FLA, is there somewhere i need to reference hyperlinks before I can modify my xml?

View 38 Replies

ActionScript 2.0 :: Dynamic Multi-Dimensional Arrays

Dec 4, 2005

following on from B.Rich's great Multi-Dimensional Arrays and attachMovie tutorial, i'm trying to load the array from an external source.i've got a text file that outputs: url... i then try to break this down in flash into a multi-dimensional array that provides info for dynamic buttons:[code]however its not working at all. i'm not sure if its because the attachMovie loop is not getting initiated or what..

View 12 Replies

ActionScript 2.0 :: Dynamic Multi-Dimensional Arrays?

Oct 10, 2004

following on from B.Rich's great Multi-Dimensional Arrays and attachMovie tutorial, i'm trying to load the array from an external source.i've got a text file that outputs[URL]i then try to break this down in flash into a multi-dimensional array that provides info for dynamic buttons:

var myVars:LoadVars = new LoadVars();
var newArray:Array = new Array();
myVars.onLoad = function(success) {

[code].....

View 1 Replies

ActionScript 2.0 :: Dynamic Text Box With Multi-Color Lines?

Aug 27, 2007

Is there a way to change the colour of a Dynamic Text Box so that it can have multi-color lines?
E.g.:
Nineteen says: (in red)
Hey everyone! (in black)
?

View 2 Replies

Flex :: Multi-bitrate/dynamic Rate For Progressive FLV Playback?

Nov 22, 2009

Is there a way to get multi-bitrate playback working with progessive playback without having to download all versions of the file? People all coming up with all kinds of cool ways to make progressive feel like streaming.

View 1 Replies

ActionScript 3.0 :: Link Text Hyperlink In Dynamic Text Box To Label

Nov 3, 2010

I have an AS3 flash movie and each page is a new frame. On my pages are dynamic scrollable text boxes that I created with the text tool. I would like to be able to make a piece of text a link (ex. click here for prices) so that it will direct the view to another page (label). I cannot figure out how to do so.

View 2 Replies

Flex :: Datagrid - Display A Multi-line Column Header Using The Flex Spark Data Grid?

Apr 13, 2011

How can you display a multi-line column header using the Flex Spark Data Grid for Flex 4.5?

View 5 Replies

Data Integration :: MySQL Data Into Dynamic Text Field Without Escape Sequence

May 23, 2007

I got a music portfolio web site running PHP, MySQL and Flash. There's a page showing all the artists my client worked for and when you click on a song title, this title is passed as a variable to a PHP page then to a Flash page. The Flash page contains an actionscript music player which then looks for the right audio file in the database and plays the song. Everything works great except for the dynamic text field which displays the song title. If the song title contains an apostrophe or a single quote, the Flash dynamic text field then shows the apostrophe.[code]

View 1 Replies

Flex :: Get Data From Dynamic HTTPService Asynchronous To Populate An Advanced Data Grid

Dec 28, 2009

I have to populate an Advanced Data Grid which have the following fields: Continent->State->Society-->Actual Value-->Estimate Value I want to simulate a financial market so i have to change some of the values by asynchronous request from an HTTPService; If necessary i'll post the .as file, but it is generated automatically by Flex Builder.

Here's the code of the client side Flex/Air application:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"

[Code].....

View 2 Replies

ActionScript 3.0 :: Send Data From Dynamic Text Field On Stage To Dynamic Textfield In Mc?

Sep 28, 2010

I have 2 input textfields on the stage and 1 dynamic textfield.

-input1 is for quantity

-input2 is for page count

When a user enters a number into the page count it makes a calculation and places the outcome into the dynamic textfield. This textfield is for the individual price.All of this so far works. What I want to do now is create another dynamic textfield for the total. So the individual price is multiplied by the quantity and this result is put in the new dynamic text field. I have the code for that working but here is where it gets tricky (for me anyway).The total price is to start off invisible. When I roll over the individual price the total price is to appear (For a test lets just say when I roll over an area the total price appears).To stop cursor flickering this should be done inside a movieclip. So... I have create a movieclip and placed a dynamic textfield inside it. They all have instance names BUT how do I reference it in script?I need to tell the resulting calculation to be placed inside the textfield which is inside the movieclip. If it isn't inside a movie clip I can do it. But how to I reference it when inside one?

View 1 Replies

Data Integration :: Static Vs. Dynamic XML?

Sep 28, 2006

I have created a Flash Map that functions properly with a static XML file but when I try to load a dynamic XML generated my ColdFusion I get no results. The example can be found at: http:[url]...The one that does not work is at http:[url]....

This map should load the different states that are in the XML file but instead it does not load any of them. The two different XML files can be found at: http:[url]....and http:[url].....An interesting note: Firefox does not recognize the cfm file as a XML file but IE does. This may be based on the file extension.

The Action Script is exactly the same except that it references adifferent file. The Flash works when published for Flash Player 6 but when I try to publish for Player 8 even the
static XML does not work.

View 40 Replies

ActionScript 3.0 :: Xml Data Into Dynamic Textfield?

May 21, 2010

was trying to get xml data into a listBox and textArea. Then when I try to get it into a dyamic textField it gets the first one and not changing as i select different item in the listbox. sure there is a way. also i want to make it clickable so it go to a web page.

View 1 Replies

ActionScript 3.0 :: Controlling Dynamic MCs With XML Data?

May 16, 2010

I'm pretty new to AS3 but have a project with a very tight turnaround here, having been lumbered with it after a guy from work got taken ill. The basic idea is a visualisation of an XML feed, using the data pulled in to control the behaviour of movieclips. So far I have this;

[Code]...

View 0 Replies

ActionScript 2.0 :: Loading Data Into Dynamic Box

May 15, 2007

I've created a piece of code that will send some info off to be inserted into a database and then it's recordID will be returned to flash. I'm trying to put the returned id into a dynamic text field but for some reason it's not going. I was wondering if someone could have alook at my code and let me know if I'm doing something wrong. The recordID is being returned to Flash as it's appearing in the trace.

[Code]...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved