Flex :: Passing Parameters To Component?

Apr 20, 2010

I've got 2 files, my Application and a custom component. In my component I have a httpservice and a string named _requestUrl that is bindable. The httpservice uses this.

<mx:HTTPService id="srv"
url="{_requestUrl}"
result="parseHttpResult(event)"

[Code].....

View 1 Replies


Similar Posts:


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

Flex :: Passing And Reading Parameters To A .swf?

Jun 21, 2010

What is the preferred way of passing parameters to a Flex application deployed as a .swf and how do I read the parameters from Flex?

I'm looking for the equivalent of passing and reading URL parameters in Flex land.

View 3 Replies

Flex :: Passing Parameters Through An Event?

Aug 3, 2010

I'm stuck with an issue and I cannot understand why it behaves like that. In a for loop, I'm passing the for index as an event parameter. However, the eventHandler is getting the wrong index, but the right target...

[Code]...

View 2 Replies

ActionScript 3.0 :: Flex Passing Parameters To .swf Through URL

Jul 28, 2009

I am trying to pass parameters to my .swf generated like this:

file:///C:/Documents%20and%20Setting...inoes.swf?n1=4

And have included the following code in my document class.

private var n1:int = getSWFParam(n1,5);
protected function getSWFParam(num:int, defaultValue:int):int
{

[Code].....

But somehow the code is executing assuming a value of n1=2, although I have not assigned n1 as 2 anywhere.

View 2 Replies

ActionScript 3.0 :: Passing Parameters From FLEX To PHP (zend Amf)?

Feb 5, 2010

I'm working on a school assignment in which I have to make a basic CRUD (create, read, update and delete) content management application using the Zend AMF framework in FLEX.Basically I create a mock database and have flex print the data from the database into a data-grid. I need to also have an add form, edit+update feature and delete feature. As of now I have FLEX printing all the database info into my data-grid and my add form works as well as my delete button. My problem is I cannot get the update function/query to work. You know:

(UPDATE myTable SET valueName='".$variable."')

What happens is I have it programmed so that when you click on any row in the data-grid, the information is printed back into the add form. Here you can change the values and hit the 'update button' (not the add button) to run the update query on the php file.So my mxml looks something like this:

PHP Code:

<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="{amfcall.getDatabase()}">
<mx:RemoteObject id="amfcall" destination="MyPHPclass" source="MyPHPclass" endpoint="http://localhost/FlexAMFCMSapplication/index.php" showBusyCursor="true" />

[code]....

So basically I can send the ID over to the PHP but not other values along with it, in this case the date time and name. How can I send over these edited values so the update function actually updates them?I'm assuming my update function is wrong in either the mxml or the php or both.

View 4 Replies

Flex :: Passing Parameters Between Views In ViewStack?

Mar 19, 2011

how I would pass a value to "SelectedChild" in ViewStack:

In the example below, I am trying to set a public property in a form called "register" after I have navigated there from another form called "login".

The result I get seems to be a compilation error:

Error: Access of possibly undefined property pagename through a reference
with static type mx.core:INavigatorContent.
vsMain.selectedChild.pagename = "register page";

[Code]....

View 2 Replies

Java :: Passing Parameters From Flex To Database?

May 18, 2011

I am facing one problem when am trying to insert values from flex(frontend) to database(backend).No problem in blazeds connection.I think problem is with java code.Anyway am pasting both java and flex code.Please let me know how to insert values into database.I am not well in java.So i tried a lot to solve this issue.

My Flex code is:
<fx:Script>
<![CDATA[

[code].....

View 1 Replies

Flex :: Coldfusion - RemoteObject - Passing Named Parameters

Dec 7, 2010

I'm calling ColdFusion cfc method using RemoteObject method of the Flex.

[Code].....

So you can see that I changed the sequence of the parameter, when I call the cfc method. But it does not worked. It means that <s:arguments> does not pass the named parameter. Is there any solution for that? As you can see that I may have some of the arguments not mandatory so, it must be passed by name.

View 1 Replies

Flex :: Send Parameters From A Component To Main MXML Application

Aug 8, 2011

I would like to send variables or parameters from Component to Main (MXML) Application. Like my component is FileUpload.mxml and would like to forward the uploaded file details from FileUpload.mxml to Main.mxml.

I tried the following procedure :

com:FileUpload id="fp"

to get the reference for the FileUpload component, however, I am unable to get the variables from the FileUpload.mxml file.

View 1 Replies

Flex :: Passing Array To Custom Component?

Oct 18, 2009

I created a custom button component that accepts an array as a property. I set the property as follows:

titleDims="[{Month: comboBox1.text, Year:comboBox2.text, Sales Order:comboBox3.text}]"

and I get the following error:

"1084: Syntax error: expecting rightparen before colon."

Wat is wrong with the array syntax?

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

Flex :: Passing Properties To Custom Component In Flash Builder 4

Sep 7, 2010

I'm trying to pass some properties to a component I've created in Flash Builder 4. In my example below I want to pass the "label" property to update the label property of the Button.

// MyApp.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:local="*">
[Code] .....

View 1 Replies

Actionscript 3 :: Flex 4 . Passing Data From Main App To Custom Component

Oct 15, 2010

I havent found quite what I want elsewhere or at least am not accomplished enough to adapt I'm trying to create a project that shows radio stations with logo, listen button etc The datasource is an xml file with child tags like 'name','image' and 'listen' for each parent, 'station'. I access this data via the main application with creationComplete="radioService.send()"

[Code]...

View 5 Replies

Actionscript 3 :: Create Instances Of Flex Custom Component By Passing In Type

Jul 28, 2009

In my flex app there are a few custom components. I want to create instance of these components at runtime and assign them properties by reading in a config file. I know how to read xml and instantiate components, however my question is about being able to get the type of the component from the xml attribute and then creating an instance of that type.

View 1 Replies

ActionScript 3.0 :: Passing Parameters To A SWF From A SWF

May 27, 2009

i'm trying to pass variables to another SWF using a Loader/URLVariables combo.
 
I need to know if this way of passing variables should even work. And if not can some recommend a better way.

var uv:URLVariables = new URLVariables();
uv.lang="en";
uv.gameId="123";
uv.profileId="456";

[Code]...

View 5 Replies

Professional :: Passing 2 Parameters To A Swf?

Nov 9, 2010

I need to dynamically pass 2 parameter to an swf movie to make it work properly, they are a number and a boolean. To do this I've changed the html page which contains the movie to php, I pass to the page the parameters' values through GET. The values are correctly passed to the page, I've tried to print them.
 
I build the call to the swf in this way collpreloader.swf?connid=<?php echo $_GET['connid'] ?>&animazione=<?php echo $_GET['animazione'] ?>
 
collpreloader.swf correctly reads the connid parameter, but animazione results always true.

[Code]...

View 2 Replies

ActionScript 1/2 :: Passing Parameters To An SWF

Sep 16, 2011

I've somewhat decided n Anvsoft flv player for a flash website project. There seem to be many of these players free and otherwise, but they seem to all publish for HTML, not from anothe SWF.. The published html is below, and my question is how to call the SWF from Actionscript 2 rather than HTML? I believe I can figure out the rest of the mechanics to a recent education .

[Code]...

View 17 Replies

IDE :: Passing Parameters With AddEventListener?

Mar 3, 2009

So I have an MC that has 6 labels and 6 buttons all with different names. When you click on a button, it needs to direct you to it's appropriate frame label in the MC. Now, since AS 3.0 has done away with inline functions, how the heck do I code it so I don't have a function with a bunch of if statements inside of it in addition to all of my eventListeners that I have to add to each of my buttons? In AS 2.0, I would have done it like so:

Code:
function movePlayhead(whichOne:String):Void{
this.gotoAndStop(whichOne);
} button1_mc.onRelease = function():Void{
movePlayhead("label1");
};
button2_mc.onRelease = function():Void{
movePlayhead("label2");
};
Etc...

With AS 3.0, you have to add eventListeners to each of your buttons where each eventListener calls a function, but how can I write it so I don't have to write a bunch of if statements inside the function the eventListeners are calling in order to test for which button is being clicked? Like so:

Code:
button1_mc.addEventListener(MouseEvent.CLICK, movePlayHead);
button2_mc.addEventListener(MouseEvent.CLICK, movePlayHead);
button3_mc.addEventListener(MouseEvent.CLICK, movePlayHead);
function movePlayHead(event:MouseEvent):void {
[Code] .....

View 1 Replies

Passing Parameters From Browser To Flash?

Oct 9, 2009

What I want to do is to pass parameters from the browser to flash. I searched and seems like the best way is FlashVars. However, I have tried different codes and can't get Flash to detect the parameters. I decided to follow the example here and just copy and paste the whole thing (just changing the "main.swf" to my swf name): [URL]. The flash loads, but it only shows "param:" without anything else. I gathered that it probably is a more fundamental problem. (e.g. the way I am debugging, or some settings, etc.) I am using CS4 trial version AS3.

View 3 Replies

ActionScript 1/2 :: Passing Parameters To SWF File?

Jan 28, 2010

I want to open a .swf file with a parameter for instance test.swf?beer=good and set "good" (the "good" parameter is going to constantly change) as a variable in the script so that I can add it to the stage in the swf file. The problem is I can't seem to figure out how to read the parameter so that it can be placed in the script.
 
For instance I have it set to:
 
var beer = ""; 
on (release) {
getURL("http://www.google.com/search?&q="+ beer  , "_self");
 }

View 1 Replies

ActionScript 3.0 :: Passing Parameters Through HTML

Aug 13, 2009

What is the best way to send HTML custom parameters to the flash player?Here are some parameters and values I would like to pass:

- autostart: true/false
- column: 1/2
- mini: true/false
- shuffle: true/false
- repeat: true/flase

View 1 Replies

ActionScript 2.0 :: Passing Parameters To Embedded SWF

Oct 20, 2009

I have a requirement where-in I have to get an external value to the HTML file and from there the value gets passed to the embedded flash file(swf).

View 2 Replies

ActionScript 3.0 :: Passing Parameters With A For Loop?

Dec 22, 2009

I'm trying to create four cubes in Papervision using a for loop. The cube class requires, as its first parameter, a MaterialsList. I've created four different MaterialLists in my code with the names materialsList1,materialsList2, materialsList3, & materialsList4. In a for loop, I'm trying to pass those variables as the MaterialsList parameter. It's not working. If I use the variables themselves in the code, it works fine, so I know my problem has something to do with how I'm trying to data type the dynamic name (see Actionscript below)The Actionscript:

PHP Code:
for (var i:int = 1; i<5; i++) {
[COLOR="red"] var cube:Cube = new Cube(("materialsList"+i) as MaterialsList,396

[code]......

View 2 Replies

Actionscript 2.0 :: Passing URL Parameters From HTML

Sep 23, 2009

after 3yrs doing this stuff, i feel like I'm still learning the basics of .as and .html and am wondering how I can pass a parameter to another server using Flash. ... Man, how do I explain this? ... An html guy set up his server to display my content- ie: He setup his server..

[Code]....

View 4 Replies

ActionScript 2.0 :: Passing Parameters To A Function

Feb 3, 2006

way to say the same in just a few line of code? 25 lines of code people

[AS]menuAS = function () {
//TIOCCHA
menuBar.menu01.menu01_btn.onRelease = function() {

[Code]....

View 6 Replies

ActionScript 2.0 :: Passing OnEnterFrame Parameters?

Aug 14, 2003

I give a number of mc's an onEnterFrame event on the fly (in a for loop) which calls an easing function. This function is passed a variable whos value is worked out incrementally, ie on each loop the value is incremented (+.

I do this because I want each mc to be horizontally offset, in other words each clip eases so they come one after the other. Hope this makes sense, ANYWAY the problem the value of the variable (I mentioned above) which each clip uses to determine the postion it has to ease to seems to constantly reset itself. In other words the clips ease right on top of each other since the variable is reset to the last value it obtained from the last increment!!!.

Code:
trace("yes");
panelAmt = 5;
speed = 4;

[code].....

View 7 Replies

ActionScript 3.0 :: Passing Parameters To A Function?

Apr 7, 2009

i am loading an image with a loader, and in onComplete function i would like to call calculateRatio function and pass it Loader.content.width and Loader.content.height so it can compare it with the current stage width and height and resize image proporcionally to fit the screen. how would i go about passing that parameters?

[Code]....

View 4 Replies

IDE :: Passing Parameters To Internal Classes?

Nov 18, 2009

is there a simple way to pass a parameter in the "new" statement for a class that has been defined in the IDE? Like so:var newInternalClass:InternalClass = new InternalClass (someVar);So that when the new class is instantiated it has someVar to work with?

View 3 Replies

ActionScript 2.0 :: Passing Parameters To The Function

Mar 4, 2004

{Flash MX 2004 Pro}

[Code]...

The above does not work. Infact the function is not even called. How can I pass parameters to such functions. I dont wanna do the following:

[Code]...

View 1 Replies







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