ActionScript 3.0 :: Convertion To C++ - Modal Window And Nested Functons?
Aug 14, 2009
I'm converting some code form C++ to AS3 ... and in C++ have so called Modal window ... lets say we have an function in C++ like this
Code:
CYESNO m_yesno=new CYESNO();
if(m_yesno.DoModal()==IDYES) {[code]....
a know that this can be achieved with events, and with breaks the code into several functions ... but i don't want that ... i want to keep things simple.just when i call CYESNO m_yesno=new CYESNO(); the code stops and after selecting an option, then code continues to execute from corresponding if() block in the same function.i thought that nested functions will help me but unfortunately i was wrong.Or not ?
View 1 Replies
Similar Posts:
Mar 16, 2009
I want to call a.swf from b.swf where a.swf should act as a modal popup window over b.swf. I am working in as3 cs4. how can i achieve this?
View 3 Replies
Feb 14, 2011
I am using this nyromodal.nyrodev.com to open a modal pop-up windows on the webpage. The thing is it watches for click even on tag that has a certain class. For instance
Code:
<div href="popupform.php" class="nyroModal"></div>
Code:
$(function() {
$('.nyroModal').nyroModal();
});
It obviously doesn't have to be anchor tag, but they say preferably that it is. Anyway I need to implement the same thing inside the flash movie: after click on the button the given modal box pop up. It'd be nice if I can load external content inside the popup windows.
View 1 Replies
Jun 30, 2011
I have a flash template that I am working on, and have customized it via the XML files. It's an AS3 template. I also have a Flash poll script that I am attempting to integrate into the template. This is where it gets a bit tricky...I have decided to use a modal window (which supports swf files) to open the poll that I am using. If it were as simple as to load the swf file, I would be fine, but the poll also includes XML and PHP files, which I don't know what to do with.
The files included are: preview.swf, preview.fla, the xml file, config.php, edit.php, index.php and then "caurina" and documentation files. What I'm thinking I need to do is include the preview.swf file into my modal window, but I'm not sure what to do with the rest of these files, do they go into a new folder in the main template folder or what?
View 1 Replies
Jun 26, 2011
I want to make a modal effect like a popup window in Flex, but with pure as3.
I put a filled Shape with a blur on it but doesn't look the same. I am assuming the blur effect is applied on the stage, but this would also blur the popup window. I also want several layers of modal+popup like "do you want to delete this?" and pressing yes => "are you sure?" Kind of thing.
View 3 Replies
Feb 10, 2010
I'm aware of PopUpManager and that custom modal windows can be created.But let's say I have a simple Canvas(or any component) and when I show it the background needs to be blurred out like how PopUpManager does when a new pop-up is shown.Is this possible?
View 2 Replies
Nov 3, 2011
I am creating modal popup canvas window in a parent page. When I close the popup how do we get notification in parent screen that child popup is just closed.
View 3 Replies
Apr 15, 2011
I'm trying to make a popup alert modal window thing with an external class. I have a simple swf set up with just some random sample text, a rectangle, and a button. What I want to happen is for the "alert" class to initialize upon startup of the swf and then when I click the button (instance: btn), the alert will show up. If I get rid of all AS in the swf and set alert as the document class, it shows up just fine, so I think it should be working, but for some reason I get this instead when I try the button function:
[Code]...
View 9 Replies
Dec 12, 2011
I need to close the popup(adobe flex), non modal window if I click on the parent page of the popup. I have to do the out of focus check and then do some validation before close the popup. So what I was thinking that is there any inbuilt focus check event or do we need to create custom event for that?
View 1 Replies
Jul 13, 2010
Can a Flax Air Window (NativeWindow) be modal? how?
View 2 Replies
Mar 25, 2009
I am trying to avoid having to rewrite a few functions that I use for mouseEvents that I am going to also have to use for keyBoard events.eg.
btn.addEventListener (event:MouseEvent.CLICK,btnClick);
stage.addEventListener(KeyboardEvent.KEY_DOWN, EnterBtn);
function btnClick (event:MouseEvent):void {
[code]....
View 2 Replies
Dec 8, 2009
I'm trying to load several jpeg images dynamically XML into bitmapdata object in fla. I can see them on the stage of this .swf file.However, I load it into another .swf which is my main to call while clicking on one of menu option.I got this error:Error #1034: Type Coercion failed: cannot convert com::Fashion@1daf4ca1 to flash.display.MovieClip.Does anyone know how to convert that??
private function initBitmapFile(file:String):void
{
loadBMP = new Loader();
[code].......
View 1 Replies
Feb 11, 2011
i'm trying to make a on line voice recorder + server upload. Today, i can do it in wav format, but i really wish to record it in mp3 or wma or other format so i can record small files. The actionscript is:
[Code]....
View 1 Replies
Nov 21, 2011
i could how to change this conpatible to timeline.
onClipEvent (load) {
//data you may want to change
width = 550;
height = 400;
speed = 0.1;
[Code]...
View 3 Replies
Sep 25, 2009
Create a modal popup to popup with popupmanager (mine is a group with a skinnable container inside of it)Put field components (textinputs) on the modal popup Attempt to tab between controlsTab switches to controls behind the modal-popup and ignores the fact that the modal is there. The tab loop only contains controls behind the modal. I've tried everything from setting tabChildren, to hasFocusableChildren. I can't implement IFocusManager as it's Halo and my modal is a Spark group, but would that work in some capacity? It really seems like Flex just ignores the modal in its focusmanager.
View 3 Replies
Feb 24, 2012
I am using the Twitter's Bootstrap plugin bootstrap-modal. It works well except for when there is a flash element behind it. When the bootstrap-modal dialogue box up, and there is a flash element behind it, the flash element is on top of everything else.
View 1 Replies
Oct 20, 2010
I've got a custom component based on a TitleWindow. I want to put an event listener in my main app that listens for the Titlewindow's modal button's click[code]...
View 1 Replies
Feb 10, 2011
I want to be able to show a Spark TitleWindow container as a modal without having to construct it by code via AS3. I tried creating the TitleWindow before-hand manually by dragging and resizing it around and adding objects, etc then hiding it. Then on a button, I set the called function to the ones below:
public function doPopup():void {
testWindow.visible = true;
PopUpManager.addPopUp(testWindow, this, true);
}
Unfortunately, this only shows testWindow but not as a modal. I want it to be like this so that I can freely resize and design the layout of my TitleWindow and only have to call some function to show it as a modal one.
View 2 Replies
Sep 28, 2011
I made this simple application to demonstrate my problem. It has:
An image A button that launchess a popup window Scroll bars on the side
[Code]...
Is there a way to make everything "modal" except the main scroll bars? I know that I could put a scrollbar on the Panel but I would prefer to avoid this.
View 1 Replies
Nov 18, 2011
I create a modal window with PopUpManager
_zoomImgPopUp = PopUpManager.createPopUp(this, Image, true) as Image;
When the modal window is opened, all background is gray and with blur. How can i change color, blur and transparency of background.
[URL]
but it is for "mx" application. I need something with "spark" components.
UPD: Solved. It must be:
_zoomImgPopUp.setStyle("modalTransparency", 0);
_zoomImgPopUp.setStyle("modalTransparencyBlur", 0);
PopUpManager.addPopUp(_zoomImgPopUp, this, true);
View 1 Replies
Jan 16, 2008
With the Window Component, you can have Modal functionality, means that the user cannot interact with any elements in the page, until the Window component is closed. I want to look into the component's classes to see what function they use to remove all interactivity in the page temporarilty, but thought of looking into Kirupa first Note when using the Window component, and you roll over one of your original movie buttons, your cursor does not even turn into a hand
View 5 Replies
Feb 21, 2011
I want to make the background appear as if a modal window was opened but, instead of a window, I want to use Spark TextArea.. Is this possible?
View 1 Replies
Mar 4, 2011
I need to show a modal confirmation dialog with yes no buttons and get the results what the user has clicked in ActionScript 3
ok save diaglog does not who up when exit is called the application just exits.
Alert.show("Do you realy want to delete", "My Title", 3,null,
function alertClickHandler(event:CloseEvent):void
{
[Code]....
View 2 Replies
Jul 19, 2011
I create several instances of TitleWindow. And added them on stage by PopUpManager.addPopUp( wnd, root,true but how to change blur of madal state?
View 1 Replies
Apr 23, 2009
private function tileList_itemClick2(evt:ListEvent):void {
img = new Image();
img.maintainAspectRatio = true;
[code].....
View 2 Replies
Sep 17, 2009
My Flex 3 application has some modal dialogs displayed via the PopUpManager, but there are times when I'd like other view components to know there is popup displayed. The PopUpManager doesn't have any method for actually checking the existence of popups. Is there any other way to detect this in flash/flex without writing my own global manager?
(also systemManager.popUpChildren.numChildren == 0 even when there's a modal popup)
View 2 Replies
Dec 21, 2010
I have a website with a flash image viewer. Once user clicks on flash button, I need to give a confirmation modal dialog before saving the file and if user clicks on OK only I have to pop file download dialog. Confirmation dialog with in flash is not an option for me. So I have to invoke JS function to pop a confirmation.Within the site, a custom DHTML confirmation modal dialog is used and it has two JS callback functions one for "OK" and the other for "Cancel" button click event handers. I have to use this modal dialog for this need.With Flash player 10 security features, it is unable to pop flash file download dialog via JavaScript
View 1 Replies
Aug 2, 2011
When using the PopUpManager in Flex with modal = true, the background application is blurred. Is it possible to keep this blur for most of the background application but set certain components to not be blurred?
View 1 Replies
Aug 22, 2011
I am using the below given code to try to make the transparency 0, but I still am unable to make the background become absolutely transparent.
<mx:Style>
global {
modalTransparencyBlur: 0;
[code].....
View 1 Replies
Nov 8, 2011
I have a modal dialog with a flash video on it and I'm using the jQuery draggable plugin to make it draggable. On Chrome, it doesn't let me play the video (when I click on the play button it does nothing, though I can drag the div around if I hold down the mouse). On Firefox, the video will play, but the mouse gets "stuck" to the div and the div follows it around. Is there some easy way to prevent dragging on the flash div?
View 1 Replies