Flex :: Disable Alert Javascript Function On AIR HTMLLoader?

Apr 3, 2011

In my AIR application in Flex 4, I use mx:HTML, and when I navigate to a location like this ut, some websites have "alert" function in javascript like this :lert('hello world!');nd AIR show the message in a box...I just want to remove, or ignore these messages, but I don't know how...

View 1 Replies


Similar Posts:


Flex :: Disable Dragging Of Alert Windows?

Mar 10, 2011

How can I disable dragging of the Alert window in Flex? I don't want the users to move my alert windows. What shall I do?

var a:Alert=new Alert();
a.text="Alert Message";
PopUpManager.addPopUp(a,this,true);

View 3 Replies

Javascript :: Will Alert Show This Message In Flex Or Flash Builder?

Apr 1, 2012

I have a colleague who will be using Adobe Flex and adobe flash builder to design the application. The final application will be in that software. I am creating the database features and testing them using online browsers.What I want to know is that some alerts I am getting a 'prevent this message from multiple dialogues' message on the alert but this is because of the browsers. But if the application is on flex and flash builder (I don't know which one is where the app is stored coz I have never used it) then will that message appear on some alerts in that software or is it only on browsers?[code]

View 2 Replies

Javascript :: Flex - Flash Callback Method Produces Error UNLESS Alert() First?

Jan 11, 2010

I have a flex app and I am adding a callback method like this:

private function init():void
{
ExternalInterface.addCallback( "playVideo", playVideo );
}

[code].....

However if I uncomment and run the alert first. I get no error and it works perfectly.My first thought was that the alert was buying time until the script could execute, so i tried to run the script inside a setTimeout() but did not work.

View 1 Replies

Flex :: Stop ENTER Key From My Alert Being Caught By The Control That Initiated The Alert?

Apr 29, 2010

I am having an issue where I show an AlertBox message when the user hits ENTER and the focus is in a text area. The pop up works fine, but when the user hits enter the Alert closes as expected, but the TextArea listener receives the ENTER event from the Alert and pops the dialog up again. I have tried a number of ways to catch and eat the event but so far I have not been lucky. Is there way to accomplish this?

public function init():void
{
myTextInput.addEventListener(KeyboardEvent.KEY_UP, handleKeyStrokes);[code]....

View 2 Replies

Flex :: Passing Values To Function Using Alert Window?

May 12, 2011

I have a function that checks for something when the user clicks a button. if that something is found, an alert comes up saying that it has been found and asks them if they would like to allow this to happen, or undo the action that caused the something to be found. the code looks like this:

Alert.show(thisString1, "Conflict: Multiple Projects", 3, this, conflictAnswer);
upon pressing "Yes" or "No", the conflictAnswer function will be called... it looks like this:
private function conflictAnswer(event:CloseEvent):void[code]....

but it didn't work.

EDIt: After reading the first respond, i've come up with this:

answers[0] = cPositions[i][0];
answers[1] = cPositions[i][1];[code]..........

View 1 Replies

Php :: Javascript, HP Reload After Alert Without URL

Jan 24, 2012

I have an html form within a flash site. The form is php processed. fix the php file so that after processing the form, the php returns the user to the flash page and reloads the html form. I tried a window.location in the php to send to the page but that did not work. It results in a white rectangle within the html code area (maybe frame but I'm not sure). How can I get just that html form reloaded? I do not want to load the entire page using a URL because that is too slow and I cannot replicate the flash state. BTW, below is a stripped down version of the code to simplify.

[Code].....

View 2 Replies

Javascript :: Disable The Browser's Minimize Button When Launching Flex Application?

Mar 14, 2011

How can I disable the browser's minimize button when launching my flex application?

View 1 Replies

JavaScript :: Using Alert Method When Button Clicked?

Feb 13, 2012

Is it possible to use Javascript in flash. For example, as a simple test I am trying to use Javascript's alert method when a button is clicked. I am using AS3. Is it possible?

View 2 Replies

ActionScript 3.0 :: Call Javascript Alert Dialogue Window?

Aug 2, 2010

I think I remember hearing that you can trigger a java alert message from within actionscript out to the html page but whats the code to do such a thing?

View 2 Replies

ActionScript 3.0 :: JavaScript Alert In Debug The External File?

Dec 1, 2011

Is there any way to debug the external AS file as i dont want to use "trace".I have an idea to use the input text field the check the variable/function is working right but this is not enough so is there any process in AS2 or AS3.

View 2 Replies

Javascript :: Embedded Swf And Use A Flash Alert Dialog To Confirm?

Feb 10, 2010

I have an AS2 Flash SWF that is calling another AS2 Flash File using loadMovieNum("flash.swf",2) and a JavaScript file that calls a function on page using a timer. This is what I get in Firefox with Flash 10 (IE8 gives no error message):

uncaught exception: Error calling method on NPObject! [plugin exception:

Error in Actionscript. Use a try/catch block to find error.].

What is going wrong? I can't see a problem. It is suppose to clear the contents of the embedded swf and use a Flash alert dialog to confirm Yes or No.

Flash:
import flash.external.ExternalInterface;
import mx.controls.Alert;[code]......

View 1 Replies

ActionScript 2.0 :: Use Data From External Text File For JavaScript Alert Message In Flash?

Sep 14, 2010

Can I Use data from external Text file for JavaScript alert message in flash? I wanted to change the alert message dynamically using the external text file.

1. I created the text file with data as: &Enter=Please Enter

2. And the flash action script i used is as below..

var message1;
message1 = trace(Enter);
loadVariables("temp.txt", "");
getURL("javascript:alert('"+message1+"')");

But this is not working properly. It showing me the alert window but the message it showing as 'undefined'

View 5 Replies

Php :: Calling A Page With MySQL Query From Javascript Function Then Returning Results To Another Javascript Function

Jul 8, 2010

I am refactoring some code. I have a PHP page that contains a MySQL query and stores the result in a PHP variable $my_result. This result is then echoed to a Flash SWF during embedding with SWFObject. I now want to call this PHP page that makes the query from a javascript function like so - one change I have made to the PHP is that instead of storing the result in a variable $my_result I am echoing the result. Javascript function to call the PHP page and make the database query

[Code]....

View 2 Replies

Flex :: Disable The Drop Down Function Of Combo Box On Certain Conditions?

Nov 21, 2009

I have a combo box in my application. I also have a variable called "Status". I want the combo box to be enabled only when the value of the Status variable is 5 or 6. Otherwise, I should not be able to change the value in the combo box. It should have the previous value only.. I had written a click event to disable the combo box. But even though the combo box is disabled, I get the drop down list of the combo box, and If I select some othe value in the drop down,it changes..Only after that it gets disabled.

[Code]...

View 3 Replies

Flex :: Print A HTMLLoader (pdf) In Adobe Air?

Feb 18, 2010

I'm using AlivePDF to create a PDF file, then save it to the desktop. I can then use an HTMLLoader to display my lovely PDF file.

Now, the print button in Adobe Reader works fine. However, there will be young children using the app, so I'd like to have a big "Print" button right above it. I figured I could just start up a print job and feed it my HTMLLoader. This won't work because the HTML loader rasterizes the content.

View 1 Replies

Actionscript 3 :: NavigateInSytemBrowser For HTMLLoader In Flex 4.5

Mar 17, 2011

I am working on Flex 4.5 SDK and using Flash Builder 4 IDE for my Flex/AIR Desktop Application.

In my project I want to load one html page in one of the canvas areas. I am using HTMlLoader to load my page. My web page loads successfully in the canvas area.

The problem is that when I click on the links embeded in the html page that I have loaded, they do not open in my browser window.

There is a property of HTMlLoader "navigateInSystemBrowser" which need to be set to true to allow the embeded links of the page to open in a default browser window. But this property works only in Flex 4.0 I tried running the same thing a sample project using Flex 4.0 as the SDK and it works perfectly fine. But when I work with Flex 4.5 SDK it does not works.

View 1 Replies

Flex :: Open PDF In Background With HTMLLoader?

May 11, 2011

I created an application with Flex and it open large PDF file, so when show PDF file it is too slow. Anybody, who know a solution which open PDF in background with HTMLLoader?

View 1 Replies

Html :: Rescue Flex HTMLLoader Crash?

Jun 7, 2011

I use HTMLLoader component, and I have to load thousand of different websites per days by this component.But some times, HTML component produce several crash/days of my AIR application

View 2 Replies

Flex :: Event Not Getting Dispatched When Location Of HtmlLoader Is Changed?

Jun 9, 2011

I want to do my stuff on LocationChangeEvent.LOCATION_CHANGE event which is introduced in AIR 2.7 but this event is not getting dispatched.My sample code is below. Please help me know if there is anything wrong that I am doing.

[Code]...

View 1 Replies

Flex :: Air HTMLLoader Blank Pop Up Window When Flash Content Is Loaded?

Jun 25, 2009

I have a flex Air program that loads external content with the HTMLLoader.Now for some reason whenever I load a page that has any flash content a blank system window pops up outside of my program. It's completely blank, all white with min, max and close buttons.If I close it any flash content I loaded stops working. For the life of my I can't figure out what's happening and there's no messages in the console and no title for the window.

private var webPage:HTMLLoader;
private function registerEvents():void
{

[code]......

View 3 Replies

Actionscript 3 :: Flex4 - Call Alert.Show In A Function And Want To Get The Result From There?

Nov 14, 2010

I'm using the Alert.show in a function and I want to get the user answer from there. So how can I achieve this. The problem is the function that call Alert.show will return a true or false value depend the user answer.but It seem that in Alert.show it only allow to pass in a CloseHandler for this. that is a new function. and since that I can get the user answer from where it is call to return the user answer.

View 2 Replies

ActionScript :: JavaScript - Replace Trace ("something") With Flash Alert Window?

Mar 19, 2012

We can easily alert anything in java script. Is it possible to get this or similar alert in ActionScript? I have below test Class in Action Script. Trace does same as console.log() in java script. Is it possible to display messages in action script ?

[Code]...

Above code alerts the "test" similar to javascript. This is a Flash Window that shows the message. But How to integrate similar code in my Class. i.e. How to do repalce trace ("something") with this Flash Alert window ?

View 4 Replies

Calling JavaScript Function From Flex 4 Web Application?

Oct 19, 2010

I need to call javascript function from Flash 4 based web application. When I run it in Debug mode it runs perfectly but when I make release build or run same application on other machine it does not call JavaScript function.

[Code]...

View 2 Replies

Actionscript 3 :: Flex HTMLLoader Component Not Raising MouseDown Events For All Mouse Clicks

Jun 16, 2010

I have built a Air 2/Flex 4 kiosk application with Flash Builder 4. Currently I am implementing a touch screen browser to enable users to navigate company training videos. In an attempt to improve the usability of the website on the touchscreen I have placed the HTML component in an adaption of Doug McCune's DragScrollingCanvas (updated to use the flex 4 'Scroller' component) to allow users to scroll the webpage by dragging their finger across the screen. The mouseDown event is used to start scrolling the viewport.
In addition the webpage was modified to disable text selection with the following css:

[Code]...

As an alternative I also tried adding a group container with the same dimensions as the HTMLLoader to detect the mouseDown events (so that the group container and HTMLLoader have the same Dragable parent container) and was able to capture mouseDown events and scroll the viewport as expected. However as the mouse event is handled by the group container, I am now unable to navigate the webpage.

View 2 Replies

Javascript :: Flex Execute A Function When A Certain Trigger Is Executed?

Oct 9, 2010

I am currently using ExternalInterface to call JS functions from Flex. Is it possible to do the same the other way around: have Flex execute a function when a certain trigger is executed in JS? I want to have a Flash app with buttons in HTML that when pressed call functions inside the Flex app.

View 1 Replies

JavaScript :: Passing Object To Flex Using Callback Function

Jul 11, 2011

My web application pass a javascript object to flex application using addCallback function.
when the flex application is in modal dialog in safari browser, the object in the flex application is null and when I open the flex application just in a new window, the object is passed correctly. But, I need the showmodaldialog to show the flex application.

The flex code:
ExternalInterface.addCallback( "handleEvent", handleEvent );
override public function handleEvent( event:Object ):Object {
Alert.show(String(event)); .....

View 1 Replies

Javascript :: Flash - Pass Array Collection From Flex To Function?

Jul 22, 2011

Is it possible to pass an ArrayCollection object from flex ExternalInterface.call() as a parameter to javascript function?

[Code]...

View 1 Replies

Javascript :: To Execute Flex Cleanup Function When Browser Is Closed By User?

Oct 29, 2009

I have a Flex client application. I need a clean up function to run in Flex when the user closes the browser. I found the following solution on the net, but it only works half-way for me. How could I fix it?CustomEvent triggered, but not executed. >> EventHandler for CustomEvent.SEND_EVENTS is defined by a Mate EventMap. All the handler does is to call an HTTPServiceInvoker. In debug console, I'm able to see the handler and HTTPServiceInvoker being triggered, but neither the resultHandlers nor the faultHandlers were called. I know this event handler has no problem because when I dispatch the same CustomEvent.SEND_EVENTS in a button click handler, it behaves exactly as I expected)Browser seems to wait for cleanUp function to complete before it closes. (all traces were printed before browser closes down)

Code
I added the following into the index.template.html
window.onbeforeunload = clean_up;

[code].....

View 3 Replies

ActionScript 3.0 :: Disable RollOut Function On Movieclips On Click Function?

Sep 13, 2009

I'm doing a basic site with frame labels on the main timeline whose name corresponds to the btn names. A simple  otoAndPlay(evt.target.name); I have a basic navigation setup of 7 mcs with mouse eventlisteners for CLICK, ROLL_OVER and ROLL_OUT.
 
Example:
prepare.addEventListener(MouseEvent.CLICK, navigate);plans.addEventListener(MouseEvent.CLICK, navigate);retire.addEventListener(MouseEvent.CLICK,

[Code]....
 
Does anyone know a better way to do this so when my mcs are clicked they display the rollover content/art? In essence I'm trying to achieve that when the user clicks a btn it goes to that "page" and the corresponding btn stays highlighted. Pretty standard web navigation technique but I just don't know what the best way to do this in flash is and with  how my site is setup.

View 1 Replies







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