Flex :: Cancel A RPC Call?
Apr 3, 2012Is it possible to cancel an RPC call that is assigned to an AsyncToken with responders?
View 1 RepliesIs it possible to cancel an RPC call that is assigned to an AsyncToken with responders?
View 1 RepliesI've done a lot of C# programming with both Winforms and WPF. I'm working on a Flex/Air app now for cross platform support. But this is my first flex project, so I'm learning as I go. I've got a window that I want to popup, that the user will fill out a form, then hit OK or CANCEL. I set it up the same way I would've in C#, but it doesn't work, and I can't really see a way to make it do what I want.
[Code]...
Is there a way to cancel a netstream publish from flex to a flash media server?
The issue is I have code where I can Start/Stop a recording to my Flash media server. However in my front end I have a cancel button which allows the user to cancel the current recording and all this code essentially does it close the netstream. But the issue is it still creates the file on my flash media server even though the user has canceled the stream. Is there a function that I can call that will clear up the stream and remove the file that was created?
So the real problem is the lack of an onReleaseOutside function. I found some examples of how to bypass this during a drag function but it was not applicable for a text input.The problem is that when a user selects some text in textinput and mouses off the application area and then mouses up, I'm getting a problem that the textinput keeps thinking that the mouse down is actively selecting text in the textinput and continually overwrites the characters being entered in the textinput. in the search bar of the live store on the page, type some text, then highlight it all and don't let up on the mouse until you are outside the store.I finally hacked some junk together so I can tell if the mouse goes off the stage using some code like.
var x = stage.mouseX;var y = stage.mouseY;if(x < 0 || y <0 || x >stage.stageWidth || y > stage.stageHeight)I'd like to just make the textinput stop thinking it should be highlighting text so that even if the user scrolls out of the applet and mouses up that the text input still overwrites what is in the search bar and functions as normal.
ok back at another issues in as3 printing
[Code]...
When i click cancel on the print dialog box, i get error below and it blanks out my swf. The error consists, that whenever i try to print and cancel it, or even when i do succesfully print, swf goes blank.
I have a Tree component that's used as a navigation menu between different 'pages'. When the user clicks a certain option in the menu, I switch the 'page' by switching between State components in my application. The thing is that when the user indeed clicks an option in the menu, I want to perform a validation of some of the information in a certain component. If the validation fails, I show an alert, and I'd like to prevent the navigation to the other page. One part of this is simply not changing the currentState of the document, but the tree component still goes on with the change event, and the result is page A still being shown on the screen, whereas the selected option in the tree is page B (to which the user wanted to navigate, but failed since some of the information wasn't valid).
I tried to figure out how I can cancel the change event on the tree component itself. The thoughts I had didn't quite fit nicely:
I searched for a slightly different event (such as 'changing' or 'startChange') on which I can call the stopPropagation() method (since the regular 'change' event is not cancelable), but none exists for the Tree component.
I also thought about always saving the current option that's selected in the Tree component by myself, and when the validation fails, I will set the Tree's selectedItem to that saved option. That's also ugly because such an action will raise another change event on the Tree, thus another change to the States components, and another population of the page in which I'm already at. That's something I really don't want to do.
I also though about using a different component, such as Menu (and I also found an implementation of a vertical Menu), but that doesn't even seem to help. The same problem will exist there.
There must be a best-practice for preventing a change process to commit!
I've got a Glow effect (glowIn) being applied to an object on the roll over which has a startDelay applied. I have another glow effect (glowOut) on roll out. If the user mouses out of the control during the startDelay of glowIn, I want to cancel the effect. How do I do this? In this instance, I'm using a glow effect with a startDelay of 300ms. I want a short pause before the item actually shows the effect, but I don't want the effect playing if the user mouses out during this time. I'm setting the properties as follows:
component.setStyle("rollOverEffect", glowIn);
component.setStyle("rollOutEffect", glowOut);
I don't think it matters much, but the component in question is a Series within a chart that gets created at runtime so I would prefer a solution in actionscript rather than mxml if possible.
I have a flash element in a page that load a chart based on some complex queries that can take up to a minute to load. I call the query with this code :
var chartData:URLLoader = new URLLoader();
chartData.addEventListener(Event.COMPLETE, onLoaded);
chartData.addEventListener("httpStatus", onHttpStatus);
[code]......
I have a VideoDisplay instance playing some video. When I click on the video slider (also my component) the property videoDisplay.playheadTime is set and the videoDisplay.state goes from 'playing' into a 'seeking' state for a brief moment (the videoDisplay seeks for a new position and then plays the video again). Intended bevaiour. But if I'm (or any random user) fast enough, I can set the playheadTime again while the player is still in 'seeking' state. When repeated several times every click is enqueued and the videoDisplay jump on every place of the video I have clicked(this is happening in an interval about 10-15 second after my last click). When I use live dragging the videoDisplay, overwhelmed by seekings, goes into 'error' state.My question is - is there any way to cancel seeking state of the VideoDisplay class? For example player is in 'seeking' state, I set playheadTime, and the player forgets about last seeking and try to find the new place of the video.
View 1 RepliesI have a DataGrid, and what I would like to do, is when a user clicks on a row to select it, check a certain condition, and if it's met prevent the row from getting selected and keep the old selection intact.
View 1 RepliesIs there any kind of a standard for the location (padding) and size of the usual "ok" and "cancel" buttons on a Flex pop-up dialog box? In another stackoverflow question it was suggested that the approach be host operating system dependent (e.g. Windows vs Mac vs Linux).
View 1 RepliesI have referred this for creating error message tool tips, to be displayed continuously unless the error is resolved by the user. :: [URL]
But, this is being applied to a pop-up window visualized as a pop-up form.
When the user clicks 'CANCEL' button, I want the error message tooltips if present to be cleared off from the screen. The message tool tips remains on the screen even if the CANCEL button is clicked.
How do I change the icons to Alert buttons like OK, CANCEL etc?
View 3 RepliesI'm trying to add a cancel icon to my TabBarButtons in Flex 4.0 (Spark), and I've gotten close, but now I'm stuck on getting the icon to be "clickable" I have seen other approaches, like FlexWiz Blog (http://flexwiz.amosl.com/flex/spark-tabs-with-close-button/), but was hoping to figure out something cleaner.
<s:HGroup top="5" right="5" left="5" verticalAlign="middle">
<s:Label id="labelDisplay"
textAlign="left"
[code]....
The icon appears in the tab, however, I can't click it. I also tried a button and it's almost like the parent button container does not allow the child to be clickable. I did play with some parent properties (like super.mouseChildren), but couldn't get it to work.
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 component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:
[Code].....
so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?
i have some actionscript that makes a
ExternalInterface.call('someFunction');
call.is it possible to reference the html object that made the call to someFunction directly using the ExternalInterface.call call?
Assume that the object that makes the call also has some Callbacks (via ExternalInterface.addCallback) that are accessible via javascript.
Currently:
Actionscript source
ExternalInterface.call("someFunction");
ExternalInterface.addCallback("someCallback",someASfunction);
[code]....
I want to cancel a function (set in motion by a button click) if I click on another button.so lets say I have:
Code:
button1_btn.addEventListener(MouseEvent.CLICK, button1Click);
function button1Click (e:MouseEvent):void {
[code].....
I am working with videoChat application.Videos are good to display to all.But the voice getting problem.If I speek using microphone(included with headphone set)the voice is echoed.How to cancell it.Presently is there any solution to resolve it, bcz since this is a bug as reported.Any third party softwares are available to work with echo.
View 2 RepliesWhat do i need to write so that resizing the swf window won't work?
View 2 RepliesIs there a way to cancel a function? I seem to be stuck on my own code. I am using an onClipEvent(enterFrame) to call a function to detect input from the user, to move a character around the screen, and on another layer (but in the same frame) I am calling that function. I want to cancel this 'after' I do a setInterval.
View 3 RepliesI have a button over the top of an image that performs an action upon rollover. I placed an arrow button over the top of this button to allow the user to scroll through the images, but when I rollover the arrow button it cancels out the rollover underneath it. What I need is for the first rollover action to remain while the user hovers over the arrow. I am using Flash 8, ActionScript 2.
View 1 RepliesHow to unload a swf file when i click on close button and to also go to another frame in timeline. I would like to know if when I unload will this cancel the downloading of the f4v video? I have an swf to load, here is the code.
stop();
vid1_btn.addEventListener(MouseEvent.CLICK,
mouseClickHandler289);
function mouseClickHandler289(eve:MouseEvent):void {
var myLoader:Loader = new Loader();
myLoader.x = 300;
myLoader.y = 122;
addChild(myLoader);
var url:URLRequest = new URLRequest("nov.swf");
myLoader.load(url);
}
I've got a DataGrid that shows a tooltip on each item.. but there are a few items where there shouldn't be a tooltip. So I thought I could prevent the being showed.
[Code]...
How to use "cancelable" in TweenEvent properties..?
View 2 RepliesI have a video streaming/downloading in flash. When you click play it starts the download and plays the video. If I click stop your browser still carries on downloading the file, how do I cancel or pause the download?
View 2 RepliesI've created a custom cursor using[code]...
Later in the timeline I want to go back to the normal cursor but I can't figure out how to cancel the above.
We have this
Code: Select allvar ldr:Loader=new Loader();
ldr.load(new URLRequest("1.jpg"));
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, comp);
[code]....
I am getting some strange results while loading large files dynamically, and testing my movies. Even if I delete the object in which the external file is loading, the bandwidth of the loading seems to continue. Either Im not doing a good job of cleaning up after myself, or the test environment when exporting a movie isn't accurate, or ... there is no way to cancel the effects of
[Code]...
Is this going to be the case online? (difficult for me to test right now) Is there a way to break off the loading once it has begun? (I thought by deleting the object that called the loading function, I would end the loading)
I wondering if there is a way to cancel a button's onPress action.For example on my button I have the following:
Code:
on (press) {
startDrag(this, false, 384, 2.5, 384, 70.5);
}
[code]....
However if you press the button and roll out with your mouse button still held down it will continue to drag even after you release the mouse button. It then won't stop dragging until you roll over and then out of the button.
To correct this I was wondering if there is a way to call the on(Press) action and stop it OR to activate the on(release) or on(rollOut) actions OR a way to activate "stopDrag();" when the user rolls out even if they are still holding the mouse button down.