[flexcoders] Re: hideing a tab in a TabNavigator

2009-01-02 Thread Mayur
Hi, 

If you know which Tab (UI child) not to show.
Then it is much easier.

visible = "false";
includeInLayout = "false";

Beware : This neither removers your object nor frees memory.

Happy Flexing

 ~ Mayur

--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> I would use a TabBar whose dataProvider content was dynamically 
driven,
> to show or hide tabs as desired.  I would have that TabBar drive a
> Viewstack.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
On
> Behalf Of Mario Vieira
> Sent: Friday, January 02, 2009 6:49 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] hideing a tab in a TabNavigator
> 
>  
> 
> editing the display list is a way, or simply trying to set the 
tabNav
> children visible to true/false is also a goal 
> 
>  
> 
> you can create your UI with a method, and so perform checks to see 
who
> will be added at run time or not
> 
> you can create item renderers that uses XML, and perform further 
checks
> based on the UI
> 
> or, or...
> 
>  
> 
> HOWEVER, I would not remove and add child without a more developed 
way
> of doing this so (what about the info you may have in this tab
> container?)
> 
>  
> 
> On 31 Dec 2008, at 15:46, btroop202 wrote:
> 
> 
> 
> 
> 
> How can I hide a with AS3 when a if condition is true.  So it would 
> show in the TabNavigator sometimes. 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
b4cf-
> 1e62079f6847
>  -1e62079f6847> 
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
>  ! 
Groups
> Links
> 
> 
>(Yahoo! ID required)
> 
>mailto:flexcoders-fullfeatu...@yahoogroups.com
> 
>





RE: [flexcoders] Where did my CurrentTarget go?

2009-01-02 Thread Tracy Spratt
How do you know it is gone, and what do you mean by "gone"?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Mike Oliver
Sent: Thursday, January 01, 2009 8:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Where did my CurrentTarget go?

 


I have a ComboBox as a ItemEditor and a listener

dataGrid.addEventListener(DataGridEvent.ITEM_EDIT_END, editCellEnd);

I was using 

e.currentTarget.itemEditorInstance.selectedItem.value

to get at a value in the selectedItem

now I am still getting that event, but no currentTarget element?

what would cause it to go away?

-- 
View this message in context:
http://www.nabble.com/Where-did-my-CurrentTarget-go--tp21246831p21246831
.html
 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



RE: [flexcoders] hideing a tab in a TabNavigator

2009-01-02 Thread Tracy Spratt
I would use a TabBar whose dataProvider content was dynamically driven,
to show or hide tabs as desired.  I would have that TabBar drive a
Viewstack.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Mario Vieira
Sent: Friday, January 02, 2009 6:49 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] hideing a tab in a TabNavigator

 

editing the display list is a way, or simply trying to set the tabNav
children visible to true/false is also a goal 

 

you can create your UI with a method, and so perform checks to see who
will be added at run time or not

you can create item renderers that uses XML, and perform further checks
based on the UI

or, or...

 

HOWEVER, I would not remove and add child without a more developed way
of doing this so (what about the info you may have in this tab
container?)

 

On 31 Dec 2008, at 15:46, btroop202 wrote:





How can I hide a with AS3 when a if condition is true.  So it would 
show in the TabNavigator sometimes. 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
 
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 ! Groups
Links


   (Yahoo! ID required)

   mailto:flexcoders-fullfeatu...@yahoogroups.com
 



 

 



Re: [flexcoders] AIR code signing certificate

2009-01-02 Thread ivo
Have you considered other vendors?
(http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff0.html)

Might just be not well thought out options from that particular one, you are 
denied a personal cert in your business name and you are also denied a corp 
cert for your non-incorporated business.





From: arieljake 
To: flexcoders@yahoogroups.com
Sent: Friday, January 2, 2009 7:06:26 PM
Subject: [flexcoders] AIR code signing certificate


I am trying to purchase an AIR code signing certificate from Chosen
Security. They have 2 plans, one is a corporate certificate and the
other is a personal certificate. They are refusing to issue me a
personal certificate in the name of my company which is registered as
a Fictitious Business Name, but since I am not incorporated, won't
sell me a corporate certificate. Anyone know what I should do or how I
can convince them to allow me to put the certificate in my business's
name?

Adobe?



[flexcoders] AIR code signing certificate

2009-01-02 Thread arieljake
I am trying to purchase an AIR code signing certificate from Chosen
Security. They have 2 plans, one is a corporate certificate and the
other is a personal certificate. They are refusing to issue me a
personal certificate in the name of my company which is registered as
a Fictitious Business Name, but since I am not incorporated, won't
sell me a corporate certificate. Anyone know what I should do or how I
can convince them to allow me to put the certificate in my business's
name?

Adobe?



Re: [flexcoders] how to receive params from html .... in flash

2009-01-02 Thread ivo
You can access it thru the loaderInfo 
(http://livedocs.adobe.com/flex/3/langref/flash/display/LoaderInfo.html)

var serverURL:String;
var port:String;

public function mySwf{
serverURL = String(loaderInfo.parameters['serverURL']);
port = String(loaderInfo.parameters['port']);
}


- Ivo



From: v.cekvenich 
To: flexcoders@yahoogroups.com
Sent: Friday, January 2, 2009 4:11:51 PM
Subject: [flexcoders] how to receive params from html  in flash


http://yakovfain. javadevelopersjo urnal.com/ passing_paramete rs_to_flex_ 
that_works. htm

I can do this an flex.

But... what if I am doing .as project, not flex.
How do I receive an argument?

tia,
.V



[flexcoders] Re: AdvancedDataGrid Tree - Help Required - Urgent

2009-01-02 Thread Amy
--- In flexcoders@yahoogroups.com, muruga  wrote:
>
> 
> Hi
> 
> I have advanceddatagrid in which i am displaying the data in Tree 
structure.
> Since the data is huge and it is taking lots of time to retrieve 
from
> databse, we wanted build the tree dynamically. Means initially we 
want to
> display the tree only will the parent nodes. Only when the user 
expands the
> parent node, we need to build the children node of this parent node 
(only
> when the user expands the parent node, we go to DB and retrieve the 
children
> node details). Is it possible to do this with FLEX advanceddatagrid 
tree
> structure. First i would like to know, is it feasible to do? if 
yes, then
> how to do it. It is very urgent.

I've done this, not with an AdvancedDatagrid, but with a 
HierarchicalCollectionView, which is what an ADG dataProvider is.  
Essentially, I called a service that gave me the top level of the 
hierarchy.  The objects that populate the HierarchicalCollectionView 
each have a method that loads the children.  

I don't wait for the user to open the nodes.  Instead, I start 
loading the children in the background by calling this method as soon 
as the top level is known.  The child object will generate an event 
when its children are loaded, and then the parent class (which has 
the HierarchichalCollectionView as a property) will call the next 
child in the line.

If a user selects a child that has not loaded its children yet, when 
the event fires that says the last child was loaded, I interrupt the 
predictive load to load that one.  This has been discussed recently 
on here, and I think the person who was doing this type of load on a 
Tree control had to do something once the load was complete to tell 
the node to open.

HTH;

Amy



[flexcoders] how to receive params from html .... in flash

2009-01-02 Thread v.cekvenich
http://yakovfain.javadevelopersjournal.com/passing_parameters_to_flex_that_works.htm

I can do this an flex.

But... what if I am doing .as project, not flex.
How do I receive an argument?

tia,
.V



Re: [flexcoders] AS3 RemoteObjects and Operations

2009-01-02 Thread Simon Bailey

Hi Wally,

For some examples of hooking up coldfusion to flex check the below  
links.  They are using PureMVC but if your simply view source and  
check out the proxy and delegate classes you will see the simple calls  
to cf and handling of the returned data.  Sure there is room for  
improvement now as I did them a while back but something to have a  
look at none the less.


http://trac.puremvc.org/Demo_AS3_Flex_CF_QueryCFC
http://www.nutrixinteractive.com/blog/?p=129

Cheers,

Simon

On 2 Jan 2009, at 23:27, Wally Kolcz wrote:


Wait..CFCs have methods, not operations

So do I remove the Operation variables and just create a function  
like:


public function create(petData:Object):void {
ro.create(petData);
ro.create.addEventListener(FaultEvent.FAULT,  
faultHandler);

   
}

From: "wkolcz" 
Sent: Friday, January 02, 2009 2:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AS3 RemoteObjects and Operations


Thank you to those that have taken the time to try to help me  
understand AS RemoteObjects. Its much more detailed than the mxml  
version, but that is why I want to learn it. Having said that...


When creating a DAO Class for CRUD, is it necessary / best practice  
declare the operation name? I don't see it declared in the few  
examples online that I can find for creating RemoteObjects in AS.  
For example, is this right for a set up?


package com.isavepets.data
{
import mx.rpc.events.FaultEvent;
import mx.rpc.remoting.Operation;
import mx.rpc.remoting.RemoteObject;

public class PetDAO
{

private var ro:RemoteObject;
private var create:Operation;
private var read:Operation;
private var update:Operation;
private var deletePet:Operation;

public function PetDAO()
{
var ro:RemoteObject = new RemoteObject();
ro.destination = "ColdFusion";
ro.source = "com.isavepets.pets.petDAO";
ro.addEventListener(FaultEvent.FAULT, faultHandler);
}

}
}

Then build functions off of them:

public function create(petData:Object):void {
var create:Operation = new Operation(ro, "create");
ro.create(petData):
}

Thanks again. trying to wrap my head about RemoteObjects and how to  
create them in one Class that my app can use over and over.









RE: [flexcoders] flex builder 3 on mini notebooks

2009-01-02 Thread Jim Hayes

I've got an eee901 with that spec, and it's an OK little machine for when I'm 
out and about and want low weight, small size and long battery.
Performance is not so bad for what it is, but I've never bothered running 
flexbuilder on it.
When I started with flexbuilder 2 I ran it on a 1.6 single core pentium m with 
less memory (768 I think) and it was just about bearable, so I don't doubt that 
you could run it.
However, the usual screen size on these netbooks (1024 x 600ish) would make FB 
a real struggle in terms of usability even if you are happy for it to be 
running a little slow.
You can get a cheap 15" laptop with dual core and more memory for not so much 
more these days, if you're going to run FB more than once or twice I think that 
would be a wiser choice.

-Original Message-
From: flexcoders@yahoogroups.com on behalf of hworke
Sent: Fri 02/01/2009 18:09
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex builder 3 on mini notebooks
 


  Hi now a days the stores are full of those $300 to $500
  mini notebooks with intel atom processor and up to 1 GB
  memory. Did any one try to install and use the Flex
  builder 3 on any of those mini laptops? If so how was 
  the performance?

  Regards



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__<>

re: [flexcoders] AS3 RemoteObjects and Operations

2009-01-02 Thread Wally Kolcz
Wait..CFCs have methods, not operations

So do I remove the Operation variables and just create a function like:

public function create(petData:Object):void {
ro.create(petData);
ro.create.addEventListener(FaultEvent.FAULT, faultHandler); 
   
   
}


From: "wkolcz" 
Sent: Friday, January 02, 2009 2:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AS3 RemoteObjects and Operations 

Thank you to those that have taken the time to try to help me understand AS 
RemoteObjects. Its much more detailed than the mxml version, but that is why I 
want to learn it. Having said that...

When creating a DAO Class for CRUD, is it necessary / best practice declare the 
operation name? I don't see it declared in the few examples online that I can 
find for creating RemoteObjects in AS. For example, is this right for a set up?

package com.isavepets.data
{
import mx.rpc.events.FaultEvent;
import mx.rpc.remoting.Operation;
import mx.rpc.remoting.RemoteObject;

public class PetDAO
{

private var ro:RemoteObject;
private var create:Operation;
private var read:Operation;
private var update:Operation;
private var deletePet:Operation;

public function PetDAO()
{
var ro:RemoteObject = new RemoteObject();
ro.destination = "ColdFusion";
ro.source = "com.isavepets.pets.petDAO";
ro.addEventListener(FaultEvent.FAULT, faultHandler);
}

}
}

Then build functions off of them:

public function create(petData:Object):void {
var create:Operation = new Operation(ro, "create");
ro.create(petData):
}

Thanks again. trying to wrap my head about RemoteObjects and how to create them 
in one Class that my app can use over and over.




RE: [flexcoders] Creating Asynchronous Classes

2009-01-02 Thread Kevin Benz
We use MD5 and understand the issue completely. We use classes that look
at the file a chunk at a time as we don't want to load 60+MB MP4 files
into a ByteArray. Our solution did help in keeping the general memory
overhead under control. The issue becomes one of time as although our
Air client can usually bring a large file down in a reasonable amount of
time (let's say 1-3 or so minutes for a broadband connection) the sticky
point is the MD5 typically ate another 2+ minutes to complete. Likewise
hoping to implement a progress indicator, MD5 (or any CRC like
mechanism) is processor heavy leaving you with the challenge the balance
of running an animation at the same time you want your processor to be
handling your check with the more animation, the slower your CRC will
be. 

 

If your mention of Asynchronous means you want this to run on its own
thread, then you need to realize that the Flash Player is single
threaded (but read about HTTP traffic).

 

KFB

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of nathanpdaniel
Sent: Friday, January 02, 2009 2:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Creating Asynchronous Classes

 

Is there a "primer" on creating asynchronous classes? I've been 
building an app that runs a CRC32 check on each file (which requires 
looking at every byte of every file). It doesn't cause issues when the 
files are small text files, but when they're 40mb video files, the app 
hangs till complete. I want the app to be able to update other things 
while waiting on the CRC32 functionality completes. Actually, all I 
need is some visual progress indicator (some way to update the 
display). 
Anyone with any suggestions! I'm all ears! :D

-N. D.

 

<><>

[flexcoders] AS3 RemoteObjects and Operations

2009-01-02 Thread wkolcz
Thank you to those that have taken the time to try to help me understand AS 
RemoteObjects. Its much more detailed than the mxml version, but that is why I 
want to learn it. Having said that...

When creating a DAO Class for CRUD, is it necessary / best practice declare the 
operation name? I don't see it declared in the few examples online that I can 
find for creating RemoteObjects in AS. For example, is this right for a set up?

package com.isavepets.data
{
import mx.rpc.events.FaultEvent;
import mx.rpc.remoting.Operation;
import mx.rpc.remoting.RemoteObject;

public class PetDAO
{

private var ro:RemoteObject;
private var create:Operation;
private var read:Operation;
private var update:Operation;
private var deletePet:Operation;

public function PetDAO()
{
var ro:RemoteObject = new RemoteObject();
ro.destination = "ColdFusion";
ro.source = "com.isavepets.pets.petDAO";
ro.addEventListener(FaultEvent.FAULT, faultHandler);
}

}
}

Then build functions off of them:

public function create(petData:Object):void {
var create:Operation = new Operation(ro, "create");
ro.create(petData):
}

Thanks again. trying to wrap my head about RemoteObjects and how to create them 
in one Class that my app can use over and over.



[flexcoders] model in UIComponent

2009-01-02 Thread stldvd
I've got some UI text fields and labels bound to properties in my model.

I'm dispatching an event which, when listened to, causes a popup to
appear:

var newRulesetWindow:IFlexDisplayObject =
PopUpManager.createPopUp(this, NewRuleset, true);
mx.managers.PopUpManager.centerPopUp(newRulesetWindow);

The popup appears fine, but there is no data loaded from the model.
I've stepped through the code and this is what appears to be
happening. I've got an instance of my model (instance named _model)
declared in the components that need it. But for some reason, after
those components' code has finished, I'm getting the following error
from UIComponent.as:

 private function callLaterDispatcher(event:Event):void 
No such variable: _model

So it isn't seeing it in this callLaterDispatcher. I'm not sure how to
get around this -- the _model instance is declared correctly in all my
components, but isn't being seen in the UIComponent. 

Anyone know what to do?

Thanks,

David



[flexcoders] Creating Asynchronous Classes

2009-01-02 Thread nathanpdaniel
Is there a "primer" on creating asynchronous classes?  I've been 
building an app that runs a CRC32 check on each file (which requires 
looking at every byte of every file).  It doesn't cause issues when the 
files are small text files, but when they're 40mb video files, the app 
hangs till complete.  I want the app to be able to update other things 
while waiting on the CRC32 functionality completes.  Actually, all I 
need is some visual progress indicator (some way to update the 
display).  
  Anyone with any suggestions!  I'm all ears! :D

-N. D.



Re: [flexcoders] ToggleButtonBar with one or more ComboBoxes instead of buttons: How to build it?

2009-01-02 Thread Alan Shaw
Thanks!

-A


On Fri, Jan 2, 2009 at 1:56 PM, Manish Jethani wrote:

>   On Fri, Jan 2, 2009 at 11:06 PM, Alan Shaw 
> >
> wrote:
>
> > The dataProvider would be like a Tree's, so for example an array where
> some
> > of the elements are leaves (-> buttons in the bar) and some are arrays
> (->
> > dropdown lists in the bar) (no deeper arrays, and no folder names). I
> want
> > the user to be able to choose a single leaf item from the set, either by
> > clicking one of the buttons or by choosing an item in one of the dropdown
> > lists.
>
> All I can say is that you'll have to extend the NavBar class and
> implement something like a ToggleButtonBar that uses ComboBox as a
> "nav item" in a sophisticated way. It's doable. Essentially what
> you're looking for is a cross between a MenuBar and a ToggleButtonBar,
> so I would draw inspiration from those two components.
>
> Manish
>
> --
> http://manishjethani.com/
>  
>


Re: [flexcoders] itemRenderer ComboBox

2009-01-02 Thread Mike Oliver

Perhaps its because it is an itemEditor, but just tried it and "value" in the
editorDataField saves the label string to the Grid, not the 'data' element.

Ollie


Manish Jethani wrote:
> 
> On Sat, Jan 3, 2009 at 12:16 AM, Mike Oliver 
> wrote:
> 
> [snip]
>> and that saves to the database, all great...however, the
>>
>> editorDataField="selectedItem" puts "[object Object]" into the Grid
>> instead
>> of the data element.
>>
>> I tried editorDataField="selectedItem.data" but that fails.  I tried
>> "value"
>> and "text" but it saves the Label.
>>
>> So what do I put in the editorDataField to save the 'data' to the Grid
>> instead of the object string or the label?
> 
> Strange. Setting editorDataField to 'value' should work if you have a
> field called 'data' in the selected item and that's the value you're
> looking for.
> 
> 
> http://www.adobe.com/2006/mxml";
>   xmlns="*" >
> 
>   
> 
>   
> 
>   
>   
> 
>   
> 
> 
> 
> Manish
> 
> -- 
> http://manishjethani.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/itemRenderer-ComboBox-tp21243094p21256481.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] flex builder 3 on mini notebooks

2009-01-02 Thread Ralf Bokelberg
I had one (1.8 Atom) for a day and decided to send it back. It was too
weak to scroll large websites, so i don't even bothered to install
something like FlexBuilder.
Ralf.

On Fri, Jan 2, 2009 at 7:09 PM, hworke  wrote:
>
>
> Hi now a days the stores are full of those $300 to $500
> mini notebooks with intel atom processor and up to 1 GB
> memory. Did any one try to install and use the Flex
> builder 3 on any of those mini laptops? If so how was
> the performance?
>
> Regards
>
> 


Re: [flexcoders] itemRenderer ComboBox

2009-01-02 Thread Manish Jethani
On Sat, Jan 3, 2009 at 12:16 AM, Mike Oliver  wrote:

[snip]
> and that saves to the database, all great...however, the
>
> editorDataField="selectedItem" puts "[object Object]" into the Grid instead
> of the data element.
>
> I tried editorDataField="selectedItem.data" but that fails.  I tried "value"
> and "text" but it saves the Label.
>
> So what do I put in the editorDataField to save the 'data' to the Grid
> instead of the object string or the label?

Strange. Setting editorDataField to 'value' should work if you have a
field called 'data' in the selected item and that's the value you're
looking for.


http://www.adobe.com/2006/mxml";
  xmlns="*" >

  

  

  
  

  



Manish

-- 
http://manishjethani.com


Re: [flexcoders] Detecting Enter Key After Editing a Datagrid Control

2009-01-02 Thread Manish Jethani
On Thu, Jan 1, 2009 at 3:29 PM, blissweb  wrote:

> Is there any quick way to run a function after someone hits enter
> after editing a datagrid cell.
>
> Ideally I want it to move to the next field if tabbed and insert a
> new row if they hit enter.
>
> I see there is a enter=  for TextInput... but how do I get this
> into the Datagrid editing cell ?
>
> I would also be interested in being able to click on a row with no
> data to add a new row.  So, if anyone knows how to do that it would
> be useful too ?  I seem to be able to capture a click on a row, but
> not sure how to detect click on "rows" with no data.

Actually I think the best way to do this may be to insert additional
rows into the data provider beforehand. So there will be empty rows to
begin with -- when the clicks on a cell in these rows, they become
editable, and the user can enter data. You'll have to deal with the
issues of sorting (you want the empty rows to always be at the
bottom), scrolling, and post-processing (discard the empty rows
afterwards).

Manish

-- 
http://manishjethani.com/


Re: [flexcoders] 1180 Error

2009-01-02 Thread Manish Jethani
On Fri, Jan 2, 2009 at 3:46 AM, jason1701e  wrote:

> I have the following Address Class:
>
> package com.jherrington
> {
>public class Address
>{

[snip]

> The problem is that I receive an 1180 Error saying the following:
> Call to a possible undefined method Address.

Is your Address class in the source path? Try declaring a variable of
type Address. If you get an error on compilation, your source path is
wrong. You can use the source-path compiler argument to mxmlc to add
the class to the path (or update the Project Properties in Flex
Builder).

Manish

-- 
http://manishjethani.com/


Re: [flexcoders] ToggleButtonBar with one or more ComboBoxes instead of buttons: How to build it?

2009-01-02 Thread Manish Jethani
On Fri, Jan 2, 2009 at 11:06 PM, Alan Shaw  wrote:

> The dataProvider would be like a Tree's, so for example an array where some
> of the elements are leaves (-> buttons in the bar) and some are arrays (->
> dropdown lists in the bar) (no deeper arrays, and no folder names).  I want
> the user to be able to choose a single leaf item from the set, either by
> clicking one of the buttons or by choosing an item in one of the dropdown
> lists.

All I can say is that you'll have to extend the NavBar class and
implement something like a ToggleButtonBar that uses ComboBox as a
"nav item" in a sophisticated way. It's doable. Essentially what
you're looking for is a cross between a MenuBar and a ToggleButtonBar,
so I would draw inspiration from those two components.

Manish

-- 
http://manishjethani.com/


Re: [flexcoders] itemRenderer ComboBox

2009-01-02 Thread Mike Oliver

Ok, so the itemEditor = ComboBox with the above Override and here it is as it
stands and works (up to a point).






 
 
 
  









Now this works perfectly now when I click in the Cell the ComboBox opens
with the selectedItem and when I select an option and exit the Cell the
DataGridEvent.ITEM_EDIT_END fires and I extract the data value to insert
into the parameters with

parameters[dsFieldName.substr(0,dsFieldName.length-3)] =
e.currentTarget.itemEditorInstance.selectedItem.data;

and that saves to the database, all great...however, the 

editorDataField="selectedItem" puts "[object Object]" into the Grid instead
of the data element.  

I tried editorDataField="selectedItem.data" but that fails.  I tried "value"
and "text" but it saves the Label.

So what do I put in the editorDataField to save the 'data' to the Grid
instead of the object string or the label?


-- 
View this message in context: 
http://www.nabble.com/itemRenderer-ComboBox-tp21243094p21255448.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Re: Can't remove an object?!

2009-01-02 Thread Igor Costa
My mistake,

You're problem is on removing. So where and when you call the remove
function?


Igor

On Fri, Jan 2, 2009 at 10:18 AM, Igor Costa  wrote:

> Try to addChild before you set the properties.
>
> If you're using as PopUp you will need that.
>
> Regards
> Igor
>
>
> On Fri, Jan 2, 2009 at 10:13 AM, Nate Pearson wrote:
>
>>   I had my remove effect typed as "fade" instead of "Fade". That's what
>> did it.
>>
>> --- In flexcoders@yahoogroups.com , "Manish
>> Jethani"
>>  wrote:
>>
>> >
>> > On Thu, Jan 1, 2009 at 6:30 AM, Nate Pearson  wrote:
>> > > I'm adding this opaque loading overlay to my application when it
>> > > loads. It's just a VBox. I'm pulling out my hair, any help is
>> > > greatly appreciated!
>> > >
>> > > Here's what I do:
>> >
>> > [snip]
>> >
>> > I'm not sure I understand where your problem is. When are you calling
>> > removeLoadingOverlay?
>> >
>> > I would use PopUpManager to add and remove the overlay (as opposed to
>> > adding it directly to the application).
>> >
>> > Manish
>> >
>>
>>  
>>
>
>
>
> --
> 
> Igor Costa
> www.igorcosta.com
> www.igorcosta.org
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


Re: [flexcoders] Re: Can't remove an object?!

2009-01-02 Thread Igor Costa
Try to addChild before you set the properties.

If you're using as PopUp you will need that.

Regards
Igor

On Fri, Jan 2, 2009 at 10:13 AM, Nate Pearson  wrote:

>   I had my remove effect typed as "fade" instead of "Fade". That's what
> did it.
>
> --- In flexcoders@yahoogroups.com , "Manish
> Jethani"
>  wrote:
>
> >
> > On Thu, Jan 1, 2009 at 6:30 AM, Nate Pearson  wrote:
> > > I'm adding this opaque loading overlay to my application when it
> > > loads. It's just a VBox. I'm pulling out my hair, any help is
> > > greatly appreciated!
> > >
> > > Here's what I do:
> >
> > [snip]
> >
> > I'm not sure I understand where your problem is. When are you calling
> > removeLoadingOverlay?
> >
> > I would use PopUpManager to add and remove the overlay (as opposed to
> > adding it directly to the application).
> >
> > Manish
> >
>
>  
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


[flexcoders] Re: Can't remove an object?!

2009-01-02 Thread Nate Pearson
I had my remove effect typed as "fade" instead of "Fade".  That's what
did it.


--- In flexcoders@yahoogroups.com, "Manish Jethani"
 wrote:
>
> On Thu, Jan 1, 2009 at 6:30 AM, Nate Pearson  wrote:
> > I'm adding this opaque loading overlay to my application when it
> > loads.  It's just a VBox.  I'm pulling out my hair, any help is
> > greatly appreciated!
> >
> > Here's what I do:
> 
> [snip]
> 
> I'm not sure I understand where your problem is. When are you calling
> removeLoadingOverlay?
> 
> I would use PopUpManager to add and remove the overlay (as opposed to
> adding it directly to the application).
> 
> Manish
>




[flexcoders] flex builder 3 on mini notebooks

2009-01-02 Thread hworke


  Hi now a days the stores are full of those $300 to $500
  mini notebooks with intel atom processor and up to 1 GB
  memory. Did any one try to install and use the Flex
  builder 3 on any of those mini laptops? If so how was 
  the performance?

  Regards



Re: [flexcoders] ToggleButtonBar with one or more ComboBoxes instead of buttons: How to build it?

2009-01-02 Thread Alan Shaw
Thanks, I should be more clear.

The dataProvider would be like a Tree's, so for example an array where some
of the elements are leaves (-> buttons in the bar) and some are arrays (->
dropdown lists in the bar) (no deeper arrays, and no folder names).  I want
the user to be able to choose a single leaf item from the set, either by
clicking one of the buttons or by choosing an item in one of the dropdown
lists.

-A


On Tue, Dec 30, 2008 at 2:31 AM, Manish Jethani wrote:

>   On Tue, Dec 30, 2008 at 5:46 AM, Alan Shaw 
> >
> wrote:
> > Requesting advice on how to get started making this custom component.
>
> A combo box is not exactly a button, so my first question is, how is
> this "ToggleButtonBar with ComboBox" going to behave exactly?
>
> Manish
>  
>


RE: [flexcoders] Re: Resizing Images.

2009-01-02 Thread Keith Reinfeld

Not sure what I am looking at... 

Is the 'good image' the original or a successful manipulation? 

If you are scaling up from a smaller image then you are almost sure to get
'jaggies', especially on diagonal lines. Smoothing can help to minimize
jaggies but can't be relied upon to completely eliminate them. 

Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 
 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of tchredeemed
Sent: Friday, January 02, 2009 1:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Resizing Images.

To see what I am talking about...

look at - http://www.andrewthorp.com/flexsmoothing/
 
<>

[flexcoders] AdvancedDataGrid Tree - Help Required - Urgent

2009-01-02 Thread muruga

Hi

I have advanceddatagrid in which i am displaying the data in Tree structure.
Since the data is huge and it is taking lots of time to retrieve from
databse, we wanted build the tree dynamically. Means initially we want to
display the tree only will the parent nodes. Only when the user expands the
parent node, we need to build the children node of this parent node (only
when the user expands the parent node, we go to DB and retrieve the children
node details). Is it possible to do this with FLEX advanceddatagrid tree
structure. First i would like to know, is it feasible to do? if yes, then
how to do it. It is very urgent.

Any help is appreciated. Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/AdvancedDataGrid-Tree---Help-Required---Urgent-tp21254073p21254073.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] sending vo to CF from Flex throws error

2009-01-02 Thread Derrick Anderson
yes, it's not mapped paths- and I can pull DecisionFileVO's FROM the cfc,
the only problem is when I try to send the same one back.

The specific code is this




in this case, SurveyPageVO contains an array property to hold
DecisionFileVO's.  It does not throw an error on the SurveyPageVO type, but
the nested DecisionFileVO type throws this error.

thanks,
d.

On Fri, Jan 2, 2009 at 10:28 AM, Paul Hastings wrote:

>   Derrick Anderson wrote:
> > the error is:
> >
> > Could not find the ColdFusion Component or Interface
> > API.winn.portal.1_0.callingApplication.vo.DecisionFileVO. Ensure that
> > the name is correct and that the component or interface exists.
> >
> > It definitely exists, but it always throws this error- any ideas?
>
> are you sure? the error's fairly specific. mapped CFC dir? if so did you
> set the
> flex config xml file to follow cf mappings?
>  
>


[flexcoders] Re: CSS style in itemrenderer

2009-01-02 Thread vincy8080
--- In flexcoders@yahoogroups.com, "Manish Jethani"
 wrote:
>
> On Wed, Dec 31, 2008 at 9:34 PM, vincy8080  wrote:
> 
> > Why is the CSS style not applied to my button in the datagrid
> > itemrenderer (see code below)? What should I do to apply the style
> > "buttonStyle" to the button in the itemrenderer?
> 
> Well, it seems the DataGrid just overwrites your 'styleName' setting
> with its own. It sets the styleName of the renderer to point to the
> DataGridColumn object.
> 
> Here's a workaround:
> 
> 
>   
>  preinitialize="event.target.styleName = 'myButton'" />
>   
> 
> 
> i.e. set styleName in the renderer's preinitialize handler. This way
> you overwrite the DataGrid's setting.
> 
> Manish
>

Yes, it works. 
Thank you Manish! :)



[flexcoders] Detecting Enter Key After Editing a Datagrid Control

2009-01-02 Thread blissweb
Hi,

Is there any quick way to run a function after someone hits enter 
after editing a datagrid cell.

Ideally I want it to move to the next field if tabbed and insert a 
new row if they hit enter.

I see there is a enter=  for TextInput... but how do I get this 
into the Datagrid editing cell ?

I would also be interested in being able to click on a row with no 
data to add a new row.  So, if anyone knows how to do that it would 
be useful too ?  I seem to be able to capture a click on a row, but 
not sure how to detect click on "rows" with no data.

Thanks,

Shaun





[flexcoders] FLEX soap client and php soap client

2009-01-02 Thread ocslhk
Hello, 

This is my first post here and the first time i use yahoo groups. I
have searched for something similar on the boards but haven't found it.

Anyway I am quite new flex and I'm building my first app real app. I
have an app running on a php server, and I'm using soap to communicate
with flex. I am also using the cairngorm framework. Everything have
been worked smooth until now. I have a few methods on the soap server
that recieves VOs. But some of VOs I cant use as arguments. I have no
idea why. Even if i create a new obj using just one property that is a
string it doesn't work. But i does work via the php soap client. 

When i look at the xml it is slightly different between php and flex
soap clients, but the definition of the VO is identical. 

>From php:

http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="http://singingfish.localhost"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>















from flex
http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
http://schemas.xmlsoap.org/soap/encoding/";>
http://singingfish.localhost";>













I have tried using both soap 1.1 and soap 1.2 on the php client and it
works the same.



[flexcoders] 1180 Error

2009-01-02 Thread jason1701e
Hello people,

I have the following Address Class:

package com.jherrington
{
public class Address
{
private var _first:String = '';
public function set first(str:String):void { _first = str; }
public function get first():String { return _first; }

private var _last:String = '';
public function set last(str:String):void { _last = str; }
public function get last():String { return _last; }

private var _email:String = '';
public function set email(str:String):void { _email = str; }
public function get email():String { return _email; }

public function Address(inFirst:String, inLast:String, 
inEmail:String)
{
first = inFirst;
last = inLast;
email = inEmail;
}
}
}


And I'm importing it into the following mxml file:


http://www.adobe.com/2006/mxml";
layout="vertical">















The problem is that I receive an 1180 Error saying the following: 
Call to a possible undefined method Address.

Can anyone help me figure out this problem?


Thanks



[flexcoders] How setup flash player interface language

2009-01-02 Thread Robert Was
After fp debug version update 10 player displays his  interface 
(interesting for me: trace window and error messages) in language of my 
non-english OS. Is it possible to revert to old english translation?



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[flexcoders] Is it possible to have the swf and LCDS app on different servers?

2009-01-02 Thread lb100lb
I have a flex client from which I would like to make RemoteObject calls 
through LCDS to a J2EE server.

Is it possible for my swf to be on a different server from my LCDS app?
If so, how should my client be configured, compiled and deployed? What 
would be deployed to my LCDS server?

How would my client know to call the server?

(I have used flex client with LCDS server when both are hosted on the 
same server.)

Thanks,
Larry



Re: [flexcoders] sending vo to CF from Flex throws error

2009-01-02 Thread Paul Hastings
Derrick Anderson wrote:
> the error is:
> 
> Could not find the ColdFusion Component or Interface 
> API.winn.portal.1_0.callingApplication.vo.DecisionFileVO. Ensure that 
> the name is correct and that the component or interface exists.
> 
> It definitely exists, but it always throws this error- any ideas?

are you sure? the error's fairly specific. mapped CFC dir? if so did you set 
the 
flex config xml file to follow cf mappings?


Re: [flexcoders] Any Developers on a Mac?

2009-01-02 Thread Paul Andrews
Arghh.. I should have never said anything - daughter drops ipod and it's now 
rather unhappy - three weeks out of warranty...  :-(
  - Original Message - 
  From: Paul Andrews 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, January 01, 2009 12:37 PM
  Subject: Re: [flexcoders] Any Developers on a Mac?


   
  It just goes to show you can't generalise about these things. We have an 
inspiron 8200 still going strong and my son was skeptical that the ipod classic 
that we bought our daughter would last long since his friends had had 
experiences. Her ipod is going strong, his MP3player is pretty useless now and 
he's going to buy the ipod classic he warned us about..
- Original Message - 
From: Nick Collins 
To: flexcoders@yahoogroups.com 
Sent: Wednesday, December 31, 2008 2:52 PM
Subject: Re: [flexcoders] Any Developers on a Mac?


I've had the same problems with PCs though. I have a Dell Inspiron that has 
had to have the screen replaced twice, the keyboard replaced twice because it 
just stopped working, the video card replaced, and the motherboard replaced 
under warranty. It literally is almost a completely new laptop from when I 
first bought it.


On Wed, Dec 31, 2008 at 5:41 AM, Weyert de Boer  wrote:

  Wow. Currently, each notebook I have had from Apple needed fixes via 
  warranty. My G4 got is screen replaced and the MBP is still a big drama 
  with two topcase replacements, two screens and keyboard key fix. 
  Basically it needs to a new warranty because the last time they broke 
  the keyboard lightning and the topcase is falling apart again while it 
  hasn't even travelled since the last fix. Terrible :(




   

Re: [flexcoders] Re: sending vo to CF from Flex throws error

2009-01-02 Thread Derrick Anderson
i'm sorry, i'm getting this error in a few places and the error i pasted
didn't match the code i copied - however the 2 types do match up in the case
of the error and i've followed all the rules for making this happen, aliased
the cfc with the path, put in remoteclass metadata on AS value object, but
it still throws the error.

thanks,
d.

On Fri, Jan 2, 2009 at 9:24 AM, valdhor  wrote:

>   You are expecting an argument of type DecisionBlockVO but the error
> says it can't find a type of DecisionFileVO.
>
> Are you sure you have the same types set up in both Flex and CF8? It
> looks like the type on the Flex end is DecisionFileVO and the type on
> the CF8 end is DecisionBlockVO.
>
> HTH
>
> Steve
>
> --- In flexcoders@yahoogroups.com , "Derrick
> Anderson"
>
>  wrote:
> >
> > I have a flex 3 app talking to CF8 over RemoteObject calling CFC's.
> > Whenever I send a VO as an argument to a cfc function CF throws an error
> > saying it can't find the VO as a datatype, here is an example-
> >
> >  access="remote"
> > output="false" returntype="void">
> >  > type="API.winn.portal.1_0.callingApplication.vo.DecisionBlockVO"
> > required="true">
> >
> > the error is:
> >
> > Could not find the ColdFusion Component or Interface
> > API.winn.portal.1_0.callingApplication.vo.DecisionFileVO. Ensure
> that the
> > name is correct and that the component or interface exists.
> >
> > It definitely exists, but it always throws this error- any ideas?
> >
> > thanks,
> > d.
> >
>
>  
>


[flexcoders] Unsupported tags in ASDoc

2009-01-02 Thread dopenhagen
How does the ASDoc utility tool handle unsupported tags ?

The reason for me to think about this is that I wish to have an easily
followable standard for TODO, FIXME, HACK and BRAG tags in our codebase.

In general it seems like the most common standard is as follows:
// [Tag]: [Description]
Example...
// TODO: Don't forget to clear the cache

However, I was thinking about copying the existing standard:
/**
* [Description]
* @param [Description]
* @return [Description]
*/

so in the end I would have something like this:
/**
* Constructor for the Mediator, should be called by the controller and
hence not directly
* @param component This is the component for which the mediator will
do its work
* @fixme This argument should not be optional according to Dep.Inj.
pattern
* @todo Bind EventListeners to the component passed in as argument
*/





[flexcoders] Re: sending vo to CF from Flex throws error

2009-01-02 Thread valdhor
You are expecting an argument of type DecisionBlockVO but the error
says it can't find a type of DecisionFileVO.

Are you sure you have the same types set up in both Flex and CF8? It
looks like the type on the Flex end is DecisionFileVO and the type on
the CF8 end is DecisionBlockVO.


HTH



Steve


--- In flexcoders@yahoogroups.com, "Derrick Anderson"
 wrote:
>
> I have a flex 3 app talking to CF8 over RemoteObject calling CFC's.
> Whenever I send a VO as an argument to a cfc function CF throws an error
> saying it can't find the VO as a datatype, here is an example-
> 
>  output="false" returntype="void">
>  type="API.winn.portal.1_0.callingApplication.vo.DecisionBlockVO"
> required="true">
> 
> the error is:
> 
> Could not find the ColdFusion Component or Interface
> API.winn.portal.1_0.callingApplication.vo.DecisionFileVO. Ensure
that the
> name is correct and that the component or interface exists.
> 
> It definitely exists, but it always throws this error- any ideas?
> 
> thanks,
> d.
>




Re: [flexcoders] Flex Builder 3 and SWFObject with IE - blocked content

2009-01-02 Thread Rick Schmitty
Thanks for the reply Li, but that does not work.  I think the
trasnparent mode was for popups or something if I recall


For completeness of Flex Coders search, Aran Rhee on the swfobject
list provided the fix:

1. give your page(s) the "mark of the web" - by adding this line to your
HTML page. This circumvents IE's "local machine lockdown" which was
introduced in XP SP2 and Vista. This line should go just after your DOCTYPE
declaration.



More info here:
http://msdn.microsoft.com/en-us/library/ms537628(VS.85).aspx




So if you take the examples online and try them in flex builder, just
add that saved from url tag.  This is included in the default adobe
html too


On Fri, Jan 2, 2009 at 6:18 AM, li wenzhi  wrote:
> you need to set the wmode to transparent:
>
> var flashvars = {};
> var params = {wmode:"transparent"};
> var attributes = {};
> swfobject.embedSWF("myContent.swf", "myContent", "300", "120",
> "9.0.0","expressInstall.swf", flashvars, params, attributes);
>
> --
> lwz7512
> Ultrapower Flex Team Leader
> http://www.ultrapower.com.cn
> 
> From: Rick Schmitty 
> To: flexcoders@yahoogroups.com
> Sent: Wednesday, December 31, 2008 10:54:10 PM
> Subject: Re: [flexcoders] Flex Builder 3 and SWFObject with IE - blocked
> content
>
> There are indeed a bunch of examples, but none mention the use of Flex
> Builder debuging in IE that I've seen. I've tried the included
> examples with SWFObject 2.1, the SWFObject 2 html generator and
> somebody's example for use with Flex Builder
>
> I'm wondering if Flex Builder modifies some kind of security white
> list in IE so they are allowed to run the adobe javascript w/o
> 'warnings'
>
> On Tue, Dec 30, 2008 at 2:05 PM, Tracy Spratt 
> wrote:
>> Oops, sorry, maybe. You are past where I can help. Surely there are some
>> full examples using swfobject?
>>
>> Tracy
>>
>>
>>
>>  _ _ __
>>
>> From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] On
>> Behalf Of Rick Schmitty
>> Sent: Monday, December 29, 2008 9:08 PM
>> To: flexcod...@yahoogro ups.com
>> Subject: Re: [flexcoders] Flex Builder 3 and SWFObject with IE - blocked
>> content
>>
>>
>>
>> Sorry.. confused... isn't that what my html is doing?
>>
>> SWFObject is instantiating FlashPlayer afaik?
>>
>> On Mon, Dec 29, 2008 at 3:10 PM, Tracy Spratt 
>> wrote:
>>> The way around that IE thing is, instead of directly declaring the
>>> Object/embed tag, use javascript to instantiate the FlashPlayer. That is
>>> why the generated wrapper calls the function in the .js file.
>>>
>>>
>>>
>>> Tracy
>>>
>>>
>>>
>>>  _ _ __
>>>
>>> From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] On
>>> Behalf Of Rick Schmitty
>>> Sent: Monday, December 29, 2008 2:14 PM
>>> To: flexcod...@yahoogro ups.com
>>> Subject: [flexcoders] Flex Builder 3 and SWFObject with IE - blocked
>>> content
>>>
>>>
>>>
>>> I'm trying to use swfobject in Flex builder and running into some
>>> issues debugging.
>>>
>>> When I launch a debugging session, IE always says it is blocking
>>> content and I have to click to allow blocked content each time
>>>
>>> Is there some trick to get it to work? I'm assuming the built in
>>> Adobe JS gets some kinda 'pass' somewhere such that IE doesnt complain
>>> about it
>>>
>>> Here's my index.template. html
>>>
>>> 
>>>
>>> 
>>> My Flex App
>>> 
>>>
>>> 
>>> 
>>>
>>> 
>>> body { margin: 0px; overflow:hidden }
>>> 
>>> 
>>>
>>> 
>>>
>>> 
>>> In order to view this you need JavaScript and Flash Player 9 or
>>> greater
>>> 
>>>
>>> 
>>> // >> var so = new SWFObject('$ {swf}.swf' , '${application} ', '100%',
>>> '100%', '9', '${bgcolor}' );
>>> so.useExpressInstal l('playerProduct Install.swf' );
>>> so.addParam( 'menu', 'false');
>>> so.write('content' );
>>> // ]]>
>>> 
>>>
>>> 
>>> 
>>>
>>>
>>
>>
>
> 


Re: [flexcoders] hideing a tab in a TabNavigator

2009-01-02 Thread Mario Vieira
editing the display list is a way, or simply trying to set the tabNav  
children visible to true/false is also a goal


you can create your UI with a method, and so perform checks to see who  
will be added at run time or not
you can create item renderers that uses XML, and perform further  
checks based on the UI

or, or...

HOWEVER, I would not remove and add child without a more developed way  
of doing this so (what about the info you may have in this tab  
container?)


On 31 Dec 2008, at 15:46, btroop202 wrote:


How can I hide a with AS3 when a if condition is true.  So it would
show in the TabNavigator sometimes.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 
! Groups Links








Re: [flexcoders] Flex Builder 3 and SWFObject with IE - blocked content

2009-01-02 Thread li wenzhi
you need to set the wmode to transparent:

varflashvars ={};
varparams={wmode:"transparent"};
varattributes ={};
swfobject.embedSWF("myContent.swf","myContent","300","120","9.0.0","expressInstall.swf",flashvars,params,attributes);

 --
lwz7512
Ultrapower Flex Team Leader
http://www.ultrapower.com.cn




From: Rick Schmitty 
To: flexcoders@yahoogroups.com
Sent: Wednesday, December 31, 2008 10:54:10 PM
Subject: Re: [flexcoders] Flex Builder 3 and SWFObject with IE - blocked content


There are indeed a bunch of examples, but none mention the use of Flex
Builder debuging in IE that I've seen.  I've tried the included
examples with SWFObject 2.1, the SWFObject 2 html generator and
somebody's example for use with Flex Builder

I'm wondering if Flex Builder modifies some kind of security white
list in IE so they are allowed to run the adobe javascript w/o
'warnings'

On Tue, Dec 30, 2008 at 2:05 PM, Tracy Spratt  wrote:
> Oops, sorry, maybe.  You are past where I can help.  Surely there are some
> full examples using swfobject?
>
> Tracy
>
>
>
>  _ _ __
>
> From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] On
> Behalf Of Rick Schmitty
> Sent: Monday, December 29, 2008 9:08 PM
> To: flexcod...@yahoogro ups.com
> Subject: Re: [flexcoders] Flex Builder 3 and SWFObject with IE - blocked
> content
>
>
>
> Sorry.. confused... isn't that what my html is doing?
>
> SWFObject is instantiating FlashPlayer afaik?
>
> On Mon, Dec 29, 2008 at 3:10 PM, Tracy Spratt  wrote:
>> The way around that IE thing is, instead of directly declaring the
>> Object/embed tag, use javascript to instantiate the FlashPlayer. That is
>> why the generated wrapper calls the function in the .js file.
>>
>>
>>
>> Tracy
>>
>>
>>
>>  _ _ __
>>
>> From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] On
>> Behalf Of Rick Schmitty
>> Sent: Monday, December 29, 2008 2:14 PM
>> To: flexcod...@yahoogro ups.com
>> Subject: [flexcoders] Flex Builder 3 and SWFObject with IE - blocked
>> content
>>
>>
>>
>> I'm trying to use swfobject in Flex builder and running into some
>> issues debugging.
>>
>> When I launch a debugging session, IE always says it is blocking
>> content and I have to click to allow blocked content each time
>>
>> Is there some trick to get it to work? I'm assuming the built in
>> Adobe JS gets some kinda 'pass' somewhere such that IE doesnt complain
>> about it
>>
>> Here's my index.template. html
>>
>> 
>>
>> 
>> My Flex App
>> 
>>
>> 
>> 
>>
>> 
>> body { margin: 0px; overflow:hidden }
>> 
>> 
>>
>> 
>>
>> 
>> In order to view this you need JavaScript and Flash Player 9 or
>> greater
>> 
>>
>> 
>> // > var so = new SWFObject('$ {swf}.swf' , '${application} ', '100%',
>> '100%', '9', '${bgcolor}' );
>> so.useExpressInstal l('playerProduct Install.swf' );
>> so.addParam( 'menu', 'false');
>> so.write('content' );
>> // ]]>
>> 
>>
>> 
>> 
>>
>>
>
>