Asp.net :: Access / Invoke / Call Flex Swf Function?
Feb 20, 2011I create a swf with flex. Than I embeded that swf into aspx page.But how can I access/invoke/call swf function from asp.net???
View 1 RepliesI create a swf with flex. Than I embeded that swf into aspx page.But how can I access/invoke/call swf function from asp.net???
View 1 RepliesI've asked this same question with Python. Now I like to know if this can be done in AS3.
If I have something like this:
[Code]...
i currently have a Java Observer/Observable setup in which i switch on some field within the Object parameter of Observer.update (e.g. event id) to determine how to handle an Observable notification. this creates verbose code like:
[Code]....
Is there a way to invoke a function using the function's name if it is stored in an array?[code]...
View 2 RepliesI have a swf that created using flex actionscript 3.0. And I put it into aspx page and I want to invoke this swf's function from aspx.
View 3 RepliesI'm building a game in Flash using ActionScript3 and I have a C# web service which communicates with the flash instances. I want to do chat in my game. So, when user A sends a message to user B, the appropriate web service function is called. I want the web service function to invoke an event in user B, telling it that a new message was recieved.
View 1 Replieshow i can press enter on a Textbox to invoke a function instead of pressing a button. I'm creating a chat application and its very inconvenient to press a button to send a message
View 1 Replies[Code]...
when the movie loads, flash immediately 'getURL' BEFORE i press my button1. how come the code execute even before i press it 1st? what's wrong with my code?
Code:
goto = function(where:String) {
getURL("[URL]"+where+".htm","_self");
} button1.onRelease = goto("home");
When the movie loads, flash immediately 'getURL' before I press my button1. how come the code execute even before i press it 1st?
I have a function in Flex which has three function in it.
public function update():void
{
A(); \Dispatches a event with Remote Call
[code].......
I have a movieClip named MC, and it's enabled with action script, with the class name MC_Rectangle and a Stage.I override the MC_Rectangle class file in a mc_rectangle.as external file.here is the code:
package{
import flash.display.*;
import flash.events.*;[ code].....
I have new a object in the main stage var
mc_rect:MC_Rectangle = new MC_Rectangle()
in main stage:
1. how can i access the variable "sequence" in "mc_rect"
2. how can i pass parametre from main stage to mc_rect via function setSequence(data:int)?
3. how can i call the function in addSequence() in mc_rect.
in asp.net, i usually use mc_rect.sequenct,mc_rect.setSequence(data), mc_rect.addSequence() to achieve my goals......btw, can function in mc_rect return out result to main stage?
I'd like to invoke a function inside a mc from it's parent, but I want to have the reference to the clip be dynamic. When I path the mc directly and invoke the function it works, how would I make that same reference work dynamically.
Here's a sample of what I'm trying to do:
Code:
var myArr:Array = new Array();
myArr[0] = "galleryContainer_mc.eventGallery1_mc.imgContainer_mc";
trace(myArr[0]);
[Code]....
I have an AS3 program that calls a function multiple times. The function must return multiple variables, so I created a class for the function to declare an object containing all of these variables. For example, here's my class:
package
{
public class PER
{
[Code].....
Let's say the calling program calls the function, which returns the variables into data_set1 (where data_set1 depends on input variables arg1, arg2, arg3) using:
var data_set1:PER = function_name(arg1, arg2, arg3);
The calling program does some stuff, then calls the function again, but returns the variables into a new variable name, data_set2:
var data_set2:PER = function_name(arg4, arg5, arg6);
My intention is that data_set1 and data_set2 are different (e.g. not linked together).
My question is, given that arrays are passed by reference, will data_set1 be modified to agree with data_set2 upon the 2nd function call? Why or why not?
I have an application built on Flex 2. I am writing a new application (module based) in Flex 3. Will these be able to co-exist? Can I invoke Flex 3 module from Flex 2 application?
View 1 RepliesWe recently updated to ColdFusion 9 (from 8) and Flex 4 (from 3).
Now receiving below error when attempting to load Flex portion[code]...
Do we need to re-export the Flex project to fix problem or maybe code from /flex/remoting-config.xml needs to be updated?
I have a Flex app that uses Flash Remoting and the RemoteObject to pull data from a ColdFusion CFC. About 75% of the time it works, but the other times I get a message using Charles (a debugging tool) that says faultString = "Unable to Invoke CFC". FaultCode = "Server.Processing".
Here's my RemoteObject:
<mx:RemoteObject id="carsSvc" destination="ColdFusion" source="ca.sqmIDash.cfc.sqmIdash">
<mx:method name="getCARs" result="resultHandler(event)"/>
</mx:RemoteObject>
The server set up on our web farm is to use load balancing. I'm not sure if this is causing the problem or not. Probably not, but it's a thought.
While this is similar to another post, that post (does not indicate how to perform this (if it can be done) without instantiating an object. Also, without success I have tried multiple variations on the theme of:
class[method](arg)
class[method].call(arg)
method.apply(class, arg)
I have used Reflection in both C# and Java. BTW, the code that I am attempting to get to work in Flex is mirrored in both those languages and works as expected.
Non-functioning Flex Code:
private function ipMethodTester( ipMethodName:String,
shouldPass:Array, shouldFail:Array):void
{
[Code].....
I want to call an App function inside a (I know about the Component scope already).What I mean is this:
<mx:Script>
<![CDATA[
public someFunction():void {
[code]......
I have a component that I hand over a function
public var func : Function;
Now the function is a function that has parameters in its signature
public function myFunction(s : String) : void {
doSomething(s);
}
from my component I can call the function with
func.call();
how to invoke the function with its parameters?
How can I set a function to be called when the length of a DataProvider changes?
View 2 RepliesHow can we dynamically call a fuction. I have tried below code:
public function checkFunc() : void
{
Alert.show("inside function");
[code]......
So, I create standard AS3 flex project. In constructor goes only start();
rest of functions are basically this:
private start():void { f1();}
private function f1():void { f2();}
private function f2():void { f1();}
And it's standard recursion. SWF either breaks or loops as many times as I tell it. One f calls the other, which calls first... I do not want that.
I want f1 to do some stuff, calls f1 and closes itself. Than f2 works, calls f1 and closes. And so on.
Like having 2 sets of code that loops through.
What's the cleanest way to do that?
I create standard AS3 flex project. In constructor goes only start();
rest of functions are basically this:
private start():void { f1();}
private function f1():void { f2();}
private function f2():void { f1();}
And it's standard recursion. SWF either breaks or loops as many times as I tell it. One f calls the other, which calls first... I do not want that. I want f1 to do some stuff, calls f1 and closes itself. Than f2 works, calls f1 and closes. And so on. Like having 2 sets of code that loops through.
I have a Flex 3.4 app that embeds a swf with mx:SwfLoader...
That swf has a public function named "playIt". I've tried dispatching events to gettingHere.content, casting gettingHere.content as a MovieClip and other stuff...
var swfApp:MovieClip = MovieClip(gettingHere.content);
if (swfApp.hasOwnProperty("playIt")) {
var helloWorld:Function = (swfApp["playIt"] as Function);
helloWorld();
}
I want to call the parent function called "edit_groups()" from the itemRenderer. The code for my itemRenderer is:
<mx:VBox id="vbx_container" paddingBottom="4" paddingLeft="4" paddingRight="4" paddingTop="4" borderStyle="solid"
dropShadowEnabled="true" width="100%" height="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off" >
<mx:Canvas width="100%" height="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off" >
<mx:Image id="image" width="100" height="100" source="{data.thumb}" scaleContent="true" maintainAspectRatio="true"
complete="{image_smoothing_handler(event);}" trustContent="true" doubleClick="{Call The Parent Function"edit_groups()"}"/>
</mx:Canvas></mx:VBox>
And I call my itemRenderer from an application like:
list_groups_modify.itemRenderer=new ClassFactory(groups.list_groups_modify_item_renderer);
<mx:Label text="{data.label}" textAlign="center" maxWidth="60" toolTip="{data.label}"/>
Is it possible to call the function by using the datagrid column item?I want to call the function while the user click the particular column item in the datagrid?
View 1 RepliesCan I call a function when building an array in Flex 3?
public function gridBuilder(myArray:Array):void {
var i:uint;
for (i=0; i<myArray.length; i++){
[Code]....
MyArray is the result of a remote call to the database. I then prepare the array to be used in a dataGrid. I also want to call a function that provides a grade. Unfortunately, my function appears to be called only once. Is it possible to call a function when you're building an array? see the "Grade:" bit.
Is it possible to call a child function from within the parent? I know to go child > parent, you can do parentApplication.functionName(parameters);, but what about going the other way... that is parent > child?
View 2 RepliesIs it possible to call a function in flex from the php side of AMFPHP?
For instance, and error is thrown in php, can i "listen" for it in the flex app?
I have a function I wrote that gets the height of the application without scrolling. Meaning the height it would need to be to not have to scroll.
[Code]...
This function works well but the problem is knowing when to call it. I planned on calling it after I add/remove any children from it. However thats still too soon because I don't get the correct height yet if I run it then. The fix I currently have is using a Timer to call the function about 300 milliseconds after a child is added/removed which seems to work well but I think this is a very risky fix. So I was wondering a better solution. I am thinking there has to be some sort of event I can listen for that will tell me when its ready for me to run this function, I just don't know what event that would be?