Specify Endpoint URL At Runtime In A Flex App Which Communicates With PHP?

Nov 22, 2010

How would I change/specify the endpoint URL at runtime in a Flex App which communicates with PHP?I always used a services-config.xml so far.

I tried to overwrite the endpoint in the mxml Remote Object, with no success.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Change Motion Tween Endpoint At Runtime

Sep 1, 2009

I've created a symbol and motion tween and given an instance name to the tween (lets call it mt1) on Layer 1, frame 1 - frame 10. On layer 2, frame 1 I create a button and stop and add the MouseEvent hander and function. Can I, from the function on layer 2, alter the end point of the motion tween on layer 1 via the function? I've tried, but unsuccessfully. Can't seem to access the tween properly. Or I am way off base. Here's the Actionscript frame 1, layer 2:

[Code]....

View 2 Replies

Flex :: Builder Endpoint Tokens?

Aug 25, 2009

I'm trying to get a better understanding of how endpoints work. I've read this and have learned that the services.config is "baked" into the swf at compile time. In that article he references the tokens.[URL]..

where server.port, and context.root are the tokens. I guess what I'm wondering is what tokens are available to me, and if they act like variables can I set my own custom token?

Edit: We're moving to another development server soon. We have 2 main flex developers and when they check out projects from the repository we want their projects work work independently of each other... so I want to make sure the endpoint will get set correctly for each developers project location.

View 1 Replies

ActionScript 3.0 :: Binary Socket Communicates Once

Nov 15, 2010

I'm using a binary socket to talk to a server and it works fine the first time I send data. Then I receive data from the server and send a response but it's never received... like the connection closed or something. I have an event handler on the socket close event, but it doesn't fire. I can trace to the socket sending data, but if I trap the data received event on the server, nothing is received.. like it's closed the socket. Is there something I need to reset or have I missed a key concept in binary sockets?

View 2 Replies

Php :: Getting The 'Zend Amf Endpoint' Mesage On Dreamhost But OK On Localserver

Aug 22, 2010

I've been working with Zend Amf for few months and everything is fine on my localserver (and was fine on my test server hosted by dreamhost) until recently. Now every time I try to access the gateway via the URL (i.e. http://hostname/gateway/) instead of the 'Zend AMF endpoint' message should be getting, the browser simply prompts me to download an application/x-amf file.

I have checked my code for any leading or trailing spaces (made sure all my PHP didn't have an endtag).Checked the PHP version..it's 5.2..updated Zend to 1.10.7. I was hoping that this wasn't interfering with my remote flash calls but that doesn't seem to be working as well. Flex doesn't even report a fault code.

Is there any specific PHP settings I should be checking?

View 1 Replies

Flash - Overwrite BlazeDS / FlexDataservice Endpoint?

Apr 30, 2011

I'm using the build in Flex Dataservice to connect to a BlazeDS server. Flex is using the *.fml file within the model folder for the connection details, within that file you can find the following:

<annotation name="ServiceConfig">
<item name="DEFAULT_ENTITY_PACKAGE">valueObjects</item>
<item name="contextRoot">/MYWEBAPP</item>
<item name="rootUrl">http://192.168.178.21:8080/MYWEBAPP</item>

[code]....

the _super_Database class created by Flex DataService uses that configuration to setup a remote object for communications.Now i'm looking for a way to overwrite those settings within the Database class which extends the _super_Database class.

View 1 Replies

Zend Framework - Zend_AMF Endpoint Protection In A Flash Game Deployed In Facebook?

Apr 25, 2011

feasable protection of my Zend_AMF gateway? I mean, how can I prevent someone from calling my service methods?

View 1 Replies

Flex :: Changing A Flex Movie To Use Runtime Shared Libraries And Losing Text In Charts?

Dec 3, 2009

I'm creating a small size Flex movies which contains two line charts, at the moment the size of the release build swf is 343KB, which is too large for our needs.

I've tried changing the loading of the SWC file to Runtime Shared Libraries, but I found that this removed the text of the charts (the text for the x and y axis). Why would the text be removed when the Framework linkage is set as a Runtime shared library?

View 1 Replies

Flex :: Adding Runtime-library-path To Flex Build Configuration Using Ant Mxmlc Task

Feb 9, 2011

I'm trying to build a flex project, linking it to some RLSs. When setting up the project in Flex Builder, the corresponding "build configuration" (that I got by adding -dump-config to the compiler options) generates (among other things) a tag like this :

<runtime-shared-libraries>
<url>some-lib.swf</url>
<url>some-other-lib.swf</url>

[Code]....

View 2 Replies

Flex :: Itemrenderer - Referencing And Setting A Single Item Renderer Instance In A Flex Tree At Runtime?

Oct 17, 2010

Anyone know how to change a single instance of an item renderer for a Flex tree item at runtime? To reiterate, I'm not trying to change the entire tree's item renderer like this:tree.itemRenderer = new ClassFactory(ItemRenderer2);I'm trying to change the item renderer of a single tree item like this (the following code does not work):tree.selectedItem.itemRenderer = new ClassFactory(ItemRenderer2);To put it more simply, does anyone know how to reference an instance of an item renderer and set it to a new item renderer class? I've tried using the Tree's itemToItemRenderer() method with no success.

View 1 Replies

Actionscript 3 :: Flex - Reference Flex Elements Added During Runtime?

Jan 17, 2010

I am having difficulty getting a reference to elements added after compile-time using the 'id' property. I have seen a few forum topics suggesting that this isn't possible, and that getting a reference to elements added this way is trickier, but never just exactly what that trick is. This code throws a fun little: Error: uncaught exception: Error calling method on NPObject! [plugin exception: "ReferenceError: Error #1069: Property canvas_tentpoles_0 not found on SGraph and there is no default value."].

[Code]...

View 2 Replies

Load-time Weaving Of Pointcuts Into Existing Binary Code At Runtime With The AVM2 Runtime?

Feb 23, 2010

I've seen the Loom project, but are there any alternatives that are more mature (and actively developed)? I am looking for something that would allow load-time weaving of pointcuts into existing binary code at runtime with the AVM2 runtime.

Has any work been done in this area?

View 3 Replies

Flex :: URL That Flex 4 Uses To Download RSLs At Runtime?

Jun 21, 2011

What is the URL that Flex 4 uses to download RSLs at runtime? I want to check if I have access to this URL and that it is not blocked by the proxy that I am behind and would like to be able to put the URL into a browser to do this.Obviously there are many URLs (one for each swz file), but does anyone know what the basic URL pattern is, or can anyone give me a sample URL?

View 2 Replies

Difference Between The Flash Player Runtime And Adobe AIR Runtime?

Nov 16, 2009

I've been into coding for about 5 years now, but I'm a recent convert to Flash development. One of the questions I have at the moment is, considering that SWF files can be run by either Adobe Flash Player OR Adobe AIR, what's the real difference between the two runtime environments? What API's and Objects exist in one environment, but not the other?

Basically what I'm more or less trying to establish is, when would I want to develop an SWF for AIR, and when would I want to develop for Flash Player, considering that Flash Player can also execute locally (providing support for creating "desktop applications")

View 1 Replies

Flex :: Getting Components At Runtime?

Feb 18, 2010

<mx:Repeater id="rep" dataProvider="{headingData.component}">
<mx:HBox id="panel" label="{rep.currentItem.title}"
width="100%" height="100%">

[Code]....

When i am not placing it under a repeater tag, the components are created from XML, but if i do then the components are not getting created.

<components type="array">
<component type="mx.controls::ComboBox" title="Title One" description="Lorem Ipsum

is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

" width="230" height="220">
<link linkname="Option one"/>
<link linkname="Option Two"/>
</component>

<component type="mx.controls::RadioButton" title="Title Two" width="230" description="Lorem Ipsum

is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like AldusPageMaker including versions of Lorem Ipsum.">

<link linkname="Option one"/>
<link linkname="Option Two"/>
</component>

[code]....

View 2 Replies

Flex :: To Delete Item At Runtime?

Jun 18, 2009

I have created some shapes dynamically at run time by mouse drag, Now i want to delete any selected item the white board.How can i achieve that.Currently i am able to delete the last drawn item through "removeChild()" method, but not the previous items.

View 1 Replies

Flex :: Assessment Of Adobe AIR As An RIA Runtime?

Sep 14, 2010

Is Adobe AIR the best cross-OS-compatible, browser-less runtime for RIAs? What are drawbacks unique to AIR? What are positives unique to AIR? Is AIR expected to grow and develop for years to come? Who's the industry leader?

View 2 Replies

Start Adobe Flex App On OS X With Just AIR Runtime And Swf?

Jan 23, 2011

I know it is possible to run an Adobe Flex compiled .swf from the command-line using the adl command-line tool.

Is there an equivalent way to run a Flex .swf from the command-line using the system installed AIR runtime?

My question applies to OS X, but I'd interested to know about other platforms also.

View 2 Replies

Actionscript 3 :: Flex 4 - Add New Component At Runtime?

Feb 1, 2011

I'm looking to make a "Generate component" button that will add a new component such as a Button to a Group. There could be any number of components added, so I don't want to use states. How can I do this?

View 1 Replies

Flex :: Embedding The Fonts At Runtime?

May 2, 2011

i want to embed some of the system fonts on client machine in my flex app at run time there is way to load the fonts swf at runtime but it is not suitable cause of some security issues.

is there any way to embed fonts at run time in my flex app?

View 2 Replies

Update Xml File At Runtime In Flex?

Jun 30, 2011

How can I add new nodes/elements/properties to the existing xml file at runtime in flex. I have a xml file which is used to display components in flex. I want to add/edit component and their properties at runtime.

xml file sample:

<view id="productView" label="Products">
<panel id="chartPanel" type="CHART" ChartType="Pie2D" title="Productwise Sales" x="215" y="80" width="425" height="240" showValues="0" >
< /panel>
< /view>

To add new component I have created an object with all the properties and elements of components. How can I convert this object in xml format and update the existing xml file?

View 1 Replies

Flex :: Get A Type Of A Control At Runtime?

Aug 2, 2011

If any control (e.g. a DataGrid) is cast to UIComponent, how can you get its type at runtime?Is this possible in Actionscript?

View 1 Replies

Flex :: Panels Creation At Runtime Can't Seen Them?

Sep 27, 2011

My problem is i am trying to make a panel. My button in in Main.mxml whereas the panel functions are defined in panel_Create.mxml. the code works fine. In panel_Create their are functions to create panels at runtime. The problem i am facing is when i run the program it wont show the panels but it does increase the value of n and after 8 clicks it gives alert message. The code works fine when i put all the code in Main.mxml

<fx:Script>
<![CDATA[
import Components.panel_Create;[code].....

View 3 Replies

Flex :: Use RSL(Runtime Shared Library) In It?

Dec 29, 2011

How to use RSL(Runtime shared library) in flex ?how can decrease loading time of swf using rsl?

View 1 Replies

Flash :: Flex: Getting CSS Class Name At Runtime?

Mar 19, 2012

How to get CSS class name of any UI Component at runtime?

View 1 Replies

Flash :: Flex Set CSS Class At Runtime?

Mar 23, 2012

I know how to set individual style names to a UI component but what is the way to set set the CSS class itself?

View 1 Replies

Building Flex - Runtime Fault On Constructor

Sep 4, 2010

I am building a Flex with AS3 application. I am getting a runtime fault on the constructor that declares: public var assetss:Array = new Array;
The fault is:[Fault] exception, information=undefined

Code:
package{
import mx.core.BitmapAsset;
import flash.display.Bitmap
public class colorstim {
public var assets:Array = new Array;
public var imgobj0:Object = new Object;
[Code] .....

View 3 Replies

Flex :: Adobe - Possible To Clone Component At Runtime

Jul 6, 2009

I am trying to duplicate a flex component at run time. For example if I have this:
mx: Button label="btn" id="btn" click="handleClick(event)"/>
I should be able to call a function called DuplicateComponent() and it should return me a UI component thts exactly same as above button including the event listeners with it.

View 6 Replies

Flex :: Changing Css Properties For Selector At Runtime?

Oct 27, 2009

I have a css that defines de skin-class for a custom component, like this :

view|PlaceHolderView {
skin-class:ClassReference('view.skin.PlaceHolderSkin');
}

Is there a way to change that value at runtime, so that all instances of the component switch skin?

View 1 Replies

Actionscript 3 :: Changing 'top' Property At Runtime In Flex?

Feb 9, 2010

In the follow Canvas, how do I change the property top at runtime?

<canvas top="10"/> I tried:

<canvas top="{ topVariable }"/>

But the binding doesn't seem to take effect. How can this be achieved?

View 4 Replies







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