Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-22-2005, 07:46 PM   #1
QuantumDoja
Registered User
 
Join Date: Feb 2005
Posts: 1
Lightbulb Pass to edit field from array (DataGrid)

Hi, I have a custom datagrid, that draws an image in a cell, the image can be 1-10 as referenced in linkage, but when i edit the cell like this:

var prev = dgTiles.editField(i,""+inner,aArray[c]);

where c is the number in an array for which image to draw.

The Problem

This works:
var prev = dgTiles.editField(i,""+inner,7); //specifying just a number

This Doesnt - but i need this to work
var prev = dgTiles.editField(i,""+inner,aArray[c]);

btw the custom datagrid takes a number and depending on that number attaches a movieclip, passing the number, and that movieclip draws the image.

aaarrrgggghhhh

Any help appreciated, Chris
QuantumDoja is offline   Reply With Quote
Old 03-22-2005, 07:48 PM   #2
deadbeat
Registered User
 
Join Date: Feb 2001
Location: vancouver
Posts: 2,219
Default

What does aArray look like?

Couldn't you just use:

var prev = dgTiles.editField(i,""+inner,c);

K.
deadbeat is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:54 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.