Actionscript :: Flex - Passing Extra Parameter To Request When Using CallResponder

Nov 2, 2011

I am running flex with BlazeDS. My backend is in Java.

I have the following function in actionscript:

override public function execute():void
{
super.execute();
var responder:CallResponder = new CallResponder();

[Code].....

View 1 Replies


Similar Posts:


Flex :: Pass An Extra Parameter To Callback Event And Have It Evaluate Early?

Jun 30, 2011

For example:

for(var i:int=0; i<someArray.length; i++)
{
var loader:Loader=new Loader();
loader.load(new URLRequest("http://testurl.com/test.jpg"));

[Code]....

The second paramter (i) for imageLoaded is always 1, I guess because i no longer exists and is defaulting to 1. Is it possible to get that second paramter to be evaluated when the load is started rather than on complete?

View 2 Replies

Flex :: Request Parameter With Special Character In HTTPService?

Sep 9, 2010

Currently I have :

<mx:HTTPService id="userLogin" url="https://api.localhost/api/user/login/" method="POST" resultFormat="e4x" result="doSomeThing(event)">
<mx:request>

[Code]....

instead of this I have params like userCredentials.email and userCredentials.password. I tried this but it odesnt work.

<mx:HTTPService id="userLogin" url="https://api.localhost/api/user/login/" method="POST" resultFormat="e4x" result="doSomeThing(event)">
<mx:request>

[Code].....

View 1 Replies

Flex :: Passing Request File Into Application With Flashvar?

Oct 10, 2011

I am trying to get a xml file with data into Flex application. There are a lot of examples online passing parameter into f. However, it doesn't really work in my case.here is my code in HTML:

var flashvars = {};
flashvars.storageStatsXML = "stats.xml";
var params = {};

[code].....

View 1 Replies

PHP :: How To Load SWF And Some Extra Data In Same Request

Oct 6, 2011

I'm loading a Flex 4.5 module (it's a SWF file) using a PHP code like this:
$module = 'modules/'.$_GET['module'].'.swf';
if(!file_exists($module)) {
$module = 'error.swf';
} $size = filesize($module);
$contents = file_get_contents($module);
header('Content-Type: application/x-shockwave-flash');
header('Accept-Ranges: bytes');
header('Content-Length: '.$size);
echo $contents;
And it works very well.

Now I want to get some extra data to load and populate the module with that data in just one request handler, something like:
private function requestHandler(response:???):void {
var data:Array = response as Array;
mySparkModuleLoader.load("", data[0] as ByteArray);
myController.load(data[1]);
}

I was trying to do it with AMFPHP but the ByteArray seems to be broken or something because it doesn't show up, but the rest of the data is fine:
return array(
'hello world!',
new Amfphp_Core_Amf_Types_ByteArray(file_get_contents($module))
);
Maybe creating a multipart response like [URL] and handling it?

View 1 Replies

Flex :: Passing URL As A Parameter?

Jun 3, 2009

<mx:HTTPService id="addWeb" resultFormat="object" result="Added(event)" fault="faultWeb(event)" showBusyCursor="true" method="GET" url="http://localhost/search/populate.php" useProxy="false">

[code].....

View 1 Replies

Flex :: Passing Parameter To SAP Query_view_data?

Jun 2, 2011

I am new to flex and SAP. I am designing a dashboard in flex. I have retrieved data from SAP query_view_data and I am able to show it in charts. However now I want to pass parameter to SAP web service to retrieve data between two dates. I am trying to this with the following code:

protected function adg1_creationCompleteHandler(event:FlexEvent):void
{
var IInfoprovider:String="0FIGL_O02";

[code]....

View 1 Replies

Flex :: Possible To Passing Parameter In Function?

Aug 19, 2004

I have several TextInputs in a certain form which have been assigned id in an incremental order. For example:

<s:TextInput id = "index1"/>
<s:TextInput id = "index2"/>
<s:TextInput id = "index3"/>

[code].....

View 8 Replies

Asp.net :: Passing Parameter From Page To Flex Application

Apr 22, 2010

I have an asp.net page where I get the user_id from who's logged in. Now I need to pass this user_id to a flex application that runs in an asp.net page as a .swf. How can I get this user_id in a variable in my flex application.Or what is the best way to get the user_id into flex.

View 2 Replies

Flex :: Passing A Parameter To HttpService In Flexbuilder 3?

Sep 13, 2011

I have stuck at the point where i need to pass a selected item of a comboBox as a parameter to a HttpService.

View 1 Replies

Flex :: Check To See If CallResponder Is Processing?

Apr 11, 2012

I'm using Flash Builder 4.6. As a simple example, say I have the following application:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:sdk="services.sdk.*">

[code].....

View 2 Replies

Flex :: Passing Parameter From Main To Component With Data Binding

Aug 22, 2010

I have a main mxml file (flex4) and want to pass a parameter (user_name) to a component in a directory called components. When I run the program, the user_name is NOT being sent from the main to the component file. (Interestingly, if you make the component visible, you can see the parameter has been passed).

I have hacked much larger files down to get the following two files:
Main
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
[Code] .....

View 1 Replies

ActionScript 2.0 :: Load Xml With Extra Parameter When Embedding?

May 12, 2009

I have found out that one can use an extra parameter in the embedding in order to load another xml other than the default xml file:<embed src="veppa_photo_album2.swf?xml=path/to/custom.xml" ....</embed>I was wondering how i can read this xml file in flash.

View 2 Replies

Flex - Error #1088 On Passing A Class As A Parameter For Web Service In Flash Builder

Feb 8, 2011

I need to pass a struct and a string in a web service. I am using a WebService components to do so.upon my search, there is no struct type in actionscript and so I used a class for that one.

public class UserInfo{
public var name:String;
public var dateAdded:Date;
}

and I'm filling it up so that I can pass it on the web service like this:

var newUser:UserInfo = new UserInfo();
newUser.name = "myName";
newUser.birthdate = new Date();
webServComponentId.operationToCall(newUser, "password");

Upon sending this request, it prompts me an error of Error #1088.

the component that is being called by webServComponentId.operationToCall(newUser, "password"); is this:

<s:WebService id="webServComponent" wsdl="[PATH OF WSDL HERE]" >
<s:operation name="operationToCall" result="functionToCallWhenResult(event);" fault="Alert.show(event.fault.faultString)" />
</s:WebService>

Basically it is a web service via MXML. So when I call the operation, it always go to fault part and shows Error #1088

View 1 Replies

Ajax :: Detect If HTTP Request Is From Browser / Flex Asynchronous Request?

Jun 1, 2010

When Flex application make an asynchronus HTTP request, does it add a special header to the request, like some JavaScript framework does? Something that indicates whether this request is an AJAX call/not.I just want my server side code to return different response format, depending on whether the request is made from browser/flex.

View 1 Replies

ActionScript 3.0 :: Passing Extra Argument In Event Listener?

Nov 19, 2009

I have one event handler for several object's events.  I would like to pass a value through to the function from the event listener:

function chkEmpty(event:Event){
if(event.currentTarget.text==){
thisIsBitIWantToBeAbleChange.text = You haven't entered anything in the box, please try again
hisIsBitIWantToBeAbleChange.setTextFormat(validate_frmt);
}

 
Could I give the event.currentTarget a value that I could test for? So if the value is 1, I effect output1_txt, if 2, output2_txt, etc etc. If so, are there customisable values that I could use that wouldn't do anything to the display object,?

View 8 Replies

ActionScript 2.0 :: Input Text Passing Extra Info To PHP?

Nov 23, 2009

So I'm building a little contact form in flash and it works, but it is passing along all of the font styling information into the email sent to the client. Kind of annoying. I want it just to send the plain text.

Here's what I'm using:

This code is in the actionscript, picking up the input text fields and posting them to the PHP file. It also tells a status box to update with current info:

Code:
loadVariables("send_email.php?flashmo=" + random(1000), this, "POST");
message_status.text = "sending...";
var i = 0;

[Code]....

View 2 Replies

ActionScript 1/2 :: Passing Video Into Flv Playback Component With Extra Parameters?

Mar 9, 2010

I've been given a video url that I want to pull into an the flvplayback component. The url for the video I've been given is:The problem is when I set the contentPath with the above url the component won't load the video with the extra parameters ?var_log=102|441100001-1|- added as it says the path must end with .flvI am asumming that the video provider needs this extra var/parameter to be called in order to track the number of video requests, in which case I will need to keep this in.

View 2 Replies

ActionScript 3.0 :: Make A New Request To The Server If The Seconds Parameter Specifies A Time Outside Of The Currently Buffered Video Data

Jul 14, 2011

when uing netsream.seek(), how can i make a new request to the server if the seconds parameter specifies a time outside of the currently buffered video data. I want to seek unloaded time

View 3 Replies

ActionScript 3.0 :: By-Passing <policy-file-request/>?

Jul 11, 2007

I am working on a program that interfaces with a lab view program and used a very basic socket protocol to send and recive data. and i need to bypass the whole <policy-file-request/> bit when it comes to data sending and reciving. . How am i to do this?

my data sending code is:
<mx:Script>
<![CDATA[

[code]......

View 5 Replies

Actionscript 2.0 :: Passing Parameter

Jan 7, 2010

I have a function setup that I was hoping to re-use to eliminate a bunch of code, but I can't figure out how to pass a parameter to it. I'm getting the trace output, but the rest of the function is not working.Is there a way to get this to work?From what I can tell the syntax matches the examples in the reference guide.

Code: Select allfunction hideButton (elementName:String)[code]......

View 2 Replies

ActionScript 2.0 :: Passing Mc Name As A Parameter?

Oct 15, 2004

I'm trying to pass an mc instance as a paramter of a function. is this possible because I keep getting errors.

Code:
function moveCircle(sIncrement:Number, sMovie:String):Void {
sMovie._x +=sIncrement;
}

[Code]....

I'm trying to do this to cut down on redundant functions I've used in the past for simple as movements and controls.

View 2 Replies

ActionScript 2.0 :: Passing Mc Name As As A Parameter?

Oct 15, 2004

I'm trying to pass an mc instance as a paramter of a function. is this possible because I keep getting errors.

Code:
function moveCircle(sIncrement:Number, sMovie:String):Void {
sMovie._x +=sIncrement;
}

[Code]....

I'm trying to do this to cut down on redundant functions I've used in the past for simple as movements and controls.

View 2 Replies

ActionScript 3.0 :: Flash Passing Parameter To PHP?

Feb 2, 2008

i have 1 PHP page in which i have a Flash animation. this flash swf file, display 2 fields and 1 button.

this php page is called "test.php".

i'm able to send data from Flash to a PHP page, but i would like to send the content of those 2 fields to the "test.php" and display them. however, i do not know how to do it.

i see that it works but i'm not able to display or refresh the PHp page to display the result.

as walkaround i was thinking to collect the webpage address where is executed the flash and to send it to another PHP page. and this 2nd PHP page, will reload the test.php with parameters...

how to get under flash, the address of the actual executed php page ?

View 10 Replies

ActionScript 3.0 :: Passing Var Type Name As Parameter?

Sep 3, 2009

I would like to know if is possible to pass a var type as parameter to a function. I have several sounds in library, and I would like to do something like that:

Code:
function PlayMe(soundname:String)
{
var snd:this[soundname] = new this[soundname];
snd.play();
}

View 4 Replies

ActionScript 2.0 :: CS3 Passing Parameter/variable From Url To Swf?

Oct 23, 2009

i am trying to define a parameter/variable in my html file and pass it through to the embedded swf file:

Code:
<param name="movie" value="index.swf?wmode=transparent&index=XXX">
...
<embed src="index.swf?wmode=transparent&index=XXX" width="200" height="910" quality="high" pluginspage="http://www.adobe.com/shockwave/download

[Code].....

View 2 Replies

ActionScript 3.0 :: Parameter Passing Between Two SWFs?

Jan 27, 2009

The problem I am currently having right now is the inability to send variables loaded from the LoaderSWF to the SWF that has been loaded.

Concretely speaking, I have an embed script on an HTML page that contains several variables in the FlashVars line. The embed script loads a file called loader.swf. Loader.swf's main responsibility is basically take those variables from the flashvar, load the game URL and pass along the rest of the necessary parameters to the game that the loader is loading. However, I've been working out several solutions and none of them worked the way I wanted to.

The embed script is as follows:

Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="450" id="game-player">
<param name="movie" value="/shockwaves/loader.swf" />

[Code]....

how can I load the game SWF file and send along additional parameters with that request? Is there someway I can punch in variables into the myLoader object?

The code I came up with sends along the authenticity token just fine, however, it is not sending score_url correctly. I'm not sure if that is the correct behavior, but please enlighten me with any insights you may have.

I have also considered trying LocalConnection, but the problem is that I do not have the necessary source code for the games to set up LocalConnection on the receiving end.

Also, the game files are using AS2, while the loader is using AS3. The game files read variables by utilizing _root.score_url, etc.

View 1 Replies

ActionScript 2.0 :: Passing PHP Parameter To Flash?

Mar 13, 2010

This is something simple, but yet it's killing me...here's my php file contents:

PHP Code:
<?php
$total_rows = 5;

[code]........

View 7 Replies

ActionScript 3.0 :: Passing Stage As A Parameter?

Nov 12, 2010

So I have a linked external class that has my actual code. On frame one of the flv I have the code:

ActionScript Code:
new main(this.Stage);
The actual main.as contains:

[code].....

View 2 Replies

ActionScript 2.0 :: Button Passing Parameter?

Dec 1, 2010

how is possible passing parameter inside button.Sample.

for(var i:Number = 0; i<totalArray-1; i++) {
var item_mc = mc.attach.attachMovie("boxEven", "boxEven" + i, i);
item_mc.title.htmlText = item_mc;

[code].....

View 1 Replies







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