Events of browser on JDK 5 (Field2 package)

Hello guys,.

In the previous JDK (4.x), we had several classes to manage events in built-in browser, such as the implementation of the RenderingApplication interface, using the event class, etc. ; each of them a part of the package "net.rim.device.api.browser.field". But I don't know how to deal with events of browser integrated with the new package Field2 (as an example, I need to capture the event that fires when the user clicks on a link in a BrowserField, something similar to Event.EVENT_URL_REQUESTED).

Any ideas? Thank you very much.

Just fighting myself.  Where is there a good demo of this field?

In any case, I think the answer is that the links are directed to the

BrowserFieldController

more precisely the

handleNavigationRequest

method.

I created a BrowserField (bf), defined a myBrowserFieldController coming extends ProtocolController and passes these requests directly through and then created a myBrowserFieldController using myBrowserFieldController (bf), which seems to associate the controller with the BrowserField.  having done this, click on the links at the end of BrowserField upward in the method handleNavigationRequest as suggested.

Now a question for you and excuse me while I turn your son!  Have you managed to get a BrowserField to display an image.  I pointed my BrowserField what follows, which is on my SD card:


Test 2




Photo


Obviously test.png is here too.  Now, I don't see test.png when I display this, but if I click on 'Image', it will show.  Why the image is not showing when I display this html code!

Other useful tips appreciated...

Tags: BlackBerry Developers

Similar Questions

  • GlobalEventListener on the events of browser does not (does nothing)

    Hello

    I have read all the post I could find on the global event listeners, but still did not solve my problem.  I need to listen to a global event displayed by the default browser (specifically the one displayed when navigation is complete).  This works very well in the Simulator (using 5.0.0.50 9 on a 8520), but no luck on the real device (running the same specification).  My application runs as a background process.  I tried to also create a UiApplication to listen to and to inform me of world events - this also works in the Simulator, but not the camera.  Other parts of the code works fine.  I checked the permissions (my application both the browser has done everything to ALLOW).

    I use Blackberry JRE 5 with the Eclipse plugin.

    I noticed that if I put the safety on the Simulator, global browser events are no longer perceived.

    I would really appreciate help with this.

    @abhigupta: the only way I know to interact with the default browser as it uses the class HttpFilterRegistry.

    "The HTTP API (net.rim.device.api.io.http) filter allows an application save with the.
    browser as a supplier for a specific URL. When users type in the URL, the battery connection is
    rerouted to the specified application.

    I'm not aware of any other way to interact with navigation applications in a browser.

    @darthdassie

    Apologies, slipped off my mind...

  • Stop master browser EVENT ID 8021 and 8032

    I have a Windows Home Server connected to a workgroup to three other computers.  All running XP Pro with the latest updates and service packs.

    WHS is the master browser from what I can tell.  He is busy all night doing backups, and one of the machines (ALF) stops on the network, System EVENT ID 8021 and 8032 error reports.  The content of these errors is below:

    Event type: WARNING

    Event source: BROWSER

    Event category: no

    Event ID: 8021

    Date: 01/06/2010

    Time: 06:00:28

    User:                       N/A

    Computer: ALF

    Description:

    The browser could not retrieve a list of servers from the master browser of \\ALFSERVER on the \Device\NetBT_Tcpip_{AD1643BB-436A-4715-AFCF-9E5D1532A461 network}. The data is the error code.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    Data:

    0000: 000005aa

    =============

    Event type: error

    Event source: BROWSER

    Event category: no

    Event ID: 8032

    Date: 01/06/2010

    Time: 06:02:28

    User:                       N/A

    Computer: ALF

    Description:

    {The browser service failed to retrieve the backup list too many times on transport \Device\NetBT_Tcpip_{AD1643BB-436A-4715-AFCF-9E5D1532A461}. The secondary Explorer stops.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    Data:

    0000: 000005aa

    Please indicate how I can remedy this problem.  Any help would be most appreciated.

    TIA,

    Leef

    Try this link:

    "Common causes and solutions to browser event ID 8021 and 8032 on the field event ID master browsers"
       http://support.Microsoft.com/kb/135404 >

    From my experience, it is usually caused by one machine on your network with a firewall.

    "Internet firewall can prevent browsing and file sharing.
       http://support.Microsoft.com/kb/298804 >

    HTH,
    JW

  • Event Code 7001__Vista is continually locking lock

    Network list Service service depends on the network location awareness service which failed to start because of the following error:
    The dependency service or group was able to start.

    event ID 4374:
    Windows Servicing identified that package Microsoft-Windows-UIRibbon-Package-MUI-Package-sr-latn-cs-MiniLP(Update) is not applicable to this system

    HELP PLEASE

    Hello

    Run services.msc from the line start/search. The network location awareness service depends on several other services, including RPC/Dcom, TCP/IP and Network Store Interface driver. See if they are running. If not, try to restart their and restart the NLA service. Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • Where is the peripheral origin obsolete event ID 370 print spooler? Obsolete device can be removed from the operating system?

    I get a recording of event ID 370, about once every four days, what about the EPSON Stylus COLOR 460 printer ESC/P 2. I recognize the device as an old device, which is no longer necessary, that I thought was completely uninstalled years ago and I am slightly surprised to see that the tracks still on the computer, or not, as it appears.

    It is that I don't know if this record event was caused by a device driver package or the registry keys and values? Is the event ID 370 caused by or for both (device driver package / registry values) being obsolete?

    I have the old appliance any longer, so it seems sensible to remove traces of the system and in turn eliminate the causes of event ID 370. However, to find all traces causing the registration of the event? What traces can be removed without problem?

    1 today, this device does not show as a device available in display devices and printers to devices and printers.

    2, I was unable to see a name similar unused volume in trying to remove the old device (when looking faded icons in the branches of the Device Manager with emphasis on -pilot no Plug and Play, other devices, portable devices, Port (COM & LPT), Printers).

    3 reveals regedit there are registry keys and values in the registry that reference naked always at "EPSON" searches for the word. Yes, I have reason to assume that these registry keys and values have caused event ID 370? Is it safe to delete the registry entries, or should the registry key entries to receive new values? (I don't want the deletion of these registry values to cause instability in the print spooler.)

    Event ID 370 Description:
    The print spooler could not regenerate printer driver information for driver Epson Stylus COLOR 460 ESC/P 2 for Windows x 64 environment. Win32 system 2114 error code (0 x 842). This can happen after an upgrade of the operating system or due to loss of data on the hard drive.

    Search for "EPSON" in regedit concludes:
    HKLM\Software\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\PCMCIA #SEIKO_EPSON-WWB101EN20-357A\ {in} {KEY} 13.10.2011, 13:18 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\PCMCIA #SEIKO_EPSON-WWB101EN20-357A\
    HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\PCMCIA #SEIKO_EPSON-WWB101EN20-357A\ {in} {KEY} 13.10.2011, 13:18 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\PCMCIA #SEIKO_EPSON-WWB101EN20-357A\
    HKLM\SYSTEM\ControlSet002\Control\Print\Environments\Windows x64\Drivers\Version-3\Epson Stylus COLOR 460 ESC/P 2 {in} {KEY} 13.10.2011, 13:54 HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Print\Environments\Windows x64\Drivers\Version-3\Epson Stylus COLOR 460 ESC/P 2
    HKLM\SYSTEM\ControlSet003\Control\Print\Environments\Windows x64\Drivers\Version-3\Epson Stylus COLOR 460 ESC/P 2 {in} {KEY} 13.10.2011, 13:54 HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\Print\Environments\Windows x64\Drivers\Version-3\Epson Stylus COLOR 460 ESC/P 2
    HKLM\SYSTEM\ControlSet004\Control\Print\Environments\Windows x64\Drivers\Version-3\Epson Stylus COLOR 460 ESC/P 2 {in} {KEY} 13.10.2011, 13:54 HKEY_LOCAL_MACHINE\SYSTEM\ControlSet004\Control\Print\Environments\Windows x64\Drivers\Version-3\Epson Stylus COLOR 460 ESC/P 2
    HKLM\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows x64\Drivers\Version-3\Epson Stylus COLOR 460 ESC/P 2 {in} {KEY} 13.10.2011, 13:54 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows x64\Drivers\Version-3\Epson Stylus COLOR 460 ESC/P 2

    It seems that traces of information about devices are still present in the registry (invalid entries), which causes the event. Run a registry cleaner will solve this problem, but please visit the following link before continuing:

    http://Windows.Microsoft.com/en-in/Windows/are-registry-cleaners-necessary#1TC=Windows-7

  • Browser notification

    Is there a way to be informed of the events of browser in the app itself? Not of a field of browser, but from the built-in browser.

    If you are developing for BBOS, it * may * be some world events that fires but you would need to write a JavaScript extension to the native Java layer to integrate with the API. It depends on the types of events you are looking for. I think no more (navigation, URL changes, etc.) would be broadcast and you would not be able to recover additional information (i.e., what is the URL.)

    Generally, what does a user in one application remains private from other applications, if not, you can get in some pretty big security issues.

  • 4.6 browser field API

    I could get the last browser API 5.0 Field2 working in my java application... but my curve is not compatible 5.0 its 4.6

    SO I tried to use the API to the browser of 4.6... 2 problems

    1. I'm not able to find an easy to follow example... I'm not a pro

    2. in case I deploy it on my curve, that I have to get the code... sign to use the application on my phone?

    can someone help pls... any help is appreciated.

    Thank you.

    Kind regards

    Kedar

    I suggest that you are very familiar with the facilities offered here:

    www.blackberrydeveloper.com

    Especially the resources section - you will find some useful stuff in there, including this:

    http://NA.BlackBerry.com/eng/developers/javaappdev/codekeys.jsp

    which explains how to get key signing and this:

    http://www.BlackBerry.com/DevMediaLibrary/view.do?name=HowtoembedtheBrowser

    explains how to integrate a browser field in your application by using OS 4.6 and earlier.

  • 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.

  • Custom in the dmg bundle package icons

    Hello

    I created an ant script to create a Setup program for my application JavaFx:

    <?xml version="1.0" encoding="UTF-8"?>
    <project name="app-javafx" default="do-deploy" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant">
        <property name="java8.jdk.home" value="/Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home" />
        <property name="javafx.tools.ant.jar" value="${java8.jdk.home}/lib/ant-javafx.jar" />
        <target name="init-fx-tasks">
            <taskdef resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.tools.ant" classpath="${javafx.tools.ant.jar}" />
        </target>
        <target name="setup-staging-area">
            <delete dir="externalLibs" />
            <delete dir="project" />
            <delete dir="projectRefs" />
    
            <mkdir dir="externalLibs" />
    
            <copy todir="externalLibs">
                <fileset dir="..\lib">
                    <include name="**.jar" />
                </fileset>
            </copy>
    
            <!--LIBRERIE PERSONALIZZATE-->
            <copy todir="externalLibs">
                <fileset dir=".">
                    <include name="**.jar" />
                </fileset>
            </copy>
    
    
            <mkdir dir="project" />
            <copy todir="project">
                <fileset dir="generated-sources">
                    <include name="gfx/**" />
                </fileset>
            </copy>
            <copy todir="project">
                <fileset dir="..\src\main">
                    <include name="resources/**" />
                </fileset>
            </copy>
            <copy todir="project">
                <fileset dir="..\src\main">
                    <include name="java/**" />
                </fileset>
            </copy>
    
            <mkdir dir="projectRefs" />
        </target>
        <target name='do-compile'>
            <delete dir="build" />
            <mkdir dir="build/src" />
            <mkdir dir="build/libs" />
            <mkdir dir="build/classes" />
    
            <!-- Copy project-libs references -->
            <copy todir="build/libs">
                <fileset dir="externalLibs">
                    <include name="**.jar" />
                </fileset>
            </copy>
    
            <!-- Copy project references -->
    
            <!-- Copy project sources itself -->
            <copy todir="build/src">
                <fileset dir="project/gfx">
                    <include name="**/*" />
                </fileset>
            </copy>
            <copy todir="build/src">
                <fileset dir="project/resources">
                    <include name="**/*" />
                </fileset>
            </copy>
            <copy todir="build/src">
                <fileset dir="project/java">
                    <include name="**/*" />
                </fileset>
            </copy>
    
            <javac fork="true" executable="${java8.jdk.home}/bin/javac" includeantruntime="false" source="1.8" target="1.8" srcdir="build/src" destdir="build/classes" encoding="UTF-8">
                <classpath>
                    <fileset dir="build/libs">
                        <include name="*" />
                    </fileset>
                    <filelist>
                        <file name="${java8.jdk.home}/jre/lib/jfxrt.jar" />
                    </filelist>
                </classpath>
            </javac>
    
            <!-- Copy over none Java-Files -->
            <copy todir="build/classes">
                <fileset dir="project/gfx">
                    <exclude name="**/*.java" />
                </fileset>
                <fileset dir="project/resources">
                    <exclude name="**/*.java" />
                </fileset>
                <fileset dir="project/java">
                    <exclude name="**/*.java" />
                </fileset>
            </copy>
    
    
        </target>
        <target name="do-deploy" depends="setup-staging-area, do-compile, init-fx-tasks">
            <delete file="dist" />
            <delete file="deploy" />
        
            <mkdir dir="dist" />
            <mkdir dir="dist/libs" />
    
            <copy todir="dist/libs">
                <fileset dir="externalLibs">
                    <include name="*" />
                </fileset>
            </copy>
    
            <fx:resources id="appRes">
                <fx:fileset dir="dist" includes="app-javafx.jar" />
                <fx:fileset dir="dist" includes="libs/*" />
            </fx:resources>
    
            <fx:application id="fxApplication" name="app" version="3.0" mainClass="it.client.Main" preloaderclass="it.SplashScreenUi" toolkit="fx" />
    
            <fx:jar destfile="dist/app-javafx.jar">
                <fx:application refid="fxApplication" />
                <fileset dir="build/classes">
                </fileset>
                <fx:resources refid="appRes" />
    
    
                <manifest>
                    <attribute name="Implementation-Vendor" value="Vendor" />
                    <attribute name="Implementation-Title" value="app" />
                    <attribute name="Implementation-Version" value="3.0.0" />
                </manifest>
            </fx:jar>
    
    
            <mkdir dir="deploy" />
            <!-- Need to use ${basedir} because somehow the ant task is calculating the directory differently -->
            <fx:deploy outdir="${basedir}/deploy" outfile="app-javafx" nativeBundles="all" height="768" width="1024" verbose="true">
                <fx:info title="app" vendor="Vendor" copyright="Copyright Tutti i diritti riservati" />
                <fx:application refId="fxApplication" />
                <fx:resources refid="appRes" />
    
                <fx:preferences shortcut="true" install="true" menu="true" />
    
                <fx:permissions elevated="true" />
    
    
                <!-- Custom JVM setup for application -->
                <fx:platform>
                    <fx:jvmarg value="-Xmx1024m" />
                </fx:platform>
            </fx:deploy>
        </target>
    </project>
    

    During compilation, I see:

    Using base JDK at: /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk
      Using default package resource [Bundle config file] (add package/macosx/Info.plist to the class path to customize)
      Using default package resource [icon] (add package/macosx/app.icns to the class path to customize)
    Creating app bundle: /Users/Utente/Documents/workspaceServer/javafx/target/deploy/bundles/app.app
    Config files are saved to /var/folders/q6/vmt_h0tx3rgdbt_4h2_2f3780000gn/T/build6635061168386632777.fxbundler/macosx. Use them to customize package.
    fxbund
    ler/macosx. Use them to customize package.
    

    So I get files in the temp directory and I copied them to my target of the project directory. Unfortunally javafxbuilder not use to customize the package so I think that the path where I put the files that will not.

    Can you help me?

    Thank you

    Resources are found do sniff classpath: your classpath is missing 'dot '.

    Instead of

    Please try to

    Reference: deployment of JavaFX Applications: Application independent packaging | 2 JavaFX tutorials and Documentation

  • How to make a horizontal bar stretch to fill the width of the browser outside the wrappe always

    When I get 100% in the width field, that it will fill the wrapper which is 1000px, I want just some horizontal bars to fill the width of the browser at any time.

    Example is at http://www.hollywoodunderground.com - bar under the header/links and the bar above the footer. Trying to figure out how to get both of those always fill the width of the browser while keeping the original packaging for all other content. I can just find a way to get these 2 bars outside of the package in a new package, or can I do it in the wrapper?

    You need to configure your build slightly differently.

    You will place the logo and icons of social media in their own

    the value of 1000px, margin 0 auto to Center horizontally

    Then you would have your black bar

    the value of width: 100% (no need to set even if, as it will fill the available space).

    Then you'd have your youtube videos

    the 1000px, auto margin 0 value.

    Then another black bar

    :

    Get it?

  • Need help with custom class main event to a class not related.

    Hey guys,.

    I am new to Flash and not very well with OOP.  I did it pretty far with google and hidden, but I was pulling my hair on this problem for a day and everything I try get an error or just simply don't touch the listener.

    I'm trying to get my main class to send an event customized to an unrelated class called BigIcon.  The rest of the code works fine, it's just the addEventListener and dispatchEvent method that does not work.

    I put in the codes below.  Let me know if something else is needed to solve the problems.  Thank you!

    Main.As

    package 
    {
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
    
    
        public class Main extends MovieClip
        {
            var iconLayer_mc:MovieClip = new MovieClip();
    
            public function Main()
            {
                Spin_btn.addEventListener(MouseEvent.CLICK,fl_MouseClickHandler);
    
                addChildAt(iconLayer_mc,0);
                placeIcons();
            }
    
            function placeIcons():void
            {
                var i:int;
                var j:int;
    
                for (i = 0; i < 4; i++)
                {
                    for (j = 0; j < 5; j++)
                    {
                        //iconString_array has the names of illustrator objects that have been converted to MovieClips and are in the library.
                        var placedIcon_mc:BigIcon = new BigIcon(iconString_array[i][j],i,j);
                        iconLayer_mc.addChild(placedIcon_mc);
                    }
                }
            }
    
            function fl_MouseClickHandler(event:MouseEvent):void
            {
                dispatchEvent(new Event("twitchupEvent",true));
            }
        }
    }
    

    BigIcon.as

    package 
    {
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.utils.getDefinitionByName;
    
        public class BigIcon extends MovieClip
        {
            private var iconImage_str:String;
            private var iconRow_int:int;
            private var iconColumn_int:int;
    
            public function BigIcon(iconImage_arg:String, iconRow_arg:int, iconColumn_arg:int)
            {
                iconImage_str = iconImage_arg;
                iconRow_int = iconRow_arg;
                iconColumn_int = iconColumn_arg;
    
                this.addEventListener(Event.ADDED_TO_STAGE, Setup);
    
            }
    
            function Setup(e:Event)
            {
    
                this.y = iconRow_int;
                this.x = iconColumn_int;
    
                var ClassReference:Class = getDefinitionByName(iconImage_str) as Class;
                var thisIcon_mc:MovieClip = new ClassReference;
                this.addChild(thisIcon_mc);
    
                addEventListener("twitchupEvent", twitchUp);
            }
    
            function twitchUp(e:Event)
            {
                this.y +=  10;
            }
        }
    }
    

    This could be a bit abstract to understand, but think about what you assign event listeners to when you implement the.

    When you want to have a function to respond to a button that is clicked, what do you attribute the event listener to?  She is assigned to the object that generated the event, the button.

    In your case the main class generates the event.

    You could take a different route with this, where if all your BigIcon objects were stored in a table in the main class, you could loop through that array and manage your contractions without having to have every BigIcon object involved in this transformation.

  • Broadcasting of events

    Here are three spun: my main application that is waiting for a button click in a child component. ReturnDataEvent.as which is a class of event custom; and Demo.mxml which is a component that is used to send an event when the user clicks the button.

    My problem is I want to learn how to listen to an event of a forwarding anywhere in my set of files. For example, I would like to listen to the event sent in another component which does not have a reference to the demo.

    Similarly, I would like to listen to the event on the main file rather than the button:

    this.addEventListener (Demo.BUTTON_CLICKED, buttonClicked)

    Instead of

    button.addEventListener (Demo.BUTTON_CLICKED, buttonClicked)

    I don't really want to do this, but I'm curious to know if it is possible? Is this possible? I suspect it is but do not know how to think.

    Thank you!

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="absolute"creationComplete =" init () "> "
    < mx:Script >
    <! [CDATA]
    private var button: demo;
    private function init (): void {}
    button = new demo;
    this.addChild (button);
    button.addEventListener (Demo.BUTTON_CLICKED, buttonClicked)
    }
    private void buttonClicked(e:ReturnDataEvent):void {}
    trace ("you have returned values:"+ e.data1 +"" + e.data2);
    }
    []] >
    < / mx:Script >

    < / mx:Application >

    Demo.MXML

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Canvas ' http://www.Adobe.com/2006/MXML " >
    < mx:Script >
    <! [CDATA]
    Import mx.events.FlexEvent;
    public static const = "buttonClicked" BUTTON_CLICKED:String
    Creating the metadata to be used with the listener
    [Event (name = BUTTON_CLICKED, type = "events. ReturnDataEvent")]
    protected function button1_clickHandler(event:MouseEvent):void {}
    Instantiate the class of events and access to the data to be returned
    var eventObj:ReturnDataEvent = new ReturnDataEvent (BUTTON_CLICKED);
    eventObj.data1 = "aaa"
    eventObj.data2 = "bbb";
    dispatchEvent (eventObj);
    }
    []] >
    < / mx:Script >
    < mx:Button label = "Click me!" click = "button1_clickHandler (event)" / >
    < / mx:Canvas >

    ReturnDataEvent.as

    package {}
    import flash.events.Event;

    SerializableAttribute public class ReturnDataEvent extends Event {}
    public var data1:String;
    public var data2:String;

    public void ReturnDataEvent(type:String) {}
    Super (type);
    }
    override public function clone (): Event {}
    var eventObj:ReturnDataEvent = new ReturnDataEvent (type);
    eventObj.data1 = data1;
    eventObj.data2 = data2;
    return eventObj.
    }
    }
    }

    Post edited by: SiHoop

    You can send an event almost anywhere, as long as it is

    an IEventDispatcher and one other code is listening to this thing, but the

    key point is still that of the point of view OO, who is breaking

    encapsulation and maybe not what you want in the long term.

    There are many exceptions, as when random things like places

    Register of radio buttons with a radiobuttongroup and send through the group.

  • AutoCreate task to increase business event oracle.apps.jtf.cac.task.createTask?

    Hi all!

    How can I check if oracle.apps.jtf.cac.task.createTask event is raised when a task has been created?
    This event fires whenever a task is created regardless of what process created the task? I mean if the task was created automatically when SR is created or if the task is created manually?

    How can I manually test this professional event?

    There are in our environment (EBS 11.5.10.2) following up to this professional event subscriptions:
    CS_SR_SECURITY_UTIL. SECURE_SR_TASK_OWNER
    jtf_task_wf_subscribe_pvt.create_task_notif_subs
    CS_SR_CHILD_AUDIT_PKG.CS_SR_Audit_ChildEntities

    I added the subscription xxcsf_002_wf_subscribe_pkg.create_task, calling (create_task) function in a DB package (xxcsf_002_wf_subscribe_pkg). The first thing I do, first and foremost, is logg in a custom table of the event of input in the function of package, but then which task is created in the form of "Enter the Service to request" nothing is recorded in the custom table.

    What am I doing worng? Thanks in advance for the help!

    Patricia

    Look at the wf_deferred table (assuming that you use asynchronous process)

    Select count (*) in wf_deferred
    where corrid'art = 'APPS:oracle.apps.jtf.cac.task.createTask';

    If it returns the lines, you have events are triggered. You can take a look at the user_data and the State.

    Thank you
    Claire

  • Audio latency AS3 solution?

    Hi all

    I have a large MP3 file (about 2 minutes), I load dynamically. I can play the sound very well, except that:

    I need to play pieces of sound, IE from 2 to 5 seconds and later from 6 to 10 seconds, etc.. Using the sound.play(2 * 1000) and sound.play(6 * 1000) I really high latencies, causing the first second or so to not be played.

    I came up with a class that feeds samples to the sampledata event. Browsing the internet told me that a buffersize of 2048 will reduce latency to 30ms on average, which is fine.

    package

    {

    import flash.events.SampleDataEvent;

    import flash.media.Sound;

    import flash.media.SoundChannel;

    import flash.utils.ByteArray;


    public class PlaySound

    {

    private var _sound:Sound = new Sound();

    private var _originalSound:Sound = new Sound();

    private var _samples:ByteArray;

    private var _startTime:Number;

    private var _endTime:Number;

    private var _position:Number;

    private var _bufferSize:int = 2048;

    private var _soundChannel:SoundChannel;

        

    public function {PlaySound(sound:Sound):void}

    _originalSound = a;

         }


    public void play (startTime:Number, endTime:Number):void { }

    _startTime = startTime * 1000;

    _position = _startTime;

    _endTime = endTime * 1000;

    _sound.addEventListener(SampleDataEvent.SAMPLE_DATA,onSampleDataEvent);

    _soundChannel = _sound.play (_startTime);

         }


    public function stop():void {}

    If (_soundChannel! = null) { }

    _sound.removeEventListener(SampleDataEvent.SAMPLE_DATA,onSampleDataEvent);

    _soundChannel.stop ();

    _soundChannel = null;

              }

    }


    public void onSampleDataEvent(event:SampleDataEvent):void {}

    var bytes: ByteArray = new ByteArray();

    var len:int = _originalSound.extract (bytes, _bufferSize, event.position);

    event.data.writeBytes (bytes);

              _position += len;

         }

    }

    }

    So I spend the (big) mp3 original sound in the constructor and then use this noise to feed the _sound who plays.

    (1) does it matter what are the original specifications of MP3 sound, or must they be 44 kHz/128 Kbps? When I use the sound.extract method, flash converts spec another 44 kHz/128 kbit/s or * must * I also pass in a mp3 player with the same features?
    I wish I could load an original mp3 with any record and therefore consume less bandwidth.

    (2) I can't convert the start/end time of the right position on the right position in the bytearray stream. Does anyone have a solution? How is it calculated? (Even if the original sound is not 44 kHz/128 kbit/s)?

    If someone has another solution to play the pieces on a bigger file mp3 without latency, please tell me

    Thank you!

    Ronaldo

    (1) according to the documentation, Flash will be resample files to these specifications, if they do not already exist. I have weirdness with bit depths that are not powers of two, but that might have been something in my code.

    (2) basically you just multiply by the sampling rate to get the shift of position. He is always 44100, as extraction converts the sampling frequency. So if your MP3 is 60 seconds and you want to extract the mid-point, the offset would be 30 * 44100.

    There will always be a latency, but you can calculate and make adjustments to offset according to the needs.

  • Go to the dialog box

    How to load a flash image using the Browse dialog box.

    package {}
    import flash.display.Sprite;
    import flash.events. *;
    import flash.net.FileFilter;
    import flash.net.FileReference;
    import flash.net.URLRequest;

    SerializableAttribute public class FileReferenceExample extends Sprite {}
    private var uploadURL:URLRequest;
    private var file:FileReference;

    public void FileReferenceExample() {}
    uploadURL = new URLRequest();
    " uploadURL.url = ' http://localhost/ ";
    file = new FileReference();
    configureListeners (file);
    leader. Browse (getTypes ());
    }

    private void configureListeners(dispatcher:IEventDispatcher):void {}

    dispatcher.addEventListener (Event.SELECT, selectHandler);

    }

    private void getTypes (): Array {}
    var allTypes:Array = new Array (getImageTypeFilter ());
    return allTypes;
    }

    private void getImageTypeFilter (): FileFilter {
    return new FileFilter ("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.JPEG; *.gif, *.png");
    }
    private void selectHandler(event:Event):void {}
    var file:FileReference=FileReference(event.target);
    trace ("selectHandler: name =" + file.name + "URL =" + uploadURL.url);
    file.upload (uploadURL);
    }
    }
    }


    using this code, I choose image but to load it into flash back alone not the full path name

    In my limited knowledge, an image can be uploaded to a server using flash and a side script server.

    The Filereference class help find us the image switch to a side script server, this wiil upload the image that the user has selected to download. The path of the

    folder where the images to be uploaded are defined by us and the record have permission to download the files it contains.

    Using the path and the name of the image, we are able to load the picture in our film using the Loader class.

Maybe you are looking for

  • Can I use Siri to open applications?

    I would like to know if I can use Siri to open applications that are on my launch pad & /or dock.  Which doesn't seem to be a useful feature on a Mac Pro.

  • uncontrollable iPhone - ghost key

    Hello Here you can see a video of my iphone 6 which is out of control. It's like a ghost touches! https://youtu.be/nhyjH38wA4g My phone have between 1 and 2 years, so Apple is ok to say that the phone is in excellent condition (no shock, as if it is

  • Is there a way to get the synchronization (in sync now) on Firefox Android?

    I logged on Firefox Sync on my desk and two mobile devices and everything seems ok, except that on mobile devices synchronization that happens to intervals rather long. I have the button "sync" in the toolbar of my office; is there something similar

  • Please help - installation Color Laser Jet 1600 without disc printer

    HI -. Really hoping that someone can put this issue to bed for me, because I spent all afternoon trying to solve this one.  I work in an elementary school as the Co-ordinator CT, one of the teachers what is the printer of the staff to settle on his l

  • Intereaction of Asic with Nand memory

    Hi all I'm new to this forum. I will start my display by basic heading. Interation of ASIC with nand. I'm working e.mmc device Hi has a knowledge base on this subject. How can I get more information about it. How to create a topic in this form. Pleas