Re: [flexcoders] How to layer popup windows

2010-05-10 Thread Alex Harui
Are you using the childLIst parameter of PopUpManager?


On 5/10/10 11:30 AM, "Greg Hess"  wrote:






Hi All,

My application employs a modular architecture(main applications responsibility 
is just to load and unload modules). My module displays a popup window who's 
parent is the main application that covers the entire UI. Unfortunately, while 
this popup is displayed certain events occur in the module that it handles by 
displaying some small notification popups over UI components that are hidden by 
the big popup window, however the notification popups layer over the big popup.

In reading the PopupManager docs I thought by simply assigning the module as 
the parent of my notification popups would resolve the issue by adding the 
popups to the module "layer" and not the top "application layer", but it is not 
working and I am not sure if this is supported with the parent argument to 
addPopUp or I am doing something wrong.

Does anyone know how I can show popups in different layers per say?

Any help much appreciated.

Greg





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Re: Take that Mr Jobs!

2010-05-10 Thread mitek17
Well, I know that no one needs release builds, but I tried to investigate this 
a bit. It looks like that the new properties in .actionscript file are causing 
the corruption in projects with libraries. 

If you open the FB4 project in FB3 (strangely, it does not complain) it won't 
make the release build as well. If you revert the changes in .* files 
everything is OK.


PS This is a good achievement - the most simple piece of Flex Builder - 
exporting the release version was always buggy, and now it looks greater than 
ever. I am looking forward to see what will happen to it in Creative Builder 5.







--- In flexcoders@yahoogroups.com, "mitek17"  wrote:
>
> Does the Export Release Version suppose to work in FB4?  Just curious.
> 
> https://bugs.adobe.com/jira/browse/FB-26842
>




Re: [flexcoders] Server power for Appli

2010-05-10 Thread Evan Klein
That's a pretty broad question. Are you talking applications server,
database server, web?

On Mon, May 10, 2010 at 1:11 PM, Christophe
wrote:

>
>
> Hello,
>
> Which type of server to choose to have a faster execution of a flex
> application for the customer ?
>
> Thank you,
> Christophe,
>
>  
>


Re: [flexcoders] Re: Updating Static vars

2010-05-10 Thread Oleg Sivokon
private static function init():Boolean
{
var0 = "foo";
vat1 = "bar";
return true;
}

public static var var0:String;
public static var var1:String;

private static var _initialized = inti();

Clicked "send" to fast :)


Re: [flexcoders] Re: Updating Static vars

2010-05-10 Thread Oleg Sivokon
Well, since you made it a variable it may be updated any time you want...
However, I think that having complex code in the static property initializer
isn't the best thing to do. It may rely on some compiler feature, that is
not documented, or, it may not be clear how exactly it will work if you
remove or add another variable. I think, that if complex initialization
cannot be avoided, then I'd rather have one function that would initialize
all the variables in the desired order.

private static function init():void
{
var0 = "foo";
vat1 = "bar";
}

public static var var0:String;
public static var var1:String;


[flexcoders] Re: Updating Static vars

2010-05-10 Thread Joshua
Thanks for the input... I might give that a whirl.  just as an FYI for me, or I 
guess an FMI can you do what I was trying to do initially?  I'm still doing 
some searching, but not finding much on updating static vars or partially 
calling a constructor... Oh, that just gave me an idea.



--- In flexcoders@yahoogroups.com, Oleg Sivokon  wrote:
>
> I'd consider doing something like this:
> 
> public static const PHONES:XML =
> 
> 
> 
> ;
> 
> Les writing, less processing and you can even let the bookkeeper do the work
> (instead of having the XML coded in the file, you could embed it for
> example)
> 
> [Embed(source="phones.xml")]
> public static const PHONES:String;
> 
> Best.
> 
> Oleg
>




Re: [flexcoders] Updating Static vars

2010-05-10 Thread Oleg Sivokon
I'd consider doing something like this:

public static const PHONES:XML =



;

Les writing, less processing and you can even let the bookkeeper do the work
(instead of having the XML coded in the file, you could embed it for
example)

[Embed(source="phones.xml")]
public static const PHONES:String;

Best.

Oleg


[flexcoders] Updating Static vars

2010-05-10 Thread Joshua
Hello I've got a situation as follows

1.  I have a class called MessageStrings.as that I use for storing static 
consts and variables used throughout my project.

2.  Recently, we started an affiliate program where I need to make 
modifications to the MessageStrings to change company names, email addresses, 
etc depending on which affiliate is loading the page (from url string)

3.  Instead of copying a bunch of static vars like
 public static var CONTACT_US:String = "Hello, contact us by phone at: 
"+PHONE;
 public static var CONTACT_US_AFFILIATE:String = "Hello, contact us by 
phone at: "+PHONE_AFFILIATE;

and switching all the references I have to MessageStrings for affiliate info I 
would like to do

public static var CONTACT_US:String = "Hello, contact us by phone at: 
"+getPhone();

and have a new variable (static var) called THE_AFFILIATE that gets set by a 
static function and getPhone returns a static var depending on what 
THE_AFFILIATE is set to.

where getPhone is something like this 

public static function getPhone():String {
var retPhone:String = "";
switch (THE_AFFILIATE) {
case MY_BUSINESS:
retPhone = SUPPORT_PHONE;
break;
case AFFILIATE:
retPhone = SUPPORT_PHONE_AFFILIATE;
break;
}   
return retPhone;
}

So, this almost works, problem is that the class (MessageStrings) sets all the 
variables intially and then when I set the Affiliate info later, the static 
vars are not updated, and therefore do not reflect the text I want to see.  

Is is possible to update all the variables that are affected by a change to the 
affiliate?  Kinda like calling the constructor again, but that won't work cause 
it resets my affiliate variable?







[flexcoders] BlazeDS + Hibernate: how to not send PersistentMaps to the client?

2010-05-10 Thread Sébastien Tromp
Hello,

I am using Flex and the client side, Java + Hibernate on the server, and
BlazeDS to communicate between them.
One typical scenario I am facing is:
- Create a new bean in the Java code, and persist it using Hibernate's
getTemplate().save(myObject)
- Send this object to the client using BlazeDS.

However, if "myObject" has a Map attribute, Hibernate populates it with a
PersistentMap, thus sending it to the client.
Is there a way I could use to _not_ send PersistentMaps, but rather standard
HashMaps?

Thank you for your help,
-- 
Sébastien Tromp


Re: [flexcoders] Server power for Appli

2010-05-10 Thread Kerry Thompson
Christophe  wrote:

> Which type of server to choose to have a faster execution of a flex 
> application for the customer ?

Flex execution speed is dependent on the local machine, not the
server. The .swf is downloaded to the local machine.

Your server could effect database response times, or php requests.
Generally, though, unless you're dealing with a sizable database, the
customer's perception of speed will be determined more by the speed of
his/her Internet connection, and, as I said, the speed of the local
machine it's running on.

Cordially,

Kerry Thompson


[flexcoders] How to layer popup windows

2010-05-10 Thread Greg Hess
Hi All,

My application employs a modular architecture(main applications
responsibility is just to load and unload modules). My module displays a
popup window who's parent is the main application that covers the entire UI.
Unfortunately, while this popup is displayed certain events occur in the
module that it handles by displaying some small notification popups over UI
components that are hidden by the big popup window, however the notification
popups layer over the big popup.

In reading the PopupManager docs I thought by simply assigning the module as
the parent of my notification popups would resolve the issue by adding the
popups to the module "layer" and not the top "application layer", but it is
not working and I am not sure if this is supported with the parent argument
to addPopUp or I am doing something wrong.

Does anyone know how I can show popups in different layers per say?

Any help much appreciated.

Greg


Re: [flexcoders] Does Flex 4 SDK require Flash Player 10.1?

2010-05-10 Thread Alex Harui
Sounds like there is an exception being thrown when running in the release 
player.  The release player just eats exceptions and stops running code until 
the next frame.  If code that would run later sets up code to run in the next 
frame, then that code won’t run.

There could be a timing dependency if you are loading CSS modules and depending 
on the styles at startup.  There could be a stage-size dependency where the SWF 
instance doesn’t have its final size until a bit later than you might expect.  
That can cause some math to go negative and generate an exception.

During startup, almost everything is run from callLater as we validate 
components.  I would set UIComponentGlobals.catchCallLaterExceptions=true and 
listen for “callLaterError” events on the systemManager and if you get one, 
addChild a TextField to the SystemManager and display the error.


On 5/9/10 11:50 PM, "dorkiedorkfromdorkt...@gmail.com" 
 wrote:






On some machines our app appears to only load when using the debug player:

Does not finish loading:
Manufacturer: Adobe Windows
Flash Player: WIN 10,1,53,38
Flash Player Debugger: false
Operating System: Windows XP
Language: en
CPU Architecture: x86
Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) 
Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)

Works:
Manufacturer: Adobe Windows
Flash Player: WIN 10,1,53,38
Flash Player Debugger: true
Operating System: Windows XP
Language: en
CPU Architecture: x86
Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) 
Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)


On Mon, May 10, 2010 at 1:26 AM, dorkie dork from dorktown 
 wrote:
Shouldn't the playerglobal.swc tell me if I'm using api's that require 10.1 
when I set the required Flash Player version to 10.0.0 in the Flex Compiler 
project options?

On some machines we can load our site and in others it is stalling about a 
quarter of the way through the second preloader progress bar.

On Sun, May 9, 2010 at 11:38 PM, Alex Harui  wrote:





Are you using the official Flex 4 release build or some nightly build?

TLF and the Flex SWCs should have no requirements on 10.1.  They will use 10.1 
APIs if they exist though.  But if your code is trying to do 10.1 things like 
recycle textlines or set up a global error handler you could run into trouble.



On 5/9/10 9:44 AM, "dorkiedorkfromdorkt...@gmail.com 
 " http://dorkiedorkfromdorkt...@gmail.com> > wrote:






How would I be able to determine that? Is TLF one of them?

On Sun, May 9, 2010 at 2:16 AM, Alex Harui http://aha...@adobe.com> > wrote:





No, 10.1 is not required, but if you setup your SWF to require 10.1 APIs your 
SWF may not run on 10.0.



On 5/8/10 11:36 PM, "dorkiedorkfromdorkt...@gmail.com 
  
 " http://dorkiedorkfromdorkt...@gmail.com>  
 > wrote:






I'm using Flash Player 10,0,45,2 and the project is not loading
completely. Does Flex 4 SDK require FP 10.1? It loads fine if I use
that version.

JP





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Server power for Appli

2010-05-10 Thread Christophe
Hello, 

Which type of server to choose to have a faster execution of a flex application 
for the customer ? 

Thank you,
Christophe, 




[flexcoders] Re: Loading CFF font swf into Flex 3.3 app

2010-05-10 Thread aaronius9er9er
Thanks Alex and Gabriel.  I think most of my problems were due to security 
domain issues.  I finally have it working with the font swf registering its own 
font.  The important part being that the font swf and the app swf are both 
running under the same security context (which means I couldn't run the app 
locally and load a remote font swf--most of my problem).

Anyway, you understand the security/domain intricacies more than I.  In case 
anyone comes across this later, you can cross-reference this thread outlining 
my (and others') adventures with runtime font loading and TLF: 
http://forums.adobe.com/thread/465439

Thanks for your help!

Aaron

--- In flexcoders@yahoogroups.com, gabriel montagné  wrote:
>
> On 07/05/2010, Alex Harui  wrote:
> > I think I would make the font swf do the registration.  That’s how I did 
> > it
> > recently.  And I always wait for INIT before doing things like that.
> 
> There's also a very clear example of loading fonts for TLF at runtime on the
> docs for the ISWFContext interface, on the callInContext method description:
> 
> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/compose/ISWFContext.html#callInContext()
> 
> ... with all the tricky bits, i.e.,
> 
> > package flashx.textLayout.compose.examples {
> > public class EmbeddedFontLineCreator extends Sprite implements ISWFContext
> > {
> 
> [...]
> 
> > var embeddedFontLineCreator:Class = 
> > fontSWF.contentLoaderInfo.applicationDomain.getDefinition( 
> > "flashx.textLayout.compose.examples.EmbeddedFontLineCreator" ) as Class;
> > flow.flowComposer.swfContext = new embeddedFontLineCreator();
> 
> hth,
> gabriel
> 
> -- 
> gabriel montagné láscaris comneno
> http://rojored.com
> +44 (0) 7500 709 209
>




Re: [flexcoders] Use a Popup as itemEditor in Datagrids

2010-05-10 Thread Alex Harui
EditedItemPosition should be read/write.


On 5/10/10 2:44 AM, "DevSachin"  wrote:







Hi Alex,
I studied your example at
http://blogs.adobe.com/aharui/2008/08/datagrid_with_popup_editor.html

I have created "editing cell with popup editor with ADG " and also implement
cell edit in double click instead of single click.
I have written itemeditBeginning handler and written a condition where if
data is Date type then use prevent default to stop event processing and show
popup editor to edit the cell. If data is not Date type then
itemeditBeginning  goes with default behaviors(i.e. direct edit the cell).
I have a problem when i close popup form then focus is going to lastEdited
cell. some time it goes to first cell of the ADG(i.e. column[0]row[0]).
Since editedItemPosition is readonly so i can not set it.  How can i set
focus to the cell which is double clicked or what is the solution of the
problem.

Please let me know

Thanks
Sachin

--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] How to sync Audio and video files

2010-05-10 Thread Sudesh Das


Hello Pravin,
  Thanks for the help. But my client not all listening.
Thanks & Regards
Sudesh

 



From: "p...@vin Uttarwar" 
To: flexcoders@yahoogroups.com
Sent: Mon, May 10, 2010 1:56:38 PM
Subject: Re: [flexcoders] How to sync Audio and video files

  

Hello Sudesh,

Look the thing is that you are trying to sync two different file(Hope there 
bitrate is same),
Here the problem is that two different streams that you are playing can take 
different bandwidth so synchronization problem
starts here only as one stream can be behind of other or vice verse.

Now to achieve the synchronization  you need to make sure that both streams are 
playing at constant bitrate or having equal elapsed time.

You can achieve this on cleint side by continuous monitiring of two streams.

eg: If you set timer of 5 sec then you will check 
stream1.time and stream2.time if both are not exactly same then you can 
seek the audio stream same as video stream to handle the sync.

But here problem is that after X number of seconds you are seeking the stream 
so no audio will be hered untill seeking will complete.

Thanks & Regards,

Pravin Uttarwar | Perennial Systems
pravin.uttar...@perennialsys.com | Cell: +91 9371288080 | Tel: +91 (020) 2421 
1286 Ext:2007



On 10 May 2010 13:14, Sudesh Das  wrote:

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  >
>
>>
> 
>>  
> 
>
>
>Hello Pravin,
>   its the clients requirement. There may be up to 3-4 video files and a 
> single audio. and I have to play all in sync.
>>
>Thanks 
>
>

From: "p...@vin Uttarwar" 
>To: flexcoders@yahoogroups.com
>Sent: Mon, May 10, 2010 12:12:10 PM
>Subject: Re: [flexcoders] How to sync Audio and video files
>
>
>
>
>>
>
>
>
>Hi Sudesh,
>
>You are trying to achieve something which is next to impossible.
>Why you have used two separate files to record audio and video instead of 
>single file?
>
>Thanks & Regards,
>
>>
>Pravin Uttarwar | Perennial Systems
>pravin.uttar...@perennialsys.com | Cell: +91 9371288080 | Tel: +91 (020) 2421 
>1286 Ext:2007
>
>
>
>On 10 May 2010 11:40, sudeshdas  wrote:
>
>>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>  >>
>>

>> 
  
>> 
>>Hi All,
   In my flex application the video and audio files are loaded separately. 
 I want sync both to play together. can anyone give some idea.
>>
Thanks
Sudesh 
>>
>>
>
>
>
>






  

[flexcoders] HexoSearch - The World's First Search Engine Dedicated to Actionscript

2010-05-10 Thread marspark39
Hi all,

My name is Mars, an actionscript developer just like you.

Based on my own experience, I believe there's gotta be something better than 
google to provide more precise results and save us tones of time from browsing 
useless forum and blog posts.

That's why my friends and I have developed a search engine dedicated for 
actionscript: http://www.hexosearch.com .

Basically HexoSearch is a developer search engine that allows users to vote for 
the results. In other words, HexoSearch combines the best features from 
digg.com© and google.com©.

If you are a site/blog owner, we also invite you to add a share button under 
your post to promote your site in our engine. For more information please visit 
here: http://www.hexosearch.com/se/promote.aspx.

We'll be honored if you can become one of our beta users to test, contribute 
and benefit from HexoSearch.

Best Regards,
Mars




[flexcoders] RichTextEditor

2010-05-10 Thread karkuratintenn
Hi there, 

I am having some trouble with the RichTextEditor for flex 3.5.  

Basically my problem is the following, if i set the htmlText in the 
RichTextEditor it is not showing up in the component but as soon as I type in 
the first letter everything shows up.  

Does anyone have a clue of what might be the problem.  

I have tried invalidateDisplayList and validateNow to force a refresh but I get 
the same behaviour.  

If on the other hand I set the text property everything shows up as expected.  

Thanks alot

M



[flexcoders] how to use timer to go to different states

2010-05-10 Thread James Dean
hi guys

suppose i have 15 states

state1
state2
state3
state4   all the way to state15

how do i use the timer class to "automatically" go from state1 to state15 with 
an interval of 5seconds.   meaning display whatever i want to display in each 
state for 5seconds.

ive been thinking of using for loops but i am not sure how to put it so that it 
increments to different states.

ive also thought about setTimeout but that is kinda messy.i have to create 
15functions with a setTimeout to the next state. i read that i can use 
setTimeOut  but im not sure how to go about. documentation says i should use 
Timer class instead.


  

Re: [flexcoders] Re: Loading CFF font swf into Flex 3.3 app

2010-05-10 Thread gabriel montagné
On 07/05/2010, Alex Harui  wrote:
> I think I would make the font swf do the registration.  That’s how I did it
> recently.  And I always wait for INIT before doing things like that.

There's also a very clear example of loading fonts for TLF at runtime on the
docs for the ISWFContext interface, on the callInContext method description:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/compose/ISWFContext.html#callInContext()

... with all the tricky bits, i.e.,

> package flashx.textLayout.compose.examples {
> public class EmbeddedFontLineCreator extends Sprite implements ISWFContext
> {

[...]

> var embeddedFontLineCreator:Class = 
> fontSWF.contentLoaderInfo.applicationDomain.getDefinition( 
> "flashx.textLayout.compose.examples.EmbeddedFontLineCreator" ) as Class;
> flow.flowComposer.swfContext = new embeddedFontLineCreator();

hth,
gabriel

-- 
gabriel montagné láscaris comneno
http://rojored.com
+44 (0) 7500 709 209


Re: [flexcoders] Re: Loading CFF font swf into Flex 3.3 app

2010-05-10 Thread Alex Harui
I think I would make the font swf do the registration.  That’s how I did it 
recently.  And I always wait for INIT before doing things like that.

package
{
import flash.display.Sprite;
import flash.text.Font;

public class FontLib extends Sprite
{
[Embed(
source="arial.ttf",
fontFamily="Arial"
)]
public static const ARIAL_FONT:Class;

public function FontLib()
{
super();
loaderInfo.addEventListener(Event.INIT, initHandler);
}
}

public function initHandler(event:Event):void
{
Font.registerFont(ARIAL_FONT);
}
}

On 5/7/10 9:15 AM, "aaronius9er9er"  wrote:






The TLF I'm using is from Flex 4.  I've dropped in textLayout.swc from Flex 4 
into the libs directory of a Flex 3.3 project.  This is my main app.  Separate 
from the main app, I have an ActionScript project using the full Flex 4 sdk to 
build the "fonter" class that extends ISWFContext.  The main app is loading in 
the "fonter" swf using a loader context that looks like:

new LoaderContext(false, ApplicationDomain.currentDomain);

In any case, even if I were to figure that out I think I'd run into another 
issue: only a single swf context can be set on a flow composer.  Considering 
our text flow will have multiple fonts (and therefore multiple font swfs), I 
don't see how that would work.  This has been explained more in-depth in posts 
like this one: 
http://marcel-panse.blogspot.com/2010/03/embedded-fonts-in-tlf-and-swfcontexts.html

So...I've gone to yet another approach: calling Font.registerFont() to register 
the font that's been embedded in a separate font swf.  The separate font swf 
will no longer extend ISWFContext.  I realize my font swf resources will never 
be unloaded from memory but that's okay.

Now my setup is that both my main app swf and my font swf are built using the 
Flex 3.3 sdk.

I'm not even worrying about the textflow or TLF at all yet.  I just want to be 
able to load in a font swf, register the font, then enumerate the fonts and see 
it listed as an embedded font in the main app.

When calling Font.registerFont(), I get the following error:

ArgumentError: Error #1508: The value specified for argument font is invalid.
 at flash.text::Font$/registerFont()
 at FontApp/completeHandler()[C:\Development\TLF\FontApp\src\FontApp.mxml:24]

Here's my code for the main app:

--


http://www.adobe.com/2006/mxml"; layout="absolute" 
minWidth="955" minHeight="600"
creationComplete="application1_creationCompleteHandler(event)">





--

And here's my code for the font swf:

--

package
{
import flash.display.Sprite;
import flash.text.Font;

public class FontLib extends Sprite
{
[Embed(
source="arial.ttf",
fontFamily="Arial"
)]
public static const ARIAL_FONT:Class;

public function FontLib()
{
super();
}
}
}

--

I've tried both verdana and arial fonts that I've pulled from my 
C:\Windows\Fonts folder and it always throws the error.  Once I get this 
resolved I should be able to get started with the text flow integration.

Aaron

--- In flexcoders@yahoogroups.com  , Alex 
Harui  wrote:
>
> So let's back up a second.  Which version of TLF are you using?  The one from 
> Flex 4 or and older one?  I don't know if older ones exist and are still 
> valid, but they did not use iSWFContext until recently.
>
> How are you loading the font SWF?  If you don't use a child or same 
> applicationDomain topology then (fonter is ISWFContext) would return false.
>
>
> On 5/6/10 4:55 PM, "aaronius9er9er"  wrote:
>
>
>
>
>
>
> To no avail, I've decided to take a different route.  I decided to make an 
> ActionScript project with a class that implements ISWFContext and embeds the 
> font I need.  Then from my main app I load the class in and set it on 
> flowComposer's swfContext property.  This is explained well with a good 
> example here:
>
> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLa
>  yout/compose/ISWFContext.html
>
> So, I make the font class implement ISWFContext and then in my app I have the 
> following:
>
> 
>
> var fonter:Object = loader.content;
> trace(describeType(fonter));
> trace(fonter is ISWFContext);
> editor.textFlow.flowComposer.swfContext = ISWFContext(fonter);
>
> 
>
> On the describeType trace it shows:
>
> 
>
>  isFinal="false" isStatic="false">
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  ...
>
> 
>
> Notice it shows the class as implementing ISWFContext as planned.  But on the 
> next line I trace whether fonter is of type ISWFContext and it reports false. 
>  On the next line where I attempt to cast it to ISWFContext I get the 
> following error:
>
> TypeError: Error #1034: Type Coercion failed: cannot convert fon...@a32ce81 
> to flashx.textLayout.compose.ISWFContext.
>  at 
> TLFTester/fontL

RE: Re: [flexcoders] Use a Popup as itemEditor in Datagrids

2010-05-10 Thread DevSachin

Hi Alex,
I studied your example at
http://blogs.adobe.com/aharui/2008/08/datagrid_with_popup_editor.html

I have created "editing cell with popup editor with ADG " and also implement
cell edit in double click instead of single click.
I have written itemeditBeginning handler and written a condition where if
data is Date type then use prevent default to stop event processing and show
popup editor to edit the cell. If data is not Date type then
itemeditBeginning  goes with default behaviors(i.e. direct edit the cell).
I have a problem when i close popup form then focus is going to lastEdited
cell. some time it goes to first cell of the ADG(i.e. column[0]row[0]).
Since editedItemPosition is readonly so i can not set it.  How can i set
focus to the cell which is double clicked or what is the solution of the
problem.
 
Please let me know
 
Thanks
Sachin
-- 
View this message in context: 
http://old.nabble.com/Use-a-Popup-as-itemEditor-in-Datagrids-tp7071004p28509501.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: BlazeDS conversion/transmission of numerics -- value-based rather than type-based?

2010-05-10 Thread Mete Atamel
Can you open a bug with a test case and your reasoning so this can be 
investigated whether it's a BlazeDS or documentation issue? 

http://bugs.adobe.com/jira/browse/BLZ


Thanks,
Mete


--- In flexcoders@yahoogroups.com, William Mitchell  wrote:
>
> The chapter on Data Serialization in the BlazeDS Developer Guide has  
> tables that show, for example, an AS Number deserializes to  
> java.lang.Double, and a Java double passed to AS is converted to a  
> Number, but that seems to be wrong.   In fact the conversions seem to  
> be based on the values, not the types.
> 
> For example, if I send Number(268435455) to Java, it comes through as  
> java.lang.Integer.  If I add one (268,435,456), then it comes through  
> as a Double.  Similarly, if I send 268435455D ("D" for double literal)  
> to AS, it comes through as an int.  If I add one, it comes through as  
> a Number.
> 
> It so happens that the value 268,435,455 (0xFFF) is  
> flex.messaging.io.amf.Amf3Types.INT28_MAX_VALUE
> 
> I'm not saying that the behavior is unreasonable, but it seems to  
> drastically vary from the documentation, if my test code is correct.
> 
> I'm testing with ActionScript and Java routines with all parameters  
> and variables declared as being of type Object, BTW.
>




Re: [flexcoders] How to sync Audio and video files

2010-05-10 Thread p...@vin Uttarwar
Hello Sudesh,

Look the thing is that you are trying to sync two different file(Hope there
bitrate is same),
Here the problem is that two different streams that you are playing can take
different bandwidth so synchronization problem
starts here only as one stream can be behind of other or vice verse.

Now to achieve the synchronization  you need to make sure that both streams
are playing at constant bitrate or having equal elapsed time.

You can achieve this on cleint side by continuous monitiring of two streams.

eg: If you set timer of 5 sec then you will check
stream1.time and stream2.time if both are not exactly same then you
can seek the audio stream same as video stream to handle the sync.

But here problem is that after X number of seconds you are seeking the
stream so no audio will be hered untill seeking will complete.

Thanks & Regards,

Pravin Uttarwar | Perennial Systems
pravin.uttar...@perennialsys.com | Cell: +91 9371288080 | Tel: +91 (020)
2421 1286 Ext:2007


On 10 May 2010 13:14, Sudesh Das  wrote:

>
>
>
> Hello Pravin,
>its the clients requirement. There may be up to 3-4 video files and a
> single audio. and I have to play all in sync.
> Thanks
> --
> *From:* "p...@vin Uttarwar" 
> *To:* flexcoders@yahoogroups.com
> *Sent:* Mon, May 10, 2010 12:12:10 PM
> *Subject:* Re: [flexcoders] How to sync Audio and video files
>
>
>
> Hi Sudesh,
>
> You are trying to achieve something which is next to impossible.
> Why you have used two separate files to record audio and video instead of
> single file?
>
> Thanks & Regards,
>
> Pravin Uttarwar | Perennial Systems
> pravin.uttar...@perennialsys.com | Cell: +91 9371288080 | Tel: +91 (020)
> 2421 1286 Ext:2007
>
>
> On 10 May 2010 11:40, sudeshdas  wrote:
>
>>
>>
>> Hi All,
>> In my flex application the video and audio files are loaded separately. I
>> want sync both to play together. can anyone give some idea.
>>
>> Thanks
>> Sudesh
>>
>>
>
>
>
>  
>


Re: [flexcoders] How to sync Audio and video files

2010-05-10 Thread Sudesh Das


Hello Pravin,
   its the clients requirement. There may be up to 3-4 video files and a single 
audio. and I have to play all in sync.
Thanks 



From: "p...@vin Uttarwar" 
To: flexcoders@yahoogroups.com
Sent: Mon, May 10, 2010 12:12:10 PM
Subject: Re: [flexcoders] How to sync Audio and video files

  

Hi Sudesh,

You are trying to achieve something which is next to impossible.
Why you have used two separate files to record audio and video instead of 
single file?

Thanks & Regards,

Pravin Uttarwar | Perennial Systems
pravin.uttar...@perennialsys.com | Cell: +91 9371288080 | Tel: +91 (020) 2421 
1286 Ext:2007



On 10 May 2010 11:40, sudeshdas  wrote:

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  >
>
>>
> 
>>  
> 
>Hi All,
>>   In my flex application the video and audio files are loaded separately. I 
>> want sync both to play together. can anyone give some idea.
>
>>Thanks
>>Sudesh 
>
>






  

[flexcoders] FileReferenceList

2010-05-10 Thread sderamon
Hello,

I have a problem with file referencelist. After select several files for upload 
with filereferencelist, I show the selected files in a Datagrid. My problems 
is, If I decide not to send some file, how I can remove it from the 
filerefenceslist?

Thank You