Actionscript :: Flex - C# Nullable Double To NaN Through Fluorine Gateway

Aug 19, 2010

Is there a way in fluorine to force a nullable double to be passed to flex as NaN? (and vice versa) By default these values are passed as null, but a Number in actionscript is not nullable, so it is converted to 0 by default. I need server side nullable doubles to be NaN in flex, and NaN values from flex to be nullable doubles on the server side.

View 1 Replies


Similar Posts:


Java :: Handle Nullable Integer - Flex Remoting Application?

Feb 10, 2011

I have an Application consisting of a Java Server part and a Flash/Flex client, both communicate via BlazeDS. In order to have the same typed Objects on both sites, I use the GAS3 code generator (used by flex-mojos).But now I am facing the problem of handling nullable Integers. The problem is that I have an Object (A) which contains a foreign key ID which is reference an optional Object B. - But I only send the ID to the flex client.On the Java site it is easy:

class A {
private Integer bFk;
getter/setter
}

But on the flex client side, bFk is of type int. And a Flash int can not be null. So the remoting mechanism converts the Java null Integer to 0. After sending it back to the server, the Java bFk becomes 0 even on the Java side. - That is not acceptable, because I need to separate 0 and nullMy first workround is using not a Integer on the Java side, but an new Class NullAbleID, which works a bit like a wrapper/adapter, that wrap an internal int where -1 represent null (I can use -1 for null, because real id will be negative). But when I would using this it means I have to replace all Java Integer ids, by this NullAbleID class.

View 1 Replies

Asp.net :: Fluorine TransientAttribute And Linq-to-SQL?

Jul 9, 2010

I've found a workaround, but I had trouble earlier this week working with FluorineFx, where I had a Linq-to-SQL-generated object I wanted to send over the wire to Flash. This object contained a property that Flash didn't need:

[Association(Name="User_UserEntry", Storage="_UserEntries",
ThisKey="UserID", OtherKey="UserID")]
public EntitySet<UserEntry> UserEntries { ... }

But Flex couldn't handle reinflating this type, throwing: ArgumentError: Error #2173: Unable to read object in stream. The class flex.messaging.io.ArrayCollection does not implement flash.utils.IExternalizable but is aliased to an externalizable class. Now I didn't need to send the property over the wire, so I tried the steps that Marc Gravell suggested in issue 456624, firstly adding attributes to it using the MetadataTypeAttribute in System.ComponentModel.DataAnnotations (found from JasonW's comment on issue 393687:

[MetadataType(typeof(UserMetadata)]
public partial class User { }
internal class UserMetadata[code]....

Unfortunately it seems that FluorineFx doesn't support metadata attributes yet (which isn't very surprising, tbh, they are quite new). What I ended up having to do was create a dedicated DTO, with all the properties that Flash cared about and none of the properties it didn't. Not the most elegant of solutions.

View 1 Replies

Actionscript 3 :: Fluorine Request Not Being Made In Some IE Versions?

Apr 15, 2011

We have a really strange problem with a piece of Fluorine integration we've built.We have a form with a Captcha on it; the Captcha image is populated from a .Net/AMF webservice inventively titled GetCaptchaImage.ashx and can be reloaded from a text hyperlink within the Flash.

In some versions of IE (particularly IE8, but it may also be others), irrespective of IE version emulation and wmode, clicking the text link causes the HTTP call to our Fluorine gateway successfully to be made, but the call to the webservice does not follow it. Inspecting the HTTP transactions with Microsoft Fiddler, [code]...

why on earth that second call wouldn't be making it to the webserver? I can't see why the Flash wouldn't be issuing the HTTP GET but, equally, I can't think of any reason why a browser (let alone just this browser) would be suppressing it. I'm not a Flash developer (I run the .Net team here),

View 1 Replies

Php :: Serializing Flash Objects Over HTTP Without The Gateway?

Jan 17, 2010

Flash + AMFPHP is a great combination. But there are cases, when Flash Remoting with NetConnection isn't the right tool, for various reasons. Rob had a great post on this some time ago: http:[url]....He also has a nice example on how to deliver AMF to a http request, without the POST and AMF-request package to call the function that NetConnection sends, using Zend_AMF.

// Include the Zend Loader
include_once 'Zend/Loader.php';
// Tell the Zend Loader to autoload any classes we need[code].....

I really like this approach and would be very hapy to replicate it with AMFPHP. Why AMFPHP, you ask? The 'newest' version uses amf-ext, a C PHP extension, to serialize and deserialize the data. It is much faster than the php way ZendAMF is still using.Of course I already played around with AMFPHP and tried to build the necessary objects and use the Serializer class. I even got a valid AMF string, but the real data was always wrapped by a 'method package' that told the receiver this was a answer to 'Service.method' call.is there a way to serialize Flash Objects directly, without the gateway and method wrapper, in AMFPHP?

View 2 Replies

Media Server :: FMS Net Connection Call To AMF Gateway Using HTTPS

Jan 5, 2011

How to make an FMS netconnection call to an AMF gateway using HTTPS. It is my understanding that Flash in the browser will utilize whatever HTTPS cert the browser has available for the HTTPS path you are trying to connect. Is there some sort of config or cert trick I need to apply for FMS to make HTTPS connections? I was considering it might be one of the following, but could not find any information on the subject:

-HTTPS cert saved to FMS directory?
-FMS config value for specific HTTPS paths?
-Allow the FMS host/ip to bypass HTTPS on server side?

View 2 Replies

ActionScript 3.0 :: Contact Form Setup Using AMFPHP Gateway

Mar 10, 2011

Any info on setting up a contact form in flash cs5 using amfphp? I can create the contact form in flash cs5 and I have set up the amfphp gateway successfully with a working test email. I have seen the gotoandlearn tutorial but need to extract the data from my flash fill in form. My problem is that I don't know the actionscript to collect my data from the flash form via a send button.

View 0 Replies

Uses A Shopping Cart To Add Items From A Gallery As Well As Connect To The Gateway And Uses SSL?

Nov 13, 2007

I was just wondering if anyone has seen or has actually built a complete flash based eCommerce system that uses a shopping cart to add items from a gallery as well as connect to the gateway and uses SSL

View 3 Replies

Flash :: Flex - Using Media Gateway Application - Status Is Not Getting Update Like: "Connection Failed" Or "Connection Success"

Dec 17, 2010

I got a IP Communications new account having following paramters:

[Code]...

Its showing me connecting ... Status is not getting update like: "Connection Failed" or "Connection Success". how to use the above information in this app,

View 1 Replies

Flex :: Use Double Datatype In It?

Dec 11, 2009

Use Double Datatype in flex?

View 2 Replies

What Does The Double Colon ('::') Mean In Flex

Jan 5, 2011

I'm tasked with updating a Flex project created by an outside contractor and in the Actionscript is the following chunk:

CONFIG::FLASH_10_1
{
//Some code here
}

I've never seen this type of structure before and I'm having a heck of a time trying to search for it on Google - I've found what it means in just about every programming language except AS3.

View 2 Replies

Actionscript 3 :: AMFPHP Bad Version Error When Having Multiple Simultaneous Calls To Gateway?

Feb 19, 2010

I'm currently using AMFPHP 1.9 to make a simple flash game which uses a game server.Sometimes, I get this error (BadVersion) when there are simultaneous calls to the server.I've searched the web for some of the answers to this problem, and it seems they were answered back in 2004.Is there an updated version of how to solve this problem?I tried to change the globals.php parameters to use absolute path, like performing the below:

//$servicesPath = "services/";
//change to
$servicesPath = "/httpdocs/Flash/AMFPHP/services/";

[code].....

View 1 Replies

Flash :: Double Or Float Data Type In Flex?

Jan 25, 2011

What data type do I use in flex (flash builder) to create a "double" or "float" data type. I need the numbers after a decimal point. (i.e. prices)

View 2 Replies

Actionscript 3 :: Flex - Tree Selection Color Just On Double Click?

Jul 21, 2010

How could i disable the selection color on single click and enable it just to double click.

View 1 Replies

Flex - Debug Which Event Is Dispatched When Double-click The Mouse?

May 13, 2011

I am currently working with a drawing tool for a mapping API, and every time I double-click the mouse a map service will perform a measurement and display the length of the line that I am drawing.

I want to mimic this double-click manually by dispatching a MouseEvent.DOUBLE_CLICK, but the map service is not listening to this default Flex event. I suspect that the API has created a custom MapMouseEvent or something like it that is being dispatched when a user double-clicks the mouse.

Is there a way to determine which event is being dispatched when I double-click the mouse?

View 2 Replies

ActionScript 3 :: Flex - Difference Between Single And Double Quoted Strings

Dec 16, 2011

I have been programming in actionscript for three months and I am very new to a lot of the details. I was programming in java in which there is an important difference between 'hello' and "hello". So my question is: In actionScript is it the same to use 'Hello' and "Hello". If not what are the differences?

View 1 Replies

Flex :: Disable Double Click On Advanced Datagrid Grouping Title?

Jan 20, 2011

I have an advanced datagrid that has a grouping on it. With the items inside of the grouping I have it setup where you double click on an item and it will create a popup that allows the user to edit that entry. The problem that I am having is that I can double click on the group title and the popup is activated with blank information.[code]...

View 1 Replies

Flex :: Double Click Event Propagation On Datagrid Dependent On Component Order?

Mar 21, 2010

I'd like to have a double click event on a datagrid in Flex3. The following example only works if the Accordion (id = "mustBeSecond") container comes after the DataGrid. Why is the order of the components important and what can I do to prevent this behavior? (The example does not work. If you change the order of "mustBeSecond" and gridReportConversions" the example works fine)

<mx:Script>
<![CDATA[
import mx.controls.Alert;

[code].....

View 1 Replies

Actionscript 3 :: Give Click And Double Click Together In Advanced Datagrid Flex?

Mar 29, 2012

I want to listen both click and double click events for advanced data grid in flex. I have given double click enabled true and written the function in itemdoubleclick but only click is working but not itemdoubleclick

View 1 Replies

Flex - "Double Typing" - With OSX Lion And Flash 10.3.. Every Character Typed To It, Appears Twice?

Jul 21, 2011

We have a small flash application that has an text box.

under OSX Lion, with flash < 10.3.. it works fine

with OSX Lion and Flash 10.3.. every character typed to it, appears twice.

View 3 Replies

ActionScript 2.0 :: Double Click Or Not Double Click?

May 20, 2008

I've got a bug in my code, where a button has to be double clicked to work.Just wondering what is the standard distinction for the difference between single and double click.

my code

ActionScript Code:
ns.seek(0);
subtitles._visible = true;[code].....

the idea is that it runs a function only when the above button is pressed, but it doesn't seem to work the first time you press the button ?

View 5 Replies

Cs5.5 :: Swf Files More Than Double In It

May 27, 2011

I have CS5 but just upgraded to cs5.5 yesterday...but why are my swf files in Flash cs5.5 more than doubling in size compared to using cs5?

View 1 Replies

Double Up If Else Statements?

Apr 18, 2009

Is it possible to double up If Else statements? [code]...

View 2 Replies

CS3 :: Cant Double-click SWFs Any More

Oct 7, 2010

I am no longer able to doubleclick SWFs on my PC and have them open up in their own little SWF preview window. It is asking me to choose how I want to open them. There was no option for any Flash player, so I have had to settle for Firefox fo now which is annoying as it has changed all my SWF icons to the FF logo.I have Flash CS3 installed, and use Flash regularly to create banners and things, so this is a pain.

View 2 Replies

ActionScript 3.0 :: No Double Click At All?

Jan 17, 2009

I never really dealt with double click in flash, but I've been always thinking it's just the same as any mouse event handling. Here is the simple test code I've made:

ActionScript Code:
package
{
import flash.display.Sprite;
import flash.events.Event;

[Code]...

I'm really sick of clicking that red circle, but I got no event firing at all. I've changed windows double-click settings, have made another testing mouse listeners (all of them are firing) and all the things...

View 3 Replies

ActionScript 2.0 :: How To Do A DOUBLE CLICK

Apr 8, 2004

I have a MC in my project that acts as a popup window only it is really just a movie clip. One that loads hi-res pictures AND... here's the important part....has a startDrag() action attached to it so that the user can move the picture aside if they so desire.However to close this window, I'd like to have the user DOUBLE CLICK with the mouse. They should be able to double click anywhere on the movie clip or even anywhere else... it doesnt matter really. The thing is, how do I listen for a double click in ActionScript??

View 6 Replies

Double Clicking Opens Two .swfs?

May 11, 2009

I build a .fla project, and publish a .swf.

If I double click the .swf to play, it opens two .swfs, the one I'm double clicking and one from a previous project.

If I drag the .swf directly to the stand alone Flash Player then no problem, just the one movie.

I could deal with this except now I've sent a client a .swf, and when he double clicks it opens the .swf he clicked on, and one from a previous project I sent that is on his hard drive.

View 3 Replies

ActionScript 2.0 :: Way To Disable Double Click

Apr 2, 2010

I wand add some code to a button until avoid double click.is there something in as2 like this [code]...

View 6 Replies

ActionScript 3.0 :: Double Speed When Restart?

Jul 2, 2010

My movie consists of 2 frames. the menu and the actual game. The actual game is a simple platformer. I recently added a button that makes the game "gotoAndStop(1)" back at the menu. but when I proceed to play the game again from the menu. my speed is doubled.

View 1 Replies

CS4 :: Getting Sporatic Double Headed Pointer In It

Jun 14, 2009

Sometimes my mouse pointer will turn into a double arrow "<-->" for no reason when using the program. Is it just me?? I do understand it is suppose to when dragging frames, etc.., but this is not the case when I see it. I'm still able to make selections with it and it doesn't prevent me from normal use. It's just a pita too see it.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved