Priority queues for external loading

Hi, I was wondering if there was a way to load multiple external files (via the Loader class) in parrallel, but with a priority queue. That is, I want to load 5 images, but I want image 1 loaded as fast as possible.
Obviously I could make my own load queue, but if I do that the loading process could easily get hung up on loading a single image.
I want to be able to run multiple Loader.load()s in parrallel, but assign priority weighting to each of the files.

i don't know of any way to pause a loading file with flash.   in as3 once a file starts to load you can either let it complete loading or you can stop its load.  if you stop its load and then later want to continue, you must restart from the begining.  i don't believe flash has any way to complete the load of a partially downloaded file.

Similar Messages

  • Drag and Drop for Externally Loaded Videos

    Good day to all. Thanks for viewing. My problem is that im trying to click and drag videos externally loaded onto the flash stage. Apparently normal drag-drop methods won't make it work Anyway to work around this error? Thanks! Here's what i've came up with so far.
    var videoConnection:NetConnection = new NetConnection();
    videoConnection.connect(null);
    var videoStream:NetStream = new NetStream(videoConnection);
    videoStream.play("video.flv");
    var video:Video = new Video();
    video.attachNetStream(videoStream);
    addChild(video);
    video.addEventListener(MouseEvent.MOUSE_DOWN, dragMovie);
    video.addEventListener(MouseEvent.MOUSE_UP, dropMovie);
    function dragMovie(event:MouseEvent):void
      video.startDrag();
    function dropMovie(event:MouseEvent):void
      video.stopDrag();

    var mySprite:Sprite = new Sprite();
    mySprite.addChild(video);
    addChild(mySprite);
    Then add listeners that you added to video -  to mySprite.

  • Priority queue for voice/audio traffic

    Hi,
    Still in limbo after multiple discussions with our vendors, TAC and in general other engineers, so starting a thread here.  In the process of rolling out enterprise audio, with the intent to prioritize and allocate 25% of link bandwidth for voice class.
    Our config snapshow is as follows -
    policy-map qos-wan-out
     class dscp-voice-lan
      set ip precedence 5
      priority percent 25
    I understand that
    -DURING congestion, this will ensure voice gets a maximum of 25% and is dequeued first due to the priority setting
    -And during NO congestion, the voice traffic will be dequeued before other traffic, but at the same time, can go over 25% as QoS kicks in only during congestion.
    I am seeing some contradictory results in that we are having high packet loss if we exceed 25% even when the link is less than 40% utilized. I doubt the above CE configurations are an issue. But, wanted to run this by this group.
    Alternate theory is that with the above configurations, our traffic is exiting fine - but the service provider who is using priority class queuing within their MPLS network may be capping the bandwidth at 25% at all times (with or without congestion).
    thanks

    Hi Bro
    Maybe the incoming voice packets into your FW isn't marked with ef. For this reason, you don't see anything at all. I hope the QOS isn't tied to a subinterface, as QOS is only supported on the main interface itself. What you're doing here is QoS Configuration based on DSCP. You could refer to this URL for troubleshooting purposes.
    http://www.cisco.com/en/US/products/ps6120/products_configuration_example09186a008080dfa7.shtml#tab4
    Did you marked on the Cisco Catalyst switchports, which ports are ef?

  • Multiple Priority Queues?

    All,
    I have read that one may configure up to 4 priority queues, not using the Modular QOS CLI (e.g. "priority-list" command, etc).
    For the Modular QOS CLI, PQs are implemented using LLQ ("priority" command), and for this one can only specify a single PQ (though multiple classes may be mapped to this single PQ).
    What I would like to do is to have 2 distinct PQs (as should be possible in the non modular cli case) and also use CBWFQ (e.g. "bandwidth" command) for the rest of the clases. Basically I want to have EF in one PQ, another "special" class in the other PQ (lower priority than EF), and AF classes using CBWFQ.
    Does anyone know of a way to combine the 2 methods (modular and non modular CLI) of configuring LLQ in order to implement such a configuration? I was encouraged to see that heirarchical policies are supported but so far I have not found a way to specify multiple PQs as well as CBWFQ.
    Thanks much!

    There has been alot of discussion on this subject. But it seems that while IOS will allow you to configure multiple priority queues, its not really possible for it to deliver multiple priority queues.
    Which, if you think about it makes sense. A priority queue is just that, it takes priority over all other queues. If you configue 2 priority queues, how would you then then tell the scheduler that these are both priority, but the 2nd is less of a priority?
    One way you can accomplish what you're trying to do:
    1. Create a single "priority" queue for your EF traffic
    2. Use "bandwidth" to guarantee bandwidth to your special class.
    3. Put your AF traffic in class-default and let it "fair-queue".
    Something like this:
    policy-map foo
    class EF
    priority 100
    class Special
    bandwith 50
    class class-default
    fair-queue
    -Geoff

  • About priority queue

    I tried to use priority queue which I saw on the JavaTM 2 Platform
    Standard Ed. 5.0(on the web),but when I tried to create a priority queue for my work(PriorityQueue myQ = new PriorityQueue();)the compiler complaint about that,
    "C:\Program Files\Xinox Software\JCreator LE\MyProjects\Trypq\Trypq.java:7: cannot resolve symbol"
    and then I found that I can not find this priority queue class in JavaTM 2 Platform Std. Ed. v1.4.2,so what's wrong with this 2 different API,does it mean that I have to create the priority queue class by myself,because my work can only base on JavaTM 2 Platform Std. Ed. v1.4.2???
    can you help?
    thanks!

    The feature was added in the latest release of Java. If you want to use it, you have to have the latest release.
    Some of the concurrency features added in 1.5 (J2SE 5.0) were taken from Doug Lea's util.concurrent library, but I don't believe this was one of them. For those that were you have the option of using Doug's excellent library with pre 1.5 code.
    You could also write your own, but I wouldn't particularly recommend it if you can upgrade to J2SE 5.0
    Dave.

  • CSS for Dynamically Loaded External Text

    I'm externally loading text from a .txt file. I need to format that file using CSS. I've got the CSS file set up and everything. I've tried every tutorial I can find to try and load the CSS, but nothing is working.
    Here is the script for loading the text:
    var textLoader:URLLoader = new URLLoader();
    var textReq:URLRequest = new URLRequest("content_files/commissions.txt");
    textLoader.load(textReq);
    textLoader.addEventListener(Event.COMPLETE, textLoadComplete);
    function textLoadComplete(event:Event):void
        commissionscontent.htmlText = textLoader.data;
        commissionscontent.htmlText = textLoader.data.split("\r\n").join("\n");
            if (commissionscontent.maxScrollV <= 1){
            scrollBox_mc.visible = false;
            scrollLine.visible = false;
        else {scrollBox_mc.visible = true;
              scrollLine.visible = true;}
    Can anyone help me to load the CSS for this?? I'm really new to Flash and have just been teaching myself, except for now I've hit a wall and I am so incredibly frustrated that it's not even funny.

    var css_loader:URLLoader = new URLLoader();
    var textLoader:URLLoader = new URLLoader();
    var my_css:StyleSheet = new StyleSheet();
    var my_txt:TextField = new TextField();
    css_loader.load(new URLRequest("style.css"));
    css_loader.addEventListener(Event.COMPLETE, onCSSComplete);
    function onCSSComplete(e:Event):void {
        my_css.parseCSS(e.target.data);
        textLoader.load(new URLRequest("commissions.txt"));
    textLoader.addEventListener(Event.COMPLETE, textLoadComplete);
    function textLoadComplete(e:Event):void {
        my_txt.styleSheet=my_css;
        my_txt.htmlText=e.target.data;
        addChild(my_txt);
        my_txt.width=300;
        my_txt.autoSize=TextFieldAutoSize.LEFT;
        my_txt.wordWrap=true;

  • Load username and password for external application?

    How to load username and password for external application?
    For each user, we should take its Portal username and password for one specific external application. How to do that ?
    Regards.

    ABSOLUTLY YES !!!!
    We already know the external application login information for each user and we want to by pass this user task. (Specially because the user itself doesn't know its username/password for the external appli). In fact we are trying to integrate IStore product to Portal by using this mechanism.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Kamalendu Biswas ([email protected]):
    If you define an external application then SSO users can populate user information by themselves.
    Are you syaing that you want to populate user information automatically (bulk lodad)?<HR></BLOCKQUOTE>
    null

  • [svn] 3539: Updated RadioButtonGroup to account for recent changes to LayoutManager priority queue .

    Revision: 3539
    Author: [email protected]
    Date: 2008-10-09 10:58:31 -0700 (Thu, 09 Oct 2008)
    Log Message:
    Updated RadioButtonGroup to account for recent changes to LayoutManager priority queue. The order that a RadioButtonGroup was traversed was always dependent on what order that the radio buttons properties were validated. Since this assumption no longer holds true, we are now very specific about how the group orders the RadioButtons (breadth-first for consistency with Flex 2 and Flex 3).
    Check-in Tests: Pass
    Mustella Tests: (RadioButton, RadioButtonGroup) Pass
    Reviewer: Glenn
    QA: Yes
    Bugs: SDK-17248
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17248
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.as

    Revision: 3539
    Author: [email protected]
    Date: 2008-10-09 10:58:31 -0700 (Thu, 09 Oct 2008)
    Log Message:
    Updated RadioButtonGroup to account for recent changes to LayoutManager priority queue. The order that a RadioButtonGroup was traversed was always dependent on what order that the radio buttons properties were validated. Since this assumption no longer holds true, we are now very specific about how the group orders the RadioButtons (breadth-first for consistency with Flex 2 and Flex 3).
    Check-in Tests: Pass
    Mustella Tests: (RadioButton, RadioButtonGroup) Pass
    Reviewer: Glenn
    QA: Yes
    Bugs: SDK-17248
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17248
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.as

  • Listen for a variable in externally-loaded interactive swf

    Hi,
    I'd like to set a variable inside an externally-loaded swf created in Flash Professional that is playing inside a Flex 4 application.  The swf will "signal" the end of an interaction (using a s:SWFLoader).  Once the variable is set (by arriving at a particular frame inside the externally-loaded swf, I'd like my Flex 4 application to "know" and take action to unload the swf and then "navigate" to another state with a new Flex-based interraction.
    Perhaps a step-based illustration will be more clear:
    1.  Clicking a textfield inside a Flex 4 application loads a custom component that uses an <s:SWFLoader> to load an external SWF that includes buttons to navigate through frames in a "slideshow" fashion.
    2.  Once the end of the "slideshow" is reached, a variable is instantiated by
                   var swfEND:String = "swfDne";
    3.  I'd like my Flex 4 calling application to know when this event occurs, then I'd like the sef to unload and Flex to goto another state.
    Any help, particularly on how to detect events in external swfs from Flex will be greatly appreciated.
    Thanks,
    Doug

    wanaryd,
    > In my main timeline on frames this variable is changed
    > (color = "red";) When the main timeline changes to a
    > different location a new color is set. How do I make the
    > movie clip listen for the color variable to change?
    When the timeline changes to a different location, something
    in that new
    location changes the value of your color variable -- so why
    not just update
    the code in that location (or those locations) and have them
    perform the
    functionality that depends on the variable's value?
    In any case, you should be able to use the Object.watch()
    method.
    Instead of creating a simple variable, create an instance of
    the Object
    class, then use the Object.watch() method to keep an eye on
    things.
    http://my.opera.com/darylducharme/blog/2007/02/13/the-object-watch-method
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • [svn] 3497: Changing internal datastructure utilized by the LayoutManager' s priority queue, in order to provide a mechanism for quicker lookup of items being validated with 'ValidateNow/ValidateClient'.

    Revision: 3497
    Author: [email protected]
    Date: 2008-10-06 14:48:38 -0700 (Mon, 06 Oct 2008)
    Log Message:
    Changing internal datastructure utilized by the LayoutManager's priority queue, in order to provide a mechanism for quicker lookup of items being validated with 'ValidateNow/ValidateClient'. Will be keeping a close watch on perf suite results after this change, to ensure we did not inject memory issues.
    Reviewer: Glenn
    QA: No (Keeping watch on Mustella, but cyclone looked good).
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/layoutClasses/PriorityQueue. as

  • Enable External Load Balancing error

    Hello,
    I'm trying to create a DirectAccess farm with 2 external Load balancers (Step 3.1.1 http://technet.microsoft.com/en-us/library/jj134166.aspx)
    The first server is configured (Behind a Edge with 2 NICs) and working but when trying to enable External Load Balancing, I immediately receive this error when applying the settings:
    Initializing operations before applying configuration
     Backing up GPOs...
    Updating cluster settings
     Retrieving server GPO details...
     Opening the server GPO...
     Error: The configuration data for this product is corrupt. Contact your support personnel.
    Finishing operations after applying configuration
     Information: Attempting to roll back the configuration...
    The DirectAccess dashboard shows that all services are fine, the DC is available and no errors are logged in the Event Viewer.
    I can't find any explanation about a possible corrupted configuration.

    Ok... Found the problem... You can't mix Internet IP and LAN IP to create the VIP...

  • Low-latency prio queue for udp traffic, but not matching ACL?

    Hi,
    I have an OpenVPN service running behind an ASA for which I would like to prioritize the packets.
    The OpenVPN service connects to a remote OpenVPN service on 1194/udp, and accepts traffic on udp/1194 for yet another OpenVPN server.
    Here's what I did:
    access-list priority extended permit udp any any eq 1194
    priority-queue outside
    class-map priotraffic
    match access-list priority
    policy-map QoS_policy
    class priotraffic
      priority
    service-policy QoS_policy global
    priority-queue outside
    I know there are hundreds of packets per second on this OpenVPN, but still I only see 2 matched packets on the ACL "priority":
    # show access-list | inc priority
    access-list priority line 1 extended permit udp any any eq 1194 (hitcnt=2) 0xbbdd01d4
    Am I missing something? Must I know both src AND destination ports in order to achieve this?

    I started suspecting that it only matched packets for new connections (in iptables called NEW / UNREPLIED). I tested my thesis by restarting one of my openvpn tunnels, and indeed I see now a hit count of one packet.
    Question is, how come only new udp connections being matched? I would obviously like to prioritize all packets for an already established session.
    Thanks,
    By the way, the statistics after I reinitiated one of the tunnels:
    asa# show access-list | inc priority
    access-list priority line 1 extended permit udp any any eq 1194 (hitcnt=1) 0xbbdd01d4
    asa# show service-policy
    Global policy:
      Service-policy: QoS_policy
        Class-map: priotraffic
          Priority:
            Interface outside: aggregate drop 0, aggregate transmit 0
          Priority:
            Interface inside: aggregate drop 0, aggregate transmit 0
          Priority:
            Interface mobenga: aggregate drop 0, aggregate transmit 0
          Priority:
            Interface escom: aggregate drop 0, aggregate transmit 0
          Priority:
            Interface management: aggregate drop 0, aggregate transmit 0
          Priority:
            Interface server: aggregate drop 0, aggregate transmit 0
          Priority:
            Interface vpn: aggregate drop 0, aggregate transmit 0
          Priority:
            Interface cafe_member: aggregate drop 0, aggregate transmit 0
        Class-map: class-default

  • Dynamic Text in Externally Loaded swf

    hi. i have a dynamic text field in an externally loaded swf. Its a digital clock so i want the numbers to update in the dynamic text field.
    this is not my exact code but it is very similar. i show below that i add the loader.swf, and once its loading is complete, i can work on its movieclips and add event listeners to its buttons, etc. but i cannot change the dynamic text field (its "classic text" set to "dynamic text"). after running this, the text just stays empty as it is in the external swf).
    here is the sample code:
    var loader:Loader = new Loader();
    loader.load(new URLRequest("loader.swf"));
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
    function loaded(event:Event):void{
         addChild(loader);
         var loader_mc:MovieClip = (loader.content as MovieClip)
         loader_mc.myMovieClip.gotoAndStop(2);//***this works
         loader_mc.myButton_btn.addEventListener(MouseEvent.CLICK, clickMe);//***this works
         loader_mc.myText_txt.text = "12";//***this doesn't work******
    please help. thanks!

    Did you embed the font in the textfield--it needs to be done in the loaded swf when you create it? One other thing to check is that the color for the textfield is not the same as the background it sits on.

  • Java priority queue

    Java provides PriorityQueue, and I have gone through its API.
    The implementation of PriorityQueue in Java does not provide method for increase or decrease key,
    and there must be a reason for it.
    But, when i go through books on data strucutre, a lot of them talk about the increase/decrease key function
    of the PriorityQueue.
    So I am just wondering, why is it that increase/decrease function not provided in PriorityQueue. I cannot come up with a reason for it, but i think there must be. Does anybody have any thought on this. Or is it just
    because the designers thought its not needed?
    I checked the source for the Priority Queue and the heapify() method was declared private.

    lupansansei wrote:
    I have used Java's priority queue an I have written my own but I have never come accros the terms "increase or decrease key". Do you mean something like 'upheap' or 'downheap' in relation to a 'heap' implementation meaning move an entry to it correct position if the key changes? If so then one should make the 'key' immutable so that the functions are not needed.
    Yes, i mean 'upheap' or 'downheap' by increase or decrease key. Sorry
    maybe my choice of words was not correct.
    I couldn't get what you mean by 'key' immutable. Can you please explain it. If the key cannot change (i.e. it is immutable) then there is no need to ever change the position of an element.
    >
    Correct. Since the PriorityQueue does not need to implemented using a 'heap' there is no need for the heapify() method to be exposed. If one implemented using a balanced tree or a skip list the heapify() method would not be applicable.I am using PriorityQueue and i need to update the priority of the elements and i was wondering whether to implement the whole queue
    myself or look for a better way of using the PriorityQueue class.
    Do you have any suggestions for efficiently updating the priority of element?I have a priority queue implementation where elements know they are in a heap and know where they are in the heap. By doing this I can modify 'keys' and then move a value to it's correct place in the queue in a very short time. The limitations this feature imposes on the elements and the possibility of corrupting the heap means I don't often use this these days. It is far too error prone.
    These days in my simulations I normally remove an element from the queue, process the element and then create new elements and insert them back in the queue. This sometimes takes 2 lots of Log(n) operations where my specialized priority queue just takes Log(n) operations. The code is just so much more maintainable and I accept the hit.

  • UCCX email queue stuck in "loading"

    I just created a new email queue and added it to a test agent and when the agent logs in to CAD the tab for the email queue says "Loading" but it never loads. The phone queue for the test user works normally. IMAP is enabled on Exchange and the service has been restarted.
    Using:
    Exchange 2013
    UCCX version: 10.5.1.10000-24
    CUCM version: 10.5.2.10000-5
    I am able to telnet to the Exchange server on port 143 with the username/password configured on CDA.
    Using Windows 7 and Java 7u51. Tried deleting Java and opened the client and had CAD download the Java version it needed.
    Any suggestions would be appreciated.
    Thanks

    The Cisco CAD Troubleshooting Guide for Cisco Unified Contact Center Express, Release 10.5 covers this on page 101.
    Problem Agent E-Mail does not work. The Agent E-Mail applet displays a “Loading...” animation that never completes. If you turn on the Java Console with Tracing, Logging, and Applet life cycle exceptions enabled, you can see the following message during Agent E-Mail start up:
    security: LiveConnect (JavaScript) blocked due to security settings.
    Cause. With Java 7 Update 25, Oracle introduced a feature that blocks LiveConnect when the user’s JRE does not meet the JRE security baseline. The security baseline is published by Oracle and updated as security vulnerabilities are fixed in newer JRE updates. When the Agent E-Mail applet starts, the JRE checks this security baseline. If the required JRE is higher than the JRE version the user is currently running, or if the security baseline cannot be found and the current JRE is expired, Agent E-Mail no longer works.
    Solution JRE 1.7 Update 45 is no longer supported due to Oracle changing the security baseline. You must update to JRE 1.7 Update 51 or later. Future JRE updates might render Agent E-Mail unusable due to the LiveConnect blocking feature and the security baseline. If this is the case, you must perform one of the following workarounds:
    ■ Update each user’s JRE version to meet the security baseline.
    ■ Move the security slider of each user’s Java Control Panel to a
    setting lower than High
    ■ Add Cisco Agent Desktop to the Exception Site List. For more information, refer to the following Oracle documentation:
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/ex ception_site_list.html
    ■ Create a Deployment Rule Set (DRS) and distribute it throughout the contact center. For more information on how to create and distribute your own DRS, refer to the following Oracle documentation:
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/de ployment_flow.html#rules

Maybe you are looking for

  • OIM - EBusiness User Management Connector

    Hello there, Can anybody please tell me within the Ebusiness connector i.e. provided in 9.1 version connector pack, which one needs to be installed? there are 3 different categories within the same - 1.) For the User Management connector: Oracle EBS

  • IOS app Validate : Error bundle is invalid.New apps and app updates submitted to the app store must be built with public?

    I am using Xcode 5.1 with SDK 7.1 I tried to validate  new version in appstore.But its failed.Error message:"Bundle is invalid.New apps and app updates submitted to the app store must be built with public?" On Apirl 18  ,I can submit last version

  • App issue - no proposal editing

    Hi sap friends, When I am clicking on Edit proposals in APP. message is giving like this: Company codes 4500/4500 do not appear in proposal 01.07.2008  TTT; correct Message no. FZ003 Diagnosis No data exists for the specified paying company code 4500

  • Update field taking value from previous row

    I have a table TEST (ID int, name varchar(20), amount decimal(18,0)). First row of the table have correct value. I want to update amount column except first row by adding 10 with the previous row value without using cursor. id    Name    Amount 1    

  • Strange issue in my n82 handset

    I experience a strange issue in my n82 handset. When I'm listening to any radio station the sound suddenly swaps from stereo to mono and back, especialy when I'm on the move. First I thought it was because of the headset, but yesterday I bought HS-45