[flexcoders] Basic question: Formatting number as Minutes and Seconds

2007-06-05 Thread mocalocamm
My xml has a value for time = 745.64692403 for each node

I would like to format ths number like this:
mm:ss

I read about a formatSeconds() method but I am not sure how to use it.

Can anyone share a light please?



[flexcoders] Throwing DataSyncException Error - Flex Data Management

2007-06-05 Thread Dharmendran A
Hi,

I have built a sample .MXML application for testing Flex Data Management. In 
client iam using DataService to connect to the destination like,


Iam able to view all the records using ds.fill(). Iam able to add a new 
employee record using addItem() of the ArrayCollection and by calling 
ds.commit()

I could see data synchronization happening in multiple clients.

Now, the problem is iam not able to modify or delete any record. Iam getting an 
error 

"Throwing DataSyncException when trying to update employee id=4"
"Throwing DataSyncException when trying to delete employee id=4"

The code looks like this:
var emp:Employee=contacts.getItemAt(4) as Employee;
ds.autoCommit=false;
emp.firstName="Dharmendran";
emp.lastName="Arumugam";
ds.commit();

Pls help me.

Thanks,
Darmendran A


   

Be a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

[flexcoders] 'flexcoders' yahoo group settings

2007-06-05 Thread Ariel Jakobovits
Does anyone know how and why the server chooses when to send the digest email?




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


[flexcoders] Re: default background and loader colors, etc

2007-06-05 Thread dnk
I found a reference (in an odd blog) to having to add a compiler argument:

-default-background-color #xx

Is this the best way to deal with this?

dnk

On 6/5/07, dnk <[EMAIL PROTECTED]> wrote:
> Hi there, I have an app I am building, and I changed the background
> color, etc. But for some reason when I load the app, it shows the
> default colors, and then switches to my colors after loading... How
> can I change that?
>
> Thanks!
>
> dnk
>


[flexcoders]

2007-06-05 Thread Rohan Pinto
Could someone please advise me on this.

I have the mx:VideoDisplay component;

code as follows encapsulated in (






demo url: http://opentube.info (click on any video thumbnail to load 
the video...)

I have 2 issues.
1. the play/pause/stop buttons dont work...
2. when the user closes the Tilewindow, the video DOES NOT unload, 
the audio still keeps playing...

please advise...

Rohan
http://opentube.info



[flexcoders] A stack overflow error has occurred (Flex Builder 2 error)

2007-06-05 Thread Ben
I right clicked on a table in RDS Dataview and selected "show table
contents". After doing this i get the following in a pop-up window:

A stack overflow error has occurred.
You are recommended to exit the workbench.
Subsequent errors may happen and may terminate the workbench without
warning.
See the .log file for more details.

I have eclipse 3.2.2 and flexbuilder 2.01.

I deleted and then re-installed the coldfusion extensions and this did
not make a difference.

What can I do to eliminate this problem?

Thanks in advance.

Below is part of the ".log" file (exceeds maximum message size) from
my .metadata directory (perhaps this means something to someone):

!SESSION 2007-06-03 14:14:27.234
---
eclipse.buildId=M20070212-1330
java.version=1.6.0_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

This is a continuation of log file
C:\CFusionMX7\wwwroot\.metadata\.bak_0.log
Created Time: 2007-06-03 14:15:29.390

!ENTRY org.eclipse.ui.workbench 4 0 2007-06-03 14:15:29.390
!MESSAGE Widget disposed too early!
!STACK 0
java.lang.RuntimeException: Widget disposed too early!
at
org.eclipse.ui.internal.WorkbenchPartReference$1.widgetDisposed(WorkbenchPartReference.java:153)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:101)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:933)
at org.eclipse.swt.widgets.Widget.release(Widget.java:743)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:636)
at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:636)
at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:636)
at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:117)
at
org.eclipse.swt.widgets.Decorations.releaseChildren(Decorations.java:722)
at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:1062)
at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:415)
at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:397)
at org.eclipse.swt.widgets.Shell.dispose(Shell.java:627)
at org.eclipse.jface.window.Window.close(Window.java:330)
at
org.eclipse.jface.window.ApplicationWindow.close(ApplicationWindow.java:299)
at
org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1510)
at
org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:622)
at
org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:598)
at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindow.java:713)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:711)
at org.eclipse.jface.window.WindowManager.close(WindowManager.java:109)
at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:715)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:712)
at org.eclipse.ui.internal.Workbench.access$8(Workbench.java:642)
at org.eclipse.ui.internal.Workbench$15.run(Workbench.java:855)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:853)
at
org.eclipse.ui.internal.WorkbenchConfigurer.emergencyClose(WorkbenchConfigurer.java:165)
at
org.eclipse.ui.internal.ide.IDEExceptionHandler.closeWorkbench(IDEExceptionHandler.java:123)
at
org.eclipse.ui.internal.ide.IDEExceptionHandler.handleException(IDEExceptionHandler.java:101)
at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.eventLoopException(IDEWorkbenchAdvisor.java:298)
at
org.eclipse.ui.internal.ExceptionHandler.handleException(ExceptionHandler.java:62)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1934)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect

[flexcoders] default background and loader colors, etc

2007-06-05 Thread dnk
Hi there, I have an app I am building, and I changed the background
color, etc. But for some reason when I load the app, it shows the
default colors, and then switches to my colors after loading... How
can I change that?

Thanks!

dnk


[flexcoders] reading a file in the parent directory

2007-06-05 Thread ivansebastiansurya
Hi everyone,

Is there any way we can use HttpService to read from a file which is in 
the parent directory of our mxml file?
Let say I have the following folder structure: 
A/B/C/D and my mxml is in folder D, but it needs to reads a text file 
in folder A.
Thanks,

Ivan.



[flexcoders] container Grey when used in custom component

2007-06-05 Thread dnk
Hi there, I have a custom component I am writing, and for some reason
my layout containers contain a grey background instead of showing the
application's background (a typical gradient). I tried setting the
alpha on the background and so on, but it still shows like that. When
I paste in the component code into the main app (containers and all) -
they are not grey. Am I missing something basic?

Thanks!

dnk


RE: [flexcoders] Make datagrid into spreadsheet

2007-06-05 Thread Dimitrios Gianninas
set the editable property to the DataGrid to true
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark 
Ingram
Sent: Tuesday, June 05, 2007 8:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Make datagrid into spreadsheet



Hi, I want to be able to type into any row of a datagrid and enter new data. 
How easily can this be done?

Mark

 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



[flexcoders] Re: how to eliminate the grey background of a disabled TileList

2007-06-05 Thread Doug Lowder
Try:

  

TileList inherits that style from ItemList.

--- In flexcoders@yahoogroups.com, "Erik Price" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Caveat: this question is for a Flex 1.5 app.
> 
> Question: How do I prevent the TileList from creating a grey
> background color when I set enabled="false" ?
> "backgroundDisabledColor" doesn't seem to apply to the selected 
item.
> 
> What I have done so far:  In my app I have a TileList component, 
whose
> background color is normally #FF, that I have disabled by 
setting
> its "enabled" property to "false" in the MXML file.  This resulted 
in
> the entire TileList having a grey color over (or under) it, which is
> the default behavior for a disabled TileList.  I found the
> "backgroundDisabledColor" and set it to "#FF", which ALMOST 
solves
> the problem.  The remaining issue is that the currently selected 
item
> in the TileList still has the grey background.  So, to paint a 
picture
> of what it looks like, my disabled TileList has a white background 
for
> all of the cells except the one that is selected.
> 
> Any advice you can provide would be gratefully appreciated.
> 
> Erik
>




[flexcoders] How to add a component through a library

2007-06-05 Thread Guillermo Villasana
I have a complex component made in mxml, and it has action scripts that 
make some parts go visible or invisible. The problem is that when I try 
to add them into a library, the actionscript tells me that I can not 
hide a specific element of the component because this element does not 
have properties.

Any help would be appreciated.
Terius


RE: [flexcoders] My swf application does not get input focus on startup.... why?

2007-06-05 Thread Alex Harui
The browsers steal focus.  I've heard that somebody figured out enough
Javascript, but I'm not sure if it worked in all cases.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mjharris73
Sent: Tuesday, June 05, 2007 2:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] My swf application does not get input focus on
startup why?

 

We are developing a web appliation using flex builder 2. Our initial
flex "page" has a single TextInput field for login. It gets focus
(ie, it is highlighted in blue", the cursor is not active nor can we
type into the field until we click somewhere in the app. Until then,
the focus is in the browser tool bars. Tabbing does not help.

Any suggestions how to get input focus into the swf on startup???

Thanks.

Mike

 



RE: [flexcoders] Re: Selecting which Child Components to add at runtime

2007-06-05 Thread Alex Harui
Plenty of examples in the documentation.  Check out doc on custom
components.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sean Sell
Sent: Tuesday, June 05, 2007 1:23 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Selecting which Child Components to add at
runtime

 

do you have an example of this technique?

- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, June 5, 2007 3:35:10 PM
Subject: RE: [flexcoders] Re: Selecting which Child Components to add at
runtime

You could try changing .visible and .includeInLayout instead of
adding/removing.

 

The best practice for resolving multiple properties is to use the
invalidatePropertie s/commitProperti es technique.

 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
On Behalf Of Sean Sell
Sent: Tuesday, June 05, 2007 11:13 AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] Re: Selecting which Child Components to add at
runtime

 

Not quite. I have items 0 through 5 I want them to be displayed in that
order but if 4 is not displayed then I get an out of bounds error when I
addChild At 5. It may happen when 2 is drawn even if 0 and 1 are going
to be drawn but since I have no control over order it evaluates the
variables in the MXML invocation that will generate an error also

i.e.



- Original Message 
From: Alex Harui <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, June 5, 2007 1:20:41 PM
Subject: RE: [flexcoders] Re: Selecting which Child Components to add at
runtime

The order of items in HBox/VBox is their childIndex order.
addChildAt(myButton , 0) should put it first.

 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
On Behalf Of rough68fish
Sent: Tuesday, June 05, 2007 10:05 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Re: Selecting which Child Components to add at
runtime

 

When showAssociate is set to true the button shows up, but I want it
always to show up first.

Here's my code:

http://www.adobe. com/2006/ mxml
 ">














--- In [EMAIL PROTECTED] ups.com 
, "rough68fish" 
wrote:
>
> Can you extend this concept slightly for me. I have several dynamic
> items to display in the view (whether they are displayed is controled
> through binding and set functions) this works.
>
> I just can figure out how to control the order that they are drawn on
> the page.
>
>
>
> --- In [EMAIL PROTECTED] ups.com
 , "Alex Harui" aharui@ wrote:
> >
> > Are you asking about:
> >
> >
> >
> > private function fAddCustomView( compClass: Class):void
> > {
> > var canCustView: Container = Container(new compClass()) ;
> > canCustView. label = "Custom " +
> > cbCompList.selected Item.label;
> > vsComps.addChild( canCustView) ;
> > }
> >
> >
> >
> > ...
> >
> > fAddCustomView( Comp1);
> >
> >
> >
> >
> >
> >  _ _ __
> >
> > From: [EMAIL PROTECTED] ups.com
  [mailto:[EMAIL PROTECTED]
ups.com  ]
On
> > Behalf Of phall121
> > Sent: Monday, June 04, 2007 12:39 PM
> > To: [EMAIL PROTECTED] ups.com
 
> > Subject: [flexcoders] Selecting which Child Components to add at
runtime
> >
> >
> >
> > I want to add views to a ViewStack at runtime by selecting from an
> > expanding table of Custom Components.
> >
> > As the simplified code below shows, I can figure out how to add any
> > one and hard code it. But the addChild method of the ViewStack
> > seems to require that you know ahead of time which component you
> > want to add. I can not find in the docs or online a way to make
> > this dynamic.
> >
> > In other words, when I define the new component view to add to the
> > view stack
> > {
> > var canCustView: Comp1 = new Comp1();
> > canCustView. label = "Custom " + cbCompList.selected Item.label;
> > vsComps.addChild( canCustView) ;
> > }
> > ...I want to choose at runtime whether to instantiate views from
> > Comp1, Comp17, or Comp53, etc.
> >
> > Any ideas how to accomplish this? Thanks for your thoughts!
> >
> > Here is the simplified code.
> >
> > http://www.adobe. com/2006/ mxml
 
> >  >
"
> > layout="absolute"
> > xmlns:comp=" components. *">
> >
> > 
> > 
> > 
> >
> >  > click="fAddView( )"/>
> >
> >  > click="fAddCustomVi ew()"/>
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >  > labelField=" app" y="108" x="27"/>
> >
> >  > x="200" y="108" backgroundColor= "#C9" >
> >
> >  > horizontalScrollPol icy="off" >
> > 
> >  > text="Input: "/>
> > 
> > 
> > 
> >
> > 
> >
>

 

 



Shap

Re: [flexcoders] Trouble skinning HSlider

2007-06-05 Thread Doug McCune

Extend mx.controls.sliderClasses.SliderThumb

override the measure() function with something like this:

override protected function measure():void
   {
   super.measure();

   measuredWidth = THE_WIDTH_YOU_WANT;
   measuredHeight = THE_HEIGHT_YOU_WANT;
   }

Then set the sliderThumbClass attribute of your Slider to the class
reference for your extended thumb class. The default SliderThumb class has a
width and height of 12 hardcoded in.

Doug



On 6/5/07, joshbuhler <[EMAIL PROTECTED]> wrote:


  First, a picture of what's going on:

http://joshbuhler.com/images/sliders.jpg

I want the slider to appear like the slider on the right. However, once it
loads in Flex, I get
the slider on the left - with the shrunken thumb button.

The graphics were done in Flash CS3, and have been exported into a swf.
The CSS rule I've
defined for the slider is as follows:

Slider {
thumbDisabledSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_disabledSkin");
thumbDownSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_downSkin");
thumbOverSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_overSkin");
thumbUpSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_upSkin");
trackHighlightSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderHighlight_Skin");
trackSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderTrack_Skin");
dataTipOffset: -50;
}

I've been searching for ways to specify the height of the thumb for a
while now, and
haven't had any luck. Any suggestions?

 



[flexcoders] Re: textfield vertical spacing

2007-06-05 Thread scalenine
I believe setting a value for leading will do what you're looking for.



I think the term leading comes from the "olden days" of printing
presses when lead was used to create space between lines of text.

Hope that helps.

Juan
scalenine.com

--- In flexcoders@yahoogroups.com, "blc187" <[EMAIL PROTECTED]> wrote:
>
> Is there a way to adjust the vertical spacing between lines in a 
> textfield?
> 
> I am using a multiline UITextField and would like to adjust the gap 
> between lines, though can only find letterSpacing which adjusts the 
> spacing between characters... any help?
>




[flexcoders] how to eliminate the grey background of a disabled TileList

2007-06-05 Thread Erik Price
Hi,

Caveat: this question is for a Flex 1.5 app.

Question: How do I prevent the TileList from creating a grey
background color when I set enabled="false" ?
"backgroundDisabledColor" doesn't seem to apply to the selected item.

What I have done so far:  In my app I have a TileList component, whose
background color is normally #FF, that I have disabled by setting
its "enabled" property to "false" in the MXML file.  This resulted in
the entire TileList having a grey color over (or under) it, which is
the default behavior for a disabled TileList.  I found the
"backgroundDisabledColor" and set it to "#FF", which ALMOST solves
the problem.  The remaining issue is that the currently selected item
in the TileList still has the grey background.  So, to paint a picture
of what it looks like, my disabled TileList has a white background for
all of the cells except the one that is selected.

Any advice you can provide would be gratefully appreciated.

Erik


[flexcoders] Searching in Flex

2007-06-05 Thread tkacyndra
we have an internal Google search at work, which i would like to 
implement in my Flex app.

it looks something like this:
[code]

http://mysite.com"; method="GET" name="xx">








 

[/code]

i  dont understand how to pass these parameters in.
what do i use? where do i start?
please help!



[flexcoders] My swf application does not get input focus on startup.... why?

2007-06-05 Thread mjharris73
We are developing a web appliation using flex builder 2.  Our initial
flex "page" has a single TextInput field for login.  It gets focus
(ie, it is highlighted in blue", the cursor is not active nor can we
type into the field until we click somewhere in the app.  Until then,
the focus is in the browser tool bars.  Tabbing does not help.

Any suggestions how to get input focus into the swf on startup???

Thanks.

Mike



[flexcoders] Trouble skinning HSlider

2007-06-05 Thread joshbuhler
First, a picture of what's going on:

http://joshbuhler.com/images/sliders.jpg

I want the slider to appear like the slider on the right. However, once it 
loads in Flex, I get 
the slider on the left - with the shrunken thumb button.

The graphics were done in Flash CS3, and have been exported into a swf. The CSS 
rule I've 
defined for the slider is as follows:


Slider {
thumbDisabledSkin: Embed(source="/assets/skins/viewerSkin.swf", 
symbol="SliderThumb_disabledSkin");
thumbDownSkin: Embed(source="/assets/skins/viewerSkin.swf", 
symbol="SliderThumb_downSkin");
thumbOverSkin: Embed(source="/assets/skins/viewerSkin.swf", 
symbol="SliderThumb_overSkin");
thumbUpSkin: Embed(source="/assets/skins/viewerSkin.swf", 
symbol="SliderThumb_upSkin");
trackHighlightSkin: Embed(source="/assets/skins/viewerSkin.swf", 
symbol="SliderHighlight_Skin");
trackSkin: Embed(source="/assets/skins/viewerSkin.swf", 
symbol="SliderTrack_Skin");
dataTipOffset: -50;
}

I've been searching for ways to specify the height of the thumb for a while 
now, and 
haven't had any luck. Any suggestions?



[flexcoders] HSlider Skinning Troubles

2007-06-05 Thread Joshua Buhler
First, a picture of what's going on:

http://joshbuhler.com/images/sliders.jpg

(The grey rectangle background on the left isn't part of the problem.)


I want the slider to appear like the slider on the right. However,
once it loads in Flex, I get the slider on the left - with the
shrunken thumb button.

The graphics were done in Flash CS3, and have been exported into a
swf. The CSS rule I've defined for the slider is as follows:


Slider {
thumbDisabledSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_disabledSkin");
thumbDownSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_downSkin");
thumbOverSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_overSkin");
thumbUpSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_upSkin");
trackHighlightSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderHighlight_Skin");
trackSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderTrack_Skin");
dataTipOffset: -50;
}

I've been searching for ways to specify the height of the thumb for a
while now, and haven't had any luck. Any suggestions?


[flexcoders] What does 'DataList with no references found in the index mean'?

2007-06-05 Thread billy_d_white
I'm getting the following error when I try to re-fill an ArrayCollection
using LCDS 2.5(FDS) + Cairngorm 2.2.1 + Java Backend:

Error: DataList with no references found in the index!
at
mx.data::ConcreteDataService/mx.data:ConcreteDataService::getDataLists()\
[C:\dev\enterprise_borneo_rc\frameworks\mx\data\ConcreteDataService.as:4\
324]
at
mx.data::ConcreteDataService/mx.data:ConcreteDataService::isItemReferenc\
ed()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\ConcreteDataService.\
as:3900]
at
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal:\
:releaseDataList()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\Concre\
teDataService.as:2895]
at
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal:\
:releaseAssociations()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\Co\
ncreteDataService.as:2839]
at
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal:\
:releaseDataList()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\Concre\
teDataService.as:2898]
at
mx.data::ConcreteDataService/mx.data:ConcreteDataService::internalFill()\
[C:\dev\enterprise_borneo_rc\frameworks\mx\data\ConcreteDataService.as:4\
496]
at
()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\ConcreteDataService.as\
:853]
at
mx.data::ConcreteDataService/fill()[C:\dev\enterprise_borneo_rc\framewor\
ks\mx\data\ConcreteDataService.as:869]
at
mx.data.mxml::DataService/fill()[C:\dev\enterprise_borneo_rc\frameworks\\
mx\data\mxml\DataService.as:526]

Does anyone know what this means?  I've never seen it before and there
is no mention of it anywhere.

Here's the background:

- I'm getting this when I execute a fill to get a set of managed objects
from my Java server running LCDS 2.5. However, I ONLY get this error
after I've updated a one of the managed objects and then refill that
ArrayCollection with different objects. In this case, I've got a set of
Report objects that are related to a single Student object.  When I
click a Student from the list, my code retrieves the related set of
Report objects using a fill with parameters and I display the resulting
Report objects.  Everything is fine until I update one of those Report
objects and commit the changes back to the server (via LCDS).  After
that, when I click a different Student to retrieve their Reports (using
a fill which overwrites the ArrayCollection's previous fill), I get this
error.

- This is all coming about because I'm have tons of problems with
mismatched references.  When I load my objects in FDS/LCDS, everything
is fine.  But as I make changes and/or retrieve new fills, I'm finding
that the references between my objects are becoming fractured. I
implemented Jeff Vroom's UID solution to try to fix this and I think it
worked, but now I'm hitting this error.

Any help is appreciated.
Bill


[flexcoders] Re: Just Curious. How many people are using the PLUGIN?

2007-06-05 Thread arieljake
I did the same thing. Unfortunately, now I have weird editor display
issues when I delete large areas of text. But atleast I have all my
plugins installed together.

--- In flexcoders@yahoogroups.com, "boy_trike" <[EMAIL PROTECTED]> wrote:
>
> I had to delete my FB installation and install eclipse and the FB
PlugIn ((for a 3 party product).  
> I am wondering how many are using the plugin and what the advantages
/ differences are.
> 
> Bruce
>




Re: [flexcoders] Remoting - Authentication and authorization with Acegi

2007-06-05 Thread Robert Cadena
Hi Collin,

 > Does anyone have any remoting (i.e. RemoteObject) examples of how to
 > do authentication and authorization with Acegi?  I have been reading

it doesn't seem too difficult.  the current version of my app 
(http://www.searchcoders.com/flex) uses container managed authentication 
and i am migrating it over to acegi.  so, my comments here about acegi 
integration do not apply to production environments:

1. create a class that implements LoginCommand and has an 
authenticationManager property
2. create and setup an ApplicationContextAware bean.  this is required 
in your custom LoginCommand so you can initialize it later.
3. configure your LoginCommand bean with the property name 
"authenticationManager".  Reference your acegi config's 
authenticationManager.
4. In the LoginCommand constructor, configureBean your
loginCommand bean (i think this can be done a better way but I haven't 
had time to experiment).
5. in the LoginCommand doAuthentication:
a. create a UsernamePasswordAuthenticationToken and pass it the 
username and credentials as String
b. authenticationManager.authenticate(authToken)
c. result of authenticate is Authentication, catch any exceptions.
d. return Authentication as the Principal.  That's it.

For authorization, extract the principal and compare the list of roles 
with the GrantedAuthority[] of the Authentication obj.

Note that with this current strategy you will lose the ability to 
"share" the authentication result with the non-flex segment of your app. 
  So, if you send the user to a resource on your container which has a 
security-constraint then it will think not know that it's been 
authenticated.  You will have to somehow integrate with the 
authenticationProcessingFilter.

I will post more details on my blog: http://www.machine501.com/  when i 
have found and tested a suitable solution for integrating acegi/spring/fds.

download the FDS2 javadocs (scroll down to the bottom "Complete Flex 2 
documentation"):
http://www.adobe.com/support/documentation/en/flex/

good luck.

/r
http://www.searchcoders.com/flex/
http://www.laflex.org/









Collin Peters wrote:
> Does anyone have any remoting (i.e. RemoteObject) examples of how to
> do authentication and authorization with Acegi?  I have been reading
> the LiveDocs on securing destinations at
> http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=ent_services_config_097_15.html,
> but this provides no clues as to how it would work with Spring
> security (acegi).
> 
> Collin
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
> 
> 
> 
> 




[flexcoders] Just Curious. How many people are using the PLUGIN?

2007-06-05 Thread boy_trike
I had to delete my FB installation and install eclipse and the FB PlugIn ((for 
a 3 party product).  
I am wondering how many are using the plugin and what the advantages / 
differences are.

Bruce



[flexcoders] Re: textfield vertical spacing

2007-06-05 Thread arieljake

setTextFormat(format:TextFormat, beginIndex:int = -1, endIndex:int =
-1):void 

and look up TextFormat class.

--- In flexcoders@yahoogroups.com, "blc187" <[EMAIL PROTECTED]> wrote:
>
> Is there a way to adjust the vertical spacing between lines in a 
> textfield?
> 
> I am using a multiline UITextField and would like to adjust the gap 
> between lines, though can only find letterSpacing which adjusts the 
> spacing between characters... any help?
>




[flexcoders] textfield vertical spacing

2007-06-05 Thread blc187
Is there a way to adjust the vertical spacing between lines in a 
textfield?

I am using a multiline UITextField and would like to adjust the gap 
between lines, though can only find letterSpacing which adjusts the 
spacing between characters... any help?



[flexcoders] Displacement Filter Map - adding it to an oceanic scene

2007-06-05 Thread Patrick Lemiuex
I have a swf File that is an oceanic scene, it loops over and over...

What I want to do is add a displacementFilterMap to the swf,  
(probably not possible)...  or export the swf into a series of image   
which load then display each and make a bitmapDataObject.   Using  
onEnterFrame event  I want to make a real looking underwater effect  
by adding the displacement Filter for some funky real looking Text  
Effects.

Has anybody worked with this approach before?  I'm looking at the the  
DisplacemenFilterMapExample.  I works by adding the displacement to  
the text with color channels  so should be possible with a blue ocean  
scene (i hope).

I just need a little guidance.  Or, any timesaving tips, are really  
appreciated, it's easy to get lost playing with cool effect ideas and  
then never getting anything done :)

Thanks,
Patrick


[flexcoders] ValueObjects and CRUD operations

2007-06-05 Thread Ariel Jakobovits
I am learning about Cairgorm, and about the usage of Value Objects. This makes 
sense. However, I am curious about how to handle basic operations on these 
value objects.
 
When I pass an item to a form component, I am inclined to permit the form 
component to perform update operations on the item like 
item.assignToCategory(category); I think this is intuitive for the design of 
the form component.

But this means that the item value object is not just a model, but also a 
controller in some aspect. The alternative as I understand it is to say 
something like Controller.addCategoryToItem(item,category) which is OK but I 
think it is sort of clunky.

Direction? Advice? Am I missing something? Please.

Thanks,

- Ariel




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


Re: [flexcoders] Re: Selecting which Child Components to add at runtime

2007-06-05 Thread Sean Sell
do you have an example of this technique?

- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, June 5, 2007 3:35:10 PM
Subject: RE: [flexcoders] Re: Selecting which Child Components to add at runtime









  














You could try changing .visible and .includeInLayout
instead of adding/removing.
 

  
 

The best practice for resolving multiple properties
is to use the invalidatePropertie s/commitProperti es technique.
 

  
 










From:
[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of 
Sean Sell

Sent: Tuesday, June 05, 2007 11:13
AM

To: [EMAIL PROTECTED] ups.com

Subject: Re: [flexcoders] Re:
Selecting which Child Components to add at runtime
 




  
 











Not quite. I have items 0
through 5 I want them to be displayed in that order but if 4 is not displayed
then I get an out of bounds error when I addChild At 5. It may happen when 2 is
drawn even if 0 and 1 are going to be drawn but since I have no control over
order it evaluates the variables in the MXML invocation that will generate an
error also



i.e.




 



- Original Message


From: Alex Harui <[EMAIL PROTECTED] com>

To: [EMAIL PROTECTED] ups.com

Sent: Tuesday, June 5, 2007 1:20:41 PM

Subject: RE: [flexcoders] Re: Selecting which Child Components to add at
runtime
 





The order of items in HBox/VBox is their childIndex order. 
addChildAt(myButton , 0) should put it first.
 

 
 










From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@
yahoogroups. com] On Behalf Of rough68fish

Sent: Tuesday, June 05, 2007 10:05
AM

To: [EMAIL PROTECTED] ups.com

Subject: [flexcoders] Re:
Selecting which Child Components to add at runtime
 




 
 







When
showAssociate is set to true the button shows up, but I want it

always to show up first.



Here's my code:



http://www.adobe. com/2006/ mxml">





























--- In [EMAIL PROTECTED]
ups.com, "rough68fish" 

wrote:

>

> Can you extend this concept slightly for me. I have several dynamic

> items to display in the view (whether they are displayed is controled

> through binding and set functions) this works.

>

> I just can figure out how to control the order that they are drawn on

> the page.

>

>

>

> --- In [EMAIL PROTECTED]
ups.com, "Alex Harui" aharui@ wrote:

> >

> > Are you asking about:

> >

> >

> >

> > private function fAddCustomView( compClass: Class):void

> > {

> > var canCustView: Container = Container(new compClass()) ;

> > canCustView. label = "Custom " +

> > cbCompList.selected Item.label;

> > vsComps.addChild( canCustView) ;

> > }

> >

> >

> >

> > ...

> >

> > fAddCustomView( Comp1);

> >

> >

> >

> >

> >

> >  _ _ __

> >

> > From: [EMAIL PROTECTED]
ups.com [mailto:[EMAIL PROTECTED] ups.com]

On

> > Behalf Of phall121

> > Sent: Monday, June 04, 2007 12:39 PM

> > To: [EMAIL PROTECTED]
ups.com

> > Subject: [flexcoders] Selecting which Child Components to add at

runtime

> >

> >

> >

> > I want to add views to a ViewStack at runtime by selecting from an

> > expanding table of Custom Components.

> >

> > As the simplified code below shows, I can figure out how to add any

> > one and hard code it. But the addChild method of the ViewStack

> > seems to require that you know ahead of time which component you

> > want to add. I can not find in the docs or online a way to make

> > this dynamic.

> >

> > In other words, when I define the new component view to add to the

> > view stack

> > {

> > var canCustView: Comp1 = new Comp1();

> > canCustView. label = "Custom " + cbCompList.selected
Item.label;

> > vsComps.addChild( canCustView) ;

> > }

> > ...I want to choose at runtime whether to instantiate views from

> > Comp1, Comp17, or Comp53, etc.

> >

> > Any ideas how to accomplish this? Thanks for your thoughts!

> >

> > Here is the simplified code.

> >

> > http://www.adobe.
com/2006/ mxml

> >  "

> > layout="absolute"

> > xmlns:comp=" components. *">

> >

> > 

> > 

> > 

> >

> >  > click="fAddView( )"/>

> >

> >  > click="fAddCustomVi ew()"/>

> >

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> >

> >  > labelField=" app" y="108" x="27"/>

> >

> >  > x="200" y="108" backgroundColor=
"#C9" >

> >

> >  > horizontalScrollPol icy="off" >

> > 

> >  > text="Input: "/>

> > 

> > 

> > 

> >

> > 

> >

>
 



















  
 







  
 








Shape Yahoo! in your own image. Join
our Network Research Panel today! 
 















  
















  

Park yourself in front of a world of choices in alternative vehicles. Visit the 
Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/ 

RE: [flexcoders] Re: Error after loading swf

2007-06-05 Thread Alex Harui
You've bound the TW's SWFLoader to the mainapp's DG.  The SWFLoader may never 
actually go away and changing the DG's selectedItem may cause it to fail to 
load.

 

Binding's can be hard to clean up, so you may want to just use events or just 
read the property once.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
tonyx_788
Sent: Tuesday, June 05, 2007 11:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Error after loading swf

 

this what i get

Error: Unable to load ''.
at mx.controls::SWFLoader/::loadContent()
at mx.controls::SWFLoader/load()
at mx.controls::SWFLoader/mx.controls:SWFLoader::commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/::validateProperties()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply 
 ()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()

--- In flexcoders@yahoogroups.com  , "Alex 
Harui" <[EMAIL PROTECTED]> wrote:
>
> Are you sure the SWF loaded? You might want to add trace statements
to the loaded swf or build a debug version of it to see where it is
getting stuck.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com   
> [mailto:flexcoders@yahoogroups.com  ]
On Behalf Of tonyx_788
> Sent: Tuesday, June 05, 2007 8:21 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Error after loading swf
> 
> 
> 
> Hi all, i get this error Error: Unable to load ''. after loading a swf
> and my app just stops working
> here is part of my code.
> 
> *main mxml
> 
> private function ShowPano():void
> {
> var SWFLoaderInstance:Panoramica2 =
> Panoramica2(PopUpManager.createPopUp(this,Panoramica2,true));//
> instantiate and show the title window
> 
> PopUpManager.centerPopUp(SWFLoaderInstance);
> SWFLoaderInstance.mainAppPano = this //Reference to the main app
> scope
> }
> 
> ***Panoramica2
> 
> 
> http://www.adobe.com/2006/mxml 
>  
 > "
> creationComplete="doInt()"
> cornerRadius="10" width="600" height="450">
> 
> 
>  showCloseButton="true"
> close="closeWindow()" top="10" bottom="10">
>  source="{mainAppPano.datagrid.selectedItem.pano..src}"
> scaleContent="false"
> horizontalCenter="0" verticalCenter="0"/>
> 
> 
> 
> 
> xml structure
> 
> 
> 
> 
> 
> FOTOS/est/Biblioteca Central Manuel Bartlett
> Bautista.jpeg imagen>
> 
> FOTOS/Panoramicas/PanoZoom642007.swf
> 
> BOTONES/gifs/video.gif
> 
> VIDEOS/Biblioteca Manuel Bartlet.flv
> 
> 
> Biblioteca Central Manuel Bartlett Bautista
> 
> 
> 
>

 



RE: [flexcoders] Re: Selecting which Child Components to add at runtime

2007-06-05 Thread Alex Harui
You could try changing .visible and .includeInLayout instead of
adding/removing.

 

The best practice for resolving multiple properties is to use the
invalidateProperties/commitProperties technique.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sean Sell
Sent: Tuesday, June 05, 2007 11:13 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Selecting which Child Components to add at
runtime

 

Not quite. I have items 0 through 5 I want them to be displayed in that
order but if 4 is not displayed then I get an out of bounds error when I
addChild At 5. It may happen when 2 is drawn even if 0 and 1 are going
to be drawn but since I have no control over order it evaluates the
variables in the MXML invocation that will generate an error also

i.e.



- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, June 5, 2007 1:20:41 PM
Subject: RE: [flexcoders] Re: Selecting which Child Components to add at
runtime

The order of items in HBox/VBox is their childIndex order.
addChildAt(myButton , 0) should put it first.

 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
On Behalf Of rough68fish
Sent: Tuesday, June 05, 2007 10:05 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Re: Selecting which Child Components to add at
runtime

 

When showAssociate is set to true the button shows up, but I want it
always to show up first.

Here's my code:

http://www.adobe. com/2006/ mxml
 ">














--- In [EMAIL PROTECTED] ups.com 
, "rough68fish" 
wrote:
>
> Can you extend this concept slightly for me. I have several dynamic
> items to display in the view (whether they are displayed is controled
> through binding and set functions) this works.
>
> I just can figure out how to control the order that they are drawn on
> the page.
>
>
>
> --- In [EMAIL PROTECTED] ups.com
 , "Alex Harui" aharui@ wrote:
> >
> > Are you asking about:
> >
> >
> >
> > private function fAddCustomView( compClass: Class):void
> > {
> > var canCustView: Container = Container(new compClass()) ;
> > canCustView. label = "Custom " +
> > cbCompList.selected Item.label;
> > vsComps.addChild( canCustView) ;
> > }
> >
> >
> >
> > ...
> >
> > fAddCustomView( Comp1);
> >
> >
> >
> >
> >
> >  _ _ __
> >
> > From: [EMAIL PROTECTED] ups.com
  [mailto:[EMAIL PROTECTED]
ups.com  ]
On
> > Behalf Of phall121
> > Sent: Monday, June 04, 2007 12:39 PM
> > To: [EMAIL PROTECTED] ups.com
 
> > Subject: [flexcoders] Selecting which Child Components to add at
runtime
> >
> >
> >
> > I want to add views to a ViewStack at runtime by selecting from an
> > expanding table of Custom Components.
> >
> > As the simplified code below shows, I can figure out how to add any
> > one and hard code it. But the addChild method of the ViewStack
> > seems to require that you know ahead of time which component you
> > want to add. I can not find in the docs or online a way to make
> > this dynamic.
> >
> > In other words, when I define the new component view to add to the
> > view stack
> > {
> > var canCustView: Comp1 = new Comp1();
> > canCustView. label = "Custom " + cbCompList.selected Item.label;
> > vsComps.addChild( canCustView) ;
> > }
> > ...I want to choose at runtime whether to instantiate views from
> > Comp1, Comp17, or Comp53, etc.
> >
> > Any ideas how to accomplish this? Thanks for your thoughts!
> >
> > Here is the simplified code.
> >
> > http://www.adobe. com/2006/ mxml
 
> >  >
"
> > layout="absolute"
> > xmlns:comp=" components. *">
> >
> > 
> > 
> > 
> >
> >  > click="fAddView( )"/>
> >
> >  > click="fAddCustomVi ew()"/>
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >  > labelField=" app" y="108" x="27"/>
> >
> >  > x="200" y="108" backgroundColor= "#C9" >
> >
> >  > horizontalScrollPol icy="off" >
> > 
> >  > text="Input: "/>
> > 
> > 
> > 
> >
> > 
> >
>

 

 



Shape Yahoo! in your own image. Join our Network Research Panel today!
  

 



[flexcoders] Re: Flex and Adsense

2007-06-05 Thread r1muzard
It's not in the flash player, but Adobe put google adds along side 
jamjar on labs:

http://labs.adobe.com/technologies/jamjar/

--- In flexcoders@yahoogroups.com, "Judith Dinowitz" <[EMAIL PROTECTED]> 
wrote:
>
> Actually, if someone has found a way to do so, I'd love to publish 
it as a
> short article on FA online. :)
> 
> Judith Dinowitz
> Editor-in-Chief
> Fusion Authority
> http://www.fusionauthority.com/
> 
> On 6/5/07, Romain <[EMAIL PROTECTED]> wrote:
> >
> > Maybe some Adobe Flex/Apollo evangelist could take up the 
gauntlet ?
> > Any in the room ?
> >
> > --- In flexcoders@yahoogroups.com, "James"  wrote:
> > >
> > > Well if it is true that their current TOS disallows flash site 
usage,
> > > then we need to start a petition or something. But first we 
need to
> > > get Google's official stance. Anyone up to writing them a 
friendly
> > > email? :)
> > >
> > > -James
> > >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> 
> 
> -- 
> Judith Dinowitz
> Editor
> Fusion Authority
> The House of Fusion Technical Magazine
> http://www.fusionauthority.com
>




[flexcoders] Re: LED display characters in flex

2007-06-05 Thread James
Embed an LED font.
http://images.google.com/images?q=led%20font
--- In flexcoders@yahoogroups.com, "hworke" <[EMAIL PROTECTED]> wrote:
>
> 
> 
>   Hello all,
> 
>   I am designing a complicated digital clock
>   in flex. I need numaric characters or digits
>   that look like the real LED clock's digits.
> 
>   Any suggestation where can I get them?
> 
>   Regards
>




[flexcoders] Re: Flex and Adsense

2007-06-05 Thread Ariel Jakobovits
What about a proxy page that gets the ads and makes them available in the 
session scope for the Flex app to request?




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


RE: [flexcoders] How to put MXML example into ASDOC?

2007-06-05 Thread Stephen Gilson
You have to remove all literal "<" and ">" characters in the ASDoc
comment and replace them with < and >. Otherwise, they get
interpreted by the browser.
 
Stephen



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tddclare
Sent: Tuesday, June 05, 2007 1:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to put MXML example into ASDOC?



I'm trying to be a good boy and AsDoc my new class that I wrote.

I wanted to put in an example of using it, embedding a complete MXML
document in the @example tag. My MXML document has a CDATA tag in it
(for the script tag) which generated an error from the AsDoc
executable until I removed it: 

Error#1085: The element type "example" must be terminated by a
matching end-tag ""

Once I took out the CDATA tag, the AsDoc ran, but the file it
generated does not render the MXML tags, since I suspect the browser
is seeing them as true tags, thus not showing them. If I view source
I see them, but not in the visual rendering of the help file.

Tried to wrap ALL the code (inside my  tag) with a CDATA tag,
but it brought back the same error.

Any idea how to get MXML tags to show in the @example and 
tags? DO I need to escape ALL of the tags? That seems like it would
be a giant pain in the you know what.

Thanks!

-- TC

Here's a sample of the comment:

/**
* Intro comment here
*
* @example Description of the example here
* 
* 

[ ... ]

* 
* 
*/



 


[flexcoders] LED display characters in flex

2007-06-05 Thread hworke


  Hello all,

  I am designing a complicated digital clock
  in flex. I need numaric characters or digits
  that look like the real LED clock's digits.

  Any suggestation where can I get them?

  Regards 



Re: [flexcoders] Re: Selecting which Child Components to add at runtime

2007-06-05 Thread Sean Sell
Not quite. I have items 0 through 5 I want them to be displayed in that order 
but if 4 is not displayed then I get an out of bounds error when I addChild At 
5. It may happen when 2 is drawn even if 0 and 1 are going to be drawn but 
since I have no control over order it evaluates the variables in the MXML 
invocation that will generate an error also

i.e.



- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, June 5, 2007 1:20:41 PM
Subject: RE: [flexcoders] Re: Selecting which Child Components to add at runtime









  














The order of items in HBox/VBox is their
childIndex order.  addChildAt(myButton , 0) should put it first.
 

  
 










From:
[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of 
rough68fish

Sent: Tuesday, June 05, 2007 10:05
AM

To: [EMAIL PROTECTED] ups.com

Subject: [flexcoders] Re:
Selecting which Child Components to add at runtime
 




  
 







When showAssociate is set to true the button shows up,
but I want it

always to show up first.



Here's my code:



http://www.adobe. com/2006/ mxml">





























--- In [EMAIL PROTECTED] ups.com,
"rough68fish" 

wrote:

>

> Can you extend this concept slightly for me. I have several dynamic

> items to display in the view (whether they are displayed is controled

> through binding and set functions) this works.

>

> I just can figure out how to control the order that they are drawn on

> the page.

>

>

>

> --- In [EMAIL PROTECTED] ups.com,
"Alex Harui" aharui@ wrote:

> >

> > Are you asking about:

> >

> >

> >

> > private function fAddCustomView( compClass: Class):void

> > {

> > var canCustView: Container = Container(new compClass()) ;

> > canCustView. label = "Custom " +

> > cbCompList.selected Item.label;

> > vsComps.addChild( canCustView) ;

> > }

> >

> >

> >

> > ...

> >

> > fAddCustomView( Comp1);

> >

> >

> >

> >

> >

> >  _ _ __

> >

> > From: [EMAIL PROTECTED] ups.com
[mailto:[EMAIL PROTECTED] ups.com]

On

> > Behalf Of phall121

> > Sent: Monday, June 04, 2007 12:39 PM

> > To: [EMAIL PROTECTED] ups.com

> > Subject: [flexcoders] Selecting which Child Components to add at

runtime

> >

> >

> >

> > I want to add views to a ViewStack at runtime by selecting from an

> > expanding table of Custom Components.

> >

> > As the simplified code below shows, I can figure out how to add any

> > one and hard code it. But the addChild method of the ViewStack

> > seems to require that you know ahead of time which component you

> > want to add. I can not find in the docs or online a way to make

> > this dynamic.

> >

> > In other words, when I define the new component view to add to the

> > view stack

> > {

> > var canCustView: Comp1 = new Comp1();

> > canCustView. label = "Custom " + cbCompList.selected Item.label;

> > vsComps.addChild( canCustView) ;

> > }

> > ...I want to choose at runtime whether to instantiate views from

> > Comp1, Comp17, or Comp53, etc.

> >

> > Any ideas how to accomplish this? Thanks for your thoughts!

> >

> > Here is the simplified code.

> >

> > http://www.adobe. com/2006/ mxml

> > 
"

> > layout="absolute"

> > xmlns:comp=" components. *">

> >

> > 

> > 

> > 

> >

> >  > click="fAddView( )"/>

> >

> >  > click="fAddCustomVi ew()"/>

> >

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> >

> >  > labelField=" app" y="108"
x="27"/>

> >

> >  > x="200" y="108" backgroundColor= "#C9" >

> >

> >  > horizontalScrollPol icy="off" >

> > 

> >  > text="Input: "/>

> > 

> > 

> > 

> >

> > 

> >

>
 
















  
















   

Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

[flexcoders] Re: Error after loading swf

2007-06-05 Thread tonyx_788
this what i get

Error: Unable to load ''.
at mx.controls::SWFLoader/::loadContent()
at mx.controls::SWFLoader/load()
at mx.controls::SWFLoader/mx.controls:SWFLoader::commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/::validateProperties()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()



--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Are you sure the SWF loaded?  You might want to add trace statements
to the loaded swf or build a debug version of it to see where it is
getting stuck.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of tonyx_788
> Sent: Tuesday, June 05, 2007 8:21 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Error after loading swf
> 
>  
> 
> Hi all, i get this error Error: Unable to load ''. after loading a swf
> and my app just stops working
> here is part of my code.
> 
> *main mxml
> 
> private function ShowPano():void
> {
> var SWFLoaderInstance:Panoramica2 =
> Panoramica2(PopUpManager.createPopUp(this,Panoramica2,true));//
> instantiate and show the title window
> 
> PopUpManager.centerPopUp(SWFLoaderInstance);
> SWFLoaderInstance.mainAppPano = this //Reference to the main app
> scope
> }
> 
> ***Panoramica2
> 
> 
> http://www.adobe.com/2006/mxml
 "
> creationComplete="doInt()"
> cornerRadius="10" width="600" height="450">
> 
> 
>  showCloseButton="true"
> close="closeWindow()" top="10" bottom="10">
>  source="{mainAppPano.datagrid.selectedItem.pano..src}"
> scaleContent="false"
> horizontalCenter="0" verticalCenter="0"/>
> 
> 
> 
> 
> xml structure
> 
> 
> 
> 
> 
> FOTOS/est/Biblioteca Central Manuel Bartlett
> Bautista.jpeg imagen>
> 
> FOTOS/Panoramicas/PanoZoom642007.swf
> 
> BOTONES/gifs/video.gif
> 
> VIDEOS/Biblioteca Manuel Bartlet.flv
> 
> 
> Biblioteca Central Manuel Bartlett Bautista
> 
> 
> 
>




Re: [flexcoders] differences between flex sdk and ide

2007-06-05 Thread Muzak
http://haxe.org/intro


- Original Message - 
From: "Gordon Smith" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, June 05, 2007 7:39 PM
Subject: RE: [flexcoders] differences between flex sdk and ide


The Flex IDE uses the Flex SDK to do compilation. The format of the
bytecode in a SWF is described in this document:

http://www.adobe.com/devnet/actionscript/articles/avm2overview.pdf

Flash CS3 produces similar bytecode, but I don't know whether it uses
the same AS3 compiler as the Flex SDK does. And I don't know what haxe
is.





[flexcoders] Re: Error after loading swf

2007-06-05 Thread tonyx_788
the swf loads perfectly but once i close the tittlewindow and click my
datagrid where the pictures and swf are i get the error



--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Are you sure the SWF loaded?  You might want to add trace statements
to the loaded swf or build a debug version of it to see where it is
getting stuck.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of tonyx_788
> Sent: Tuesday, June 05, 2007 8:21 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Error after loading swf
> 
>  
> 
> Hi all, i get this error Error: Unable to load ''. after loading a swf
> and my app just stops working
> here is part of my code.
> 
> *main mxml
> 
> private function ShowPano():void
> {
> var SWFLoaderInstance:Panoramica2 =
> Panoramica2(PopUpManager.createPopUp(this,Panoramica2,true));//
> instantiate and show the title window
> 
> PopUpManager.centerPopUp(SWFLoaderInstance);
> SWFLoaderInstance.mainAppPano = this //Reference to the main app
> scope
> }
> 
> ***Panoramica2
> 
> 
> http://www.adobe.com/2006/mxml
 "
> creationComplete="doInt()"
> cornerRadius="10" width="600" height="450">
> 
> 
>  showCloseButton="true"
> close="closeWindow()" top="10" bottom="10">
>  source="{mainAppPano.datagrid.selectedItem.pano..src}"
> scaleContent="false"
> horizontalCenter="0" verticalCenter="0"/>
> 
> 
> 
> 
> xml structure
> 
> 
> 
> 
> 
> FOTOS/est/Biblioteca Central Manuel Bartlett
> Bautista.jpeg imagen>
> 
> FOTOS/Panoramicas/PanoZoom642007.swf
> 
> BOTONES/gifs/video.gif
> 
> VIDEOS/Biblioteca Manuel Bartlet.flv
> 
> 
> Biblioteca Central Manuel Bartlett Bautista
> 
> 
> 
>




[flexcoders] Re: Flex and Adsense

2007-06-05 Thread alex steel
if you want I can make example of html over flex, with alternative content
but I'm sure almost everyone here can do that 

thnx
Alex


--- In flexcoders@yahoogroups.com, "Judith Dinowitz" <[EMAIL PROTECTED]> wrote:
>
> Actually, Michael says that Adsense is a piece of JavaScript that
remotely
> pulls in content. Straightforward, but the content being pulled in,
which is
> essentially HTML, needs to be placed on the page in context. So if
the page
> is a Flex application, then the Flex application has to accept that
content
> and display it.
> 
> Michael says that he's sure Flex can accept content from JavaScript and
> display it, but it runs into the problem that Adsense will deliver the
> content based on the contextual content of the page. Google has seen the
> page and knows what's on it. So therefore, Google has to see
something on
> the page that says, "Hey, let's put a proper ad in." Google can't
read Flash
> content... That's where your problem comes in.
> 
> So how do you solve that problem? The solution is to have the Flex
> application on a page that has content, or expose all the Flex
content in
> the application on the page for Google to see.
> 
> Judith
> 
> On 6/5/07, Judith Dinowitz <[EMAIL PROTECTED]> wrote:
> >
> > Actually, if someone has found a way to do so, I'd love to publish
it as a
> > short article on FA online. :)
> >
> > Judith Dinowitz
> > Editor-in-Chief
> > Fusion Authority
> > http://www.fusionauthority.com/
> >
> > On 6/5/07, Romain <[EMAIL PROTECTED]> wrote:
> > >
> > > Maybe some Adobe Flex/Apollo evangelist could take up the gauntlet ?
> > > Any in the room ?
> > >
> > > --- In flexcoders@yahoogroups.com, "James"  wrote:
> > > >
> > > > Well if it is true that their current TOS disallows flash site
usage,
> > > > then we need to start a petition or something. But first we
need to
> > > > get Google's official stance. Anyone up to writing them a friendly
> > > > email? :)
> > > >
> > > > -James
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Judith Dinowitz
> > Editor
> > Fusion Authority
> > The House of Fusion Technical Magazine
> > http://www.fusionauthority.com
> 
> 
> 
> 
> -- 
> Judith Dinowitz
> Editor
> Fusion Authority
> The House of Fusion Technical Magazine
> http://www.fusionauthority.com
>




[flexcoders] Re: keeping a drawn line attached to 2 objects

2007-06-05 Thread maunger
Tom - i get it now...

basically, the 'new UIComponent' you mentioned is a canvas (for
example) that i make 'clear' and then draw the line in that canvas.

I got some help from Peter Ent on this one too :)

I've done that now and the line is selectable! Yippee :)

Thanks guys.



--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Monday 04 Jun 2007, Clint Tredway wrote:
> > Can anyone point me in the direction in drawing a line between to
> > objects and then keeping that line attached to each object even during
> > being dragged around the screen?
> 
> Add a new UIComponent to the root display element
> Then on each objects move event handler:
>   call clear() on the new elements graphic property
>   establish the location and size of your two components
>   use the moveTo and lineTo methods on the new elements graphic property
> 
> -- 
> Tom Chiverton
> Helping to paradigmatically engineer robust channels
> on: http://thefalken.livejournal.com
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




RE: [flexcoders] Error after loading swf

2007-06-05 Thread Alex Harui
Are you sure the SWF loaded?  You might want to add trace statements to the 
loaded swf or build a debug version of it to see where it is getting stuck.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
tonyx_788
Sent: Tuesday, June 05, 2007 8:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error after loading swf

 

Hi all, i get this error Error: Unable to load ''. after loading a swf
and my app just stops working
here is part of my code.

*main mxml

private function ShowPano():void
{
var SWFLoaderInstance:Panoramica2 =
Panoramica2(PopUpManager.createPopUp(this,Panoramica2,true));//
instantiate and show the title window

PopUpManager.centerPopUp(SWFLoaderInstance);
SWFLoaderInstance.mainAppPano = this //Reference to the main app
scope
}

***Panoramica2


http://www.adobe.com/2006/mxml 
 "
creationComplete="doInt()"
cornerRadius="10" width="600" height="450">








xml structure





FOTOS/est/Biblioteca Central Manuel Bartlett
Bautista.jpeg

FOTOS/Panoramicas/PanoZoom642007.swf

BOTONES/gifs/video.gif

VIDEOS/Biblioteca Manuel Bartlet.flv


Biblioteca Central Manuel Bartlett Bautista


 

 



[flexcoders] How to put MXML example into ASDOC?

2007-06-05 Thread tddclare
I'm trying to be a good boy and AsDoc my new class that I wrote.

I wanted to put in an example of using it, embedding a complete MXML
document in the @example tag.  My MXML document has a CDATA tag in it
(for the script tag) which generated an error from the AsDoc
executable until I removed it:   

Error#1085: The element type "example" must be terminated by a
matching end-tag ""

Once I took out the CDATA tag, the AsDoc ran, but the file it
generated does not render the MXML tags, since I suspect the browser
is seeing them as true tags, thus not showing them.  If I view source
I see them, but not in the visual rendering of the help file.

Tried to wrap ALL the code (inside my  tag) with a CDATA tag,
but it brought back the same error.

Any idea how to get MXML tags to show in the @example and 
tags?  DO I need to escape ALL of the tags?  That seems like it would
be a giant pain in the you know what.

Thanks!

-- TC

Here's a sample of the comment:

/**
* Intro comment here
*
* @example Description of the example here
* 
*

[ ... ]

*
* 
*/



RE: [flexcoders] Flex "Reflection"

2007-06-05 Thread Gordon Smith
> Everything is a child of Object 

You mean "Everything is a subclass of Object".

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom 
Chiverton
Sent: Tuesday, June 05, 2007 7:09 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex "Reflection"

On Tuesday 05 Jun 2007, André Rodrigues Pena wrote:
> Thanks Tom. I thought it would only work for objects of type Object

Everything is a child of Object :-)

-- 
Tom Chiverton
Helping to continuously orchestrate professional networks
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links





RE: [flexcoders] why are my events firing twice

2007-06-05 Thread Gordon Smith
Please post a simple example demonstrating this problem.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of boy_trike
Sent: Tuesday, June 05, 2007 9:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] why are my events firing twice



I have a popup that when a user clicks to close, it will dispatch an
event then remove itself. 
My Event is firing TWICE! (even though the line that is raising the
event is reached only once.)

thanks
Bruce



 


RE: [flexcoders] Package Level Funtions

2007-06-05 Thread Ely Greenfield
 

 

Hi Jesse. The answer is no, you can't do that.  When you try and use a
class, method, global variable, flex needs to know where to go to find
the definition of that variable.  Exhaustively searching every file in
your classpath would be prohibitively expensive. Instead, we impose the
rule that definitions visible outside of the file they're defined in
must match the path/file name they're defined in, so the compiler can
find them easily and quickly.  That means that in your example below,
even though your definitions aren't visible outside the package, they're
still visible outside the file, which means, for performance reasons,
they need to be defined in a file whose path/name matches their
package/name.

 

The only time you can violate this rule is when you're declaring things
that are only used within the file itself.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Tuesday, June 05, 2007 10:28 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Package Level Funtions

 

Did you have any public thing in that file?  Maybe hack up one public
thing

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jesse Hallam
Sent: Tuesday, June 05, 2007 7:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Package Level Funtions

 

Reading over: 
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
p.htm?context=LiveDocs_Book_Parts&file=03_Language_and_Syntax_160_05.htm
l 

I got the distinct impression that each .as file could only export one
publicly visible definition (i.e. one public class, or one public
method, etc...), but it could define any number of internal definitions
accessible to the package. 

I was hoping to do this:

package MyPackage {
   internal method1() : void {

   }
   internal method2() : void {

   }
}

To be able to create a single file with a number of related,
package-level functions, and not have to wrap them as static methods of
a class. I didn't need them publically accessible, just accessible to
the package. However, after running into "Error: A file found in a
source-path must have an externally visible definition." repeatedly, I'm
under the impression I can't do that -- I'd have to put each method in
its own file. 

Am I correct?

Thanks for any input!

-- 
Jesse Hallam
University of Waterloo Junior

"For scarcely for a righteous man will one die: yet peradventure for a
good man some would even dare to die. But God commendeth his love toward
us, in that, *while we were yet sinners*, Christ died for us. " (Romans
5:7, 8) 

 

<><>

RE: [flexcoders] DataGrid ItemEditor being closed when other component is updated

2007-06-05 Thread Alex Harui
If the DG thinks it needs to be re-layed out, it will close its session.

 

Try locking the width/height of the List.  It might stop it from
invalidating the parent container.  Wrapping the List in another
container might work as well.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of havardfl
Sent: Tuesday, June 05, 2007 6:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid ItemEditor being closed when other
component is updated

 

I'm having some trouble with an editable DataGrid... I have one
DataGrid that is editable, and then a List that is not.

The List is bound to an XMLListCollection (Same thing happens
ArrayCollection), which gets items added to it constantly.

Now, when I click one of the columns in the editable DataGrid, the
itemeditor gets opened, but is closed the moment the second DataGrid
is updated... (If I use a DataGrid instead of a List as the second
item, the closing of the ItemEditor only seems to happen once the
second DataGrid has enough items to create a ScrollBar).

Has anyone else experienced this, and does anyone know of a solution?

Example Code:

http://www.adobe.com/2006/mxml
 "
layout="vertical" creationComplete="onCreated(event)" xmlns:local="*">












 



RE: [flexcoders] differences between flex sdk and ide

2007-06-05 Thread Gordon Smith
The Flex IDE uses the Flex SDK to do compilation. The format of the
bytecode in a SWF is described in this document:
 
http://www.adobe.com/devnet/actionscript/articles/avm2overview.pdf
 
Flash CS3 produces similar bytecode, but I don't know whether it uses
the same AS3 compiler as the Flex SDK does. And I don't know what haxe
is.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flex_degree
Sent: Tuesday, June 05, 2007 8:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] differences between flex sdk and ide



hi there,

i am currently writing my degree in media-informatics on producing
flash-websites with as3.
one of my first chapters should be an adjustment between the compilers
in the flex sdk, the flex ide, flash cs3 and maybe haxe.
i am searching now for days in the internet and cant find much
usefull, also adobe itselves told me that they cant really help.
so if anyone got a good link to an article or can tell me him-/herself
about the differences between these compilers, like compile-time
bytecode and so on, i would be very glad to receive it.

best wishes,
jan eric



 


RE: [flexcoders] Re: stage.stageWidth/stageHeight lies in standalone player?

2007-06-05 Thread Alex Harui
Linux player doesn't really honor SWF dimensions.  We've had to use HTML
wrappers to control it.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of seriousbraincancer
Sent: Monday, June 04, 2007 7:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: stage.stageWidth/stageHeight lies in
standalone player?

 

Tracing enterFrame shows the right dimensions, as does setting
scaleMode to NO_SCALE and listening to Event.RESIZE.

Although, it doesn't quite match the args I pass in for default-size:

(Test.as is at http://pastie.caboo.se/67829
 )
> mxmlc -default-size 300 300 Test.as

trace output:
on resize dims are 296,304
on resize dims are 300,304

It looks like there's some extra padding there, but it could be that
it's because I'm using the debug flash player in Linux?

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
> I think SAFlashPlayer might do a quick resize so if you check
> later it has the right size. Try tracing on "enterFrame" events.
> 
> In general, we do very little in the constructors. There is
> an INIT method which is used to kick off real work.

 



RE: [flexcoders] Newbie getting annoyed with Drag and Drop :-)

2007-06-05 Thread Alex Harui
Took a quick peek.  I didn't see calls to event.preventDefault() which
are usually required when overriding drag/drop behavior.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of martz256
Sent: Tuesday, June 05, 2007 7:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie getting annoyed with Drag and Drop :-)

 

Hi Guys,

I have recently started to create a small flex application and the 
major aspect of it is drag and drop functionality.

I am dragging into a TileList and i can't get the thing to accept my 
drag.

I have put up some code for the project, ive cut loads out of it to 
try and simplify but the main problem still exists.

http://www.komodomedia.co.uk/dragdrop/mainscreen.html
  (right click 
for source)

I want to drag the picture onto the TileList on the right. 
The 'onRightDragEnter' function fires correctly but it will not allow 
me to drop onto it!

My only guess is it is something to do with the Drag source and my 
Slide class, but it all looks ok to me.

A fresh pair of eyes and any pointers would be much appreciated.

Cheers

 



RE: [flexcoders] Package Level Funtions

2007-06-05 Thread Alex Harui
Did you have any public thing in that file?  Maybe hack up one public
thing

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jesse Hallam
Sent: Tuesday, June 05, 2007 7:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Package Level Funtions

 

Reading over:
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
p.htm?context=LiveDocs_Book_Parts&file=03_Language_and_Syntax_160_05.htm
l
 

I got the distinct impression that each .as file could only export one
publicly visible definition (i.e. one public class, or one public
method, etc...), but it could define any number of internal definitions
accessible to the package. 

I was hoping to do this:

package MyPackage {
   internal method1() : void {

   }
   internal method2() : void {

   }
}

To be able to create a single file with a number of related,
package-level functions, and not have to wrap them as static methods of
a class. I didn't need them publically accessible, just accessible to
the package. However, after running into "Error: A file found in a
source-path must have an externally visible definition." repeatedly, I'm
under the impression I can't do that -- I'd have to put each method in
its own file. 

Am I correct?

Thanks for any input!

-- 
Jesse Hallam
University of Waterloo Junior

"For scarcely for a righteous man will one die: yet peradventure for a
good man some would even dare to die. But God commendeth his love toward
us, in that, *while we were yet sinners*, Christ died for us. " (Romans
5:7, 8) 

 



RE: [flexcoders] Re: Selecting which Child Components to add at runtime

2007-06-05 Thread Alex Harui
The order of items in HBox/VBox is their childIndex order.
addChildAt(myButton, 0) should put it first.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rough68fish
Sent: Tuesday, June 05, 2007 10:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Selecting which Child Components to add at
runtime

 

When showAssociate is set to true the button shows up, but I want it
always to show up first.

Here's my code:

http://www.adobe.com/2006/mxml
 ">














--- In flexcoders@yahoogroups.com 
, "rough68fish" <[EMAIL PROTECTED]>
wrote:
>
> Can you extend this concept slightly for me. I have several dynamic
> items to display in the view (whether they are displayed is controled
> through binding and set functions) this works.
>
> I just can figure out how to control the order that they are drawn on
> the page.
>
>
>
> --- In flexcoders@yahoogroups.com
 , "Alex Harui" aharui@ wrote:
> >
> > Are you asking about:
> >
> >
> >
> > private function fAddCustomView(compClass:Class):void
> > {
> > var canCustView:Container = Container(new compClass());
> > canCustView.label = "Custom " +
> > cbCompList.selectedItem.label;
> > vsComps.addChild(canCustView);
> > }
> >
> >
> >
> > ...
> >
> > fAddCustomView(Comp1);
> >
> >
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com 
]
On
> > Behalf Of phall121
> > Sent: Monday, June 04, 2007 12:39 PM
> > To: flexcoders@yahoogroups.com 

> > Subject: [flexcoders] Selecting which Child Components to add at
runtime
> >
> >
> >
> > I want to add views to a ViewStack at runtime by selecting from an
> > expanding table of Custom Components.
> >
> > As the simplified code below shows, I can figure out how to add any
> > one and hard code it. But the addChild method of the ViewStack
> > seems to require that you know ahead of time which component you
> > want to add. I can not find in the docs or online a way to make
> > this dynamic.
> >
> > In other words, when I define the new component view to add to the
> > view stack
> > {
> > var canCustView:Comp1 = new Comp1();
> > canCustView.label = "Custom " + cbCompList.selectedItem.label;
> > vsComps.addChild(canCustView);
> > }
> > ...I want to choose at runtime whether to instantiate views from
> > Comp1, Comp17, or Comp53, etc.
> >
> > Any ideas how to accomplish this? Thanks for your thoughts!
> >
> > Here is the simplified code.
> >
> > http://www.adobe.com/2006/mxml
 
> >  > "
> > layout="absolute"
> > xmlns:comp="components.*">
> >
> > 
> > 
> > 
> >
> >  > click="fAddView()"/>
> >
> >  > click="fAddCustomView()"/>
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >  > labelField="app" y="108" x="27"/>
> >
> >  > x="200" y="108" backgroundColor="#C9">
> >
> >  > horizontalScrollPolicy="off">
> > 
> >  > text="Input:"/>
> > 
> > 
> > 
> >
> > 
> >
>

 



Re: [flexcoders] CDATA and E4X

2007-06-05 Thread Jesse Warden
Rad, thanks a bunch Michael!

On 6/4/07, Michael Schmalle <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Hey man,
>
> I just hacked this out. it's ugly but works.
>
>
> function cdata(string:String):XML{
> return new XML('')
> }
>
> var username = "Jesse";
> var lastname = "Warden";
>
> var re:XML =
> 
> {username}
> {cdata(lastname)}
> 
>
> Peace, Mike
>
>
>
>  On 6/4/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> >
> > How do I use CDATA with E4X?
> >
> > Reading CDATA nodes is easy. Sending, however, is hampered by the
> > fact that I cannot use binding within CDATA nodes, and all text is URL
> > encoded.
> >
> > So, if I do this:
> >
> > username = "Jesse";
> > lastname = "Warden";
> >
> > 
> > {username}
> > 
> > 
> >
> > It'll look like this:
> >
> > 
> > Jesse
> > 
> > 
> >
> > If I try assembling manually, it still URL encodes it:
> >
> > var request:XML = 
> > 
> > Hello
> > 3
> > 
> > ;
> > var sup:String = "sup dog";
> > var s:String = "";
> > request.moo.appendChild({s});
> > trace(request);
> >
> > This is a problem because I'm sending a URL through E4X with URL
> > parameters, and it's encoding it twice; basically, my & are becoming
> > &.
> >
> > I asked the server guy to just let me send this particular value as an
> > attribute so we could move on, but... no dice, my problem.
> >
> > ???
> >
>
>
>
> --
> Teoti Graphix
> http://www.teotigraphix.com
>
> Blog - Flex2Components
> http://www.flex2components.com
>
> You can find more by solving the problem then by 'asking the question'.
>
>  


[flexcoders] Re: Selecting which Child Components to add at runtime

2007-06-05 Thread rough68fish
When showAssociate is set to true the button shows up, but I want it
always to show up first.

Here's my code:

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

 
 
 

 
 
 
 
 
 
 






--- In flexcoders@yahoogroups.com, "rough68fish" <[EMAIL PROTECTED]>
wrote:
>
> Can you extend this concept slightly for me. I have several dynamic
> items to display in the view (whether they are displayed is controled
> through binding and set functions) this works.
>
> I just can figure out how to control the order that they are drawn on
> the page.
>
>
>
> --- In flexcoders@yahoogroups.com, "Alex Harui" aharui@ wrote:
> >
> > Are you asking about:
> >
> >
> >
> > private function fAddCustomView(compClass:Class):void
> > {
> > var canCustView:Container = Container(new compClass());
> > canCustView.label = "Custom " +
> > cbCompList.selectedItem.label;
> > vsComps.addChild(canCustView);
> > }
> >
> >
> >
> > ...
> >
> > fAddCustomView(Comp1);
> >
> >
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> > Behalf Of phall121
> > Sent: Monday, June 04, 2007 12:39 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Selecting which Child Components to add at
runtime
> >
> >
> >
> > I want to add views to a ViewStack at runtime by selecting from an
> > expanding table of Custom Components.
> >
> > As the simplified code below shows, I can figure out how to add any
> > one and hard code it. But the addChild method of the ViewStack
> > seems to require that you know ahead of time which component you
> > want to add. I can not find in the docs or online a way to make
> > this dynamic.
> >
> > In other words, when I define the new component view to add to the
> > view stack
> > {
> > var canCustView:Comp1 = new Comp1();
> > canCustView.label = "Custom " + cbCompList.selectedItem.label;
> > vsComps.addChild(canCustView);
> > }
> > ...I want to choose at runtime whether to instantiate views from
> > Comp1, Comp17, or Comp53, etc.
> >
> > Any ideas how to accomplish this? Thanks for your thoughts!
> >
> > Here is the simplified code.
> >
> > http://www.adobe.com/2006/mxml
> >  "
> > layout="absolute"
> > xmlns:comp="components.*">
> >
> > 
> > 
> > 
> >
> >  > click="fAddView()"/>
> >
> >  > click="fAddCustomView()"/>
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >  > labelField="app" y="108" x="27"/>
> >
> >  > x="200" y="108" backgroundColor="#C9">
> >
> >  > horizontalScrollPolicy="off">
> > 
> >  > text="Input:"/>
> > 
> > 
> > 
> >
> > 
> >
>




[flexcoders] Re: Selecting which Child Components to add at runtime

2007-06-05 Thread rough68fish
Can you extend this concept slightly for me. I have several dynamic
items to display in the view (whether they are displayed is controled
through binding and set functions) this works.

I just can figure out how to control the order that they are drawn on
the page.



--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Are you asking about:
> 
>  
> 
> private function fAddCustomView(compClass:Class):void
> {
> var canCustView:Container = Container(new compClass());
> canCustView.label = "Custom " + 
> cbCompList.selectedItem.label;
> vsComps.addChild(canCustView);
> }
> 
> 
> 
> ...
> 
> fAddCustomView(Comp1);
> 
>  
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of phall121
> Sent: Monday, June 04, 2007 12:39 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Selecting which Child Components to add at runtime
> 
>  
> 
> I want to add views to a ViewStack at runtime by selecting from an 
> expanding table of Custom Components.
> 
> As the simplified code below shows, I can figure out how to add any 
> one and hard code it. But the addChild method of the ViewStack 
> seems to require that you know ahead of time which component you 
> want to add. I can not find in the docs or online a way to make 
> this dynamic.
> 
> In other words, when I define the new component view to add to the 
> view stack 
> {
> var canCustView:Comp1 = new Comp1();
> canCustView.label = "Custom " + cbCompList.selectedItem.label;
> vsComps.addChild(canCustView);
> }
> ...I want to choose at runtime whether to instantiate views from 
> Comp1, Comp17, or Comp53, etc.
> 
> Any ideas how to accomplish this? Thanks for your thoughts!
> 
> Here is the simplified code. 
> 
> http://www.adobe.com/2006/mxml
>  " 
> layout="absolute"
> xmlns:comp="components.*">
> 
> 
> 
> 
> 
>  click="fAddView()"/>
> 
>  click="fAddCustomView()"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  labelField="app" y="108" x="27"/>
> 
>  x="200" y="108" backgroundColor="#C9">
> 
>  horizontalScrollPolicy="off">
> 
>  text="Input:"/>
> 
> 
> 
> 
> 
>




[flexcoders] Spry and Flex Development Tools

2007-06-05 Thread Bruce Hopkins

Hi,

I would like to know is there a tool that allows me to create Flex and Spry
applications at the same time? I'm thinking that the only tool that would
come close would be Dreamweaver CS3. However, I haven't heard of anyone
doing that.

So, here's my real question, has anyone really tried to create a REAL app in
DW CS3 for Flex and Spry?

Are there any better tools coming out there, like Flex Builder CS3?  :-)

Thanks,

Bruce


[flexcoders] Help ! "fontWeight" style in datagrid once applied does not change?

2007-06-05 Thread arpan srivastava
Hi,

I am facing problem when setting "fontWeight" property of datagrid to 
"bold". when I start my datagrid i set "fontWeight" to bold and it works but at 
runtime when i set the property to "normal" no change is reflected. All other 
properties are changing like color, fontSize etc. only "fontWeight" once 
applied is not changed.

Thanks
Arpan
 



   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

Re: [flexcoders] Package Level Funtions

2007-06-05 Thread Ralf Bokelberg

I haven't tried it with packages, but if you want to declare a class, which
is visible to the current public class only, you have to define it outside
of the package.
Maybe the same works for package functions?

package mypackage
{
public function myFunction()
{
   myHelper();
}
} //package closed

function myHelper()
{
}

Cheers,
Ralf.
On 6/5/07, Jesse Hallam <[EMAIL PROTECTED]> wrote:


  Reading over: 
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=03_Language_and_Syntax_160_05.html


I got the distinct impression that each .as file could only export one
publicly visible definition (i.e. one public class, or one public method,
etc...), but it could define any number of internal definitions accessible
to the package.

I was hoping to do this:

package MyPackage {
   internal method1() : void {

   }
   internal method2() : void {

   }
}

To be able to create a single file with a number of related, package-level
functions, and not have to wrap them as static methods of a class. I didn't
need them publically accessible, just accessible to the package. However,
after running into "Error: A file found in a source-path must have an
externally visible definition." repeatedly, I'm under the impression I can't
do that -- I'd have to put each method in its own file.

Am I correct?

Thanks for any input!

--
Jesse Hallam
University of Waterloo Junior

"For scarcely for a righteous man will one die: yet peradventure for a
good man some would even dare to die. But God commendeth his love toward us,
in that, *while we were yet sinners*, Christ died for us. " (Romans 5:7, 8)
 





--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


[flexcoders] why are my events firing twice

2007-06-05 Thread boy_trike
I have a popup that when a user clicks to close, it will dispatch an event then 
remove itself.  
My Event is firing TWICE!  (even though the line that is raising the event is 
reached only once.)

thanks
Bruce



[flexcoders] dispatchevent question when in a custom component.

2007-06-05 Thread Romain
Hi,

I am making a custom mxml component, composed of a datagrid and a few
buttons.
I am potentially dispatching the following 2 events:
[Event(name="btnClick", type="flash.events.MouseEvent")]
[Event(name="rowClick", type="mx.events.ListEvent")]

These events are thrown by event handlers on the actual individual
component (either a button or a grid).
for the grid:
private function dispatchRowClickEvent(ev:ListEvent):void{
var e:ListEvent=new ListEvent('rowClick');
e.rowIndex=ev.rowIndex;
dispatchEvent(e);
 }
for the button


My problem is when I consume these events from the component, I'd like
  to be able to write something like:
 public function dgDoubleClickHandler(event:ListEvent) : void
{
var currentIssueForm:IssueForm  = new IssueForm();
 var buf:XML = XML(event.currentTarget.selectedItem);
 currentIssueForm.modelIssue = buf;
  PopUpManager.addPopUp(currentIssueForm, this, true);
   PopUpManager.centerPopUp(currentIssueForm);
}

However at runtime it fails because event.currentTarget.selectedItem
is null.
It is null because the event I am catching is the custom component
event and not the low-level datagrid event

Is there a way to wrap the datagrid event [and keep its content]
whilst still renaming it ?
Or maybe there is just a simpler way to do this ?

Thanks,

Romain.




[flexcoders] Re: loading mxml components based on flashvars

2007-06-05 Thread Rohan Pinto
I got it,

I all initApp() from openWin() and get all the flashvars... I get it
now.. Thanks a ton !! :-)

Rohan
http://opentube.info

--- In flexcoders@yahoogroups.com, "Rohan Pinto" <[EMAIL PROTECTED]> wrote:
>
> could you please {{please}} elaborate a little bit more...
> 
> Her'es my mx:Application
> 
> http://www.adobe.com/2006/mxml";
> autoLayout="true" layout="vertical" 
>   creationComplete="openWin()"
>   horizontalScrollPolicy="off" verticalScrollPolicy="auto"
>   height="100%" width="100%"
>   xmlns:flexlib="http://code.google.com/p/flexlib/";
>   paddingTop="0" paddingBottom="0" x="0" y="0"
>   xmlns:local="*" 
>   xmlns:com="com.*"
>   applicationComplete="initApp()"
> >
> 
>public function initApp():void{
>   //vkey=Application.application.parameters.vkey;
>   vkey=this.parameters.vkey;
> //channel=Application.application.parameters.channel; 
> channel=this.parameters.channel;
> }
> 
> 
> 
>   public function openWin():void{
>   if(vkey!=null && vkey!=""){
>   openVideo();
>   isViewOpen = true;
>   } else if(channel!=null && channel!=""){
>   openChannels();
>   isChannelOpen = true;
>   } else if(!isOpen) {
>   openMain();
>   isOpen = true;
>   }
> 
> 
> I now believe that the race condition is between initApp() and
> openWin() How do I circumvent that ?
> 
> Rohan
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > If your script block looks like that, then you're assigning
compon1 and
> > component2 at instantiation time.  Properties are generally not
> > available until later so I'd do the assignment in commitProperties or
> > the initialize event.
> > 
> >  
> > 
> > -Alex
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of Rohan Pinto
> > Sent: Monday, June 04, 2007 8:57 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] loading mxml components based on flashvars
> > 
> >  
> > 
> > Hi Folks,
> > 
> > I'm passing component ID's into my app using flashvars.
> > 
> > in my main Application, I procure the values as follows:
> > [Bindable]
> > public var component1:String;
> > 
> > [Bindable]
> > public var component2:String;
> > component1=this.parameters.component1;
> > component2=this.parameters.component2;
> > 
> > in the function as defined in my main Application : 
> > creationComplete="openWin()"
> > 
> > I have the following:
> > public function openWin():void{
> > if(component1!=null||component1!=""){
> > openComponent1(); 
> > } else if(component2!=null||component2!=""){
> > openComponent2(); 
> > } else {
> > openMain(); 
> > }
> > 
> > the behaviour i see using this method is that everytime I load the
> > application (regardless of the flashvars) it always loads Component1.
> > 
> > What am I doing wrong here ?
> > Please advise...
> > 
> > Rohan
> > http://opentube.info 
> >
>




[flexcoders] Re: keeping a drawn line attached to 2 objects

2007-06-05 Thread maunger
Clint, i think i'm in exactly the same spot as you -- good timing :)

I think tho that i'm wanting the line between the objects in my
application to be an object that is selectable... am i wrong in
believing that the lineTo method just draws a line that the user can't
select?

did i say "flex graphics noob" warning at the beginning of the post?

we're working on an internal system that will be somewhat like
mindomo.com (but is sort of a network diagram) and i will want the
user to be able to select a line between two nodes to specify some
parameters.

So i'm working on trying to figure out how to make a line be an
object... Tom's note below gives me some thoughts.

Mitch

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Monday 04 Jun 2007, Clint Tredway wrote:
> > Can anyone point me in the direction in drawing a line between to
> > objects and then keeping that line attached to each object even during
> > being dragged around the screen?
> 
> Add a new UIComponent to the root display element
> Then on each objects move event handler:
>   call clear() on the new elements graphic property
>   establish the location and size of your two components
>   use the moveTo and lineTo methods on the new elements graphic property
> 
> -- 
> Tom Chiverton
> Helping to paradigmatically engineer robust channels
> on: http://thefalken.livejournal.com
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Re: Datagrid with bound dataProvider not updating.

2007-06-05 Thread beecee1977
Thanks for all the responses! I took the advice and switched to using 
ArrayCollection and all is working fine now (without hammers :-)) 

Thanks again!

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I think Alex called "invalidateDisplayList" a "big hammer".
> 
>  
> 
> The best solution to this is to never use Array, or XMLList for 
dynamic
> dataProviders, since their methods do not dispatch the necessary 
events
> to update the UI.  Instead, wrap Array in ArrayCollection, and 
CMLList
> in XMLListCollection, or use XML directly.
> 
>  
> 
> Tracy
> 
>  



RE: [flexcoders] Re: Make datagrid into spreadsheet

2007-06-05 Thread Mark Ingram
Yes, that's what I think I'll have to do. I've posted in a new topic
("DataGrid: Get Current Column Index") - I can get the current selected
row, but I can't get the current column!

Thanks,

Mark

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of powertool786
Sent: 05 June 2007 16:46
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Make datagrid into spreadsheet

Well, if you think about it, that makes sense.

Where is the "empty" row when the rows overflow the height of the
DataGrid container? 

Either add and maintain a "pseudo" item in the dataProvider (which
appends a new Object when edited), or add some button/widget near your
DataGrid which appends an Object to the dataProvider, forces an
update, selects & focuses the new row, goes into edit mode, and
focuses the first DataGridColumn.

--- In flexcoders@yahoogroups.com, "Mark Ingram" <[EMAIL PROTECTED]> wrote:
>
> No, that just allows you to edit data that is currently entered (it
> doesn't allow you to enter new data in an empty row).
> 
> Cheers,
> 
> Mark




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links





RE: [flexcoders] DataGrid: Get current column index

2007-06-05 Thread Robert Chyko
I do something along these lines:
* add an itemClick listener to the datagrid, in the handler for that
event you can access event.columnIndex
* with that you can do something like -
myGrid.selectedItem[myGrid.columns[event.columnIndex].dataField]
 
 
 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram
Sent: Tuesday, June 05, 2007 11:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid: Get current column index





Hi, if I register for the mouse down event in a data grid, I can
use the following function to get the selected row:



dataGrid.selectedItem



How can I find out the actual column that was clicked, so I can
index into the selected item's object and retrieve the individual field,
rather than the complete object.





Thanks,



Mark









 



[flexcoders] Re: Selecting which Child Components to add at runtime

2007-06-05 Thread phall121
Yes, Alex.  You Rock dude(ss)!!

For those who may follow and look at this let me add a
few notes.

I needed to add an import statement to bring in the 
Container class (done from scratch, this happens automatically):

import mx.core.Container;

I then updated the combo box array to include the "components" 
qualifier and called the fAddCustomView function with the data item 
from the combo box(cbCompList):

e.g. 



However, this produced an Flash9 error.  The call was passing a 
string rather than the class itself.

TypeError: Error #1034: Type Coercion failed: cannot 
convert "components.Comp3" to Class.
at ViewStackTest2/___Button2_click()

So, I modified the array to have a reference to the class as the 
data, instead of the string (simply by enclosing the string in curly 
braces).

e.g.

It works!!  Thanks.
Alex, you've taught me how to instantiate an object, specifying the 
class at runtime!  This is a huge step towards creating a more 
Dynamic UI.


I'm looking for a freelance Flex/CF tutor/mentor.  (See FlexJobs.)
Let me know if you are interested.

Paul


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Are you asking about:
> 
>  
> 
> private function fAddCustomView(compClass:Class):void
> {
> var canCustView:Container = Container(new compClass());
> canCustView.label = "Custom " + 
> cbCompList.selectedItem.label;
> vsComps.addChild(canCustView);
> }
> 
> 
> 
> ...
> 
> fAddCustomView(Comp1);
> 




[flexcoders] Re: Make datagrid into spreadsheet

2007-06-05 Thread powertool786
Well, if you think about it, that makes sense.

Where is the "empty" row when the rows overflow the height of the
DataGrid container? 

Either add and maintain a "pseudo" item in the dataProvider (which
appends a new Object when edited), or add some button/widget near your
DataGrid which appends an Object to the dataProvider, forces an
update, selects & focuses the new row, goes into edit mode, and
focuses the first DataGridColumn.

--- In flexcoders@yahoogroups.com, "Mark Ingram" <[EMAIL PROTECTED]> wrote:
>
> No, that just allows you to edit data that is currently entered (it
> doesn't allow you to enter new data in an empty row).
> 
> Cheers,
> 
> Mark




Re: [flexcoders] Re: Flex and Adsense

2007-06-05 Thread Judith Dinowitz

Actually, Michael says that Adsense is a piece of JavaScript that remotely
pulls in content. Straightforward, but the content being pulled in, which is
essentially HTML, needs to be placed on the page in context. So if the page
is a Flex application, then the Flex application has to accept that content
and display it.

Michael says that he's sure Flex can accept content from JavaScript and
display it, but it runs into the problem that Adsense will deliver the
content based on the contextual content of the page. Google has seen the
page and knows what's on it. So therefore, Google has to see something on
the page that says, "Hey, let's put a proper ad in." Google can't read Flash
content... That's where your problem comes in.

So how do you solve that problem? The solution is to have the Flex
application on a page that has content, or expose all the Flex content in
the application on the page for Google to see.

Judith

On 6/5/07, Judith Dinowitz <[EMAIL PROTECTED]> wrote:


Actually, if someone has found a way to do so, I'd love to publish it as a
short article on FA online. :)

Judith Dinowitz
Editor-in-Chief
Fusion Authority
http://www.fusionauthority.com/

On 6/5/07, Romain <[EMAIL PROTECTED]> wrote:
>
> Maybe some Adobe Flex/Apollo evangelist could take up the gauntlet ?
> Any in the room ?
>
> --- In flexcoders@yahoogroups.com, "James" <[EMAIL PROTECTED]> wrote:
> >
> > Well if it is true that their current TOS disallows flash site usage,
> > then we need to start a petition or something. But first we need to
> > get Google's official stance. Anyone up to writing them a friendly
> > email? :)
> >
> > -James
> >
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


--
Judith Dinowitz
Editor
Fusion Authority
The House of Fusion Technical Magazine
http://www.fusionauthority.com





--
Judith Dinowitz
Editor
Fusion Authority
The House of Fusion Technical Magazine
http://www.fusionauthority.com


Re: [flexcoders] Re: Flex and Adsense

2007-06-05 Thread Judith Dinowitz

Actually, if someone has found a way to do so, I'd love to publish it as a
short article on FA online. :)

Judith Dinowitz
Editor-in-Chief
Fusion Authority
http://www.fusionauthority.com/

On 6/5/07, Romain <[EMAIL PROTECTED]> wrote:


Maybe some Adobe Flex/Apollo evangelist could take up the gauntlet ?
Any in the room ?

--- In flexcoders@yahoogroups.com, "James" <[EMAIL PROTECTED]> wrote:
>
> Well if it is true that their current TOS disallows flash site usage,
> then we need to start a petition or something. But first we need to
> get Google's official stance. Anyone up to writing them a friendly
> email? :)
>
> -James
>




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







--
Judith Dinowitz
Editor
Fusion Authority
The House of Fusion Technical Magazine
http://www.fusionauthority.com


[flexcoders] Re: loading mxml components based on flashvars

2007-06-05 Thread Rohan Pinto
Hi Brendan

I tried the following:

public function openWin():void{
if(vkey!=null && vkey!=""){
openVideo();
isViewOpen = true;
} else if(channel!=null && channel!=""){
openChannels();
isChannelOpen = true;
} else if(!isOpen) {
openMain();
isOpen = true;
}

now.. it always loads openMain() regardless of the existence of a
"vkey" value..


Rohan
http://opentube.info

--- In flexcoders@yahoogroups.com, "Brendan Meutzner" <[EMAIL PROTECTED]>
wrote:
>
> Try component1 != null && component1 != ""
> 
> Also, if you set component1 = '' when you're defining it, you'd only
need to
> test for != '' inside the openWin function...
> 
> Brendan
> 
> On 6/4/07, Rohan Pinto <[EMAIL PROTECTED]> wrote:
> >
> >   Hi Folks,
> >
> > I'm passing component ID's into my app using flashvars.
> >
> > in my main Application, I procure the values as follows:
> > [Bindable]
> > public var component1:String;
> >
> > [Bindable]
> > public var component2:String;
> > component1=this.parameters.component1;
> > component2=this.parameters.component2;
> >
> > in the function as defined in my main Application :
> > creationComplete="openWin()"
> >
> > I have the following:
> > public function openWin():void{
> > if(component1!=null||component1!=""){
> > openComponent1();
> > } else if(component2!=null||component2!=""){
> > openComponent2();
> > } else {
> > openMain();
> > }
> >
> > the behaviour i see using this method is that everytime I load the
> > application (regardless of the flashvars) it always loads Component1.
> >
> > What am I doing wrong here ?
> > Please advise...
> >
> > Rohan
> > http://opentube.info
> >
> >  
> >
> 
> 
> 
> -- 
> Brendan Meutzner
> Stretch Media - RIA Adobe Flex Development
> [EMAIL PROTECTED]
> http://www.stretchmedia.ca
>




[flexcoders] Re: loading mxml components based on flashvars

2007-06-05 Thread Rohan Pinto
could you please {{please}} elaborate a little bit more...

Her'es my mx:Application

http://www.adobe.com/2006/mxml";
autoLayout="true" layout="vertical" 
creationComplete="openWin()"
horizontalScrollPolicy="off" verticalScrollPolicy="auto"
height="100%" width="100%"
xmlns:flexlib="http://code.google.com/p/flexlib/";
paddingTop="0" paddingBottom="0" x="0" y="0"
xmlns:local="*" 
xmlns:com="com.*"
applicationComplete="initApp()"
>

   public function initApp():void{
//vkey=Application.application.parameters.vkey;
vkey=this.parameters.vkey;
//channel=Application.application.parameters.channel; 
channel=this.parameters.channel;
}



public function openWin():void{
if(vkey!=null && vkey!=""){
openVideo();
isViewOpen = true;
} else if(channel!=null && channel!=""){
openChannels();
isChannelOpen = true;
} else if(!isOpen) {
openMain();
isOpen = true;
}


I now believe that the race condition is between initApp() and
openWin() How do I circumvent that ?

Rohan

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If your script block looks like that, then you're assigning compon1 and
> component2 at instantiation time.  Properties are generally not
> available until later so I'd do the assignment in commitProperties or
> the initialize event.
> 
>  
> 
> -Alex
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Rohan Pinto
> Sent: Monday, June 04, 2007 8:57 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] loading mxml components based on flashvars
> 
>  
> 
> Hi Folks,
> 
> I'm passing component ID's into my app using flashvars.
> 
> in my main Application, I procure the values as follows:
> [Bindable]
> public var component1:String;
> 
> [Bindable]
> public var component2:String;
> component1=this.parameters.component1;
> component2=this.parameters.component2;
> 
> in the function as defined in my main Application : 
> creationComplete="openWin()"
> 
> I have the following:
> public function openWin():void{
> if(component1!=null||component1!=""){
> openComponent1(); 
> } else if(component2!=null||component2!=""){
> openComponent2(); 
> } else {
> openMain(); 
> }
> 
> the behaviour i see using this method is that everytime I load the
> application (regardless of the flashvars) it always loads Component1.
> 
> What am I doing wrong here ?
> Please advise...
> 
> Rohan
> http://opentube.info 
>




[flexcoders] differences between flex sdk and ide

2007-06-05 Thread flex_degree
hi there,

i am currently writing my degree in media-informatics on producing
flash-websites with as3.
one of my first chapters should be an adjustment between the compilers
in the flex sdk, the flex ide, flash cs3 and maybe haxe.
i am searching now for days in the internet and cant find much
usefull, also adobe itselves told me that they cant really help.
so if anyone got a good link to an article or can tell me him-/herself
about the differences between these compilers, like compile-time
bytecode and so on, i would be very glad to receive it.

best wishes,
jan eric



[flexcoders] Error after loading swf

2007-06-05 Thread tonyx_788
Hi all, i get this error Error: Unable to load ''. after loading a swf
  and my app just stops working
here is part of my code.


*main mxml

 private function ShowPano():void
 {
  var SWFLoaderInstance:Panoramica2 =
Panoramica2(PopUpManager.createPopUp(this,Panoramica2,true));//
instantiate and show the title window

  PopUpManager.centerPopUp(SWFLoaderInstance);
  SWFLoaderInstance.mainAppPano = this  //Reference to the main app
scope
  }

***Panoramica2


http://www.adobe.com/2006/mxml";
creationComplete="doInt()"
cornerRadius="10" width="600" height="450">








xml structure





FOTOS/est/Biblioteca Central Manuel Bartlett
Bautista.jpeg

FOTOS/Panoramicas/PanoZoom642007.swf

BOTONES/gifs/video.gif

VIDEOS/Biblioteca Manuel Bartlet.flv


Biblioteca Central Manuel Bartlett Bautista


  




[flexcoders] Package Level Funtions

2007-06-05 Thread Jesse Hallam

Reading over:
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=03_Language_and_Syntax_160_05.html

I got the distinct impression that each .as file could only export one
publicly visible definition (i.e. one public class, or one public method,
etc...), but it could define any number of internal definitions accessible
to the package.

I was hoping to do this:

package MyPackage {
  internal method1() : void {

  }
  internal method2() : void {

  }
}

To be able to create a single file with a number of related, package-level
functions, and not have to wrap them as static methods of a class. I didn't
need them publically accessible, just accessible to the package. However,
after running into "Error: A file found in a source-path must have an
externally visible definition." repeatedly, I'm under the impression I can't
do that -- I'd have to put each method in its own file.

Am I correct?

Thanks for any input!

--
Jesse Hallam
University of Waterloo Junior

"For scarcely for a righteous man will one die: yet peradventure for a good
man some would even dare to die. But God commendeth his love toward us, in
that, *while we were yet sinners*, Christ died for us. " (Romans 5:7, 8)


[flexcoders] DataGrid: Get current column index

2007-06-05 Thread Mark Ingram
Hi, if I register for the mouse down event in a data grid, I can use the
following function to get the selected row:

 

dataGrid.selectedItem

 

How can I find out the actual column that was clicked, so I can index
into the selected item's object and retrieve the individual field,
rather than the complete object.

 

 

Thanks,

 

Mark

 

 

 



[flexcoders] Newbie getting annoyed with Drag and Drop :-)

2007-06-05 Thread martz256
Hi Guys,

I have recently started to create a small flex application and the 
major aspect of it is drag and drop functionality.

I am dragging into a TileList and i can't get the thing to accept my 
drag.

I have put up some code for the project, ive cut loads out of it to 
try and simplify but the main problem still exists.

http://www.komodomedia.co.uk/dragdrop/mainscreen.html (right click 
for source)

I want to drag the picture onto the TileList on the right. 
The 'onRightDragEnter' function fires correctly but it will not allow 
me to drop onto it!

My only guess is it is something to do with the Drag source and my 
Slide class, but it all looks ok to me.

A fresh pair of eyes and any pointers would be much appreciated.

Cheers



RE: [flexcoders] Re: Make datagrid into spreadsheet

2007-06-05 Thread Mark Ingram
No, that just allows you to edit data that is currently entered (it
doesn't allow you to enter new data in an empty row).

Cheers,

Mark

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of powertool786
Sent: 05 June 2007 16:05
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Make datagrid into spreadsheet

I think you just need to set editable to true on the DataGrid and on
the DataGridColumn's.

--- In flexcoders@yahoogroups.com, "Mark Ingram" <[EMAIL PROTECTED]> wrote:
>
> Hi, thanks for the response. I meant like a spreadsheet as in I can
> type into any cell I like. If you just imagine I have a data provider
> setup with {Monday, 1}, {Tuesday, 2}. The data grid will contain 2
> rows (and 2 columns). How can I get it so that I can click on the 3rd
> row and just type "Wednesday"?
> 
> I hope you see what I mean. I would just like to click on any cell and
> edit the contents.
> 
> Cheers,
> 
> Mark
> 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links





[flexcoders] Re: repeater child click event

2007-06-05 Thread nhp_ny
--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Tuesday 05 Jun 2007, nhp_ny wrote:
> > i need to pass to the onclick function, a linkbutton from the
> > repeater list. there are n linkbuttons and i just need to pass the
> > first one, so the myLB[0]. Because i have to simulate a myLB[0]
> > linkbutton click
> 
> You might want to look in the repeaters child list.
> 
> -- 
> Tom Chiverton
> Helping to assertively monetize performance-oriented synergies
> on: http://thefalken.livejournal.com
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>


:( nothing... can't find a solution for it. maybe i can find another 
way... for example... is there a way to let the repeaters first 
child , myLB[0], to be disabled? i tried myLB[0].enabled = false, but 
nothing.



[flexcoders] Re: Encryption functions in ActionScript 3

2007-06-05 Thread Jeff Houser

Here are two alternative packages if you can't get the Adobe ones working:

http://ascrypt3.riaforge.org/index.cfm
http://crypto.hurlant.com/

--- In flexcoders@yahoogroups.com, "NZEYIMANA Emery Fabrice"
<[EMAIL PROTECTED]> wrote:
>
> Hello Group, 
> 
> I am looking for a way to generate SHA1 and MD5 strings in FLEX. 
> On the page
http://weblogs.macromedia.com/as_libraries/docs/corelib/com/adobe/crypto/package-detail.html
they say that SHA1 and MD5 are defined in the package
<<>>
> 
> I tried to import that package as 
> import com.adobe.crypto;
> at the beginning of the file but the compiler says that the package
cannot be found. 
> 
> I also tried to use the functions directly (MD5, SHA1, hash, ...)
but the compiler complains. 
> Can somebody tell me what's wrong with this? 
> 
> 
> 
> Thanks 
> Emery
>




[flexcoders] Re: Make datagrid into spreadsheet

2007-06-05 Thread powertool786
I think you just need to set editable to true on the DataGrid and on
the DataGridColumn's.

--- In flexcoders@yahoogroups.com, "Mark Ingram" <[EMAIL PROTECTED]> wrote:
>
> Hi, thanks for the response. I meant like a spreadsheet as in I can
> type into any cell I like. If you just imagine I have a data provider
> setup with {Monday, 1}, {Tuesday, 2}. The data grid will contain 2
> rows (and 2 columns). How can I get it so that I can click on the 3rd
> row and just type "Wednesday"?
> 
> I hope you see what I mean. I would just like to click on any cell and
> edit the contents.
> 
> Cheers,
> 
> Mark
> 




RE: [flexcoders] Re: Make datagrid into spreadsheet

2007-06-05 Thread Mark Ingram
Hi, thanks for the response. I meant like a spreadsheet as in I can type
into any cell I like. If you just imagine I have a data provider setup
with {Monday, 1}, {Tuesday, 2}. The data grid will contain 2 rows (and 2
columns). How can I get it so that I can click on the 3rd row and just
type "Wednesday"?

I hope you see what I mean. I would just like to click on any cell and
edit the contents.

Cheers,

Mark

 -Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of powertool786
Sent: 05 June 2007 15:30
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Make datagrid into spreadsheet

How much like a spreadsheet do you want it to be?

If you just want every cell to be editable, does setting the
'editable' attribute on the DataGridColumn to 'true' not do the trick
for you?

If you wish to implement formulas and automatic 'trickle-on' updating
of cells references in formulas you have a number of problems:

  1) you'll need to customise your itemRenderer so that
   a) each cell represents an object containing a formula and the
  current value of the cell, and
   b) when the event that represents when the cell's content
  has changed is fired, you begin a recursive evaluation of
  the formula (with respect to referenced cells and their
  formulae).
  2) eval() has been removed from ActionScript 3.0, so you'll need to
 implement a parser and evaluation engine for whatever language
 you choose for formulas.
  3) you'll probably need to implement cycle-detection to prohibit
 infinitely (possibly mutually) recursive formulae (or implement
 laziness/iterators if you support that).
  4) you'll probably need to break up the evaluation into blocks of
 work (some recursion wrapper using a counter and callLater) to
 ensure that the user interface is updated often enough.

-David

--- In flexcoders@yahoogroups.com, "Mark Ingram" <[EMAIL PROTECTED]> wrote:
>
> Hi, I want to be able to type into any row of a datagrid and enter new
> data. How easily can this be done?
> 
>  
> 
> Mark
>




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links





[flexcoders] Re: Make datagrid into spreadsheet

2007-06-05 Thread powertool786
Wow, that post looks quite unreadable. 

Does this forum allow any code of literal (or fixed width) formating ?

-David



[flexcoders] Re: Access session cookies from within Flex?

2007-06-05 Thread alteraa
Yes, but is there any way to access the cookie from within Flex itself?

--- In flexcoders@yahoogroups.com, "Rohan Pinto" <[EMAIL PROTECTED]> wrote:
>
> You could obtain session values using jsp or php and pass it onto the
> flex app as flashvars.
> 
> Rohan
> http://opentube.info
> 
> --- In flexcoders@yahoogroups.com, "alteraa"  wrote:
> >
> > Is there a relatively straightforward way to access session cookies
> > from within the Flex application?  I've tried using the
> > ExternalInterface to call a javascript function that gets cookies but,
> > aside from the fact it doesn't work, it seems like a clumsy solution
> > assuming Flex has access to the HTTP request object itself.
> > 
> > The documentation seems unclear on this issue, so any help is
> > appreciated.  Thanks!
> >
>




[flexcoders] VideoDisplay smoothing

2007-06-05 Thread Jon Bradley
I saw a post on the cookbook beta about smoothing the VideoDisplay  
but unfortunately it doesn't work out of the box. There's a call to  
"videoPlayer.smoothing" which obviously doesn't exist. After removing  
that, event extending VideoDisplay and using the _smoothing property,  
it doesn't smooth the video.

Has anyone gotten this to work, and how did you manage to do it?

thanks!

jon



[flexcoders] FDS and Web Service: Unable to load WSDL

2007-06-05 Thread Scott Hoff
I have the following web service:

http://localhost/flexGrocer/cfcs/aggregate.cfc?wsdl";
useProxy="true"
fault="Alert.show(event.toString())">



{date}


{date}






When I try to execute the web service from the following address, I
get the following error:

Address:
http://localhost:8700/fdstraining2/lesson17/lesson17-debug.html?debug=true

Error:
[FaultEvent fault=[RPC Fault faultString="The URL specified
'http://localhost/flexgrocer/cfcs/aggregate.cfc?wsdl' is not allowed
by the selected destination 'DefaultHTTP'."
faultCode="Server.Proxy.Request.Failed" faultDetail="Unable to load
WSDL. If currently online, please verify the URI and/or format of the
WSDL (http://localhost/flexGrocer/cfcs/aggregate.cfc?wsdl)"]
messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]

Some people have said there are issues with using WSDL and FDS.
However, if I turn useProxy to false, I get a sandbox error.  I know
that my FDS is running on port 8700 and my cfc is running on port 80.
 Would this contribute to the problem? I thought it might and thus I
set up a cross domain xml file in the localhost (port 80) but that
should allow requests from anywhere.  However, this didn't affect the
sandbox error at all.  





[flexcoders] Re: Flex and Adsense

2007-06-05 Thread Romain
Maybe some Adobe Flex/Apollo evangelist could take up the gauntlet ?
Any in the room ?

--- In flexcoders@yahoogroups.com, "James" <[EMAIL PROTECTED]> wrote:
>
> Well if it is true that their current TOS disallows flash site usage,
> then we need to start a petition or something. But first we need to
> get Google's official stance. Anyone up to writing them a friendly
> email? :)
> 
> -James
>




[flexcoders] Re: Adding custom styles to MXML component

2007-06-05 Thread borekbe
That's it! Thank you very much, Mike.

--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> it's
> 
> 
>[Style(name="myStyle")]
> 
> 
> Peace, Mike
> 
> On 6/5/07, borekbe <[EMAIL PROTECTED]> wrote:
> >
> >   I'm trying to create a MXML component with custom [Style] defined is
> >  section. The compiler is complaining that "[Style] must
> > annotate a class".
> >
> > I understand this message and I see where the problem is but I don't
> > know how to overcome it. Any advice?
> >
> > Thanks,
> > Borek
> >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix
> http://www.teotigraphix.com
> 
> Blog - Flex2Components
> http://www.flex2components.com
> 
> You can find more by solving the problem then by 'asking the question'.
>




[flexcoders] Re: Make datagrid into spreadsheet

2007-06-05 Thread powertool786
How much like a spreadsheet do you want it to be?

If you just want every cell to be editable, does setting the
'editable' attribute on the DataGridColumn to 'true' not do the trick
for you?

If you wish to implement formulas and automatic 'trickle-on' updating
of cells references in formulas you have a number of problems:

  1) you'll need to customise your itemRenderer so that
   a) each cell represents an object containing a formula and the
  current value of the cell, and
   b) when the event that represents when the cell's content
  has changed is fired, you begin a recursive evaluation of
  the formula (with respect to referenced cells and their
  formulae).
  2) eval() has been removed from ActionScript 3.0, so you'll need to
 implement a parser and evaluation engine for whatever language
 you choose for formulas.
  3) you'll probably need to implement cycle-detection to prohibit
 infinitely (possibly mutually) recursive formulae (or implement
 laziness/iterators if you support that).
  4) you'll probably need to break up the evaluation into blocks of
 work (some recursion wrapper using a counter and callLater) to
 ensure that the user interface is updated often enough.

-David

--- In flexcoders@yahoogroups.com, "Mark Ingram" <[EMAIL PROTECTED]> wrote:
>
> Hi, I want to be able to type into any row of a datagrid and enter new
> data. How easily can this be done?
> 
>  
> 
> Mark
>




[flexcoders] Re: Encryption functions in ActionScript 3

2007-06-05 Thread nxzone
http://code.google.com/p/as3corelib/
--- In flexcoders@yahoogroups.com, "Jeremy Lu" <[EMAIL PROTECTED]> wrote:
>
> I thought the source for that package are up there somewhere in the
svn (on
> labs.adobe.com), try search for it or drop me a line I can send you
a copy
> (may not be the latest one cause it was checked out months ago).
> 
> Jeremy.
> 
> On 7/11/06, NZEYIMANA Emery Fabrice <[EMAIL PROTECTED]> wrote:
> >
> >Hello Group,
> >
> > I am looking for a way to generate SHA1 and MD5 strings in FLEX.
> > On the page
> >
http://weblogs.macromedia.com/as_libraries/docs/corelib/com/adobe/crypto/package-detail.html
they
> > say that SHA1 and MD5 are defined in the package
<<>>
> >
> > I tried to import that package as
> > import com.adobe.crypto;
> > at the beginning of the file but the compiler says that the
package cannot
> > be found.
> >
> > I also tried to use the functions directly (MD5, SHA1, hash, ...)
but the
> > compiler complains.
> > Can somebody tell me what's wrong with this?
> >
> >
> >
> > Thanks
> > Emery
> >
> >  
> >
>




[flexcoders] Re: Access session cookies from within Flex?

2007-06-05 Thread Rohan Pinto
You could obtain session values using jsp or php and pass it onto the
flex app as flashvars.

Rohan
http://opentube.info

--- In flexcoders@yahoogroups.com, "alteraa" <[EMAIL PROTECTED]> wrote:
>
> Is there a relatively straightforward way to access session cookies
> from within the Flex application?  I've tried using the
> ExternalInterface to call a javascript function that gets cookies but,
> aside from the fact it doesn't work, it seems like a clumsy solution
> assuming Flex has access to the HTTP request object itself.
> 
> The documentation seems unclear on this issue, so any help is
> appreciated.  Thanks!
>




[flexcoders] Re: Flex and Adsense

2007-06-05 Thread James
Well if it is true that their current TOS disallows flash site usage,
then we need to start a petition or something. But first we need to
get Google's official stance. Anyone up to writing them a friendly
email? :)

-James



Re: [flexcoders] Flex "Reflection"

2007-06-05 Thread Tom Chiverton
On Tuesday 05 Jun 2007, André Rodrigues Pena wrote:
> Thanks Tom. I thought it would only work for objects of type Object

Everything is a child of Object :-)

-- 
Tom Chiverton
Helping to continuously orchestrate professional networks
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


Re: [flexcoders] Flex "Reflection"

2007-06-05 Thread Mark Lapasa
... and if you don't know the method or property at run-time, you can 
use describeType() that will return you an XML description of the 
object's public methods and properties.

http://onrails.org/articles/2007/02/24/flex-introspection-api-describetype-value-xml

-mL
knowledge.lapasa.net

Tom Chiverton wrote:
> On Tuesday 05 Jun 2007, André Rodrigues Pena wrote:
>   
>> method or the property at compile time. Something like Java
>> Reflection.
>> 
>
> anObject[aString] gets you the property of anObject who's name is in the 
> string aString
>
>   




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


[flexcoders] Re: Flex and Adsense

2007-06-05 Thread alex steel
you can always put div box over flash containing adsense html code
look out for css z-index with flash use ...



Re: [flexcoders] Re: repeater child click event

2007-06-05 Thread Tom Chiverton
On Tuesday 05 Jun 2007, nhp_ny wrote:
> i need to pass to the onclick function, a linkbutton from the
> repeater list. there are n linkbuttons and i just need to pass the
> first one, so the myLB[0]. Because i have to simulate a myLB[0]
> linkbutton click

You might want to look in the repeaters child list.

-- 
Tom Chiverton
Helping to assertively monetize performance-oriented synergies
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


[flexcoders] Re: Flex and Adsense

2007-06-05 Thread Romain
I don't know but from their TOS (
https://www.google.com/adsense/support/bin/answer.py?answer=48182&sourceid=aso&subid=ww-ww-et-asui&medium=link&gsessionid=npfYqhKshv0
), they seems pretty stingent on things like:
<< Any AdSense code must be pasted directly into webpages without
modification. AdSense participants are not allowed to alter any
portion of the code or change the behavior, targeting, or delivery of
ads. For instance, clicks on Google ads may not result in a new
browser window being launched. >>
or
<< No Google ad may be placed on any non-content-based pages. >>

How do they consider a flex app ? it is not so clear..

--- In flexcoders@yahoogroups.com, "James" <[EMAIL PROTECTED]> wrote:
>
> It is a flash site. It is not a Software Application.
> 
> --- In flexcoders@yahoogroups.com, "reude"  wrote:
> >
> > I looked at this and apparently under the TOS from Adsense, it is not
> > authorized to integrate Adsense into "Software Applications"
> > otherwise they will terminate your account.
> > 
> > Romain.
> >
>




[flexcoders] Re: Flex "Reflection"

2007-06-05 Thread powertool786
For ECMAScript in general (Javascript and ActionScript) you'd use a
for..in loop to iterate over the properties (including methods) of an
Object.

ActionScript changes for..in to only work over the "dynamic"
properties of an Object instance.

The docs say:
   "To get a list of fixed properties, use the describeType()
function, which is in the flash.utils package."

-David.

--- In flexcoders@yahoogroups.com, "Andr� Rodrigues Pena"
<[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I'm wondering if Flex has some mechanism for dynamically calling
> methods and setting properties. I mean, I don't know the name of the
> method or the property at compile time. Something like Java
> Reflection.
> 
> Thanks
> 
> -- 
> Andr� Rodrigues Pena
> 
> LOCUS
> www.locus.com.br
>




Re: [flexcoders] Flex "Reflection"

2007-06-05 Thread André Rodrigues Pena
Thanks Tom. I thought it would only work for objects of type Object

On 6/5/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> On Tuesday 05 Jun 2007, André Rodrigues Pena wrote:
> > method or the property at compile time. Something like Java
> > Reflection.
>
> anObject[aString] gets you the property of anObject who's name is in the
> string aString
>
> --
> Tom Chiverton
> Helping to appropriately harvest B2C e-business
> on: http://thefalken.livejournal.com
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England and 
> Wales under registered number OC307980 whose registered office address is at 
> St James's Court Brown Street Manchester M2 2JF.  A list of members is 
> available for inspection at the registered office. Any reference to a partner 
> in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by 
> the Law Society.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and may 
> be confidential or legally privileged.  If you are not the addressee you must 
> not read it and must not use any information contained in nor copy it nor 
> inform any person other than Halliwells LLP or the addressee of its existence 
> or contents.  If you have received this email in error please delete it and 
> notify Halliwells LLP IT Department on 0870 365 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


  1   2   >