Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Table With Tabular Data Component


hai all,

Presently i am working on displaying Data in a tabular format from xml file,in flash
can anyone give me a jump start?
do we have any help regarding this...
how to create tables and so....

Please....Please...
Thanx in advance..




ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 05-28-2004, 11:14 AM


View Complete Forum Thread with Replies

Sponsored Links:

Tabular Data
Hey there, can someone show me how to make a Table 2-dimensional. (24 columns and x rows)

for the amount of records is the amount of rows.

using ASP, or PHP.

View Replies !    View Related
Tabular Data
hi
I would like to req a tutorial on how to display data from a xml file in a tabular sturcture

for ex:
|name|age|country|
| | | |

thx

View Replies !    View Related
Tabular Data In Flash
Hiyo! Working on some new projects using flash to create the entire site. Now I have some tabular data I need to present in this site, and was trying to think up ways to place the data without drawing each and every freaking table.

Any thoughts? Obviously I could spend thousands and get macromedia flex running on our servers, but that is not viable right now....

Thanks.

View Replies !    View Related
Tabular Data In Dynamic Text
is there a way to format the folowing as tabular data??

Currently we are using spaces, but this is not accurate.


Code:
myReturn = "<b>Performance Analysis</b><br><br>";
myReturn += "Question Type Accuracy Percent<br>";
if(ty_number>0){
//create text for ty number
myReturn += "Number Theory ("+ty_numberRight+"/"+ty_number+") "+Math.round(ty_numberRight/ty_number)*100+"%<br>";
}
if(ty_data>0){
//create text for ty number
myReturn += "Data Sufficiency ("+ty_dataRight+"/"+ty_data+") "+Math.round(ty_dataRight/ty_data)*100+"%<br>";
}if(ty_percentage>0){
//create text for ty number
myReturn += "Percentages ("+ty_percentageRight+"/"+ty_percentage+") "+Math.round(ty_percentageRight/ty_percentage)*100+"%<br>";
}if(ty_algebra>0){
//create text for ty number
myReturn += "Algebra ("+ty_algebraRight+"/"+ty_algebra+") "+Math.round(ty_algebraRight/ty_algebra)*100+"%<br>";
}if(ty_geometry>0){
//create text for ty number
myReturn += "Geometry ("+ty_geometryRight+"/"+ty_geometry+") "+Math.round(ty_geometryRight/ty_geometry)*100+"%<br>";
}if(ty_arithmetic>0){
//create text for ty number
myReturn += "Arithmetic ("+ty_arithmeticRight+"/"+ty_arithmetic+") "+Math.round(ty_arithmeticRight/ty_arithmetic)*100+"%<br>";
}if(ty_work>0){
//create text for ty number
myReturn += "Work / Rate ("+ty_workRight+"/"+ty_work+") "+Math.round(ty_workRight/ty_work)*100+"%<br>";
}if(ty_statistics>0){
//create text for ty number
myReturn += "Statistics ("+ty_statisticsRight+"/"+ty_statistics+") "+Math.round(ty_statisticsRight/ty_statistics)*100+"%<br>";
}if(ty_grouping>0){
//create text for ty number
myReturn += "Grouping ("+ty_groupingRight+"/"+ty_grouping+") "+Math.round(ty_groupingRight/ty_grouping)*100+"%<br>";
}if(ty_motion>0){
//create text for ty number
myReturn += "Motion ("+ty_motionRight+"/"+ty_motion+") "+Math.round(ty_motionRight/ty_motion)*100+"%<br>";
}if(ty_ratio>0){
//create text for ty number
myReturn += "Ratio & Proportion ("+ty_ratioRight+"/"+ty_ratio+") "+Math.round(ty_ratioRight/ty_ratio)*100+"%<br>";
}if(ty_progressions>0){
//create text for ty number
myReturn += "Progressions ("+ty_progressionsRight+"/"+ty_progressions+") "+Math.round(ty_progressionsRight/ty_progressions)*100+"%<br>";
}if(ty_symbols>0){
//create text for ty number
myReturn += "Symbols ("+ty_symbolsRight+"/"+ty_symbols+") "+Math.round(ty_symbolsRight/ty_symbols)*100+"%<br>";
}if(ty_probability>0){
//create text for ty number
myReturn += "Probability & Combinations ("+ty_probabilityRight+"/"+ty_probability+") "+Math.round(ty_probabilityRight/ty_probability)*100+"%<br>";
}

return myReturn;

View Replies !    View Related
Displaying Tabular Data In Flash
Hey everyone.

1. What's the best way to display tables in Flash? ie- like a resume that has columns and rows.

2. And is there a way to make certain words in the table into buttons that have full control within the movie?

Thanks in advance

View Replies !    View Related
Displaying External Data In A Tabular Format
if you go to the "tour" page on this site: http://www.joelengle.com/joelengleindex.html you'll see a list of all of his upcoming shows in a table that scrolls. i would like to do something similar and i'm using php to get all of the event info.

if anyone could help me with this, it would be great. thanks.

View Replies !    View Related
How To Fetch Data From A Table?
I am newbie and I have no idea how to do this. I have a table (Excel File) about 1000 rows and 3 columns.
I want to load this table to the Flash and then be able to fetch data by referring to the first column.
I am grateful for a tip to how to this simply. Thanx.






























Edited: 01/17/2007 at 06:42:30 AM by Kia70

View Replies !    View Related
[AS3] Working With Table Data
&I'm using remoting to grab tons of data from a database.

For previous projects, the data was parsed into and XML then sent to me via webservice. Now I just get the whole bloody table.

It's the kind of data one might generally bind to a DataGrid - but I don't need to display the data, I just need to parse it and use it.

What's the best way of going about handling this type of data? Basically it's a bunch of Associative Arrays, Objects and such right? Should I use a Dictionary? It's all kinda Greek to me.

Here is a sampling of what I'm getting.

//the result function

ActionScript Code:
private function onResult(event:ResultEvent):void {
            trace("onResult: " + event.result);
           
            for(var param in event.result){
                trace("
");
                trace(param +": " + event.result[param]);
                for(var arg in event.result[param]){
                    trace(arg +": ; + event.result[param][arg]);
                    for(var p in event.result[param][arg]){
                        trace(p +": " + event.result[param][arg][p]);
                    }
                }
            }
            trace("

");

            for(var param in event.result.Product.serverInfo.initialData){
                for(var arg in event.result.Product.serverInfo.initialData[param]){
                    trace(typeof(event.result.Product.serverInfo.initialData[param][arg]) + " " + arg +": " + event.result.Product.serverInfo.initialData[param][arg]);
                }
            }
        }


//the trace output




Product: [object Object]
serverInfo: [object Object]
id: dc1e25bd-da77-41b0-ab14-69cc675a4231
pagingSize: 1
columnNames: Product_Id,Parent_Id,Name,SVG_Path,Decription,Sub_Description,IsDigital,Color,Description
serviceName: Weborb.Reader.Dataset.RemotingDataSet
totalCount: 1
cursor: 1
initialData: 25222,7318,Circle Label Test 2,M828.15,396.15h-828v-396h828V396.15z,,,true,#000000,
version: 1

number 0: 25222
number 1: 7318
string 2: Circle Label Test 2
string 3: M828.15,396.15h-828v-396h828V396.15z
object 4: null
string 5:
boolean 6: true
string 7: #000000
string 8:

And here is how I'd like to parse said returned data for my own usage inside Flash:


ActionScript Code:
var product_1:Object = {path:"M828.15,396.15h-828v-396h828V396.15z",id:25222,label:"Circle Label Test 2",digital:true,color:#000000};
 

View Replies !    View Related
Dynamic Data Table Generator
Hi Guys,

I'm trying to find any AS scripts or examples files that can help me build a dynamic data table generator in flash. Ultimately the generator will be XML driven. The tables have varying columns, rows, labels and data too.

If anyone could point in me the right way, advice, tips then I'd really appreciate it.

Thanks,

Steven.

View Replies !    View Related
Display Table Data In Flash
Hi, I have been searching for a simple script and cant seem to get anywhere.
I have a script I'm trying to get to work. I just want to show all rows from one field in a table. Mysql, PHP, Flash 8. Please can someone help me, I'm pulling my hair out trying to get a simple task to work. I am new to databasing with flash. Here is Mysql info:
Tablename: "users_online"
Fieldname: "usersonline"
Flashfile: "show_usersonline"
PHPfile: "users_online"
Here is my PHP code:

PHP Code:



<?
$server = "mydbserver";
$user = "dbusername";
$pass = "dbpassword";
$database = "dbname";
$tableName = "users_online";
$conn = @mysql_connect($server,$user,$pass);
$database = @mysql_select_db($database,$conn);
$query = @mysql_query("SELECT * FROM $tableName ORDER BY posted desc");
$total_rows = @mysql_num_rows($query);
$counter = 0;
while($myNewsData = @mysql_fetch_array($query)){
    $id = $myNewsData["id"];
    $title = $myNewsData["title"];
    $body = $myNewsData["body"];
    $posted = strftime("%d-%m-%y",  $myNewsData['posted']);
    $counter++;
    print("&news_data$counter=$id|$title|$body|$posted");
}
print("&total=$total_rows");

?>




Here is my Flash 8 code:

Code:
var receiver:LoadVars = new LoadVars();
news_txt.htmlText = "loading news data...";
receiver.onLoad = function(ok){
if(ok){
news_txt.htmlText = "";
for(var i =1;i<=receiver.total;i++){
receiver["dataPacket"+i] = receiver["news_data"+(i)].split("|");
var _id:String = receiver["dataPacket"+i][0];
var _title:String = receiver["dataPacket"+i][1];
var _body:String = receiver["dataPacket"+i][2];
var _posted:String = receiver["dataPacket"+i][3];
delete(receiver["news_data"+i]);
news_txt.htmlText = (_title + "<br/>" + _body + "<br/>" + _posted + "<br/><br/>");
}
}else{
news_txt.htmlText = "no news data was found!";
}
}
receiver.sendAndLoad("http://www.mysite.com/users_online.php", receiver, "POST");
Here is what I get when open PHP in browser:

Quote:




&news_data1=3|Another tutorial added!|A new tutorial was added about integrating Flash, php and MySql.|11-10-05&news_data2=2|Awesome affiliate link added!|Checkout this great affiliate link where you can earn $5.00 dollar per new user you add! |28-09-05&news_data3=1|New Flash Article Posted!!|Today a new Flash article was posted in our tutorial section. We hope you like it and will come back for more at www.primevector.nl|31-12-69&total=3




Database fields have sample data in them.

When i open the show_usersonline.swf online it says:

Quote:




Loading news data...




then a few seconds go by then reads:

Quote:




no news data found...




I realize all of you are busy helping with what you can. I appreciate any help I can get with this. Thanks in advance guys. Peace out for now.

View Replies !    View Related
Is It XML I Need To Fetch Data From A Table In A File?
I am newbie and I have no idea how to do this. I have a table (Excel File) about 1000 rows and 3 columns.
I want to load this table to the Flash and then be able to fetch data by referring to its first column.
I am grateful for a tip to how to this. Thanx

View Replies !    View Related
Sending Data / Highscore Table
Hey board!

This is my first post here. I hope someone can help me. I am looking for a tutorial on how to create a Highscore table for a flash game. Is this possible? Or if anyone knows, just tell me how to do it.

I know pretty much actionscript, its just that I havent had to do anything like this before and my deadline is getting closer and closer. I know how to GET external info... But how about sending?

/Daniel

View Replies !    View Related
Dynamic Data Table Generator
Hi Guys,

I'm trying to find any AS scripts or examples files that can help me build a dynamic data table generator in flash. Ultimately the generator will be XML driven. The tables have varying columns, rows, labels and data too. Right now I'm just trying to work out the AS that generates the table; I can rewire it to use the xml later on.

If anyone could point in me the right way, advice, tips then I'd really appreciate it.

Thanks,

Steven.

View Replies !    View Related
Sending Data / Highscore Table
Hey board!

This is my first post here. I hope someone can help me. I am looking for a tutorial on how to create a Highscore table for a flash game. Is this possible? Or if anyone knows, just tell me how to do it.

I know pretty much actionscript, its just that I havent had to do anything like this before and my deadline is getting closer and closer. I know how to GET external info... But how about sending?

/Daniel

View Replies !    View Related
Display Table Data In Flash
Hi, I have been searching for a simple script and cant seem to get anywhere.
I have a script I'm trying to get to work. I just want to show all rows from one field in a table. Mysql, PHP, Flash 8. Please can someone help me, I'm pulling my hair out trying to get a simple task to work. I am new to databasing with flash. Here is Mysql info:
Tablename: "users_online"
Fieldname: "usersonline"
Flashfile: "show_usersonline"
PHPfile: "users_online"
Here is my PHP code:

PHP Code:





<?
$server = "mydbserver";
$user = "dbusername";
$pass = "dbpassword";
$database = "dbname";
$tableName = "users_online";
$conn = @mysql_connect($server,$user,$pass);
$database = @mysql_select_db($database,$conn);
$query = @mysql_query("SELECT * FROM $tableName ORDER BY posted desc");
$total_rows = @mysql_num_rows($query);
$counter = 0;
while($myNewsData = @mysql_fetch_array($query)){
    $id = $myNewsData["id"];
    $title = $myNewsData["title"];
    $body = $myNewsData["body"];
    $posted = strftime("%d-%m-%y",  $myNewsData['posted']);
    $counter++;
    print("&news_data$counter=$id|$title|$body|$posted");
}
print("&total=$total_rows");

?>






Here is my Flash 8 code:

Code:

var receiver:LoadVars = new LoadVars();
news_txt.htmlText = "loading news data...";
receiver.onLoad = function(ok){
if(ok){
news_txt.htmlText = "";
for(var i =1;i<=receiver.total;i++){
receiver["dataPacket"+i] = receiver["news_data"+(i)].split("|");
var _id:String = receiver["dataPacket"+i][0];
var _title:String = receiver["dataPacket"+i][1];
var _body:String = receiver["dataPacket"+i][2];
var _posted:String = receiver["dataPacket"+i][3];
delete(receiver["news_data"+i]);
news_txt.htmlText = (_title + "<br/>" + _body + "<br/>" + _posted + "<br/><br/>");
}
}else{
news_txt.htmlText = "no news data was found!";
}
}
receiver.sendAndLoad("mysite/users_online.php", receiver, "POST");


Here is what I get when open PHP in browser:
Quote: &news_data1=3|Another tutorial added!|A new tutorial was added about integrating Flash, php and MySql.|11-10-05&news_data2=2|Awesome affiliate link added!|Checkout this great affiliate link where you can earn $5.00 dollar per new user you add! |28-09-05&news_data3=1|New Flash Article Posted!!|Today a new Flash article was posted in our tutorial section. We hope you like it and will come back for more at
Database fields have sample data in them.

When i open the show_usersonline.swf online it says:
Quote: Loading news data...
then a few seconds go by then reads:
Quote: no news data found...
I realize all of you are busy helping with what you can. I appreciate any help I can get with this. Thanks in advance guys. Peace out for now.

View Replies !    View Related
Formatting Data In A Table Type View....
Ok so connecting flash mx to a cfc, I have a recordset that is returned, but I am having problems getting it formatted in a "table" like view, anyone have any suggestions?

View Replies !    View Related
Tree Inside A Table Data Grid
How can i insert a tree inside a data grid component. I donot have any experience in actionscript coding. I can only modify the existing code to suit my purposes.

Can anyone show me the way to do this in Flash MX. Each node of the tree should correspond to a row in the data grid. This is similar to TreeTable in JAVA. [if you're familiar with that].

Every time a tree is collapsed, the data grid should expand and display the hidden rows of the that node of the tree.

Hope I'm clear in my request.

Please upload some working example.

Thanks for the effort.

JV.

View Replies !    View Related
Simple Show Table Data In Flash
Hi, I have been searching for a simple script and cant seem to get anywhere.
I have a script I'm trying to get to work. I just want to show all rows from one field in a table. Mysql, PHP, Flash 8. Please can someone help me, I'm pulling my hair out trying to get a simple task to work. I am new to databasing with flash. Here is Mysql info:
Tablename: "users_online"
Fieldname: "usersonline"
Flashfile: "show_usersonline"
PHPfile: "users_online"
Here is my PHP code:

PHP Code:



<?$server = "mydbserver";$user = "dbusername";$pass = "dbpassword";$database = "dbname";$tableName = "users_online";$conn = @mysql_connect($server,$user,$pass);$database = @mysql_select_db($database,$conn);$query = @mysql_query("SELECT * FROM $tableName ORDER BY posted desc");$total_rows = @mysql_num_rows($query);$counter = 0;while($myNewsData = @mysql_fetch_array($query)){    $id = $myNewsData["id"];    $title = $myNewsData["title"];    $body = $myNewsData["body"];    $posted = strftime("%d-%m-%y",  $myNewsData['posted']);    $counter++;    print("&news_data$counter=$id|$title|$body|$posted");}print("&total=$total_rows");?>




Here is my Flash 8 code:

Code:
var receiver:LoadVars = new LoadVars();
news_txt.htmlText = "loading news data...";
receiver.onLoad = function(ok){
if(ok){
news_txt.htmlText = "";
for(var i =1;i<=receiver.total;i++){
receiver["dataPacket"+i] = receiver["news_data"+(i)].split("|");
var _id:String = receiver["dataPacket"+i][0];
var _title:String = receiver["dataPacket"+i][1];
var _body:String = receiver["dataPacket"+i][2];
var _posted:String = receiver["dataPacket"+i][3];
delete(receiver["news_data"+i]);
news_txt.htmlText = (_title + "<br/>" + _body + "<br/>" + _posted + "<br/><br/>");
}
}else{
news_txt.htmlText = "no news data was found!";
}
}
receiver.sendAndLoad("http://www.mysite.com/users_online.php", receiver, "POST");
Here is what I get when open PHP in browser:

Quote:




&news_data1=3|Another tutorial added!|A new tutorial was added about integrating Flash, php and MySql.|11-10-05&news_data2=2|Awesome affiliate link added!|Checkout this great affiliate link where you can earn $5.00 dollar per new user you add! |28-09-05&news_data3=1|New Flash Article Posted!!|Today a new Flash article was posted in our tutorial section. We hope you like it and will come back for more at www.primevector.nl|31-12-69&total=3




Database fields have sample data in them.

When i open the show_usersonline.swf online it says:

Quote:




Loading news data...




then a few seconds go by then reads:

Quote:




no news data found...




I realize all of you are busy helping with what you can. I appreciate any help I can get with this. Thanks in advance guys. Peace out for now.

View Replies !    View Related
How To Load Data From Mysql Table To Combobox
Hi,
How do I load data from a mysql table to a combobox using php and AS ?

I do know how to retrieve the data from my table needed but how is this inserted the combobox ?

Assume you have combobox1 and combobox2.
When I, in combobox1 select: 'cars' I would now like the script to search my table for cars in the column 'stuff' and then insert the result in combobox2.

I hope you can help or have some suggestions


best regards

View Replies !    View Related
Someone Help Me... I Have Problem With Sending Data To My Mysql Table
<?
session_start();
$conn = mysql_connect("XXX", "XXX", "XXX");
mysql_select_db("XXX",$conn);



if ($_POST['score']) {
$score = $_POST['score'];
}
print "status=Finished";

$sql = "select * from XXX where user_name = 'XXX'";
$sql_res = mysql_query($sql,$conn) or die(mysql_error());
srand ((float) microtime() * 10000000);
while ($stats = mysql_fetch_array($sql_res)) {
$gold = $stats['cash'];


}

$gold = $gold + $score;


$q = "update usergame set cash = '$gold' where user_name = '$HTTP_SESSION_VARS[user_name]'";
mysql_query($q);

?>

$gold outputs as 0
$score which is the score from the flash game works!
cash is updated to the same as score... because $gold doesn't register!
help i donno why this does htis

View Replies !    View Related
How To Load Data From Mysql Table To Combobox
Hi,
How do I load data from a mysql table to a combobox using php and AS ?

I do know how to retrieve the data from my table needed but how is this inserted the combobox ?

Assume you have combobox1 and combobox2.
When I, in combobox1 select: 'cars' I would now like the script to search my table for cars in the column 'stuff' and then insert the result in combobox2.

I hope you can help or have some suggestions


best regards

View Replies !    View Related
Table Component For FP 6
I have had a free HTML component for Flash 6 which includes a table component. But i am unable to find it now.
Can some one help me finding a free table component for Flash 6.

View Replies !    View Related
How Do I Save Data To Mysql And How Do I Make A Table In Flash
how do i save data to mysql and how do i make a table in flash

View Replies !    View Related
Using Shared Object Data To Populate A MySQL Table
I've got a sequence of numbers in a Shared Object that I would like to write to an MySQL database table. I'm thinking that the data items in the SO should be turned into an array:


Code:
var soldItemSO:SharedObject = SharedObject.getLocal("soldItems", "/");
var soldItemNum:Array = [];
for (var i:Number = 1; i <= 10; i++) {
if (soldItemSO.data[i] != undefined) {
soldItemNum[i - 1] = soldItemSO.data[i];
}
}
And then some code to send the vars:


Code:
var LoadVarsSender:LoadVars = new LoadVars();
LoadVarsSender.onLoad = function(success:Boolean) {
if (success) {
trace("success");
}
LoadVarsSender.soldItem = soldItemNum; //Problem spot
LoadVarsSender.sendAndLoad("writeToDbase.php",LoadVarsSender,"POST");
}
And PHP to write to the database:

Code:
(writeToDbase.php)

<?php
$soldItem = $_POST['soldItem'];

$link = mysql_connect("localhost", "root","password") or die ("Unable to connect to database.");
mysql_select_db("gallery") or die ("Unable to select database.");
$sqlstatement= "INSERT INTO products (artworks) VALUES ('$artworks')";
mysql_close($link);
?>
I'm confused about how I would write individual rows into the database table since "soldItemNum" is going to have a number of data slots, and each slot should end up as a single row in the database table. Does that make sense? I'm not sure where I should loop through the array of items.

View Replies !    View Related
How Do I Save Data To Mysql And How Do I Make A Table In Flash
how do i save data to mysql and how do i make a table in flash

View Replies !    View Related
Attach Check Boxes In Component Table
I am trying to modify this table component that I have downloaded..
I want to add another column for the checkboxes where it will be in each row....
Can anyone help me what should i modify/add into the script for the checkboxes??
I have attach a zip file on the table example...

View Replies !    View Related
Mx.data.components - Unable To Declare Data Component Types In External Class Files
Hi all,

FlashMX 2004, v7.2:

I am trying to declare instances of data-components (DataSet and DataHolder) in external classfiles, but Flash can't find the sourcefiles for any of the data component classes in the classpath.

According to the help-files, the classname for the DataHolder component is:

Code:
mx.data.components.DataHolder


Similarly, the classname for the ComboBox component is:
mx.controls.ComboBox

Code:
mx.data.components.DataHolder


In the following, the ComboBox gets declared, and the DataHolder generates a "Class can't be loaded" error:


Code:
class my_class extends MovieClip {

var my_cbox:mx.controls.ComboBox;
var my_data:mx.data.components.DataHolder;

function my_class() {
// constructor function
}

}


Sure, it fails because there is no "components" folder in the mx.data folder (at least on my system), and I have been unable to find any DataHolder.as file anywhere either, even though the documentation gives examples that reference the mx.data.components-folder for various data components. I even tried re-installing to make sure I had not accidentally deleted any classfiles, but still no luck.

Am I missing something really obvious here? Does anyone know how to successfully import, declare or otherwise make use of data-components in external class files? Any help greatly appreciated.

View Replies !    View Related
Tabular Display
I'm new to this

Is there a straghtforward way to display scrolling tabular data in a format similar to an Excel spreadsheet? It would be good to be able to drill down from individual rows but the main thing is to display them.

Thanks...

View Replies !    View Related
Printing From A Tabular Grid
Is it possible to print text only from a tabular grid (without the grid background)

Regards

View Replies !    View Related
Tabular Folder Menus
Meow ^.^

Ok I'm having a hellova struggle with this one. I want a pull out folder-style menu that scrolls out WITH the content as well. When one tab is out and another is clicked, I want the tab thats no longer used to close itself.

Here's what I have so far, and frankly it's a mess.. www.freewebs.com/feathercat

I'd really appreciate help here since I'm pulling my fur out with the fraustration.

Cat.

View Replies !    View Related
Tabular Folder Menus
Meow ^.^

Ok I'm having a hellova struggle with this one. I want a pull out folder-style menu that scrolls out WITH the content as well. When one tab is out and another is clicked, I want the tab thats no longer used to close itself.

Here's what I have so far, and frankly it's a mess.. www.freewebs.com/feathercat

I'd really appreciate help here since I'm pulling my fur out with the fraustration.

Cat.

View Replies !    View Related
How To Use Data Component To Bind Data From Sql
i'm having problem.is there any one can guide me and show me step by step to bind data from sql using data component such as data set and xml connector.I relly don't have idea how to done that.tq?

View Replies !    View Related
High Score Table (empty Table) HELP
Hey guys,

[Flash8]

Basically I’m making a high score table and the problem I am having is that for some reason I can't see any of the information from my database table. I believe my php file is correct, I think the prob is somewhere in my action script but I just can't see it.

I have attached the flash file and the php file. My database table was on wamp and have attached a screen shot of the table.

Flash file:
http://rapidshare.com/files/10804329...score.zip.html



Image of database table:
http://img225.imageshack.us/img225/2702/databasetm2.jpg


Action script:

stop()

lv.onLoad = function(){
numRows = lv.nRows;
for(var n=0; n!=numRows; n++){
obj = {};
obj.Name = lv['name'+n];
obj.N0 = lv['number_of_minimum_attempts'+n];
obj.N1 = lv['number_of_attempts'+n];
obj.N2 = lv['number_of_wrong_attempts'+n];
obj.D = lv['date_time'+n];
arr[n] = obj;
}
makeFields(numRows); // show all results
};

function makeFields(num){
for(var n=0;n!=num;n++){
_root["name"+n].text = arr[n].Name; name2.text, name3.text, name4.text, name5.text, name6.text, name7.text, name8.text, name9.text, name10.text
_root["minimum"+n].text = arr[n].N0; minimum2.text, minimum3.text, minimum4.text, minimum5.text, minimum6.text, minimum7.text, minimum8.text, minimum9.text, minimum10.text
_root["attempts"+n].text = arr[n].N1; attempts2.text, attempts3.text, attempts4.text, attempts5.text, attempts6.text, attempts7.text, attempts8.text, attempts9.text, attempts10.text
_root["wrong"+n].text = arr[n].N2; wrong2.text, wrong3.text, wrong4.text, wrong5.text, wrong6.text, wrong7.text, wrong8.text, wrong9.text, wrong10.text
_root["date"+n].text = arr[n].D; date2.text, date3.text, date4.text, date5.text, date6.text, date7.text, date8.text, date9.text, date10.text
}
}




Thanks guys

View Replies !    View Related
Output To An HTML File In A Tabular Format From Flash
HI all,
This is wht I want to do, my flash file has a few input text fields, when i run the movie in the standalone or the web n populate the text fields wit values , such as supposing im adding 2 numbers n on the click of a button "A" im adding them n the output is shown in a 3rd text field.
Now there is a second button "B" and when I click on it an HTML file is created n shows the output of my additions, i.e the two numbers and their total in a tabular format.
Well i know how an HTM file can be done on the click of the button , but u guys have to help me out on the rest.
<< Heres the code for generating the HTML file >>

on (release) {
fscommand ("save", "nameoffile.html");
}
Now i dont know wether this code can be used to my requirements as mentioned above.

Thnx,
Eric.

View Replies !    View Related
Getting Data From A Component
This has got to be really simple, but thus far I just can't figure it out. The situation is I have an Listbox component that becomes populated with items (in the Label) and prices (in the Data). All I want is to have a sum of all the Data values in the listbox in a dynamic text field underneath.

So using this code:


Code:

for (i=0;i<=_root.listNeeds.length;i++) {
if (_root.listNeeds.getItemAt(i).data != undefined) {
sumNeeds += _root.listNeeds.getItemAt(i).data;
}
}
successfully seems to get the number set in the 'data' array in the listbox object (according to a trace). But when I try to add them together, it constantly claims "NaN." I've tried wrapping the above expression in a Number.(), to no avail.

View Replies !    View Related
Using Component Data
Hi,

MY PROBLEM:

I have two Combo Box (CB1, CB2) with diferent label and data values and a button two call a function that will multiplicate the data values in the two CB's and show the result in a dynamic text box (DB).

Do you know about any posted thread's, tutorials, examples, site's that can help me doing something like this?

DB_result = (CB1*CB2)

View Replies !    View Related
Using Component Data
Hi,

MY PROBLEM:

I have two Combo Box (CB1, CB2) with diferent label and data values and a button two call a function that will multiplicate the data values in the two CB's and show the result in a dynamic text box (DB).

Do you know about any posted thread's, tutorials, examples, site's that can help me doing something like this?

DB_result = (CB1*CB2)

View Replies !    View Related
Using Component Data
Hi,

MY PROBLEM:

I have two Combo Box (CB1, CB2) with diferent label and data values and a button two call a function that will multiplicate the data values in the two CB's and show the result in a dynamic text box (DB).

Do you know about any posted thread's, tutorials, examples, site's that can help me doing something like this?

DB_result = (CB1*CB2)

View Replies !    View Related
Flash .swf Within Table Cell Controlling Other Items In Table Cell...
This is a bit complicated to explain, I hope I put it across ok, lol. It will help if you download the .zip file to see what I'm going on about.

Basically, I have a table with cells. At the top in the middle cell is a .swf file which is red and to either side are 2 blue JPEG images in separate cells.

I would like to know how to refer to those 2 blue JPEG images from within the .swf file.

In the past I have managed (coded within .swf files) to refer to new windows, _parent and even frames. Now all I need to do is crack referring to image ID's.

The 2 blue JPEG image ID's are : 'HeaderLeft' and 'HeaderRight'

The HTML page holding the Tables is : TableExample4.html

The red .swf file is : Menu1.swf


HERE IS THE CRUX OF THE ISSUE - this is the code on the Hit Zone of a button within the Flash .swf file which is meant to refer to the blue image's ID.

on (release) {
getURL("SampleLines.jpg", "HeaderLeft");
getURL("SampleLines.jpg", "HeaderRight");
}

SampleLines.jpg is what I want to be the replacement image. HeaderLeft and HeaderRight are the image ID tags.

At present it is not working. It should surely ! I have no idea why.



If I wanted the image to replace the parent, it's simply :

on (release) {
getURL("SampleLines.jpg", "_parent");
getURL("SampleLines.jpg", "_parent");
}

If I wanted the image to appear in a new window, it's simply :

on (release) {
getURL("SampleLines.jpg", "newWindow");
getURL("SampleLines.jpg", "newWindow");
}

If I wanted the image to appear in a frame, it's simply :

on (release) {
getURL("SampleLines.jpg", "Frame1");
getURL("SampleLines.jpg", "Frame1");
}

...So does anyone know what to do if I want the image to replace another image on the HTML page ?


I hope this makes sense !

Thanks.

View Replies !    View Related
04 Data Component References
Anyone know where I can find these? The trial download seems to ship without them.
Thanks,
Gaius

View Replies !    View Related
Data Gri Component Help Needed
i am trying to use the datagrid component
and to add to it my own methods
but when i try to acees some of the object that when using trace
i get for example :
_level0.grid.container.row0_mc.fCell1.labelField

but when i try to acees that path with my methods in side the data grid component it isnt working
why?
can any 1 help me?
thanks in advance
peleg

View Replies !    View Related
Getting Data Out Of A Combo Box Component
i thought it would be quite easy but i cant figure it out and have been scratching my head for days

i have a combo box called "timezone" that is held within a movie clip called "timezoneapp". my combo box has 8 labels and data values of "option1 - option8".

at the moment i am using the code...

if (_root.timezoneapp.timezone.getSelectedIndex().dat a=="option3") {
_root.feedback4 = "Correct";
_root.score++; }
else { _root.feedback4 = "Correct TimeZone not selected"; }

but this does nothing if i select the correct option (option3).

Is there a better way, ie to select the data number of the row (which would be "2" as it starts from 0-7) ?

pls help...

thanks

View Replies !    View Related
Data Grid Component
Howdy,
I know somewhat as to what this does. I know that it shows data listed in a array on this component. And that it has the built-in ability to scroll if the content is too big to show all at once. But how exactly do program i nthe data? Mainly I'm using this as a way to show feed back with certain messages and hopefully a icon by the message depending on the message. Any ideas or comments would be greatly appericated

View Replies !    View Related
[F8] Binding Xml Data To A Component
I have successfully bound xml content to a component - a loader.

I have a loader that loads a .jpg dependant on the data in the xml feed which is in the form of filename.jpg

Is there a way to convert this so when the filename.jpg data is fed, the loader will load a different image like filename.swf instead of the default .jpg image?

There are about several different variables in the xml filename.jpg that can appear and I would like to condense them down to actually show about 10 different .swf movies instead dozens of different .jpgs.

Thanks in advance

View Replies !    View Related
Grabbing Data From A Component
Hello, I have a form with components. The info from the form is sent to a PHP script and processed. Everything works except I can not grab the data from the components. The only thing I need to know, which I've spent hours trying to figure out, is how to grab the info from the components and send them to the PHP processing script. My code works for all form fields except the components.

Here's my code:
Code:
stop();
var LV_out:LoadVars = new LoadVars();
var LV_in:LoadVars = new LoadVars();
LV_in.onLoad = function(success) {
if (success) {
gotoAndPlay("Display");
} else {
trace ("Error loading data into flash");
gotoAndPlay("Error");
}
}
//----------
submit_mc.onRelease = function() {

var custname:String = t1.text;
LV_out.billing = Fbilling.selectedItem.data;
LV_out.apptype = Fapptype.ComboBox.selectedItem.data;


LV_out.loantype = Floantype.selectedItem.data;
LV_out.purpose = Fpurpose.selectedItem.data;

etc . . .

LV_out.sendAndLoad("register4.php", LV_in, "POST");
gotoAndStop("Loading");
mySO.data.voted = "yes";
mySO.flush();
};
I also tried:
Code:
Fapptype_a= Fapptype.getSelectedItem().data;
But when I try to send the variable Fapptype_a to the php script, there is no data.

Can anyone help?

thanks

View Replies !    View Related
Component Data Sharing
Hi,

I don't know if the title I have given to this message is proper or not..anyway..I'll describe my prolem. Right now I am building a flash site as my project work. The site is on a multiplex theatre and I have built a form for it's online ticket booking page. There are 4 combo box fields for selecting movie, ticket type, date and time. What I want is when user select a movie in the 'movie' combo box, based on the selection, the 'time' combo box's labels will be changed accordingly, as different movie has different timings.

Can it be done? Can anyone please help me with the actionscript code that needed to achieve this?? Thanks in advance...

View Replies !    View Related
Data Grid Component
I have a data grid that i am populating with info from an xml file. I am trying to rename the columns, but every time i do it just creates more columns. so instead of having 6 columns i now have twelve.. please help


ActionScript Code:
stop();

dataXML = new XML();
dataXML.ignoreWhite = true;
dataXML.onLoad = parse;

dataXML.load("LicData.xml");

dataArray = new Array();

function parse() {
    rowData = dataXML.firstChild.childNodes[3].firstChild.childNodes;
    numRows = rowData.length;
    trace(numRows)
    for(i=1; i<numRows; i++) {
        colData = dataXML.firstChild.childNodes[3].firstChild.childNodes[i].childNodes;
        numCols = colData.length;
       
        temp = i - 1;
       
        dataArray[temp] = defineModel();
       
        dataArray[temp].companyname = dataXML.firstChild.childNodes[3].firstChild.childNodes[i].childNodes[0].firstChild.firstChild.toString()
        dataArray[temp].date = dataXML.firstChild.childNodes[3].firstChild.childNodes[i].childNodes[1].firstChild.firstChild.toString()
        dataArray[temp].randd = dataXML.firstChild.childNodes[3].firstChild.childNodes[i].childNodes[2].firstChild.firstChild.toString()
        dataArray[temp].product = dataXML.firstChild.childNodes[3].firstChild.childNodes[i].childNodes[3].firstChild.firstChild.toString()
        dataArray[temp].revenue = dataXML.firstChild.childNodes[3].firstChild.childNodes[i].childNodes[4].firstChild.firstChild.toString()
        dataArray[temp].rr = dataXML.firstChild.childNodes[3].firstChild.childNodes[i].childNodes[5].firstChild.firstChild.toString()
    }
   
    populate();
}

function populate() {
   
    LicInfo_grd.dataProvider = dataArray;
   
}

function defineModel():Object {
    itemObj = new Object();
   
    itemObj = {companyname:"",
                date:"",
                randd:"",
                product:"",
                revenue:"",
                rr:""}
   
    return itemObj;
}

View Replies !    View Related
Recieving Component Data With Php
hello all,
i just got my mail form to send me the data to me via php and now am wondering how i get components to send me their data. I think this is a simple question yet couldnt find threads or tutorials on the web.

help is much appriatiated

View Replies !    View Related
Use Of Data Grid Component?
I'm trying to build a tool that allows users to select a bunch of products, and compares them next to each other. The products would be compared side by side in a table, but I need the columns of the table to dynamically change in width and allow the text to scroll so that the user can select anywhere from two to six products at a time.


Would the Data Grid component be good for this?

Any ideas. Please help!

View Replies !    View Related
Data Grid Component....
Hi,
I have a question regarding the Data Grid Component. I want to trigger a function to call the XML into a txt label field. What is the right syntax for the code needed.
This is what I have so far. The var name for my label is client..this obviously does not work...

_root.myportReceiveXMLConnector.trigger();
listenerObject = new Object();
listenerObject.cellPress = function(event){
client.text(firstNode(0).childNode(0));
myportDataGrid.addEventListener("cellPress", listenerObject);
}

View Replies !    View Related
ActionScript Or Component? Which Is The Best For XML Data?
I was very excited about the "XML-Driven Drop-Down Menu" tutorial, http://www.kirupa.com/developer/acti...pdown_menu.htm and I hoped to apply it with a database connection using the other tutorials in the Server Side & Flash section of the Kirupa tutorials for Flash. But my project also was to include a data display which required a DataGrid. And so I looked up the tutorial "Using the DataGrid Component", http://www.kirupa.com/developer/flash8/datagrid.htm. But this tutorial used ActionScript to generate an array that was used to populate the DataGrid. Naturally, I looked up other tutorials on applying XML to the DataGrid and in Flash 8 Professional, this is a very natural thing to do using components. It seemed to me that using components to reach and display my PHP generated XML was the quickest solution to my project.

However, I am having considerable difficulty trying to grasp how it is that data is managed by way of the component schema, especially in reference to the XMLConnector. If I use an XML file exported from MySQL, the XML file is not recognized at all like the examples provided by Macromedia's tutorials. If there is a way to make MySQL exported records show up in XMLConnector, I can see nothing in Macromedia's documentation that shows how to do it. Since I control how the XML is generated by way of the examples in Kirupa's tutorials, this is not a complete obstacle to my project. And, I am ready to give the project over to ActionScript completely. But the Components and the Component Inspector suggest useful tools and I remain tempted to struggle with them some more.

Which should I choose? Should I just leave the component interface alone and generate my objects with ActionScript? Or can I get all the results I want using the Component Inspector? If so, are there some better references on how to manage the schemas?

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved