ActionScript 3.0 :: Use Flash_proxy Namespace Without Extending Proxy?
Mar 1, 2009
I keep running into this problem that I need a solution to. How can I create a display object, that I can write proxy methods for, so I can catch all method calls on the object.asically, the problem is that the only way to implement a proxy is by extending the Proxy class. But what if my class extends Sprite, but I still want to implement the methods from the flash_proxy namespace?
View 2 Replies
Similar Posts:
Nov 14, 2009
Is there any way to find out the namespace of functions or properties that are being "intercepted" by the Proxy class?I'm hoping to do something like the following (non-essential code removed):
Code:
public class ObjectArray extends Proxy
{
public static const ADD:String = "add";[code]....
View 1 Replies
Feb 21, 2010
I'm trying to upload images with Uploadify but I run into IO error. I have gotdemo and it works on my computer, so I decided to implement functionality of my application to this example step by step to catch the error and discovered that the reason of IO error is my local proxy.pac (I use FF):
function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.app.local*")) {
return "PROXY 127.0.0.1:3000";
[code]....
View 1 Replies
Feb 17, 2011
So I need to retrieve XML from a public API, but my app is in Flash and the public service won't implement a crossdomain.xml file. I found this PHP script online (below) for a proxy to request the URL. It works fine for URLs like:
[URL]
but the script seems to either strip or ignore any arguments on the URL, like:
[URL]
I'm PHP ignorant. Is there an easy way to have this script process those URL arguments? Here is the script:
<?php
$post_data = $HTTP_RAW_POST_DATA;
$header[] = "Content-type: text/xml";
$header[] = "Content-length: ".strlen($post_data);
[code]....
View 1 Replies
Jun 30, 2011
I'm developing a flex mobile project using the wikipedia api which returns an xml with namespace like this.
<SearchSuggestion version="2.0" xmlns="http://opensearch.org/searchsuggest2">
<Query xml:space="preserve">xml</Query>
<Section>
[code]....
View 1 Replies
Sep 28, 2009
I am attempting to parse some weather information from the Yahoo weather RSS feed.This is a typical XML node;
<description>Yahoo! Weather for Palm Springs, CA</description>
I used the typical XML parsing code in as2;
var text1 = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
txt1.text = text1;
I was doing pretty good until I reached a node that was formatted thus;
<yweather:forecast day="Mon" date="28 Sep 2009" low="74" high="103" text="Sunny" code="32" />
This text traced a value of undefined.I have tried to research this and so far all I have been able to find out, is that this is a XML namespace and is very easily handled in as3. Unfortunately I have to use as2.How do I parse out this information into a dyamic text fields?
View 2 Replies
Aug 18, 2010
Is it possible to use Apache to proxy/tunnel RTMP(S) traffic through to Flash Media Server?Basically, I want to tunnel RTMP traffic using HTTP through Apache.What I want to be able to do is open up an appropriate port (either 80 or 443) on the Apache server and have that proxy traffic through to Flash Media Server. The reason I ask is that I have set-up this scenario but I keep getting a "NetConnection.Connect.Failed" error message; I captured the network traffic flowing between my machine and the server and it is connecting to the server, just nothing happens after that.Do I have to connect directly to Flash Media Server?
View 1 Replies
Dec 30, 2011
I am loading multiple rss/xml file. For some of them I have to use namespace (atom feeds)so I write this lines
var atom:Namespace = new Namespace("http://www.w3.org/2005/Atom");var rssXML:XML = new XML();default xml namespace = atom;
I test this in a outside my program but when I integrate this into my main program, it seem like it 's in conflict with all other xml
the problematic line is :default xml namespace = atom
How do I set a namespace only for one xml object ?
View 2 Replies
Jul 1, 2011
When I use FlashBuilder to connect to a remote Java object using BlazeDS, FlashBuilder automatically creates a local valueObject matching the object in the remote server.
However, the package name of the remote object gets lost in translation.
Hence if I have two remote Java objects com.foo.A and com.bar.A, I won't be able to distinguish between them in Flex. So I end up having to name my remote classes com.foo.AFoo, com.bar.ABar.
View 2 Replies
Aug 23, 2011
How do I get the clientIP from users in my regisrtationforms? It's easy to get the IP with the user isn't using a Proxy, Proxycacade or VPN. But if he uses one of those its difficult. X-Fowarded-For isn't reliable and fails within cascads.
But there are possibilities, because JavaApplets and Flash aren't using the Proxy-Services. How can I archieve to get the clientIP with those technics? I prever to use a small Flash-Code to get the IP from the client, but how to implement?Another way should be a counterpixel which is using IPv6. Most of the proxyservices only support IPv4, can I tell an image only to use IPv6?
View 1 Replies
May 23, 2009
I know I can call my server directly from javascript. However, I want to do this through a non-GUI SWF file. I'm fairly new to Flash but have gotten all the CS3 tools from work. Does anyone know of any examples on:
1. how to make a web request from within flash provided the URL, post content, and timeout
2. how to call a Flash API from javascript asynchronously
3. how to detect whether the browser being used can support my SWF (I don't want it to prompt to install Flash if they don't have it yet)
I'm actually hoping someone has already done this and has a sample already built.
View 7 Replies
Jul 31, 2009
I was trying to use default xml namespaces, but came upon something strange.
I got the following piece of xml:
<animal type="sheep" xmlns="http://blabla">
<name>josh</name>
<age>2</age>
</animal>
[Code].....
now for some reason, the elements are correctly traversed using the default namespace. But the attribute isn't found. After a bit of debugging, I found that I could only retrieve the attribute when using xml.animal.attribute(new QName("", "type")). Why isn't the attribute in the same default namespace as the element?
View 3 Replies
Jun 9, 2010
I am building an application using Action script 3 I am retrieving some XML from the web however the node names are mms:Image mms:Results etc my action script compiler is throwing an error becuase it is not expecting to see the semi colon in the node name. How to I access the nodes?
View 1 Replies
Jan 30, 2011
I need ActionScript Proxy to be castable to a particular interface.
Here is an example without interface:
public dynamic class Tracer extends Proxy {
flash_proxy override function callProperty(method:*, ... args):* {
trace(method + " " + args)
}
}
[Code]...
View 2 Replies
Feb 20, 2011
With the following code, everything works as expected, and I retain both the default namespace, and the xsi namespace in the trace printout.
var tempData = <objects xmlns="http://www.spicefactory.org/parsley" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</objects>
[Code].....
View 1 Replies
Mar 21, 2011
I want to use a proxy on the HTML Control found in Adobe AIR.I have tried looking at the AS3 docs on Adobe but honestly, it didn't explain the usage clearly to me and looking at Adobe's example, I can't seem to make out anything off of it.
View 1 Replies
May 19, 2011
I'm using a PHP proxy script to load images from Facebook into Flash without any sandbox violations. It is taken from the guide here: [URL].. The relevant PHP code is:
[Code]...
The guide mentions that additional security measures are recommended for a real world application. What additional measures would be applicable to this? Maybe some kind of key passed from Flash to PHP?
I realise that there's nothing I can do to completely protect the Flash from being decompiled, but can I prevent the script from being used maliciously?
View 1 Replies
Jun 6, 2011
I've run into a peculiar problem while trying to make use of the Proxy class and override the getProperty() method. I've attached my example class code below:
package
{
import flash.utils.Proxy;
import flash.utils.flash_proxy;
[Code]....
View 1 Replies
Jul 13, 2011
I got a standard php proxy getting images cross domains.
domain/proxy.php?url=http://images.fandango.com/r85.7.3/ImageRenderer/69/103/images/no_image_69x103.jpg/135631/images/masterrepository/fandango/135631/hp7_2-3d imax poster_lo.jpg
[code].....
View 1 Replies
Aug 1, 2011
I'm trying to use JMeter to test our web application and I'd like to use an automated recording of tests but our UI is in flash/flex. Is there any way to get the proxy server to cooperate with the flash/flex? I do have control of both the client and server sides, though rewriting our application to redirect the flash/flex calls to another address isn't really an option. If there were an automated way...
I'm currently testing Windows client and server, but I also need to support testing on Linux client and server. If tests need to be created on one or the other and can be ported to both I could live with that.
View 2 Replies
Jan 5, 2012
I have an AIR app that I need to define a proxy for because the services sit behind a firewall. We are not using BlazeDS so I can't define the proxy settings in the proxy-config.xml file. So, how do I do it? I'm guessing that I'm not the first person who has had to work behind a firewall when accessing data so I'm not sure why I can't find any documentation on the web anywhere about this.AIR says it is supposed to automatically know and use the proxy configuration from your system, i.e. default browser. In there, I don't set a manual proxy, I use the 'automatic configuration' and point it to a .dat file. Could this be where the problem is? Does AIR not know how to understand this?There's no way to set a proxy on an HTTPService component unless you are using Blaze DS or LCDS? Is this true? I'd hate to have to add that to my application just so I can get this accomplished.
View 1 Replies
Jan 20, 2009
I am working behind a proxy and some of the flash uploaders out there require me to authenticate myself on the local proxy before allowing me to upload files. I have such an uploader which currently is outside my network. However after it tryes to execute file.upload(request); it dies silently without a trace of what is going on. I presume that it fails because it hasn't requested the proxy auth. How can I show the proxy auth login pop-up. Here's a sample of my code
ActionScript Code:
var request:URLRequest = new URLRequest(this.uploadScript);
request.method = URLRequestMethod.POST;
request.data = new URLVariables();
[code]....
View 0 Replies
Feb 6, 2009
I have to load my "crossdomain.xml" using a proxy.how can i do that?
View 0 Replies
Aug 3, 2009
I'm writing a flash app to help build timed text files. I have all the captions stored in array, and a function that builds the XML object and spits it out. I start out with a template file, then use insertChildAfter() and copy() to create as many <p> tags as I need to, based on the length of my array. If I manually create the following file, it works fine.
[Code]....
View 0 Replies
Aug 16, 2010
I have this error and cant figure out how to fix it. For me it means that the namesace is defined twice somewhere on the timeline, but i checked everything, and its defined once.I have a drop down menu. If i click on first entry from the drop down menu,it will take me somewhere, load sth,then i go back, and click on the other entry where the error ocures, then its fine, table is loading, no error. But if i load the swf, and click stright away on the entry where this error occurs, then i get the error. What does it mean?
View 1 Replies
Dec 17, 2009
I'm trying to implement a dragging system which can only be described as similar to dragging the map on Google Maps. I can set up dragging easily in Flex, but unfortunately the standard model of dragging i.e. dragging an element proxy and dropping it in another element is not what I'm after.
Is there anything built into flex where the actual element rather than a proxy can be repositioned in a different place within the same parent? Or will I have to hand code something using mouse events as you would if implementing a solution in JavaScript?
View 2 Replies
Jan 25, 2010
I have a problem using Flex with BlazeDS on a Tomcat 5.5 through a Proxy (Apache). I already searched for it but didn't find answers which solved my problem. I hope you guys can help me out. Our scenario is the following: Flex-App using BlazeDS to communicate with our Dataservice on a Tomcat 5.5.The Webapp is balze enabled and the services config contains channel definitions like the following:
<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://xxx.xxx.xxx.xxx:8180/myDataService/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint">
</channel-definition>
[Code]...
View 2 Replies
Jun 10, 2010
If I Have an XML variable that equals this:
var X:XML=XML("<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:ns1="Tools.*" minWidth="684" minHeight="484" creationComplete="Init();" xmlns:ns3="Components.*" initialize="I()"/>");
And I try to list the attributes via:
var AList:XMList=X.attributes();
The three namespaces, "xmlns:mx","xmlns:ns1", and "xmlns:ns3" aren't listed among the attributes! How can I access this information programmatically?
View 1 Replies
Jul 29, 2010
So I have a PHP proxy that gets information from a website. Let's say the proxy gets the information from (www.example.com). It checks if the number of lines returned is the same as before, if not then there are more lines, it counts the difference then it need to push this information to the Flex client saying that it has new information, (x) more lines have been written.I am not really sure how to do the push mechanism on the php proxy because I am not sure how to actually push from the proxy to the client, never done it before.
View 2 Replies
Nov 7, 2010
After reading James Ward's post I'm considering using a proxy rather than a crossdomain.xml file. I have a java app, which includes a flex applet, on one tomcat instance and a java web service on another tomcat instance. Does it make sense to have a single (Apache httpd) proxy handle requests for both the app and the web service, thus eliminating the cross domain restriction?how to deal with the cross domain issue are welcome.
View 2 Replies