Passing Parms of event click the function and 'child '.

With the help on this Forum, I'm able to pass the parms in a custom context menu based on TitleWindow created with the PopUpManager to a click event.  Now, I would also spend parms to change a Manager click on the PopUp itself event.  Is this possible?  Here is the code for the click event in the context menu:

From main MXML file - creates the PopUp:

private

var popup: owPopUp = new owPopUp();

protected function owPopUpWindow (event: MouseEvent, title: String, url1:String):Sub

{

PopUpManager.addPopUp (popup,

ce , true );

Popup.title = title;  title = '{text}' in the tag < s:TitleWindow... >.

Popup.x = 200;

Popup.y = 125;

}

Code for the click (a text in a text box) event

a click = "owPopUpWindow (event, '.

' New EBS: order writer - queue of Milestone 1' "lessons/EBS_new_Milestone1.swf" ) "//third parm is what I want to pass to the function in the PopUp TitleWindow (underline) .

In the TitleWindow PopUp created by the above code:

...

[

Bindable [ ] public var titleText:String =""; .

[Bindable] public var url1:String = "";

protected

function textarea1_clickHandler(event:MouseEvent):

Sub

{

ce .move (1,1);

Loader.Load)

'url1' );  This URL is where I would like to pass in a parm to the event click above 'url1 '.

}

protected function pdfLoader(event:MouseEvent):Sub

{

navigateToURL (new URLRequest (url2));  I would also like to pass parm for this URL 'url2.

}

The role of title works, but does not work part url1.  No error, just no load.  Any suggestions?

Thank you.

Create your own event accommodating more parms.

This is possible by creating a class that extends MouseEvent.  Add some parms you need for this event and be sure to call super.

You can then send this event as need and also get the parms that you must listen to

http://StackOverflow.com/questions/426540/how-to-create-custom-MouseEvent-click-event-in-a s3 pass parameters of function

#4 comment should help you.

Tags: Flex

Similar Questions

  • Click the mouse and drag through the animation of Platinum

    Hi all

    First of all - thank you for taking the time to look through and maybe help me with this question.

    I'm just addressing flash actionscript 3.0 cc - so I apologize in advance for my not so much technical jargon.

    In the past, I used actionscript 1.0 to create an interactive html file containing the animation of a hub of a 3D model. Users can click the mouse and drag to the left or right to 'spin' the model around - however they do really is already through the timeline containing 360 pictures of it from 360 degrees. Similar ideas can be found here: Thyroidectomy Interactive

    Now boring I can't use the old code any more that I work in the latest Flash actionscript 3.0 cc

    So, how I do the same thing but in actionscript 3.0?

    So I worked this piece so far

    On my main stage, I have two layers - Layer actions and another layer with my video (movieclip_mc)

    In the layer actions so far:

    movieclip_mc.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
    movieclip_mc
    .addEventListener(MouseEvent.MOUSE_UP, onMouseUp);


    function onMouseDown(event:MouseEvent):void
    {
      movieclip_mc
    .addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
      //I should put something in here about mouseX  - but no idea what

    }

    function onMouseUp(event:MouseEvent):void
    {
      movieclip_mc
    .removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
    }

    function onMouseMove(event:MouseEvent):void
    {  
    //I have to put something in about total frames - width of movieclip_mc etc but I'm not sure how   

    // this is what someone else did on another forum - but I'm not sure what it means:

         var delta:int = backgroundClip.mouseX - clickedMouseX;
      
    var wantedFrame:uint = (clickedFrame + delta * clip.totalFrames / backgroundClip.width) % clip.totalFrames;
      
    while (wantedFrame < 1)
      
    {  
      wantedFrame
    += clip.totalFrames;
      
    }
      clip
    .gotoAndStop(wantedFrame);
    }

    Also, I think I need something at the beginning as...:

    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.display.Sprite;

    var clickedMouseX:int;
    var clickedFrame:uint;
    var backgroundClip:Sprite = getChildByName("background") as Sprite;
    var clip:MovieClip = getChildByName("animation") as MovieClip;
    clip
    .stop();
    clip
    .mouseEnabled = false;


    .. but I'm a little confused as to what she means


    So I understand the principle but no idea how to actually make it work - could someone help explain to me or help with the code?

    Thank you very much to all those who can offer help

    Catherine

    I missed replying to your answer yesterday, although I see it - I turned away by another chore for the rest of the day.

    The game of AS2 code that show you closest matches what you do with the AS3 version.  And if you include all its implications and change a little bit, it should work for you.

    Your AS3 onMouseDown function was missing the mouseX code as you mentioned... converting from the AS2 version it would be...

    function onMouseDown(event:MouseEvent):void
    {

    startX = clip.mouseX;

    startFrame = clip.currentFrame;
    movieclip_mc.addEventListener (MouseEvent.MOUSE_MOVE, onMouseMove);
    }

    The onMouseMove function is somewhat a different story because it stops looking like the AS2 version when you transfer the background object in the picture.  If you were to model after the version AS2, you might find that it will work.  The AS2 version can quite easily transformed into AS3 if you use just the following guide...

    "_xmouse' in AS2 becomes"mouseX' in AS3

    "_currentframe" is that as2 becomes "currentFrame" in AS3

    "_totalframes' in AS2 becomes"totalFrames"in AS3

  • in hotmail, I can't pass on all messages that the coordinates and the message is not transferred to the new email.

    In hotmail, I can't pass on all messages that the coordinates and the message is not transferred to the new email. However, this works in Windows Live Mail. I use Windows 7 64-bit and 64-bit internet.

    Hello Brian,.

    There is a forum located there that is specifically for Windows Live Hotmail problems. Here is the link:
  • I am trying to perform a static check on the model. When I double click the model and go to the tab control... There is nothing to select in the knowledge module. I want to use CKM here... but nothing appearing in the drop-down menu. The global KMs are no

    I am trying to perform a static check on the model. When I double click the model and go to the tab control... There is nothing to select in the knowledge module. I want to use CKM here... but nothing appearing in the drop-down menu. The global not supposed to KMs the listed here?

    Hello

    You have imported the whole CKM in modules of knowledge?

    If not, import ckm and do it.

    Kind regards

    Gangareddy.k

  • How to move the functions and procedures of packages in a schema?

    Hello

    I have less than the needs for a work at home and my question is if anyone can point me in the right direction to find documentation that can help me solve below. Any information will be appreciated. Thank you.

    Write procedures and functions (included or not in packets) as .txt or .sql scripts. Once they have been launched in Developer SQL they should, in addition, the functions and procedures of packages in the current schema. If the current schema contains only 2 packages, pac1 (p11, p12 procedures and functions f11, f12, f13) and pac2 (contains the p21 following procedures, p22, p23 and f21 and functions f21 (case of overload), running the scripts produce the following effects:)

    • Procedures p11, p12, p21, p22, p23, and f11, f12 and f13 functions will be created in the current schema.
    • PAC2 will contain 2 instances of the function of overload-f21; they will be kept in the package, without be created in the current schema. If all overloaded procedures/functions will be kept in their original packaging
    • If pac1 contains variables, cursors, and public types, keep us only the details of the package (and remove the body); usually if the packages contain no overloaded functions or procedures the body will be removed and if no variable, cursors, types of public then we will remove the header.
    • If in the triggers, procedures and functions we will call procedures/functions packages (procedures and functions moved into the current schema) they reference will need to be updated (via editing the body or recompilation) for example if pa1.p12 will be replaced with p12.
    • Scripts must have numbers in the next series (01... n) and the characters that explain the content.

    My only advice would be to remember that these are public forums and if YOU can find them, therefore cannot your instructors.

    In addition, those are horrible procedure names and function

    This mission seems to be around to overload the pl/sql objects and... prioritize a research on Oracle documentation around overhead and legacy
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28371/adobjplsql.htm#i21148

  • How to trace all the functions and variables Movie Clip

    How can I find all the functions and variables available Movie Clip?  Thank you

    Use the describeType() function.

  • ComboBox does not send keyboard and no event click the menu drop-down.

    I use a ComboBox to search in my application. The application is a periodic table, then the user will be able to search by name of element, atomic number or a symbol. The ComboBox control is working very well, I just have two questions that I was wondering if someone could lead me in the right direction. The first problem is that, when a user clicks the ComboBox for a search entry, the keyboard does not dispatch. The user must use the native swipe gesture to display the keyboard. This isn't a huge problem, but I would really like to work for when the user clicks the ComboBox keyboard is distributed. IV ' e looked in this and concluded that it should work, ComboBox with a property TextInput keyboard should appear, but it doesn't. I also discovered that it is impossible to show/hide the keyboard with the code. I use FB 4.5 and 4.5 Flex and the most recent SDK Tablet from BlackBerry. Y at - it a bug or something?

    Also my other question is once the user starts typing in the search, the filter works great and the drop down displays all of the possibility. But my only problem is the user cant just click and the item in the drop-down menu. For example when the user types "A" all items that begin with a show upward in the drop down menu. The user cannot click on an element. The only way that the element can be selected is if the user continues typing the word until it is highlighted as the only option and then enter hits. This too is not a huge problem, but I like it to work so that if the user types 'A' they can do scroll down the menu and select the item they want. IV also looked into this and can't seem to find anyway to drop down the combobox list have a click event. I'll put a code later that you can see what I mean better, but for now its kind of a general questions. I use FB 4.5 version release and flex 4.5 with the new SDK of BBT. If someone can point me in the right direction, or send me any article that would be GREAT. Thanks in advance!

    It is probably easier than you think:

    1. Create a text input control
    2. Add event listeners when the control is changed ('change')
    3. Maintain an internal table of valid matches
    4. On the change event listener, browse each item and make a match that makes sense.  For example, to cut spaces beginning and end and do a string comparison of tiny out based on the length of a text entry field.  For example, if the user types "vel", which would correspond to "Developer" and "velcro".
    5. Create a list control that is displayed once the person begins to type.  Place it under the control of text entry.  Use the local to global changes in coordination and the size of the width of the list of the same width of the text input.
    6. # 4, dump all the data of the list data provider and add items to it based on string matching.  If no match or the text input text is empty/void/null, do not show the list.
    7. If the user selects an item in the list, hide the list, enter the selection to text entry and then send an event that the entry is "finished".
    8. Listen to the event "full" text of entry to perform what you wanted.

    Of course, if anyone can suggest how to get the Combox to work, go ahead.  I have just a habbit to create controls to achieve the appearance and the behavior I'm looking for.

    Good luck.

  • Event Click the button cause components pass right.

    I have a pretty basic photo viewer application. When I click on the button 'next' all parts of moving to the right one amount modest, but noticeable. When I click on the "back" button the app derive not immediately anyway. If I click back twice and then next once it has a cumulative effect to move the components 1 space left. I've never seen that happen before. Any thoughts?

    < mx:Application >

    < mx:HBox >

    < mx:VBox >

    < mx:Button id = "prvBt" click = "prevGroup (); »

    upSkin="@Embed (source = 'prev.png')'

    overSkin="@Embed (source = 'prev_over.png')'

    downSkin="@Embed (source = 'prev.png')'

    icon="@embed (source = 'prev.png')" >

    < / mx:Button >

    < mx:TileList width = "120" id = "photoList" height = "475" >

    < mx:itemRenderer >

    < mx:Component >

    < mx:Image

    horizontalAlign = "center".

    = "center" verticalAlign

    source = "{data.filename}" "

    toolTip = "{data.name} '"

    width = "100".

    height = "150" / >

    < / mx:Component >

    < / mx:itemRenderer >

    < / mx:TileList >

    < mx:Button id = "nxtBt" click = "nextGroup (); »

    " upSkin="@Embed (source = 'next.png').

    " overSkin="@Embed (source = 'next_over.png').

    downSkin="@Embed (source = 'next.png')"

    icon="@embed (source = 'next.png')" >

    < / mx:Button >

    < / mx:VBox >

    < mx:VBox >

    < mx:ProgressBar id = "progressBar" source = "{image}" visible = "false" / >

    < mx:Image width = "640" height = "474" id = "image" source = "{photoList.selectedItem.filename}" "

    horizontalAlign = "center" verticalAlign = "center".

    "open ="progressBar.visible = true"complete =" progressBar.visible = false "/ >

    < / mx:VBox >

    < / mx:HBox >

    < / mx:Application >

    I don't see where you said X locally so it can be change the x property that affect the position.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Click the button and the mouse-(what I need in the text)

    Hi there, sorry to bother the guy again, but I came with a few new questions.

    I want to try with a button click on it has an image apears and disappears, but so far I've only had this piece of code

    botao.addEventListener(MouseEvent.CLICK, mudaimagem); 
    
    
    function mudaimagem (event:MouseEvent):void { 
              if (event.currentTarget.selected == true) {
                        imagem.visible = false;
              }
              else {
                        imagem.visible = true;
     } 
    } 
    
    

    But the thing is... When I press 'CTRL + ENTER', the image is still on the scene and when I click on the button there is no hide not the image.

    I wish I had help to see what I'm doing wrong... I have a deposit that 'If (event.currentTarget.selected is true)"is the wrong thing... but I don't know".

    And also if it is a way to redo the mouse over the button and image apears her disappear when the mouse is not over, I would like to know

    Thanks for the patince and questions of NOOB that I do.

    Cordially ASilva

    All you need to make the image disappear and appear would be...

    botao.addEventListener(MouseEvent.CLICK, mudaimagem);

    function mudaimagem (event:MouseEvent):void {
        imagem.visible = !imagem.visible;
    }

    If you want the first invisible object, you must assign them to be so.

    If this does not work what error message you're seeing?

    To do the same thing with a passage of the mouse you would increase the CLICK event to MOUSE_OVER and ROLL_OVER

  • Whenever I do a search on the main page and get results, I click on a link and get diverted, I need to get out and re - click the link and then I usually get on the site I wanted to, it is a problem of computer or a problem of firefox or google?

    Whenever I do a search and click on a website search results, I am confused on some other Web site, usually a few ad-site.
    I then have to click the back button and click the link again and it usually takes me on the site that I wanted to. Is it a problem with my computer of viruses, or a problem with firefox or google?

    Download, install and update as much of the following as possible until your infections are cleaned.

    1. The free versions of these scanners will detect infections and clean your system; no need to buy
    2. Scanners different malware detect some malware that other scanners do not have.
    3. If you are unable to download malicious programs,
      • change the name of the Installer before you save the download on your hard drive, and
      • Once installed, go to the installation to the program folder and change the name of the executable file of the program (i.e. for Malwarebytes Anti-Malware, change mbam.exe to xyz - mb.exe), then update the program and run the scan.
      • You may need to download on a non infected computer, change the name of the Setup program, copy setup from a CD or USB and transport to your system for installation.
    4. Some stubborn malware should be deleted in Windows Safe Mode with setting network '. Warning: download all the tools first, then disconnect your modem before entering Mode Windows safe, as your firewall and AV/AS probably does not load mode Windows safe. See:

    If they cannot find or cannot remove the infection (s), post it in one of these specialized forums using malware removal:

    1. Read and follow their rules for display
    2. Follow the instructions to the letter
    3. Be patient; you are put in a queue and you will get a response when they get to your message

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • When selecting options on any website as here he aes 30secs before anything happens between me clicking the button and page load bar from

    When to make a selection on a Web site after clicking the left button, it takes about 30secs before the selection starts to load the loading bar only shows not even during this time firefox just hangs then it loads as usual

    This has happened

    Each time Firefox opened

    == whenever I use firefox opera works very well done hated EI

    Hello Mike.

    Although that may not be related to your issue, I will remind you that the version of Firefox you are using right now has been suspended and is no longer supported. In addition, it has known bugs and security problems. I invite you to upgrade to the latest version of Firefox, for maximum stability, performance, security and ease of use. You can get it for free, as always, to getfirefox.com.

    As for your question, you may have a problem with some Add on Firefox which is an obstacle to the normal behavior of your Firefox. Have you tried to disable all add-ons (just to see) to see if Firefox goes back to normal?

    Whenever you have a problem with Firefox, whatever it is, make sure that it's not one of your modules installed, be it an extension, a theme or a plugin. To do this easily and cleanly, start Firefox in safe mode , and then select disable all add-ons. If the problem goes away, you know that it's an add-on. Disable them all in normal mode and allow them one by one until you find the source of the problem. See this article for more information on troubleshooting extensions and theme. You can troubleshoot plugins in the same way.

    If you want supported for one of your modules, you will need to contact the author.

  • ORA-00904 during execution of the functions and procedures (IDE version 4.1.0.19)

    Recently, I updated my Oracle SQL Developer to the latest version (see below) and now when I try to run the function or procedure of the IDE, I had an alert with the error: "ORA-00904:"OBJECT_ID": invalid identifier." Code provider 904 ". Previous version of IDE works pretty well. What is the problem?

    Oracle SQL Developer 4.1.0.19

    Version 4.1.0.19

    Build a HAND - 19.07

    It seems that OBJECT_ID added to ALL_PROCEDURES for the 10g DB version, but after the version you have (10.2.0.1.0).  I don't have a link to the documentation specific to hand Oracle, but see the last comment by Steven Feuerstein in the next blog...

    PL/SQL challenge: ALL_PROCEDURES changes over version (5980)

    Typically when generation SQL for a particular version of the DB with SQL Developer, only major (10) and (more rarely) secondary numbers (2) gets checked, if your problem is one of those borderline cases that are easy to miss and less likely to get fixed. Whenever a customer has a specific need to use an older version, Oracle expects usually only the last set of patch (for example, 10.2.0.5) would be used.

  • Creative cloud, do not install it on my mac - yosemite - double-click the icon and nothing happens - help!

    !

    Follow the procedure below:

    (1) right-click on the icon in the Finder, then select 'Go - To' folder.
    (2) you will get a text box, type in the following command, and then press the 'Return'. () Do not miss ~ symbol)

    ~/Library

    (3) then navigate to Application Support > Adobe

    .

    Right-click on the Adobe folder and select ""GetInfo ' option. "

    Expand the sharing & permissions section.

    Click on the padlock icon in the lower corner on the right. Enter your administrator user name and password when you are prompted, and then click OK.

    Please click on '+' symbol, it will open the list of user accounts. Add currently logged in username and administrator option,

    Then indicate ""& read/write " permission currently logged in username and Administrator option."

    Click the gear icon and select apply to closed. Close the dialog box information .

    Then launch Lightroom application and check.

  • Automatically connect when I click the icon, and I want to DISABLE it please help!

    When I click the icon, I want to disbale auto, sign in. Anyone know how?

    Thank you

    Yes, you have that option. Look at the lower right of the sign in screen.

  • Is parent to perform the function in child

    I have a function in children that I need to be executed by the parent, but I can't make it work.  Anyone know how to call the function in a child of a parent?

    What I do is to have the parent load a few buttons, and I would like to re - use the swf, but have the parent to provide the text for the button.

    Here's how I built it:

    main.swf - main container for everything

    -button_page.swf - this is the page that has the buttons on it

    field - button.swf - the image of the button with dynamic text

    So the button_page.swf try to perform a function on button.swf, called "populate_button".  He is also passing the text inside, so the function should be performed as "populate_function("Back")".  I can't call to function properly.  I tried several different things, including:

    btn_back.populate_button ("Back");

    the instance of the button.swf is called 'btn_back '.

    Any help would be greatly appreciated.  Thank you!

    Aaron

    If I'm not mistaken...

    in AS3... the only 'good' inter comm swf is w / connection local... parent has been deprecated, except for XML nodes...

    You're wrong

    2 SWFs can communicate with eachother very well. Make sure they are actually loaded before trying to communicate.

    You only need a communication cross-avm netconnection: AVM0 (AS1/AS2) to AVM3 (AS3) and vice versa.

    VIVIsecVI, show us the code that loads the swf button actually.

Maybe you are looking for

  • Flash does not not only on Firefox

    For some reason that I find that Flash Player does not work on Firefox (which means it works on Chrome and IE) Flash Player 16.0 is listed in my plugins, and it set to always activate again for some reason any, it is not activated? Have you tried to

  • No battery detected on Satellite U400?

    Ive just bought a new Satellite U400 and ive charged for hours and when I leave the power cable it shuts off and only turns on when it is plugged in to the charger. and says on the toolbar at the bottom of the battery is not detected.not sure what to

  • Identity Thelf

    I changed my phone number and e-mail address 3 or 4 times trying to move away as spam and people to hack accounts. I contacted T-mobile, ATT with no result. Get emails from. Phone number of Jones.Julia475 of Gmail (deleted). I blocked them but still

  • Need a laptop w / Gigabit Ethernet, but website says 10/100/1000 Ethernet? Same thing?

    So, I'm looking to buy an Acer Aspire E 15.6 "laptop with Gigabit Ethernet. But the Future Shop site says that there "Port Ethernet: 10/100/1000 '... Is it the same or... ? Thank you! -of the Canada!

  • Exit WMP with the HDMI help!

    OK, so ive just connected my TV to the computer and divide the monitor and the TV, but now for some reason wmp plays through hdmi but when I go to youtube and vlc it plays through my 5.1 System. How can I avoid that wmp when playing via the HDMI?