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




Grid/Table Content Display



Does anybody have a link to a tutorial that explains how to display data in a grid/table style view. I'm trying to create a catalog (using xml), I know how to display the information retrieved from the xml file, I just don't know how to display it in a grid/table style. And also the next and previous buttons I got to work while showing one at a time (kirupa xml gallery tutorial).Here's an example of what I want to achieve:



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 10-11-2005, 05:42 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Positioning Movieclips In A Grid/table With AS
I need some help with positioning attached movieclips in a grid system. I want to place them in rows of 6, so the 7th attached clip should be placed say 100px below the first row. I can't quite figure out the looping system. Any advice or direction would be awesome. Here's my code so far.

code:
var totalBooks:Number;
var rootNode:XMLNode;
var photoXML:XML = new XML();
photoXML.ignoreWhite = true;
photoXML.onLoad = loadPhotoXML;
photoXML.load("../data/photos.xml");

function loadPhotoXML(_success:Boolean) {
if (_success) {
rootNode = this.firstChild;
totalBooks = rootNode.childNodes.length;
trace("totalBooks is " + totalBooks);
loadBooks();
} else {
trace("Error loading XML");
}
}

// create booksNav_mc to contain all the portfolio thumbnails
// loop through all the main nodes and create a thumb for each
function loadBooks() {
_root.createEmptyMovieClip("booksNav_mc", _root.getNextHighestDepth());
booksNav_mc._alpha = 0;
for (var i:Number = 0; i < totalBooks; i++) {
createBookThumbs(i);
}
}

// assign necessary variables for each thumb
// attach an instance of bookThumb_mc to booksNav_mc and space it accordingly
function createBookThumbs(_i:Number) {
var thumbName:String = "bookThumb_" + _i + "_mc";
var thumbXSpacing:Number = 85 * _i;
var thumbToLoad:String = rootNode.childNodes[_i].attributes.thumb;

booksNav_mc.attachMovie("bookThumb_mc", thumbName, booksNav_mc.getNextHighestDepth());
booksNav_mc[thumbName]._x = thumbXSpacing;
}

Help Needed About Grid/table In Actionscript
Hi,

I m new to flash. How to create a table/grid in flash lite using actionscript?

Is there datagrid component/control available in flash lite..using actionscript..

Can anyone pls help me? I am actually a .net developer.. so i m new to flash lite..and actionscript. Please anyone help me?

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.

How To Create A Grid/table Using Action Script?
Hi all,

As am new to Flash I need coding help to overcome the following issue, how can we draw a table with some numbers in Flash using action script ? What are the methods to be followed to attain the solution? As am working with flash lite datagrid is not supporting.


Thanks in advance,
Cbe.

How To Create A Table/grid Using Action Script?
Hi all,

Am in a need to create a table (looks like a grid) in flash using action script. As am new to flash i need coding help regarding this issue.

Thanks in advance,
Cbe

MySQL Table Display
hi peoples

simply a simple little flash that displays a mySQL tables.
For example in my tester i have

-----------------------
name ||||| email
-----------------------
matt............some@here.com
simon...........him@her.com

and so on

ALl i want it to make a nice list of all these names , and have them linking to the emial address.

This works fine, and the php script, requests the row number (eg 0 or 1 in this case, as there are only 2 rows) and returns:
name=matt&email=him@her.com

Which is fine, and using a duplicate movie clip, and create it all.
However i wont know the number of entries, so it has to cope with X amount of rows.

Hence made this:

for (rn=0; rn < numresults; rn++)
{
loadVariablesNum ("http://www.s3d.co.uk/testbed/get_table.php", 0, "GET");
nameArray[rn] = name;
emailsArray[rn] = email;
duplicateMovieClip(_root.tablebg, rn, rn);
setProperty(rn, _x, tableXPos);
setProperty(rn, _y, tableYPos);
tableYPos = tableYPos + 20;

}

Where "rn" is the row numer to get
Numresults is the number of row (already worked out before the for loop)

This works, apart from the variable, it only loads the first row. Id imagine that this is due to the speed of having to query the php x amount of times - which is hightly ineffienct, and doesnt work!

I changed my php script to output name0=matt&email0=matt@dsd.com&name1=simon&email1= dsd@dsd.com

this is fine, but i cant get flash to scroll though the variables

eg.
for(x=0; x<numresults; x++)
{
namesArray[x] = "name"+x
}
this doesnt work as in nameArray you just get "name0" rather than what the variable name0 is (eg matt)


There must be a easy way round this.

Many Thanks

Matt
www.s3d.co.uk

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.

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.

Fla Navigation With HTML Content In Table
Hello, I'm wondering if this can be done: I need to have a flash navigation bar at the top of the table, with HTML content in other parts of the table. I know this much can be done. However, i would like to be able to navigate through the different HTML content pages via the flash navigation bar, without reloading the flash bar every time i load a new HTML page. Can this be done, since they would be in the same table? Any example code would be great, as I am obviously just learning this stuff. Thanks!

eric

Linking Swf Files From A Table Of Content Swf
I am working with Flash MX Professional building some one-line training modules. I have a page (swf)that have table of content:

Scope
Key Definitions
Process Requirements
CIPS architecture
Document numbering scheme
Support System level process flow summary.

the above is on one swf page. My question is how do I create a link within an swf file being they are separate files. I want the employee to be able to click on any of the above title and the file will open. Can someone please help me.

Data Grid Display Bug CS3
I'm having problem with Data Grid Component leaving a color outline on the screen when I move out to another frame that does not contain the Grid component.

This Only happens if I load a swf containing the Grid into another movie.

Download Example

Run Movie1 and select an item from the grid. This will jump you to frame 5. This works fine.

Run Movie2 and click the button. This will load Movie1 into a mc. Now select and item, and when jump to frame 5 you'll see the green box appear...

Changing the theme halo blue/orange will leave blue/orange boxes.

If anyone out there has a fix. PLEASE let me know.
Thanks,

Grid-like Gallery Display
How do u go about creating a grid-like displayed gallery which displays about 6-10 thumbnails per page?

I know how to load the stuff dynamically through xml but I don't know how to get the layout that I want to achieve.

I've attached an image that I got off another forum that explains what the layout should look like. A small tutorial would help much more with the explanation of how to do ths and how to customize the amount of thumbnails per page.

Thanks in advanced guys :)

No Display Of Results In Data Grid
I have the following code. The logger shows that the connection to the remote service t is successful. If I dump the results of the CFC I get the data I'm looking for. I haven't done this in a while. Any ideas on why I'm not getting results in the datagrid?
Thanks.

//Import Stuff
import mx.remoting.*;
import mx.rpc.*;
import mx.services.Log;

//Data type the components
var name_txt:mx.controls.TextArea;
var myGrid_dg:mx.controls.DataGrid;

//Remoting Stuff

mx.remoting.debug.NetDebug.initialize();

var myLogger:Log = new Log( Log.DEBUG, "logger1" );

//override the default log handler
myLogger.onLog = function(message:String):Void{
trace("myLogger: " + message);
}

//Create the service
myService = new Service("

Image Grid For Thumbnail(s) Display
Hello,
Yes, it's been awhile. I'm currently working on a web page design where I would like to have a vertical grid for thumbnail images [10 per category or per page] (left of page), When an image is selected, it's displayed in the assigned "Display Area" (right side of page). This is a Image Gallery type assignment, NO SCROLLING necessary. Any flash transition effects would be a plus to enhance the design interaction. Any tutorials that I can view and learn from? Any guidance in this area would be appreciated. I'm still with Flash MX....

...IfOnlyiNu
Thanx

Random Display Of Images To Fill A Grid
I've got a grid of thumbnail images 14x6 so there are 84 tiny thumbnails in total. What I'm trying to do is display them randomly using a setInterval so evently after 84 loops there are all 84 thumbnails showing.

I'm thinking about placing them all on the stage to start with and then set visibility to none and then on each loop, turn the visibility on. That way, all 84 are in the right place, I just need to know how to display them in a random order.

Any ideas on how to get me started with the loop would be a great help.

Thanks Mark

Double Loop To Display Grid Of Boxes?
Just wondering what is missing in my code. I am trying to duplicate a single movie clip "boxes_mc" into 4 rows and columns. It duplicates fine horizontally but for some reason vertically it moves the boxes down the correct amount from the set initial x and y points but it doesn't show the boxes in all the rows. It has to be something simple that I am missing.

Thanks


Code:
function dupBoxes(){
var xSpacing:Number = 60;
var ySpacing:Number = 60;
var xStart:Number = 0;
var yStart:Number = 0;
var i:Number = -1;
var v:Number = 0;
while(++i < 5){
var j:Number = -1;
while(++j < 5){
++v;
var name:String = "box" + v;
_root.box_mc.duplicateMovieClip(name, v);
_root[name]._x = xStart + i * xSpacing;
_root[name]._y = yStart + j * ySpacing;
}
}
}
dupBoxes();
EDIT: I think i figured it out by adding a variable v, incrementing this under the first while loop and creating the string and duplicate name under this variable instead of i.

Quick question in regards to this double loop. Drawing these boxes on the screen is nice and dandy, now say I wanted to animate them fading in from left to right one column at a time. Would this require using an onEnterFrame built into the loop to fade in? What would be the best way to accomplish this?

THanks

Zooming And Panning A Continuous Grid Display ...Help
First Post ;)

I'm struggling trying to make a simple grid of vertical lines pan left or right and zoom in or out. I use a while loop to attach several instances of a vertical line MC and then use key press events (LEFT, RIGHT, UP, DOWN) to reposition the lines based on a preset zoom and pan speed.

Basically I can get the scrolling to function properly or the zooming but not both. The combination of continuous zoom and/or pan makes it difficult to keep track of the positions of lines at any given instance and therefore difficult to reposition them.

I would greatly appreciate any help or advice anyone might be able to offer. I have attached my code for reference as well. Thanks again.

Code:

_global.pSpeed = 10; // Horizontal pan speed  !!keep below hSpace
_global.zSpeed = 0.1; // zoom speed
_global.hSpace = 115; // Horiz space between vlines
_global.lBound = 45; // Left display boundary
_global.rBound = 505; // Right display boundary
_global.vLineCtr = 0; // vert. line counter
_global.scaleCtr = "min"; // time zoom scale (e.g. secs, minutes, hours)
_global.lPad = 0; // far left vLine space padding
_global.rPad = 0; // far right vLine space padding


fillGrid();

//fill display grid with vlines
function fillGrid() {
   while (lBound + vLineCtr*hSpace < rBound) {
      this.attachMovie ("vline", "vline" + vLineCtr, this.getNextHighestDepth());
      this["vline" + vLineCtr]._x = lBound + vLineCtr*hSpace;
      _global.vLineCtr = _global.vLineCtr + 1;
   }
   _global.rPad = rBound - this["vline" + (vLineCtr-1)]._x;
}

//keypress handlers
lo = new Object();//listener object
lo.onKeyDown = function() {

   //zoom in
   if (Key.isDown(Key.UP)) {
      _global.hSpace = _global.hSpace * (1 + zSpeed);
      zoomIn();
   
   //zoom out
   }else if (Key.isDown(Key.DOWN)){
      _global.hSpace = _global.hSpace * (1 - zSpeed);
      zoomOut();
   
   //pan left   
   }else if (Key.isDown(Key.LEFT)) {
      _global.lPad += pSpeed;
      _global.rPad -= pSpeed;
      if (_global.rPad < 0) {
         _global.rPad = hSpace + rPad;
      }
      for (i = 0; i < vLineCtr; i++) {
         _root["vline" + i]._x += pSpeed;
         if (_root["vline" + i]._x > rBound){
            _root["vline" + i]._x = lPad - hSpace + lBound;
            _global.lPad = _root["vline" + i]._x - lBound;
         }
      }
   
   //pan right   
   } else if (Key.isDown(Key.RIGHT)) {
      _global.lPad -= pSpeed;
      if (_global.lPad < 0) {
         _global.lPad = hSpace + lPad;
      }
      _global.rPad += pSpeed;
      for (i = 0; i < vLineCtr; i++) {
         _root["vline" + i]._x -= pSpeed;
         if (_root["vline" + i]._x < lBound)
         {
            _root["vline" + i]._x = rBound - rPad + hSpace;
            _global.rPad = rBound - _root["vline" + i]._x;
         }
      }
   }
};
Key.addListener(lo);

//Zoom in time grid
function zoomIn() {
   for (i = 0; i < vLineCtr; i++) {
      this["vline" + i]._x = this["vline" + i]._x + (this["vline" + i]._x - lBound) * zSpeed;
      if (_root["vline" + i]._x > rBound) {
         _root["vline" + i].removeMovieClip();
         _global.vLineCtr -= 1;
      }
   }
}

//Zoom out time grid
function zoomOut() {
   for (i = 0; i < vLineCtr; i++) {
      this["vline" + i]._x = this["vline" + i]._x - (this["vline" + i]._x - lBound) * zSpeed;
   }
   fillGrid();
}

Newbie At Flash - Image Grid Display Questions
Hi, I'm a Flash beginner but have some good javascript/coding experience so I understand scripting, but getting confused with the best way to go about structuring projects in Flash. Any advice on this one would be most appreciated:

I want to display a series of images at the same time, in a grid format. Each image will fade in and fade out, then wait a delay time before displaying again. The delay time varies randomly with each image and each occurrence. The images are .jpg files sitting in a folder. There are around 300 images in total.

I can get so far as making a single movie clip which fades in and out, and I can make duplicates of this and change the image in each one. But for the whole grid this obviously involves loading all the images into my project and manually creating 300 individual movie clips and then if I later want to change the images, or even just change the name of the source folder, I'll have to manually do it all over again.

Further complicating things is that if I use the same random variable names in each movie clip then the movies will all fade at the same rate, right? So do I have to manually create 300 individual clips all with different variable names too?

I'd rather use a generic actionscript function containing a variable name and then simply call that function as many times as I want to have the effect of
"for i = 1 to 300 {createMovieClip(i); positionIntoTheGrid(i) }"?
In Javascript this is easy, but can it be done inside Flash?

Further, and this is where my Flash virginity really shows, should I be making a Flash movie which contains the entire grid of 300 images, or should I be making a flash movie which contains 1 image and then embedding this 300 times into an HTML/PHP file using a different value of some variable for each embedding?

Thanks in advance...

Display Html Table In Html Enabled Textfield. Alternative?
hello!

i'm facing an issue due to the shortcomings of html tag support in flash.
The xml file containing the content to be displayed in a textfield (with html enabled) on the stage, contains a table. Right now, it displays each cell underneath each other, as if it were a paragraph. Any idea if there is a way to do this?

Also, is it possible to display an image inside a textfield (loading a img src="myimage.jpg" ) ?

thanks a lot!

alex

HELP Display Content
OK - I want to make a scrolling display output area. Thats easy, but how do I fill it with interactive elements? IE - Pics, hyperlinks, different fonts/colors.
Right now I'm very limited by basic - output = "this is a text box..." How do I fill it with rich, interactive filler? Example on www.coalchamber.com
Pls email me if you need more explanation. Many, many thanks...

Display .txt File Content...
is it possible to display the content of a text file without having a variable name inside the text file?

tnx

Is This A Flash Bug? Won't Display All Of Content
This fla will work fine in some browsers, but not all, but it is when you click test movie or view the swf that you really notice the problem. It will dsiplay numbers 1,2,3,4,5 but not all of the following ones. also i had to add 1 at the front and i had to create a new movie, S13 T-shirt, in order to do it. Is it maybe because the content range is from 2250 to -3350, too long maybe?

http://opax.swin.edu.au/~403945/example1.html
(works fine when i view this file in my browser, please post wether it works fine in yours)

http://opax.swin.edu.au/~403945/example1.fla


Thanks everyone

Help With XML Display Of Data For CD-ROM Content
I am writing a CD-ROM Flash presentation which, in one particular scene needs to list data held in a separate text file(XML I assume is best).

The content is essentially a title, description and then URL to a file (EXE) that will exist on the CD-ROM.

I assume that XML is the best way to go, so that new content can be added outside of Flash.

I am open to suggestions on this, but would assume that the content would be listed in a scrollable window, with the title hyperlinked and the text underneath, then a separator line followed by the next item.

Does anyone have any ideas what the best way to go about this would be?

At the moment I'm using a nested tree menu, but this cannot hold the descriptions...

Any help would be appreciated!

Martin B

Flash Site Won't Display New Content...
I just finished my first Flash MX site, and I use external text files to hold all the data that's designed to be updated now and again (like news articles, etc.) - the trouble is, Flash won't recognise the new content, and even force-refreshing the browser to reload the movie won't change this. Is there a specific piece of code I need to put in the button which loads the text file in order to get it to check whether the document holds new content? Or even forces it to reload the document each time?

Display Order Of Dynamic Content
Hey all;

I've been working on this catalog system for awhile now, and have it working almost perfectly. But one problem still remains...

I'm dynamically loading content (jpgs & text) into a scrollpane from an xml file. It should display an image, and then below it some associated text. My problem is that when the content loads in, the first jpg isnt visible. I'm pretty sure its there because all the other jpgs load. What I think is happening is that the scrollpane is displaying the text below the 1st jpg at the very top of the scrollpane, which leaves the jpg above the scrollpane and thus not visible.

When I first started this catalog. I was loading the content into an MC I had manually created and was attaching to the scrollpane via attachMovie. I had the same problem as above in this scenario as well...and to correct that what I did was make a box that went around the entire are that the jpgs and text loaded into. This allowed the jpg to show up.

But now that I'm dynamically creating both the holder MC and the textfield, I'm back to losing the 1st jpg image. It seems to me that the scrollpane needs something above the jpg holder MC for it to be displayed.

I'm really frustrated right now as this is really the last thing to complete. Any suggestions or help is appreciated.

Here is the code I'm using to load and create everything.
This loads the xml data:
code: //create new XML object & load from external source
albumXML = new XML();
xmlDoc = "catalog.xml";
albumXML.ignoreWhite = true;
albumXML.onLoad = checkXMLStatus;
albumXML.load (xmlDoc);
//Checks the success of the loading
function checkXMLStatus(success) {
if (success) {
//Build the catalog
buildList();
} else {
trace (" Did not load ");
}
}
stop();
This creates and loads the content into the proper places:
code: tFormat = new TextFormat()
tFormat.font = "Verdana";
tFormat.size = 10;
function buildList(){
theDepth = 100;
this.createEmptyMovieClip ("con", 10);
var albumsNodeList = albumXML.firstChild.childNodes[0].childNodes;
for (var i=0; i < albumsNodeList.length; i++){
buildContent (albumsNodeList, i);
} //Attaches the clip of items, to the Macromedia scrollpane component,
// which has an instance name of "albumPane".
this.albumsPane.setScrollContent(con);
}
function buildContent (xmlNodeList, intIndex){
var theJpg = xmlNodeList[intIndex].attributes.jpegURL;
var theJpg2 = xmlNodeList[intIndex].attributes.jpeg2URL;
var theInfo = xmlNodeList[intIndex].childNodes;
var theName = "item_" + intIndex;
con.createEmptyMovieClip(theName,theDepth++)._y = 350 * spacing;
con[theName].createEmptyMovieClip( "imgHolder",1).loadMovie(theJpg);
con[theName].createEmptyMovieClip( "imgHolder2",3).loadMovie(theJpg2);
with(con[theName].imgHolder){
_x = 5;
_y = 5;
}
with(con[theName].imgHolder2){
_x = 160;
_y = 5;
}
con[theName].createTextField("infoText",2,5,155,345,125);
with(con[theName].infoText){
multiline = true;
wordWrap = true;
html= true;
htmlText= theInfo;
autoSize = true;
setTextFormat(tFormat);
}
spacing++;
}
stop ();

Display HTML Content In Flash
Please help me to display the html content in flash,

I know only few html tags are supported in Flash,

Is there any way to read <table> tag and display table in flash,
Please tell me also if any third party component is available for this.

Problem: Having To Reload Swf To Display Content
I'm hoping someone here has come across this. I used the search function and couldn't find anything for 5 pages that was even similar to my problem.

My fla contains 2 scrollpanes loading data from an xml file to MCs that are being called from the library to appear within the Scrollpanes. Everything works fine, the scrollpanes, the mcs, all of it.

However when I'm in flash and I hit control enter to compile the swf all I see is 2 blank white areas where my scrollpanes should be. If I hit control enter again while the swf is still open then everything loads in fine.

The scrollpanes, the MCs, the data, everything works fine. But for anyone to see it, they need to recompile the swf while viewing it. Same thing if I manually open the swf file itself. It loads in blank and empty, I hit control enter and bam the swf recompiles and everything appears as it should.

Please tell me someone else has come across this problem! I'm soooo close I can taste it, it's just this stupid problem that is frustrating me.

Display Dynamic Content By Day Of The Week
Can anyone point me in the direction of a script to display different content by the day of the week.

Thanks in advanced!

Rick

Display Dynamic Content By Day Of The Week
Can anyone point me in the direction of a script to display different content by the day of the week.

Thanks in advanced!

Rick

Getting Height Of Display Content When Using ScrollRect?
Does anybody know how to get the height and width of the content in a display object when using scrollRect.

For example>


Code:
import flash.display.Sprite;
import flash.geom.Rectangle;

var circle:Sprite = new Sprite();
circle.graphics.beginFill(0xFFCC00);
circle.graphics.drawCircle(200, 200, 200);
addChild(circle);
//display object width and height is 200

circle.scrollRect = new Rectangle(0, 0, 100, 100);
//display object width and height is now 100
The code above creates a 200pix circle and sets the scrollRect for the circle display object to 100pix. So you can only see a quater of the circle.

The height and width of the display object is now the height and width of the scrollRect which is 100. However the height of content (circle) is 200 but I have no way of finding this out.

There is no contentHeight or contentWidth propertys so how am I ment to find out the height and width of the content if I don't know what it is beforehand?

I need to know the content height and width so I know what the max scroll positions are. I need a scrolling solution where the height and width of the display object does not increase when the size of the content increases beond certain values. scrollRect fits the bill perfectly but its all useless if I dont know what the dimentions of the actual content are!

I'm sure there is a solution, please enlighten me!

Problem: Having To Reload Swf To Display Content
I'm hoping someone here has come across this. I used the search function and couldn't find anything for 5 pages that was even similar to my problem.

My fla contains 2 scrollpanes loading data from an xml file to MCs that are being called from the library to appear within the Scrollpanes. Everything works fine, the scrollpanes, the mcs, all of it.

However when I'm in flash and I hit control enter to compile the swf all I see is 2 blank white areas where my scrollpanes should be. If I hit control enter again while the swf is still open then everything loads in fine.

The scrollpanes, the MCs, the data, everything works fine. But for anyone to see it, they need to recompile the swf while viewing it. Same thing if I manually open the swf file itself. It loads in blank and empty, I hit control enter and bam the swf recompiles and everything appears as it should.

Please tell me someone else has come across this problem! I'm soooo close I can taste it, it's just this stupid problem that is frustrating me.

Page Content Display....thingy
Goodday

I've been interested in getting a .... Ya the problem is that I don't even know what they are called, but they are very popular on many sites today such as www.gametrailers.com or www.gamespot.com

The thing I looking for are the little box that slides between diffrent news on the site and allows you to go back or forth to see the news. I've found one written in html/java ( http://www.dynamicdrive.com/dynamicindex17/virtualpagination.htm )but I would like one in flash.

I know alittle about loadmovie but I cant figure out how to make it play a external swf to the end and then load a new one.

I would appreaciate if someone could make a dummy (since code isnt my strong side) with the same feature as gamespot one have (moving dots and text at the bottom) or atleast show me some component or tutorial so I can make one myself.

Thanks alot

/H2o

Dynamic Content Wont Display.
I have created a flash movie which is driven by dynamic pages. When i load it into dreamweaver, the outline of the flash document plays, but the dynamic pages will not appear. Im assuming that they are not locating them?

If somebody could be a help, it would be greatly appreciated.

Display Library Content From .as File
Hi, using actionscript 3.0 and I have no problem grabbing an object from my library and putting it on stage, works great. However when I try the same technique using an .as file the addChild() dosent work. Its probably something small but can't seem to figure it out. If someone knows the answer or could show me another related discussion I would be very thankful.

Jeff

AOL Users + Flash Content Display Issue?
Does anyone have any information on the following issue I have experienced:

I have built a flash website for a client and they have reported that when they access the website through an AOL interface it doesnt display the content properly?

is it something I have set wrongly in my flash publish settings or an issue with AOls equivalent to Internet Explorer

Any advice or info would be much appreciated, as I have never come across this before

Thanks

Ravenotice

Same Size Monitors Display Content Differently?
Hi,

I hope you could make me understand the following:
I have two PC's that display my 100% Flash websites slightly different. Most stunning is that on my new PC, dynamic textfields with a Verdana-font of 12 pix high are displayed as if they were 11px high. Also, I see left and right margins next to the stage on my new PC, but I programmed no margins in the html (and 100%). Check my source code at www.schenkius.nl.

Both my monitors are 17", 32 bit and 1024x768 res. My old PC has Win ME and my new PC has Win XP running. Could the difference in Windows version be responsible for the difference in display? Does IE handle pages diffently in XP than in ME?

Thanx!

Code For Percentage Display Of Loading Own Content
I need to build an AS3 code for an external AS file that would provide the percentage of loading the content of its own swf ( library assets, etc ) and not external files. And then, after the loading is complete, it should add an instance of the main MovieClip ( from the library) into the stage.

( So far I only found code for preloading an external swf)

Any idea ?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~

I already have a code that goes embedded in the first frame of a fla file and it works. The fla has two scenes, one called “preloader” and the other just “scene”.

In the “preloader” scene I have this code in the first frame:

import flash.events.ProgressEvent;

function LoadingProgress(e: ProgressEvent):void
{
var percent:Number = Math.floor( (e.bytesLoaded*100)/e.bytesTotal );

t.text = ""+percent;


if(percent == 100)
{
play();
}
}

loaderInfo.addEventListener(ProgressEvent.PROGRESS , LoadingProgres);

stop();

It also has an instance of an animation movieclip in the stage that shows the loading progress.

And in the “scene” scene it has a simple instruction as code in the first frame:

stop();

And it also has an instance of the main movieclip on the stage.

It works fine, but my version of a separated AS file ( using package/class ) is not working.

Display Content Of TextInput In Dynamic Text Box?
I got the script below from the forum here and it works great, but I need to display the numbers typed into the TextInput boxes in a dynamic text box and I can't seem to get that part to work. Here's what I've got.
On frame 1 are the TextInput boxes and the ActionScript below. On frame 2 are 3 dynamic text boxes that are supposed to display the content of the TextInput boxes from frame 1. I used the instance names "one", "two" and "three" for the TextInput boxes. I used resultBox1, 2 and 3 as instance names for the dynamic text boxes in frame 2. I set up 3 variables called "areaCode", "prefix" and "phone" and put the following code at the bottom of the code you see below:
var areaCode = one.text;
var prefix = two.text;
var phone = three.text;

I then set up ActionScript in frame 2 that reads:
resultBox1.text = areaCode;
resultBox2.text = prefix;
resultBox3.text = phone;
to display the content of the TextInput boxes. I get nothin'.
Can someone tell me what I'm doing wrong and how to fix it? I guess I should mention that I'm using Flash MX 2004.
Thanks

Here's the code I got from the forum:
put three text inputs (components) on your stage, call them "one" "two" and "three". Then put this code on the first frame (the frame they are on


import mx.controls.TextInput;
var one:TextInput;
var two:TextInput;
var three:TextInput;
var oneMaxLength = 3;
var twoMaxLength = 3;
var threeMaxLength = 4;

var oneListener = new Object();
oneListener.change = function(event) {
if (one.text.length > oneMaxLength) {
one.text = one.text.substr(0,oneMaxLength);
}
else if (one.text.length >= oneMaxLength) {
two.setFocus();
}
}
one.addEventListener("change",oneListener);

var twoListener = new Object();
twoListener.change = function(event) {
if (two.text.length > twoMaxLength) {
two.text = two.text.substr(0,twoMaxLength);
}
else if (two.text.length == twoMaxLength) {
three.setFocus();
}
}
two.addEventListener("change",twoListener);

var threeListener = new Object();
threeListener.change = function(event) {
if (three.text.length > threeMaxLength) {
three.text = three.text.substr(0,threeMaxLength);
}
}
three.addEventListener("change",threeListener);

Simulated Download Refuses To Display Content...
Hey guys, truly strange behavior here which is baffling me. I'll keep the backstory short and sweet. Initially I wrote some code to display a banner slideshow at the top of my flash website using a UILoader and a timer object. The UILoader would load an image and when the image was done loading I would start a timer. Once the timer was done (the image had been displayed as long as necessary) the UILoader would load the next image. As you can imagine this worked fine on my machine, but with a simulated download on a 56k modem setting I hit a snag. The minute the timer was up and it was time to load the next image, the image previously displayed would disappear as the new image was loading leaving the banner blank. Sure I could display a preloader progressbar here as filler but that seemed silly. "Surely there is a way to load an image, display it and immediately load another, but not display it unless the timer has finished..." I thought.

So here is my current code using a standard Loader object and the same timer, with a rewrite to make the display of the Loader dependent on the timer being completed. The entire code hinges on a boolean value timeUp which = true when the timer completes and is reset to false when the image is actually displayed. It works like a charm from my machine, but for some reason when I do a simulated download, despite the fact that the output seems fine, nothing is ever displayed.

Code

ActionScript Code:
var slideShowXml:String = "bannerSS.xml";
var slideLoader:Loader = new Loader();

var myTimer:Timer = new Timer(8000);
var timeUp:Boolean = true;
var slideCount:Number;
var curSlide:Number = 0;
var prevSlide:Number = 0;
var slideXml:XML;
var slideList:Array = new Array()

// Check timer progress
myTimer.addEventListener(TimerEvent.TIMER, onTimerFinished);
// Check image load progress
slideLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageLoadComplete);

function onTimerFinished(evt:Event):void {
    timeUp = true;
    myTimer.stop();
}

// Pull in image information from XML for slideshow
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, onSlideInfoLoaded);
    xmlLoader.load(new URLRequest(slideShowXml));
   
    function onSlideInfoLoaded(evt:Event):void {
   
        slideXml = XML(evt.target.data);
        slideCount  = slideXml.slide.length() - 1;
   
        for (var j:uint = 0; j <= slideCount; j++){
            var slide:Object = {slideLabel:slideXml.slide[j].@label.toString(),
                        slideImage:slideXml.slide[j].@data.toString(),
                        slideCaption:slideXml.slide[j].@caption.toString()};
                               
            slideList.push(slide);
        }
           
        trace("LOADED list of images, preparing to display first slide");
        showSlide(evt);
   
    }
   
    function randomRange(max:Number, min:Number = 0):Number
    {
        return Math.round(Math.random() * (max - min) + min);
    }
   
    function showSlide(evt:Event):void {
       
        prevSlide = curSlide;
       
        // Avoid displaying the same slide twice in a row
        do {
            curSlide = randomRange(0, slideCount);
        } while (curSlide == prevSlide);
       
        trace("Loading slide: " + curSlide.toString() + " - " + slideList[curSlide].slideImage.toString());
        slideLoader.load(new URLRequest(slideList[curSlide].slideImage));
        caption.htmlText = "<p class='content' align='right'>" + slideList[curSlide].slideCaption + "</p>";
    }
   
    function onImageLoadComplete(evt:Event):void {
        //pb.visible = false;
        trace("Loading of slide: " + curSlide.toString() + " complete!");
        if (timeUp) {
            trace("TIMER UP WHEN LOAD FINISHED - DISPLAYING IMAGE");
            bannerSSContent.addChild(slideLoader);
            slideLoader.x = -292.5;
            slideLoader.y = -72.5;

            trace("Banner now has " + bannerSSContent.numChildren + " children.");
            //new Tween(bannerSSFader, "alpha", None.easeNone, 1, 0, 2, true);
            timeUp = false;
            myTimer.start();
            showSlide(evt);
        } else {
            trace("TIMER NOT UP, WAITING...");
            //The slide is loaded but the timer isn't ready so we wait
            addEventListener(Event.ENTER_FRAME, onFrameTimerCheck);

        }
       
    }
   
    function onFrameTimerCheck(evt:Event):void {
        if(timeUp) {
            trace("TIMER FINISHED, DISPLAYING NOW...");
            removeEventListener(Event.ENTER_FRAME, onFrameTimerCheck);
            bannerSSContent.addChild(slideLoader);
            slideLoader.x = -292.5;
            slideLoader.y = -72.5;
            trace("Banner now has " + bannerSSContent.numChildren + " children.");
            //new Tween(bannerSSFader, "alpha", None.easeNone, 1, 0, 2, true);
            timeUp = false;
            myTimer.start();
            showSlide(evt);
        }
    }

My basic goal was to create the following logic:

Begin Load Image
When done...
if timer is up
display image
Begin Load new image
if timer is not up
wait on timer
when timer up...
display image
Begin Load new image

Noticing that the number of children never increases I'm guessing the source of my issue is in the way I'm actually trying to add my newly loaded images to the stage. I think each time a load completes I need to actually create a NEW object from the loader content and then add that new object to the stage. I haven't managed to figure out how to do that yet...

Output from standard run (not a simulated download)

Code:
LOADED list of images, preparing to display first slide
Loading slide: 12 - Beautiful Clouds
Loading of slide: 12 - Beautiful Clouds complete!
TIMER ALREADY EXPIRED - DISPLAYING IMAGE
Banner now has 2 children.
Make call to load next image
Loading slide: 6 - Whangarei Beach, New Zealand
Loading of slide: 6 - Whangarei Beach, New Zealand complete!
TIMER NOT UP, WAITING...
TIMER FINISHED, DISPLAYING NOW...
Banner now has 2 children.
Make call to load next image
Loading slide: 28 - Mount Victoria Hike
Loading of slide: 28 - Mount Victoria Hike complete!
TIMER NOT UP, WAITING...
TIMER FINISHED, DISPLAYING NOW...
Banner now has 2 children.
Make call to load next image
Loading slide: 35 - Black Water Rafting
Loading of slide: 35 - Black Water Rafting complete!
TIMER NOT UP, WAITING...
As usual any suggestions would be welcome! Thanks in advance!

EDIT: As a last attempt before bed I've also tried taking the loader content and casting it to a new bitmap object (since I'm loading a picture each time) and then adding that bitmap to the container bannerSSContent(which is a movieclip btw) but I get an error the very moment the loader tries to continue and load the second image.

Code Change

ActionScript Code:
var newImage:Bitmap = Bitmap(slideLoader.content);
bannerSSContent.addChild(newImage);
newImage.x = -292.5;
newImage.y = -72.5;

Error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::Loader/unload()
at index4_fla::MainTimeline/showSlide()
at index4_fla::MainTimeline/onImageLoadComplete()

Dynamic Text Field Content Does Not Display In .swf
I am very new to Flash. I'm trying to update a dynamic text content in a .fla that someone else created. It seemed a pretty trivial task but I can't figure out why I do not see the current text displayed (before I made any changes) when I preview or build the .swf?
I've debugged the actionScript code and I see the dynamic text variable being set but like I said, it's as if this code is not executed when the movie plays.

Any help would be greatly appreciated. Thanks.

Below (and attached) is the actionscript 2.0 code that updates the dynamic text variable (daTextBox2):
(I'm not sure the code was attached to the thread because I got a runtime exception)

onClipEvent (load){
daTextBox2 = "<p align="left"><font face="Helvetica" size="14" color="#cccccc" letterSpacing="0.000000" kerning="1">“The Gift of Art”</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="11" color="#cccccc" letterSpacing="0.000000" kerning="1">Presenting Fine Art Accessories By</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">AKOSUA <font size="11">– Jewelry & Adornments</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MARVIN SIN <font size="11">– The Art of Leather</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MANDISA <font size="11">– Jewelry </font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">NOVEMBER 17 & 18, 2007</font></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">SAT: 11 – 7 / SUN: 12 - 5</font></p><p align="left"></p><p align="left"></p><p align="left"></p><p align="left"></p>";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}








Attach Code

onClipEvent (load){
daTextBox2 = "<p align="left"><font face="Helvetica" size="14" color="#cccccc" letterSpacing="0.000000" kerning="1">“The Gift of Art”</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="11" color="#cccccc" letterSpacing="0.000000" kerning="1">Presenting Fine Art Accessories By</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">AKOSUA <font size="11">– Jewelry & Adornments</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MARVIN SIN <font size="11">– The Art of Leather</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MANDISA <font size="11">– Jewelry </font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">NOVEMBER 17 & 18, 2007</font></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">SAT: 11 – 7 / SUN: 12 - 5</font></p><p align="left"></p><p align="left"></p><p align="left"></p><p align="left"></p>";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}

Code For Percentage Display Of Loading Own Content
I need an AS3 code for an external AS file that would provide the percentage of loading the content of its own swf ( library assets, etc ) and NOT external files. And then, after the loading is complete, it should add an instance of the main MovieClip ( from the library) into the stage.

( So far I only found code for preloading an external swf)

Any idea ?

LoadMovie Doesn't Display Flash8 Content
As the title says, I'm working with Flash8.

I have 'main.swf' with AS on the first frame to load 3 empty MC:


Code:
_root.header.loadMovie("header.swf", "header");
_root.menu.loadMovie("menu.swf", "menu");
_root.content.loadMovie("profile.swf", "content");
The swf's load fine, except none of the text gets displayed and none of the animations will play....

Any thoughts?

Thanks,

Display Content In Flash From An Access Database
Hey...

I have a flash movie which is just a simple animation (which this part is totally irrelevant to what am trying to achieve but anyway) at the end of the animation, I would like to display some names that would scroll from left to right (Like the Star Wars film credits but instead of text going bottom to top it would go from Left to Right). And DON’T HAVE TO FADE OUT.

Now! The problem is that I want it to display the names on a screen from the Database which would be created in Access (have to be access if possible).

So any names entered into the database will get pull out and displayed on the screen and that animation (of names going from left to right) would just loop.

Also the extraction from the DB would be done at runtime, so as soon as you add a name in the database it would display in the next loop of the movie.

Is something like is possible? If so could somebody help me with this? It would be much appreciated.

Many Thanks

Display Content In Flash From An Access Database
Hey...

I have a flash movie which is just a simple animation (which this part is totally irrelevant to what am trying to achieve but anyway) at the end of the animation, I would like to display some names that would scroll from left to right (Like the Star Wars film credits but instead of text going bottom to top it would go from Left to Right). And DON’T HAVE TO FADE OUT.

Now! The problem is that I want it to display the names on a screen from the Database which would be created in Access (have to be access if possible).

So any names entered into the database will get pull out and displayed on the screen and that animation (of names going from left to right) would just loop.

Also the extraction from the DB would be done at runtime, so as soon as you add a name in the database it would display in the next loop of the movie.

Is something like is possible? If so could somebody help me with this? It would be much appreciated.

Many Thanks

Reading Variables From SWFOBJECT And Display Xml Content
I want to pass the state and city variable to the swf file from the swfobject and then display the content of the variable from the xml file.

SWFOBJECT
<script type="text/javascript">
YUE.onDOMReady(function() {var so = new SWFObject("assets/promoKiosk.swf","amenities","628","600","8","#FFF" );
so.addParam("wmode","transparent");
so.addVariable("state", "CA");
so.addVariable("city", "los angeles");
so.write("flashcontent");
});
</script>

Promo XML
<?xml version="1.0" encoding="utf-8"?>
<offers>
<state id="CA">
<city id="los angeles">
<offer>This is the offer</offer>
</city>
<city id="san fran">
<offer>This is the offer</offer>
</city>
</state>
</offers>

Actionscript 2.0:
function findNode(parentNode:XMLNode,id:String){
var nodeChildren:Array = parentNode.childNodes;
var _length = nodeChildren.length;
for (var i=0; i < _length;i++){
if(nodeChildren[i].attributes.id == id){
return nodeChildren[i];
}
}
}
function displayNodeContents(cityNode:XMLNode){
// Having issue displaying content
}

var xml:XML = new XML();
xml.ignoreWhite = true;
xml.load("promo.xml");
xml.onLoad = function(success){
if(success){
var stateNode = findNode(this.firstChild,state);
var cityNode = findNode(stateNode,city);
displayNodeContents(cityNode);
}
}

Code For Percentage Display Of Loading Own Content
I need an AS3 code in an external AS file that would provide the percentage of content loading of its own swf ( library assets, etc ) and not external files. And then, after the loading is complete, it should add an instance of the main MovieClip ( from the library) into the stage.

( So far I only found code for preloading an external swf)

Any idea ?

Code For Percentage Display Of Loading Own Content
I need an AS3 code for an external AS file that would provide the percentage of loading the content of its own swf
( library assets, etc ) and not external files. And then, after the loading is complete, it should add an instance of the main MovieClip ( from the library) into the stage.

( So far I only found code for preloading an external swf)

Any idea ?
 

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

How To Take Parameter From Asp Database Then Display Content An Open Window?
Dear,
How to take parameter from asp database then display content an open window?

Example: I have one map flash file I need to click one country then all details coming from SQL database,

I am not interesting ad full link like get URL, I am only specify parameter .

How to do this, please explain and give me sample file also.

Kumar

Copyright © 2005-08 www.BigResource.com, All rights reserved