custom default event actions

Is it possible to create default actions for my custom event subclasses?

There's a preventDefault(), but there is no doDefault() or anything like that. There are perhaps in a secret internal flash namespace?

These forums are pretty dead. It seems that nobody responds to the questions really stupid or really difficult. Part of the problem is that the Adobe moving things in the archives so fast that it is pretty useless to come here looking for answers.

In any case, I thought that this issue was really hard, but it's really stupid. The default action for an event is made by the appellant to dispatchEvent, which returns a Boolean value that indicates if the event was cancelled. To make a default action for my custom event so I simply created a utility method that performs the sending and the default action, and users of the event he sent via the utility method.

Tags: Flex

Similar Questions

  • Custom internal events?

    Hello

    I create custom internal events and I want to use in the program generator for the update CRM program.

    I have some doubts

    My first doubt is

    1. I'm not able to use the default event in the update CRM programs. Get there or I'm facing this problem only?

    2 - when I create custom event for partner campaign, it only shows "last SFDC campaign ID" card with 'Campaign ID', but if I create external call with default internal event it displays "Campaign ID" field card with "campaign ID". Why this is happening?

    3 - Suppose I created the custom event that is associated with campaign manager and mapped 'campaign ID' to 'last SFDC ID campaign. "

    one - and now I have three active campaigns, my all three campaigns are driver program that helps me associate campaign.

    b he has even contacts that I added to the campaign.

    c now the thing is if someone has submitted the form through Country1, the ID of the last campaign SFDC will be Country1, and if the same person submits the form from 2 then the last campaign SFDC ID will be 2.

    d I want to associate lead even with all three campaigns automatically.

    e If the id of the campaign takes the value of the ID of the last campaign SFDC then how will I be able to associate led to three different campaigns at the same time?

    I would like to know if someone does not understand my concern.

    Any help will be appreciated.

    Thanks in advance.

    Nabila,

    1. I'm not able to use the default event in the update CRM programs. Get there or I'm facing this problem only?

    Right - program Builder uses "Custom Events" default "internal events" just happen and are not triggered by PB

    2 - when I create custom event for partner campaign, it only shows "last SFDC campaign ID" card with 'Campaign ID', but if I create external call with default internal event it displays "Campaign ID" field card with "campaign ID". Why this is happening?

    Custom events using level contact (or perspective, business, card data) fields and not the system as internal events.

    3 - Suppose I created the custom event that is associated with campaign manager and mapped 'campaign ID' to 'last SFDC ID campaign. "

    one - and now I have three active campaigns, my all three campaigns are driver program that helps me associate campaign.

    b he has even contacts that I added to the campaign.

    c now the thing is if someone has submitted the form through Country1, the ID of the last campaign SFDC will be Country1, and if the same person submits the form from 2 then the last campaign SFDC ID will be 2.

    d I want to associate lead even with all three campaigns automatically.

    e If the id of the campaign takes the value of the ID of the last campaign SFDC then how will I be able to associate led to three different campaigns at the same time?

    Some ways of inheritance to do this, use the 'rules of campaign response' to trigger the internal events for the campaign response.  You will need to maintain a list of Member default campaign status values and define the rules first. (page 31 of the administration_guide_-_Campaigns_v1 [1].3_Oct_2009.pdf)  I don't know if he has done to Topliners - you can always ask MOM (the site uses dynamic content Eloqua of rules so actually, you have to fill out a form to trigger an email to see content - sorry.)

  • Custom itemRender event shipping

    Hi all. Have a problem with the custom itemRender event.

    First of all, I created TileList:

    < mx:TileList height = "544" width = "575" dataProvider = "{favourite}" id = "FavoriteTileList".
    itemDoubleClick = "onFavoritesClick (event)" x "5" = "
    doubleClickEnabled = "true".
    itemRenderer = "FavoriteItemRender" >
    < / mx:TileList >

    Then, I created new itemRender:

    package
    {

    import flash.events.MouseEvent;

    Import mx.containers.HBox;
    Import mx.containers.VBox;
    Import mx.controls.Image;
    Import mx.controls.Label;
    Import mx.controls.LinkButton;
    Import mx.controls.Spacer;
    Import mx.controls.listClasses.IListItemRenderer;
    Import mx.core.UIComponent;
    Mx.events import. *;

    SerializableAttribute public class FavoriteItemRender extends UIComponent implements IListItemRenderer
    {

    Internal variable for the value of the property.
    private var _data:Object;

    private var hBox:HBox;
    private var vBox:VBox;
    private var image: Image;
    private var textLabel:Label;
    private var deleteFavorite:LinkButton;
    private var hSpacer:Spacer;
    private var vSpacer:Spacer;

    [Bindable] public var myData:DataModel = new DataModel();
    Do the data property bindable.
    [Bindable ("dataChange")]

    public void FavoriteItemRender()
    {
    Super();
    this.explicitHeight = 150;
    this.explicitWidth = 150;
    }

    Define the getter method.
    public function get data (): object {}
    return _data;
    }

    Define the Set accessor method and dispatches an event when the property
    changes to support data binding.
    public function set {data(value:Object):void}
    _data = value;

    myData = new DataModel();
    myData.source = value.source;
    myData.text = value.text;
    myData.tag = value.tag;
    myData.carNumber = value.car_id;

    invalidateProperties();
    dispatchEvent (new FlexEvent (FlexEvent.DATA_CHANGE));
    }

    override protected function createChildren() (): void
    {
    super.createChildren ();

    this.explicitHeight = 150;
    this.explicitWidth = 150;

    vBox = new VBox();
    vBox.explicitHeight = 150;
    vBox.percentWidth = 100;
    vBox.setStyle ("horizontalAlign", "center");
    vBox.setStyle ("verticalAlign", "top");
    addChild (vBox);

    image = new Image();
    image.explicitHeight = 100;
    image.explicitWidth = 120;
    vBox.addChild (image);

    vSpacer = new Spacer();
    vSpacer.explicitHeight = 10;
    vBox.horizontalScrollPolicy = 'off ';
    vBox.verticalScrollPolicy = 'off ';
    vBox.addChild (vSpacer);

    hBox = new HBox();
    hBox.setStyle ("horizontalAlign", "center");
    hBox.explicitHeight = 30;
    hBox.percentWidth = 100;
    hBox.horizontalScrollPolicy = 'off ';
    hBox.verticalScrollPolicy = 'off ';
    vBox.addChild (hBox);

    hSpacer = new Spacer();
    hSpacer.explicitWidth = 10;

    textLabel = new Sun;

    deleteFavorite = new LinkButton();
    deleteFavorite.label = 'X '.
    deleteFavorite.setStyle("color","#06ADE4");
    deleteFavorite.addEventListener (MouseEvent.CLICK, handleDeleteClick);

    hBox.addChild (textLabel);
    hBox.addChild (deleteFavorite);
    hBox.addChild (hSpacer);


    }

    override protected function commitProperties (): void
    {
    super.commitProperties ();



    textLabel.text = myData.text;
    image.source = myData.source;
    }

    override the updateDisplayList(unscaledWidth:Number,_unscaledHeight:Number):void function
    {
    super.updateDisplayList (unscaledWidth, unscaledHeight);

    vBox.move (0,0);
    vBox.setActualSize ((unscaledWidth-4), unscaledHeight);
    }

    private function handleDeleteClick (event: MouseEvent): void
    {
    dispatchEvent (new DeleteFavoriteEvent (myData.carNumber));
    }

    }
    }

    As you can see I have manage, click link button to send my own DeleteFavoriteEvent event. As I first thought this event to malleable in the mxml file with TileList parent will be sufficiently defined in the init section:

    addEventListener (DeleteFavoriteEvent.DELETE_FAVORITE, deleteFavorite);

    But it 'doesn't work. As at the time I find I should addEventListener to object instance that will send, for as far as I understand to listen to this event, I should write something like this:

    (Instance FavoriteItemRender) .addEventListener (DeleteFavoriteEvent.DELETE_FAVORITE, deleteFavorite);

    in the mxml with TileLIst definition file? But I have no instance of it, because to help

    < mx:TileList height = "544" width = "575" dataProvider = "{favourite}" id = "FavoriteTileList".
    itemRenderer = "FavoriteItemRender" >

    Give me counsel how to listen itemRender parent mxml file event where the final TileList?

    private function handleDeleteClick (event: MouseEvent): void

    {
    dispatchEvent (new DeleteFavoriteEvent (myData.carNumber));
    }

    As you can see I have manage, click link button to send my own DeleteFavoriteEvent event. As I first thought this event to malleable in the mxml file with TileList parent will be sufficiently defined in the init section:

    addEventListener (DeleteFavoriteEvent.DELETE_FAVORITE, deleteFavorite);

    But it 'doesn't work. As at the time I find I should addEventListener to object instance that will send, for as far as I understand to listen to this event, I should write something like this:

    (Instance FavoriteItemRender) .addEventListener (DeleteFavoriteEvent.DELETE_FAVOR ITE, deleteFavorite);

    in the mxml with TileLIst definition file? But I have no instance of it, because to help


    itemRenderer = "FavoriteItemRender" >

    the

    Give me counsel how to listen itemRender parent mxml file event where the final TileList?

    I guess the problem lies in what parateters you pass to your constructor DeleteFavoriteEvent. In fact, it is a parameter, you do not pass: bubbles. It is default to false, which means that your event not be the propagation phase. This is why he does not move to the top of the display list and TileList of your parents does not. So just pass 'true' as second parameter to the constructor of the event and see if that helps:

    private function handleDeleteClick (event: MouseEvent): void
    {
    dispatchEvent (new DeleteFavoriteEvent (myData.carNumber, true));
    }

    Now I don't know if it's appropriate way to atchieve your goal (whatever it is). In my opinion, the stuffing out of your custom to the display list events is not applausable. But that's just my opinion after all.

  • My calendar retains the events for a month, but when I look back over the past months, only recurring and default events are preserved.  I have a bad memory and I want that all events held on my calendar.  How can I do this?

    My calendar keeps events a month, but when I think back several months, only recurring and default events are preserved.  I have a bad memory and want to keep all the events, I put on my calendar for a year.  How can I do this?

    Go to settings > Mail, content, timing and you should see an option for synchronization. Make sure that you put in all the events if you want to keep past events calendar

    Alternatively you can also use iCloud.com to restore calendar events that may have been accidentally deleted

    If you've accidentally deleted your calendars, reminders, or contacts of...

    I hope this helps!

  • IPS GIS 3030 event Action filter does not

    Hi guys,.

    On my 4240 and IPS IDSM2 tried applying the event action to filter this GIS were firing from the internal IP and goes on all internal IP ports. Signature continue to be reported to my respective boxes in MARCH. I tried different combinations of internal IP addresses and filter still does not work. I also moved the filter up to the first position in the list. This is the only filter out of dozens who does not work, btw.

    If someone else has a similar problem or have a solution?

    Thank you

    I think I know what is happening. Don't forget, event filters action simply removes the actions for the alarm. This particular alarm contains a few destination outside your filter IP addresses, so that actions are not taken.

  • The bean code is not activate when-custom-point-event trigger

    I wrote a java bean to read card reader Omnikey.  It works - almost.  When-custom-point-event is not fired.  Get the key of the reader in the java console, but then follows an exception.  The exeption complains, I believe, m_handler null variable in dispatchMessage() call which is what should be pulled when-custom-point-event in the form. I'm missing something minor and that everything works.  See Oracle Forms java console ATR key followed then path exception at the bottom of this post.  I have to FBean.Enable_Event.  What would be the name of the event listener?   I got the kifani of this example code: https://community.oracle.com/thread/68004------ this example isn't mention or implement a listener.  I just need to return the key and place it in a named text field: test.atr.

    a time new form instance

    FBean.Register_Bean('TEST.) CARD_READER_BEAN_AREA', 1, 'CardReader.CardReaderWrapper');

    FBean.set_logging_mode('TEST.) CARD_READER_BEAN_AREA', 1, FBEAN. LOG_ALL);

    button with when button pressed

    fbean. Invoke('TEST.) CARD_READER_BEAN_AREA', 1, 'main');

    When-custom-point-event

    DECLARE
    eventName varchar2 (30): =: system.custom_item_event;
    eventValues ParamList;
    number of eventValueType;
    tempString varchar2 (100);
    BEGIN
    IF (eventName = "CARDINFO_EVENT") THEN
    eventValues: = get_parameter_list(:system.custom_item_event_parameters);
    get_parameter_attr (eventValues, 'CARDINFO_DATA', eventValueType tempString);
    END IF;

    - Then do something with tempString...
    -for example
    -message ("payload has been: ' |") tempString);
    : test. ATR: = tempString;
    END;

    Java Bean code...

    package, card reader;

    import java.util.List;

    Javax.smartcardio import. *;

    Import oracle.forms.ui.VBean;
    Import oracle.forms.properties.ID;
    Import oracle.forms.handler.IHandler;
    Import oracle.forms.ui.CustomEvent;

    SerializableAttribute public class CardReaderWrapper extends kifani {
    Property registered under the name of the custom event
    Call it what you want...
    public static String strOut = null; used in part of the code ATR

    public static final ID CARDINFO_EVENT = ID.registerProperty ("CARDINFO_EVENT");

    Property to set the name of the parameter that contains the payload
    the event - for example your data
    public static final ID CARDINFO_DATA = ID.registerProperty ("CARDINFO_DATA");

    A reference to the Forms Manager associated with this component.
    It is used to send custom form events
    private IHandler m_handler = null;

    /**
    * Method of the oracle.forms.ui.IView class and substitute of the kifani
    * base class.  This life cycle method is called one time what forms creates a
    the instance of the JavaBean.
    *
    < B > @param Manager < /b > a reference to the handler for the JavaBean class.
    */
    {} public void init (Manager IHandler)
    Manager = m_handler;
    Super.init (Handler);
    }

    /**
    * Function to dispatch an event and the data payload
    * Return to forms
    * In this case, we use the pre-defined event and the IDs payload
    *
    @param payload < b > < /b > to return to the event data.
    */
    Private Sub dispatchMessage (String payload) {}
    try {}
    The CustomEvent = new CustomEvent (m_handler, CARDINFO_EVENT);
    m_handler. SetProperty (CARDINFO_DATA, payload);
    super.dispatchCustomEvent (this);
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    }


    the rest of your bean code follows
    and calls the dispatchMethod() method, which precedes
    to contact forms

    Public Shared Sub main (String [] args) {}

    CRW CardReaderWrapper = new CardReaderWrapper();
    Plant of TerminalFactory = TerminalFactory.getDefault ();

    CardTerminals cardTerminals = factory.terminals ();
    The list < CardTerminal > cardTerminalList;

    try {}

    cardTerminalList = cardTerminals.list ();

    for (CardTerminal cardTerminal: cardTerminalList) {}

    If (cardTerminal.isCardPresent ()) {}
    Card card;

    try {}

    map = cardTerminal.connect ("T = 0");

    card.beginExclusive ();
    } catch (CardException e) {}
    strOut = ("8"); This card but with card error
    System.out.println (strOut);
    crw.dispatchMessage (strOut);
    continue;
    }
    ATR atr = card.getATR ();

    Byte [] atrBytes = atr.getBytes ();
    System.out.println ("0" + javax.xml.bind.DatatypeConverter.printHexBinary (atrBytes));
    strOut = '0' + javax.xml.bind.DatatypeConverter.printHexBinary (atrBytes);
    card.endExclusive ();
    Card.Disconnect (true);

    crw.dispatchMessage (strOut);
    }

    }

    } catch (CardException e) {}
    System.out.println("7"); no card reader not connected? ») ;
    crw.dispatchMessage("7");

    }
    If (strOut == null) {}
    System.out.println("9");
    crw.dispatchMessage("9");
    }
    }


    }

    Key to Java Console ATR with the Exception

    0 3B0500026E05BA

    java.lang.IllegalArgumentException: null source

    to impossible. < init >(Unknown Source)

    to oracle.forms.ui.CustomEvent. < init >(Unknown Source)

    at CardReader.CardReaderWrapper.dispatchMessage (CardReaderWrapper.java:48)

    at CardReader.CardReaderWrapper.main (CardReaderWrapper.java:97)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

    at java.lang.reflect.Method.invoke (unknown Source)

    at oracle.forms.beans.MethodHelperPM.invokeMethod (unknown Source)

    at oracle.forms.beans.MethodPM.setProperty (unknown Source)

    at oracle.forms.ui.VBean.setBeanProperty (unknown Source)

    at oracle.forms.ui.VBean.setProperty (unknown Source)

    at oracle.forms.handler.ComponentItem.setCustomProperty (unknown Source)

    at oracle.forms.handler.ComponentItem.onUpdate (unknown Source)

    at oracle.forms.handler.JavaContainer.onUpdate (unknown Source)

    at oracle.forms.handler.UICommon.onUpdate (unknown Source)

    at oracle.forms.engine.Runform.onUpdateHandler (unknown Source)

    at oracle.forms.engine.Runform.processMessage (unknown Source)

    at oracle.forms.engine.Runform.processSet (unknown Source)

    at oracle.forms.engine.Runform.onMessageReal (unknown Source)

    at oracle.forms.engine.Runform.onMessage (unknown Source)

    at oracle.forms.engine.Runform.processEventEnd (unknown Source)

    at oracle.ewt.lwAWT.LWComponent.redispatchEvent (unknown Source)

    at oracle.ewt.lwAWT.LWComponent.processEvent (unknown Source)

    at java.awt.Component.dispatchEventImpl (unknown Source)

    at java.awt.Container.dispatchEventImpl (unknown Source)

    at java.awt.Component.dispatchEvent (unknown Source)

    at java.awt.LightweightDispatcher.retargetMouseEvent (unknown Source)

    at java.awt.LightweightDispatcher.processMouseEvent (unknown Source)

    at java.awt.LightweightDispatcher.dispatchEvent (unknown Source)

    at java.awt.Container.dispatchEventImpl (unknown Source)

    at java.awt.Window.dispatchEventImpl (unknown Source)

    at java.awt.Component.dispatchEvent (unknown Source)

    at java.awt.EventQueue.dispatchEventImpl (unknown Source)

    at java.awt.EventQueue.access$ 500 (unknown Source)

    in java.awt.EventQueue$ 3.run (unknown Source)

    in java.awt.EventQueue$ 3.run (unknown Source)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.ProtectionDomain$ JavaSecurityAccessImpl.doIntersectionPrivilege (unknown Source)

    in java.security.ProtectionDomain$ JavaSecurityAccessImpl.doIntersectionPrivilege (unknown Source)

    in java.awt.EventQueue$ 4.run (unknown Source)

    in java.awt.EventQueue$ 4.run (unknown Source)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.ProtectionDomain$ JavaSecurityAccessImpl.doIntersectionPrivilege (unknown Source)

    at java.awt.EventQueue.dispatchEvent (unknown Source)

    at java.awt.EventDispatchThread.pumpOneEventForFilters (unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForFilter (unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy (unknown Source)

    at java.awt.EventDispatchThread.pumpEvents (unknown Source)

    at java.awt.EventDispatchThread.pumpEvents (unknown Source)

    at java.awt.EventDispatchThread.run (unknown Source)

    Well... I solved this problem by making static m_handler.  Now I have another question.  I post another question...

  • 11.1.1.4.0 - inline popup: disabling the default undo action...

    Hello

    I read in Oracle JDeveloper and ADF Oracle 11g Release 1 Patch Set 3 (11.1.1.4.0): new features and bug fixes:
    "Framework for dialogue: ability to disable the default cancellation actions applied to the application of the whole web for full task flow page ran like dialog popup. inline boxes.

    I search in the current JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923, but I can't.

    Can I set this in the taskflow? Or in the when I use the taskflow in an another taskflow a define this as "-as-Run dialog box?

    Hello

    Add the following configuration of bean managed to the adfc file - config.xml:

       
        oracle$adfinternal$view$rich$dailogInlineDocument
        java.util.TreeMap
        application
        
          java.lang.String
          java.lang.String
          
            MODE
            withoutCancel
          
        
      
    

    Note that the configuration may change in the future, but for now its in a managed bean

    Frank

  • Was there a way to make the keyboard custom default mapping?

    Was there a way to make the keyboard custom default mapping?

    I mean, it is, for example, I want to disable < command > S for the record (so I don't accidentally hit him).

    Thank you!

    Hugh

    Edition > keyboard shortcuts make changes to shortcuts and save under a new name. In the drop-down list at the top choose your new set and firm. Exit and restart to seal the deal.

  • Support of Inline actionscript for custom component events

    Is it possible to support actionscript inline for custom component events?

    For example, let's say I have a custom component that distributes a refreshed event called. Is this possible via mxml to bind the event to actionscript inline? You can do this with components that come with Flex 3, but did not do with the events of custom component.

    Something like: < com:custom_component id = "cus1" refresh = "{Alert.show ("the refreshed component!") ;}}" "/ >

    You need create metadata for the event in order so that it can be accessed online, when you declare the custom component:

  • A custom in advanced actions effect switches back to default

    The old custom effects and advanced actions...

    I am trying to apply an effect to an object:

    Screen Shot 2015-05-15 at 09.29.27.png

    But when I update the action, it changes by default:

    Screen Shot 2015-05-15 at 09.29.46.png

    I tried to change the order as suggested by jmblackman in this thread: https://forums.adobe.com/thread/950517?q=advanced%20action%20custom%20effect

    But then the object will appear just without effect.

    Customization, I've done was the duration of the effect. So I don't really know if it really changes the default effect or that the duration of a custom effect is 1 second that I remember reading somewhere.

    Is there someone out there who controlled this part of Captivate?

    I use 8 Captivate by the way.

    Thank you

    Indeed, it is the flow of tedious work to make it appear in the list. But 0, 7secs won't work, too short. I really hope one day these limitations for effects by advanced actions will be done with.

  • How can I set an alert 'custom' default in iCal

    I want to get a message with his"as the reminder of events in iCal so that I can hear it on my mac and my iphone.  The default value is just a message, so I have to set a custom alert every time.  Is there a way to turn it?  Thank you. Shona

    I have the same problem.  In fact, I have also complaint that we cannot chose the default sound or tone of the alert.

    I am surprised and very disappointed.  Supposedly Apple prides itself on being friendly and easily adapted to the preferences of the user.  So, why they do not have something so simple and obvious that us leash chose our default sound alert?  Especially when we can, chose the default tone for so many other things.

    Does anyone know a way to communicate directly with someone at Apple to get an answer?

  • Capture custom ActionScript events

    I have a custom component that opens a new window with a video player in it. I need to spend a bunch of stuff in it, so there are a lot of binding expressions. I need to be able to catch up with its complete event (when the video has finished playing). But the event that I send does not work. Here is my custom component class:

    [CODE]

    <? XML version = "1.0" encoding = "utf-8"? >
    <!-this is a window pane that creates a transparent window with without system chrome (without bars, close, min, max buttons, resize stuff) that contains a single video object to be able to play videos in a folder called "video" in the root of this application. This screen is generated from the main WindowedApplication MXML using AS 3. ->
    " < = xmlns:fx s:Window ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx".
    xmlns:customComponents = "customComponents.*".
    systemChrome = "none" visible = "true" transparent = 'true' ShowStatusBar is kept = "false" width = "400" height = "300".
    >
    < fx:Metadata >
    [Event (name = "MOVIE_LOAD" type = "flash.events.Event")]
    [Event (name = "MOVIE_FINISH" type = "flash.events.Event")]
    < / fx:Metadata >

    < fx:Declarations >
    <! - Place non-visual elements (e.g., services, items of value) here - >
    < / fx:Declarations >

    < s:layout >
    < s:BasicLayout / >
    < / s:layout >

    < fx:Script >
    <! [CDATA]
    Import org.osmf.events.TimeEvent;
    [Bindable]
    public var displayScreenWidth:int = 1024;
    [Bindable]
    public var displayScreenHeight:int = 768;
    [Bindable]
    public var videoName:String;
    Note that the following two variables are set to true by default, because the screen saver goes first.
    [Bindable]
    public var muteVideo:Boolean = true;
    [Bindable]
    public var loopVideo:Boolean = true;
    So that he can play, I had to extend the reading method for the VideoDisplay to a public service.
    public void play (): void
    {
    videoDisplay.play ();
    }

    protected function dispatchMovieLoad(event:Event):void
    {
    var eventObj:Event = new Event ("MOVIE_LOAD");
    dispatchEvent (eventObj);
    }
    protected function dispatchMovieFinish(event:TimeEvent):void
    {
    var eventObj:Event = new Event ("MOVIE_FINISH");
    dispatchEvent (eventObj);
    }

    []] >
    < / fx:Script >

    < s:VideoDisplay id = 'videoDisplay' x = "0" y = "0" width = "{displayScreenWidth}" height = "{displayScreenHeight}" source = "videos / {videoName} '"
    autoPlay = "true" muted = loop "{muteVideo}" = "{loopVideo}" complete = "dispatchMovieFinish (event)" / > "
    < / s:Window >

    [/ CODE]

    When I try to catch the event, I use this code:

    [CODE]

    / * Plays a video and allows sound and turns off looping. It also sets the what to do when the video reaches completion. */
    protected function playVideo(vidName:String):void
    {
    videoScreen.addEventListener (Event.MOVIE_FINISH, loadScreenSaver);
    videoScreen.muteVideo = false;
    videoScreen.loopVideo = false;
    videoScreen.videoName = vidName;
    videoScreen.play ();
    }

    [/ CODE]

    The problem is, I get the error of the addEventListener line which reads:

    Several markers to this line:
    -1119: access to property may be undefined MOVIE_FINISH through a reference with static type class.
    -addEventListener

    I don't know how to get around this problem. When I type "addEventListener ("and press control + space bar, I see "Event.MOVIE_FINISH" on the list, citing my custom as source component. " Even if I had called it movieFinish in the component, I've seen yet "MOVIE_FINISH" for my event by using code. So, I changed the name, but I can't get rid of the error, and that's why my program does not fully compile. Any ideas?

    The first argument of addEventListener() is just a string.  You can do:

    videoScreen.addEventListener ("MOVIE_FINISH", loadScreenSaver);

  • Style inheritance custom default style

    I created a custom class that uses styles of Customs (i.e. underlineColor), I defined. I used the sample code to create a value of default style by the time classConstruct method.

    I noticed that the code example provided by adobe doesn't seem to work when you use a style tag to define only the part of the style parameter, I managed to fix the problem by checking each style setting in the construction and that those who if not existing.

    But I then hit another wall, this time the attempt use of style inheritance, according to the documents, the inherited styles are first of all check on the parent and then checked on the defined class styles, but I noticed that it doesn't seem to work, in fact if I use the classConstruct method to set the default values of style then inherited values are not used.

    I was wondering if anyone knows how to create styles with heritage values and how the method classConstruct is really used by default.

    Thank you

    Amy,

    Thanks for your help, the link you provided proves what I suspect me the class selector gets precedence on all other type selectors, witch means that if you use it to set values by default simple you break style inheritance system. It also means that the example provided by Adobe is totally false :( (I hope that someone from Adobe could confirm)

    Any ways I abandon it and tried something else, I don't know what this will do to the performance but it worked fine with legacy, what I did is to override the method value it will return values by default in the event that the super.getStyle method returns the value undefined.

  • new default event is 'holiday' schedule, not Basic. How can I change this?

    When I create a new event, the default calendar is the calendar of public holidays. I want the default to my personal base calendar. How can I change the default calendar to which events are added?

    Click the Schedule tab to display the calendar.
    Select the calendar-calendar-view pane
    Make sure that display the calendar component and calendar list are checked.
    Select the calendar in the list you want to be the default. The selected calendar will be one that is the default value when adding and event.

  • Why the basis of NOR-DAQmx for LabVIEW options are grayed out using a custom installation (with Action: Skip)?

    I try to install NOR-DAQmx Base 3.7.0 LabVIEW 2013 (LV is installed). When I try to install Standard, it does not settle for LabVIEW (only the tools common and C and USB), but gives a successful installation message.

    When I try to custom installation, all the "...". for LabVIEW 20XX"options are unchecked, dimmed and Action says 'Skip '.

    I try this on a 2011 MacBook Air 11 '' running OS 10.9. LabVIEW works very well.

    Thanks for your suggestions.

    Hello

    DAQmx Base gray if poster LabVIEW Installer is not detected on the LabVIEW support system. Did you install LabVIEW and then move it to another location?

    The LV location controls DAQmx Base is...

    / Applications / National Instruments/LabVIEW LabVIEW.app

    Thank you

    Steven T.

Maybe you are looking for