CFGRID - Onchange - Which cell has changed?

View: New views
12 Messages — Rating Filter:   Alert me  

CFGRID - Onchange - Which cell has changed?

by kirk thompson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When an onchange event happens from a CFGRID, is there a way to tell which column (or cell?) was actually changed?

I am looking to recalculate values in other cells based on the last cell that was changed.  The calculations would be different based which cell the user changes.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:158
Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30

Parent Message unknown RE: CFGRID - Onchange - Which cell has changed?

by Brad Wood-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think the row and column number is in the event object.

~Brad

-----Original Message-----
From: kirk thompson [mailto:kirk@...]
Sent: Thursday, September 21, 2006 12:32 PM
To: CF-Flash
Subject: CFGRID - Onchange - Which cell has changed?

When an onchange event happens from a CFGRID, is there a way to tell
which column (or cell?) was actually changed?

I am looking to recalculate values in other cells based on the last cell
that was changed.  The calculations would be different based which cell
the user changes.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:159
Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30

Parent Message unknown Re: CFGRID - Onchange - Which cell has changed?

by kirk thompson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What is the format for the onchange event object?  How does it pass the row and column number to the event handler?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:160
Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30

Parent Message unknown RE: CFGRID - Onchange - Which cell has changed?

by Brad Wood-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK, what you really want I think is the cellEdit event which is part of
the datagrid class and is "Broadcast when the cell value has changed".
The event object returned has event.columnIndex and event.itemIndex.

Check out the docs here:
Datagrid class:
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/js/h
tml/wwhelp.htm?href=00002246.html
and cellEdit event:
http://livedocs.macromedia.com/flash/mx2004/main_7_2/00002237.html


Hopefully that will help.

~Brad


-----Original Message-----
From: kirk thompson [mailto:kirk@...]
Sent: Thursday, September 21, 2006 4:14 PM
To: CF-Flash
Subject: Re: CFGRID - Onchange - Which cell has changed?

What is the format for the onchange event object?  How does it pass the
row and column number to the event handler?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:161
Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30

Flash image viewer - anyone?

by Peterson, Chris :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Has anyone seen or been involved with a flash based multi-format image
viewer?

Is it possible to view tiff, bmp, etc. images in flash?  How about basic
image viewer actions, such as rotate, pan, invert, lighten / darken, all
in flash?

Chris

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:162
Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30

Re: Flash image viewer - anyone?

by Tyron Foston :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The newest (flash 8) supports png, gif and jpeg. You can do all of the actions you talked about once the images have been imported into the lfash player!

"Peterson, Chris" <cpeterson@...> wrote: Has anyone seen or been involved with a flash based multi-format image
viewer?

Is it possible to view tiff, bmp, etc. images in flash?  How about basic
image viewer actions, such as rotate, pan, invert, lighten / darken, all
in flash?

Chris



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:163
Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30

RE: Flash image viewer - anyone?

by Peterson, Chris :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to find lflash but google is a mess with just that... Is
that a dedicated image viewer?  Can I embed that inside of another
application I am writing in Flash / flex? Thanks for the reply btw!

Chris

-----Original Message-----
From: Tyron Foston [mailto:tfoston@...]
Sent: Monday, September 25, 2006 10:35 AM
To: CF-Flash
Subject: Re: Flash image viewer - anyone?

The newest (flash 8) supports png, gif and jpeg. You can do all of the
actions you talked about once the images have been imported into the
lfash player!

"Peterson, Chris" <cpeterson@...> wrote: Has anyone seen
or been involved with a flash based multi-format image viewer?

Is it possible to view tiff, bmp, etc. images in flash?  How about basic
image viewer actions, such as rotate, pan, invert, lighten / darken, all
in flash?

Chris





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:164
Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30

RE: Flash image viewer - anyone?

by Colm Brazel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

You don't need to import them into the .fla, to conserve bandwidth best load
them dynamically, I found following code on cartoonsmart,
some small additions made by me, you could have a load of small low
bandwidth thumbnail image buttons loading large images dynamically, bmp,
png, jpg, gif,
to test, put the following code on first frame of an empty movie, adjust
code to suit your needs.

///begins

//Put on stage an empty movieclip

this.createEmptyMovieClip("image_mc", this.getNextHighestDepth());

// create a new listener Object

var mcIListener:Object = new Object();

// onLoadStart is an event

mcIListener.onLoadStart = function(target_mc:MovieClip) {

trace("started loading");
target_mc.startTimer = getTimer();

}

// onLoadComplete is an event

mcIListener.onLoadComplete = function() {

trace("finished loading");
target_mc.completeTimer = getTimer();

}

// onLoadInit is an event that occurs after the first frame of the movieClip
has loaded
// taret_mc is set up as a MovieClip (as an initial parmeter of the
function). This replaces the empty movieClip

mcIListener.onLoadInit = function(target_mc:MovieClip) {
target_mc._x = 250;
target_mc._y = 200;
target_mc.onPress = function(){
getURL("http://www.cartoonsmart.com");
target_mc.startDrag();
target_mc._rotation += 45;
target_mc.startDrag();

}
target_mc.onRelease = function(){

target_mc.stopDrag();

}

var timerMS:Number = target_mc.completeTimer - target_mc.startTimer;
target_mc.createTextField("timer_txt", target_mc.getNextHighestDepth(), 0,
target_mc._height, target_mc._width,  22);
target_mc.timer_txt.text = "loaded in"+timerMS+"ms.";
};

//next we set up, image1_mc as a new broadcaster object below. This
broadcaster is ....
//..part of the MovieClipLoader class. It looks for listener events ( like
onLoadInit, onLoadComplete, etc)

var image_mcl:MovieClipLoader = new MovieClipLoader();

//Add the listener. The MovieClipLoader object (image1_mc) is now
"listening" for events (or callbacks)

image_mcl.addListener(mcIListener);


///load the image into the empty movieclip

/// we first specify where to load it from (the URL), then where to load it
into. That could be a level, or a movieClip
image_mcl.loadClip("http://www.cartoonsmart.com/cartoonsmart_logo.jpg",
image_mc);


///ends


cheers



Colm

-----Original Message-----
From: Peterson, Chris [mailto:cpeterson@...]
Sent: 25 September 2006 15:42
To: CF-Flash
Subject: [work] RE: Flash image viewer - anyone?


I am trying to find lflash but google is a mess with just that... Is
that a dedicated image viewer?  Can I embed that inside of another
application I am writing in Flash / flex? Thanks for the reply btw!

Chris

-----Original Message-----
From: Tyron Foston [mailto:tfoston@...]
Sent: Monday, September 25, 2006 10:35 AM
To: CF-Flash
Subject: Re: Flash image viewer - anyone?

The newest (flash 8) supports png, gif and jpeg. You can do all of the
actions you talked about once the images have been imported into the
lfash player!

"Peterson, Chris" <cpeterson@...> wrote: Has anyone seen
or been involved with a flash based multi-format image viewer?

Is it possible to view tiff, bmp, etc. images in flash?  How about basic
image viewer actions, such as rotate, pan, invert, lighten / darken, all
in flash?

Chris







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:165
Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30

Re: Flash image viewer - anyone?

by John Dowdell-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Peterson, Chris wrote:
> Is it possible to view tiff, bmp, etc. images in flash?  How about basic
> image viewer actions, such as rotate, pan, invert, lighten / darken, all
> in flash?

The Adobe Flash Player includes a number of runtime import filters:
http://www.adobe.com/products/flashplayer/productinfo/features/

It does not include TIFF or BMP import filters, to keep download size
low and adoption rate high.

Movement is possible, whether positional or angular, as well as the
filtering you describe.

When I search Google with quoted phrase "flash image viewer" I see a
number of offerings:
http://www.google.com/search?q=%22flash+image+viewer%22

jd







--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:166
Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30

RE: Flash image viewer - anyone?

by Peterson, Chris :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes John, I agree, there are a ton.  But thus far, I have not found one
that I can:

a) build into my own flex / coldfusion form based app
b) Allows rotation, pan, and zoom
and c) Allows tiff image format's =)

Chris

-----Original Message-----
From: John Dowdell [mailto:jdowdell@...]
Sent: Monday, September 25, 2006 3:37 PM
To: CF-Flash
Subject: Re: Flash image viewer - anyone?

Peterson, Chris wrote:
> Is it possible to view tiff, bmp, etc. images in flash?  How about
> basic image viewer actions, such as rotate, pan, invert, lighten /
> darken, all in flash?

The Adobe Flash Player includes a number of runtime import filters:
http://www.adobe.com/products/flashplayer/productinfo/features/

It does not include TIFF or BMP import filters, to keep download size
low and adoption rate high.

Movement is possible, whether positional or angular, as well as the
filtering you describe.

When I search Google with quoted phrase "flash image viewer" I see a
number of offerings:
http://www.google.com/search?q=%22flash+image+viewer%22

jd







--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:167
Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30

Re: Flash image viewer - anyone?

by Chris Velevitch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 9/26/06, Tyron Foston <tfoston@...> wrote:
> The newest (flash 8) supports png, gif and jpeg. You can do all of the actions you talked about once the images have been imported into the lfash player!

If you're googling for "lfash player" and can't find anything, it's
mostly likely that Tyron was being a bit dyslexic when he typed
"flash". Tyron is trying to point out that Flash can now supports
loading png, gif and jpeg image formats, either at runtime or author
time.



Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
m: 0415 469 095
www.flashdev.org.au

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:169
Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30

Re: Flash image viewer - anyone?

by Tyron Foston :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

lol, thanks for the clear up! I good think i don't talk like i type!
Ty-

Chris Velevitch <chris.velevitch@...> wrote: On 9/26/06, Tyron Foston  wrote:
> The newest (flash 8) supports png, gif and jpeg. You can do all of the actions you talked about once the images have been imported into the lfash player!

If you're googling for "lfash player" and can't find anything, it's
mostly likely that Tyron was being a bit dyslexic when he typed
"flash". Tyron is trying to point out that Flash can now supports
loading png, gif and jpeg image formats, either at runtime or author
time.



Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
m: 0415 469 095
www.flashdev.org.au



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/CF-Flash/message.cfm/messageid:170
Subscription: http://www.houseoffusion.com/groups/CF-Flash/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30