[Flashcoders] Problem with DestroyObject

2006-03-30 Thread Keith Takayesu
(Sorry for the cross-post, I accidentally sent it to FlashObject first.)

Hey all, need to see if anyone has had this problem:

- create a V2 Component (say "C1") that uses a ComboBox, Text and
MovieClip
- create a 2nd V2 Component ("C2") that instantiates a given number of
C1s

- Create a test FLA that creates 2 instances of C1 and 1 instance of C2.
It also creates two ComboBoxes used to feed test parameters to the C1
and C2 instances.
- As part of this, I perform a DestroyObject on C2 and create another
instance (with a different parameters and linkage name "C3").

The Problem:
1) DestroyObject does not seem to have a direct effect. The objects are
still there.
2) For some reason, it clobbers ALL the ComboBox components on stage -
the two "normal" ComboBoxes AND the 2 instances of C1 on the stage (but
NOT in the C2 or C3 component instances)! When I say "clobber", I mean
that the ComboBoxes no longer function normally. One reacts to click,
but is impossibly narrow. The other one only shows an arrow when pulled
down!

Has anyone else seen this problem and dealt with it??

Thanks,
Keith

La version française suit le texte anglais.



This email may contain privileged and/or confidential information, and the Bank 
of
Canada does not waive any related rights. Any distribution, use, or copying of 
this
email or the information it contains by other than the intended recipient is
unauthorized. If you received this email in error please delete it immediately 
from
your system and notify the sender promptly by email that you have done so. 



Le présent courriel peut contenir de l'information privilégiée ou 
confidentielle.
La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute 
diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
personne autre que le ou les destinataires désignés est interdite Si vous 
recevez
ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans 
délai à
l'expéditeur un message électronique pour l'aviser que vous avez éliminé de 
votre
ordinateur toute copie du courriel reçu.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

[Flashcoders] Drag DataGrid columns?

2006-03-24 Thread Keith Takayesu
I was just asked if it was possible to allow the user to switch DataGrid
columns dynamically, like you can in Outlook or Access. I remember that
the Java version of the ColdFusion Grid used to do this, but I've
haven't used Flash DataGrid yet.

Help, please!

Thanks,
Keith
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Re:Global search-and-replace forLinkage/ComponentDefinition?

2006-03-23 Thread Keith Takayesu
Thanks Rich, I'll give it a try!

-Original Message-
From: Rich Rodecker [mailto:[EMAIL PROTECTED] 
Sent: March 22, 2006 5:32 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Re:Global search-and-replace
forLinkage/ComponentDefinition?


here is my modified version of that script...like I was saying, it
should be pretty easy to modify and get the component name in there, if
youc an get a jsfl reference:

//script from jessewarden.com
function d (o)
{
fl.trace (o);
}
function init ()
{
fl.outputPanel.clear ();
var i = fl.getDocumentDOM ().library.items.length;
while (i --)
{
var linkage =
fl.getDocumentDOM().library.items[i].linkageIdentifier;
var className =
fl.getDocumentDOM().library.items[i].linkageClassName;
var testingString = className;
if (testingString != null)
{
if (testingString != "")
{
var a = testingString.split (".");
var num = a.length;
var theName = a[num-1];

if (a [1] == "coloniessskate")
{
a[1] = "coloniesskate";
d ("old:");
d (fl.getDocumentDOM ().library.items
[i].linkageIdentifier);
d (fl.getDocumentDOM ().library.items
[i].linkageClassName);

fl.getDocumentDOM
().library.items[i].linkageClassName = a.join (".");
fl.getDocumentDOM
().library.items[i].linkageIdentifier
= theName;

d ("new:");
d
(fl.getDocumentDOM().library.items[i].linkageIdentifier);
d
(fl.getDocumentDOM().library.items[i].linkageClassName);
}
}
}
}
}
init ();


On 3/22/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:
>
> there is also jsfl script on jessewarden.com that you can grab and 
> modify to change the linkage names. It doesnt include the component 
> name, but frm the looks of it it should be pretty easy to figure out.
>
> it looks like his site is down at the moment though...
>
> On 3/22/06, Keith Takayesu <[EMAIL PROTECTED]> wrote:
> > ... Part 2...
> >
> > I tried it out. Unfortunately, Components don't show up in his list,

> > only the Components that have been compiled as clips.
> >
> > I have contacted the author, Xavi Beumala, and he will look into it 
> > for the next release.
> >
> > Thanks again,
> > Keith
> >
> > -Original Message-
> > From: [mailto:[EMAIL PROTECTED]
> > Sent: March 22, 2006 11:47 AM
> > To: flashcoders@chattyfig.figleaf.com
> > Subject: [Flashcoders] Re:Global search-and-replace for 
> > Linkage/ComponentDefinition?
> >
> >
> >
> > Keith
> >
> > Try alf..
> >
> > http://www.code4net.com/archives/000116.html
> >
> > I think it does what you want.
> >
> > Graham Phillips/Codegadget
> >
> > >Is there a tool out there that can perform a global 
> > >>search-and-replace
> >
> > >for Linkages and Component definitions?
> >
> > >We are running into the 64 character limitation on Component
> > >>Definition class paths, so we have decided to shorten our base 
> > >>path.
> >
> > >Ideas?
> >
> > >Thanks,
> > >Keith
> >
> > ___
> > Join Excite! - http://www.excite.com
> > The most personalized portal on the Web!
> >
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive: 
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training 
> > http://www.figleaf.com http://training.figleaf.com
> >
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Re:Global search-and-replace for Linkage/ComponentDefinition?

2006-03-22 Thread Keith Takayesu
... Part 2...

I tried it out. Unfortunately, Components don't show up in his list,
only the Components that have been compiled as clips. 

I have contacted the author, Xavi Beumala, and he will look into it for
the next release.

Thanks again,
Keith

-Original Message-
From: [mailto:[EMAIL PROTECTED] 
Sent: March 22, 2006 11:47 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Re:Global search-and-replace for
Linkage/ComponentDefinition?



Keith

Try alf..

http://www.code4net.com/archives/000116.html

I think it does what you want.

Graham Phillips/Codegadget

>Is there a tool out there that can perform a global >search-and-replace

>for Linkages and Component definitions?

>We are running into the 64 character limitation on Component 
>>Definition class paths, so we have decided to shorten our base path.

>Ideas?

>Thanks,
>Keith

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Re:Global search-and-replace for Linkage/ComponentDefinition?

2006-03-22 Thread Keith Takayesu
Thanks, Graham!

I had looked at that sometime in the past, and forgot all about it!

Keith

-Original Message-
From: [mailto:[EMAIL PROTECTED] 
Sent: March 22, 2006 11:47 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Re:Global search-and-replace for
Linkage/ComponentDefinition?



Keith

Try alf..

http://www.code4net.com/archives/000116.html

I think it does what you want.

Graham Phillips/Codegadget

>Is there a tool out there that can perform a global >search-and-replace

>for Linkages and Component definitions?

>We are running into the 64 character limitation on Component 
>>Definition class paths, so we have decided to shorten our base path.

>Ideas?

>Thanks,
>Keith

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Global search-and-replace for Linkage/Component Definition?

2006-03-22 Thread Keith Takayesu
Is there a tool out there that can perform a global search-and-replace
for Linkages and Component definitions?

We are running into the 64 character limitation on Component Definition
class paths, so we have decided to shorten our base path.

Ideas?

Thanks,
Keith
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Can't get rid of halo rectangle

2006-03-22 Thread Keith Takayesu
Thanks Nehal, but it didn't work. I wouldn't want it to affect other
buttons on the stage, anyways.

Like I said, the two methods that I've tried don't seem to give
consistent results.

-Original Message-
From: Nehal Gandhi [mailto:[EMAIL PROTECTED] 
Sent: March 22, 2006 12:19 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Can't get rid of halo rectangle


try

Button.prototype.drawFocus = undefined;
-Nehal


On 3/22/06, Keith Takayesu <[EMAIL PROTECTED]> wrote:
>
> I'm trying to assign custom icons to a Button dynamically in a custom 
> component. Here is my code snippet:
>
> mybutton = createClassObject ( Button, "mybutton ", this.startDepth++,

> {_x:myx ,_y:myy,_width:15.9,_height:14.7, 
> falseOverIcon:"btnCalendarViewFalseOverSkin",falseUpIcon:"btnCalendarV
> ie
> wFalseUpSkin",falseDownIcon:"btnCalendarViewFalseDownSkin",
> falseDisabledIcon:"btnCalendarViewFalseDisabledSkin"} );
>
> However, when I compile the Component to a SWF and then instantiate 
> it, the green halo rectangle still appears under all the icons. In 
> fact, it is still active under all of that. This has me baffled, 
> perhaps it's just too late in the day to figure it out.
>
> 2nd problem:
> I have also tried to extend the Button class and apply the icons, as 
> shown in the Advanced Actionscript Components book. Then, I don't have

> the rectangle problem, but the registration seems to be off, and 
> height and width come back as zero!
>
> Blue Skies,
> Tak
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive: 
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Can't get rid of halo rectangle

2006-03-21 Thread Keith Takayesu
I'm trying to assign custom icons to a Button dynamically in a custom
component. Here is my code snippet:

mybutton = createClassObject ( Button, "mybutton ", this.startDepth++,
{_x:myx ,_y:myy,_width:15.9,_height:14.7,
falseOverIcon:"btnCalendarViewFalseOverSkin",falseUpIcon:"btnCalendarVie
wFalseUpSkin",falseDownIcon:"btnCalendarViewFalseDownSkin",
falseDisabledIcon:"btnCalendarViewFalseDisabledSkin"} ); 

However, when I compile the Component to a SWF and then instantiate it,
the green halo rectangle still appears under all the icons. In fact, it
is still active under all of that. This has me baffled, perhaps it's
just too late in the day to figure it out.

2nd problem:
I have also tried to extend the Button class and apply the icons, as
shown in the Advanced Actionscript Components book. Then, I don't have
the rectangle problem, but the registration seems to be off, and height
and width come back as zero!

Blue Skies,
Tak
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Custom V2 Components - Compiled vs. StandardComponents.fla

2006-03-21 Thread Keith Takayesu
We've been building some custom V2 components in Flash 8, and have found
some issues regarding the Uncompiled components found in
StandardComponents.fla, vs. the compiled SWCs.

For example, the Label from the StandardComponents.fla file will not
accept styles for font after we instantiate it using
createClassObject(). Using the compiled Label instead, works fine.

Also, the TextArea from the StandardComponents.fla file will not always
output its text properly. Often after a compile it will have HTML
wrappers around its text instead of just the text. Again, using the
compiled SWC works.

Has anyone else encountered such problems? If so, are there other
solutions to using the uncompiled versions, rather than resorting to
using the SWCs?

Thanks,
Keith
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] When is destroyObject() actually done?

2006-03-16 Thread Keith Takayesu
Hey everyone...

We have a problem within a custom component that we are building. In
this component, we are instantiating a number of rows of components
(TextInput, ComboBoxes) on the fly. They are named sequentially...
RowCombo1, rowCombo2,  Etc.

We have a separate button on the page that issues a "reset" to that
component. The component currently loops through the existing objects
and destroys them all. 

Then, we want to start fresh with a new, first instance of Row1. If we
peform the new creates right away, the new components are not
initialized correctly. This appears to be caused because the garbage
collection has not yet finished eliminating everything.

There seems to be no way to find when the garbage collection has
actually finished.

As a work-around, we had to create an interval timer to wait before we
try to instantiate a new version of the objects. I scanned through
flashcoders archives and found a reference to peforming a nextFrame()
after we destroy the objects, but that won't work in our custom
component, since we have a hidden frame to store the assets.

Has anyone else encountered/found a solution to this?

Blue Skies,
Keith
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] advanced flash AS 2.0/3.0 book?

2006-03-14 Thread Keith Takayesu
I just got the AdvancED ActionScript Components book for our team, too.
It is one of the best explanations of the V2 Component architecture that
I've read to date.  I like the way that the examples are built up for
those who are new to components and object-oriented techniques, and then
gets into the details of how each type of built-in component can, and
should be used.

One of those books that I wish we had a few months ago...

Here is the tiny url for the same book, for those who had a broken
link...
http://tinyurl.com/hhb29

I would also recommend another new Friends of Ed book, "Object-Oriented
ActionScript for Flash 8". It gets into the details and best practices
of objec-oriented Flash development, and topics such as data binding and
web services. It even discusses the Flash/JavaScript Integration Kit.
http://tinyurl.com/zurlo

Blue Skies,
Keith

-Original Message-
From: Jonathan Berry [mailto:[EMAIL PROTECTED] 
Sent: March 11, 2006 8:52 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] advanced flash AS 2.0/3.0 book?


Rich, that sounds like something that I could use. Mastery and not just
introductory stuff. The books I have read just go over the basic
components, like list or scrollpane, not things like the datagrid or
learning how to use a cellrenderer. Thanks again.

On 3/11/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:
>
> well, you mentioned you were up on your components, so I don't know 
> how 'advanced' this book would be for you...but I am reading http://www.amazon.com/exec/obidos/redirect?link_code=ur2&tag=richrodecke
r-20&camp=1789&creative=9325&path=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fpro
duct%2F1590595939%2Fqid%3D1142032643%2Fsr%3D2-1%2Fref%3Dpd_bbs_b_2_1%3Fs
%3Dbooks%26v%3Dglance%26n%3D283155
> ">AdvancED
> Actionscript Components : Mastering the Flash Component
> Architecture and I'm really digging it. The author doesn't just
> show you the methods and properties availabel to a component, like the
> other book that is just a reprint of the help docs, he goes into the
> flash component architcture itself to give you a better understanding
> of how things are working, and whats going on behind the scenes.
>
> He goes into this thing about XLEFF (XML Layout engine for Flash) for 
> a little bit, but I just kinda glossed over that so far, since im not 
> really interested, i just want to undersatnd the components 
> betterbut skipping over all that stuff doesnt affect understanding

> anything else in the book.
>
>
>
> On 3/11/06, Jonathan Berry <[EMAIL PROTECTED]> wrote:
> > Thanks for the reply, Karthik. I checked the archives and came up 
> > with
> 136
> > prior messages in relation to "advanced books" but none that were
> current,
> > as in the last year or so. I noticed someone else just posted in
> relation to
> > a book recommendation and got some good responses, so it would be 
> > great
> if
> > someone would have some information on an advanced book.
> >
> > On 3/10/06, Karthik <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hey Flashers, how about a book for an intermediate/advanced 
> > > > level
> coder?
> > > I
> > > > don't want to read about what objects, properties, methods, 
> > > > events,
> > > event
> > > > handlers, and listeners are, or even how to write basic classes.
> That
> > > stuff
> > > > is always repeated in both the AS books (or any introductory
> programming
> > > > books for that matter - rant) that I have read. I read the 
> > > > deHaans' Macromedia Press books starting with MX2004 and the AS 
> > > > 2.0 book for
> > > Flash 8.
> > > > I also own the AS 2.0 reference for Flash 8 and the Flash 8
> component
> > > > reference. I guess I am just looking for something that will 
> > > > have
> more
> > > > hardcore examples, practical ones at that. I do remember seeing 
> > > > an
> > > advanced
> > > > book for MX a few years ago and wondered if they have anything 
> > > > like
> that
> > > for
> > > > 2004 or 8. Your help much to be appreciated.
> > >
> > > Please check the archives. Book recommendations posts appear once 
> > > every 36.34 hours on this list :) The link is in the footer.
> > >
> > > This is the first time I've seen one of these lame corporate 
> > > disclaimer footnotes from a gmail address. Please do us a favour 
> > > and lose it - all your e-mails are being distributed, disseminated

> > > and copied with utter disregard for the Electronic Communications 
> > > Privacy Act :P ___
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > Brought to you by Fig Leaf Software
> > > Premier Authorized Adobe Consulting and Training 
> > > http://www.figleaf.com http://training.figleaf.com
> > >
> >
> >
> >
> > --
> > Jonathan Berry, M.A.
> > IT Consultant
> > 619.306.1712(m)
> > [EMAIL PROTECTED]
> > www.mindarc.com
> >
> >