I am working on integrating the social network "vkontakte" into my desktop application using Adobe AIR. The flow of authorization in the app is as follows:
Open the web browser with a url, and when the user inputs login and password, redirect to somePage.html. From that URL, I need to get an access_token to sign all future API requests.
So the question really is: How can I listen to an event, which will indicate that the user has logged in successfully, or failed to get that access_token?
I'm creating a scrollbar gallery from a tutorial on this site. Though I've completed the tutorial, and customised the gallery to my own needs, however I'm trying to make a very small change to it - and no matter what I do, keep running into problems. I'm trying to replace the rectangular handle with my own customised handle - a (20 x 20) 'circular' png image that I've imported into Flash, made a graphic and stored in the library (though I understand it can be imported using actionscript, like the other images in the gallery).
I'm running a recursive function which in the worst case senario is of factorial order. (i.e: runs itself n! times)As soon as n exceeds 7 in these worst case senario's the function times out (Error #1502). I want to handle this error event so that the user can be presented with an error that the problem is too complex.I don't want to extend the timeout period as 15 seconds is reasonable.
I've a flash site 100x100% in browser window. When I open new tab in browser window Event.RESIZE doesn'tdispatched.how to handle this event except EnterFrame or Timer listeners?
Does addEventListener(ErrorEvent.ERROR, handler) handle all type of error event, for example, IOErrorEvent.IO_ERROR, SecurityErrorEvent.SECURITY_ERROR, and other all error events? I'm looking for addEventListener() version of try catch(e:Error)(e:Error can catch all type of errors).
I am trying to perform two way binding e.g I have a button (out of many controls), on its selection, I am showing the values of its diff properties(like height, width etc) in some textinput. This one way process works fine.But the reverse process doesn't work. i.e When I select some button, and try to change its dimension by entering some value in height, width textinputs, the dimension are not changed.
private void Form1_Load(object sender, System.EventArgs e) { //Create some data and bind it to the grid
You got an eventlistener for an object that can dispatches events in intervals of 0.2ms.And if the eventhandler would need 0.5ms for his operation, what would happen? (listener and handler are in the same class).Would the last event overwrite the event before? In my case, I get some data from a xmlSocket, and I thought, that some datastrings can come in quicker than to work it off in my handler.
I'm not sure if it's possible, but can you override a variable of a parent class like you can override a function? I'm trying to create my own event class that can handle the target property. I have a custom imageLoader class, but when it dispatches it's loading complete event:
ActionScript Code: dispatch(new Event("load_complete")); and a listener picks it up, e.target = null where I would like e.target to equal the imageLoader instance that has finished loading.
Does anyone have an answer or a better way to accomplish what I am aiming for?
I have a couple of Sprites on my screen and I want to write a single event handler to handle the double click on any of those Sprites. The following approach works for every event type except DOUBLE_CLICK:
[Code]...
To make it work, because in my application I will have lots of Sprites. In my opinion, a single event and the target property are more efficient than hundreds of event listeners. Am I right or should add event listeners to every Sprite?
I have an mxml file called HomeView.mxml in a mobile app built using Flash Builder 4.6. In that HomeView.mxml I have an HSlider, which is dispatching events when the thumb is moved. What I'm trying to do is to listen for that valueCommit event in an .as file elsewhere in the project.
Whenever the thumb moves, an event is dispatched in HomeView.mxml:
private function commitHandler(e:FlexEvent):void { trace("committed!"); }
But this code never runs. I do have a handler in the HomeView.mxml file which handles the event, but for other reasons I need to handle it in view.as as well.
I searched this forum and used Google to find a answer, there where many to find, but I cannot make it work to redirect my flash intro-site if users doesn't have flash.
For now I use a image to redirect but I would prefer it automatically.
i am using one swf file.on click i have some background process.after finish the process i want to redirect to particular page.but its not working.what should i do to redirect to page.i am using asp.net?
I made 2 websites. One in flash and one in dreamweaver (CSS) site. I want to design a front page which checks for correct flash player and if user does not has flash palyer or plug in then it will redirect the user to the html site without asking.
I have a flash document which is an animation of my company logo, it is displayed when loading any of my clients web pages but i need to know how to redirect it to the client's home page after the animation is completed.
I have used a meta refresh for the moment as a workaround for this!
I had developed a whole series of tutorials using Flash CS4 (AS3). To load various modules I used the the following code:
Button_btn.addEventListener(MouseEvent.CLICK, btnClick); function btnClick(event:MouseEvent):void {[code]...
This works great with CS4 but when I stated using CS5 and exported my swf files, it stopped working. It seems that its trying to find the page over the internet and not the local directory anymore.
Am trying to see if anyone has any links or resources where I can learn to setup a flash video file where it automatically redirects to another URL such as a sales page at the conclusion of the video. I also would like to find out how to have a link/overlay at the end of the video where a viewer can click to go to another URL such as a sales page.
I am not a prgrammer by profession but do work in Flash and I am willing to try this given the right learning resources. Not sure if both or either of these tasks is done in the flash file or in some type of java script on the html page. I have seen this done by this company [URL] but you have to subscribe to their service using their control panel and they limit the number of players you can create.
I have Flash 8, Flash CS3 and Flash CS4 if needed for this project.
Im new to building site and started using flash cs4. I need to know please what actions i need to redirect my intro to my website within the same browser. Im using flash cs4 i have created my into and now im ready to bring it into my site and have it take me to my index page once the intro is done.
I want to try a trial of adobe flash but it will not let me even start downloading the software at all. It says redirect loop, i tried to dload on firefox and google chrome, internet explorer does not work on my comp. Also it told me to delete all my cookies from the list and i did but i get the same problem.
Have flash installed works great except I want it to resolve to different URL when finished. A second option is to see the window go away and the HTML appear underneath.I have already used the transparent and this does not work.For some reason, it makes its own window and pushes the HTML down and after it runs, one must scroll down to read the index page.
I want in my Flex app to redirect to an HTML page if the user doesn't have Flash installed. I noticed in the HTML generated by Flash it has:
[Code]....
Which displays generic message about not having flash. I know I can put HTML there to be displayed if Flash doesn't exist but I don't want to load the HTML if it's not need (case when Flash is installed) so I thought the best way is to redirect to an HTML page if flash doesn't exist.
I am hosting a site that has some flash in it.Now a different site is linking directly to the flash, causing massive traffic for me. The problem: I do not gain any ads which would help me pay the server bills.I thought it would be OK to redirect the direct link to the flash to the site containing it.
We have some older Flash and Flex files that someone before me lost the original files on. Now they want to add event tracking when some links inside the SWFs are clicked that use the old navigateToURL type ActionScript. Does anyone know if you can intercept that action with JavaScript so I can add the tracking they want before it redirects the page?
Is it possible to create a flash file hosted on [URL] and embedded on [URL] that redirects to [URL]? If yes than how? And is it possible to create a flash file that starts a download automatic without user action? Im using Adobe flash professional CS5 and Actionscript 3.
have extensive programming experience in other languages.What I am trying to do should be fairly simple, but I am not able to accomplish it.When a flash video ends I want to redirect the user to a new webpage. This traget webpage will be different based on the query string that is passed.
Example: Video is embedded on page: /video.php if query string is: ?redirect_to=xyz[code]....
I think there are 2 options one using Javascript and the other using the load event listener.
I have a flash movie which when I press a button will call a url and append parameters to it based upon values in the form (this is working fine). This submits to a server side page which processes an email and then does a server side redirect back to the page with the flash movie on. Is there anyway I can specify which part of the flash movie to go to. I would like to be able to pass parameters into the movie so I can go to a specific frame and display
what's the action script in an flash that will redirects the html page after the flash has ended 5 second. It will redirect into the page that is in the same target folder example: the flash is in index.html and it will redirect to home.html after the flash end.