Problem with the dispatcher DragEvent class

Hello

I have an mxml application, a mxml component and a DragEvent class (DragEvents) between the two.

Using mxml I'm sending a DragEnter event, through this DragEvent class, the code is as follows:

"" "< mx:HBox xmlns:mx = ' http://www.adobe.com/2006/mxml ' horizontalAlign ="center"paddingTop ="1"width ="199"height ="100% "dragEnter =" doDragEnter (event, 'cartFormat') "dragDrop =" doDragDrop (event, 'cartFormat') "backgroundColor ="#ff0000">
< mx:Metadata >
[Event (name = "itemDragged", type = "events. DragEvents")]
< / mx:Metadata >
< mx:Script >
<! [CDATA]
How to import events. DragEvents;
Import mx.events.DragEvent;

private var isDropAcceptable:Boolean = true;

private function doDragEnter (event: DragEvent, type: String): void {}
var o: DragEvents = new DragEvents (event, type);
this.dispatchEvent (o);
}
private void doDragDrop(event:DragEvent,_type:String):void {}
var o: DragEvents = new DragEvents (event, type);
this.dispatchEvent (o);
}

[]] >
< / mx:Script >
< / mx:HBox >




In the class of DragEvents the code is thus:

package events
{
import flash.events.Event;
Import mx.events.DragEvent;

SerializableAttribute public class DragEvents extends DragEvent
{
event public var: DragEvent.

public function DragEvents (event: DragEvent, type: String) {}
Super (type);
This.Event = event;
}

Public Overrides function clone (): Event {}
return new DragEvents (event, type);
}
}
}

But the problem is the 'public Overrides function clone' that returns an event object, could not pass any DragEvent event or simply does not work! I have no idea how could I find this the main mxml App DragEvent. ! If in some way I could send the DragEvent to my main application, then it will be very useful for me.


Please suggest.


Tnks,

ASB

Ok! I have the error where i'ws done!

Sorry!

Tags: Flex

Similar Questions

  • Problems with the blue screen of death (when my computer is shut down)

    I get a blue screen of death on occasion, when shutting down my computer (Windows XP, Dell Vostro). It started happening after I installed the latest version of the Synology NAS software. This is the message: BCCode: 100000d 1 BCP1: BA3F1F20 BCP2: 00000002 BCP3: 00000008 BCP4: BA3F1F20 OSVer: 5_1_2600 SP: 3_0 product: 256_1. Additional technical information: C:\DOCUME~1\admin\LOCALS~1\Temp\WER4098.dir00\Mini021112-01.dmp and C:\DOCUME~1\admin\LOCALS~1\Temp\WER4098.dir00\sysdata.xml.

    Not sure if it is related to the installation or if it is another problem. Any advice would be appreciated.

    The minidump file showed a DRIVER_IRQL_NOT_LESS_OR_EQUAL (d1) referencing the usbccgp.sys (common class generic Parent Driver USB):

    BUCKET_ID: 0xD1_CODE_AV_BAD_IP_usbccgp+ 1f20

    The spoolsv.exe (print spooler service) is the process that crashed.

    You have recently installed a USB printer?

    In any case there may be a problem with the USB stack in Windows XP Service Pack 3 so I recommend you to install the following fix can correct a problem of 'timing' of USB that can be useful for the error you receive:

    http://support.Microsoft.com/kb/969238

    There is a link at the top of the article to request the hotfix.

    There was a driver of Synology (busenum.sys) loaded during the crash, but it does not appear to be involved in the accident.

  • Strange problems with the database

    Hello

    I just got my Fuze and am very happy with it; However, I am having a very strange problem with the database. I have a 16 GB sdhc card that I use with the "rocket" and there are about 4 songs on the card that will not play and have no information charge tag. Their tags appear in the tag browser (not the in the track information screen) as just an empty rectangle. Under the track information screen, sizes are listed as ~ 4000 mb. The songs will not play and I can not jump in front of one of these songs once they were loaded.

    At first, I suspected some kind of corruption of tag, so I set out that night to track down the problem. I removed the 16 GB card and reset the player. Then, I loaded one of the corrupt in the internal memory of the player. The track has been scanned and played correctly. Then, I removed the track of the internal memory and it loaded on another SDHC card. Yet once, everything worked correctly, so I knew that the card I was using was a kind of system files or physical problem. I returned the original 16 GB sdhc card in the reader and checked that the file was still unplayable, and then I plugged the "rocket" to my computer. I transferred the unplayable file on my computer and compared (with md5sum) to the original file, thinking that if there was the file system or physical corruption the copy of the map would be damaged. However, the files were equivalent.

    To make things even more interesting, I also have problems with the registration of the kind. I have some files tagged Genres such as 'Classic' and 'Rock '. In the list of the genre, I see this:

    C

    CL

    CLA

    CLAS

    Class

    Classic

    Classic

    Classica

    Classic

    Rock

    So, there is corruption on the kind of 'Classic' but not the kind of "Rock". Each of the substrings of 'Classic' contains only a few titles, with most of the other titles listed where they should be. I checked that the tracks are labeled correctly and in exactly the same way as the other tracks that do not have this problem.

    I am at a total loss about what to do, and I'd really appreciate any advice or suggestions. I use the current firmware, 2.03.31a and the songs in question are in Ogg Vorbis format.

    MM

    Thanks for your replies.

    I managed to find what may be the problem. Tracks that received corrupt tags had the names of total path with more than 256 characters. It seems that the driver internal fat32 the rocket uses vomits all over the place when the path name is too long. Before the "rocket", I got an iPod running rockbox tags with the same directory structure that I have on the "rocket", so I don't think that this restriction on the length of the path name is a limitation or requirement of the fat32 file system. Reduce the path corrected the problem with the files being unreadable.

    However, the problem with foires genres the rest. Looking at the files show that corruption, they all have a little information in tags. Most of the information is contained in the hashes I have files that identify them via musicbrainz. The limit on the total number of characters in the tags of the track includes the "rocket" label is not read or use?

    MM

  • Problem with the ObjectListField

    Hello

    I have problems with the method getSelectedIndex() ObjectListField.
    Supposedly, when there is no index selected, it returns-1. But how come it always returns the index of the last element?

    To illustrate, I created my own dialog that has similar functionality to the "device window select" Bluetooth BB application. I have an ObjectListField and a Cancel button. What I did simply, is to change the label of the button to show the selected index. I have attached my sample code below.

    public class MyDialog extends dialog
    {
    private ObjectListField m_list;
    private ButtonField m_btn;

    public MyDialog)
    {
    Super ("Select Device:", null, null, 0, Bitmap.getBitmapResource ("bluetoothIcon.PNG"), Manager.FOCUSABLE);

    m_List = new ObjectListField();
    m_btn = new ButtonField ("Cancel", Field.FIELD_HCENTER);
    m_List.set (new String [] {"first", "second"});

    Add (m_List);
    Add (m_btn);
    }

    protected boolean navigationClick (int status, int time)
    {
    m_btn.setLabel (Integer.ToString (m_List.getSelectedIndex ()));

    Returns true;
    }
    }

    Can someone help me on this problem? Is there something wrong with my code, or is the buggy API? All I want to do is to return an index of-1 if there is no selected item in the list.

    Also, I tried the isFocus() method to check if the list is being concentrated, it always returns false even if the list is OBVIOUSLY being focused. I'm running out of options on how to determine the solution to this problem. Help, please!

    Thank you very much.

    @jacylan - I do not use isFocus() to determine if the ListField is net.  Take a look at the following code, I think that with this, you can force-1 when the ListField is not the point.

        protected boolean navigationClick(int status, int time)
        {
            int selectedIndex = m_list.getSelectedIndex();
            boolean listInFocusOption1 = false;
            if ( this.getLeafFieldWithFocus() == m_list ) {
                listInFocusOption1 = true;
            }
            boolean listInFocusOption2 = false;
            if ( m_list.isFocus() ) {
                listInFocusOption2 = true;
            }
            m_btn.setLabel(Integer.toString(selectedIndex) + ":" + listInFocusOption1 + ":" +listInFocusOption2);
    
            return true;
        }
    
  • Dependency problem with the new Blackberry Plugin for Eclipse

    I just encountered a problem with the new version of the JDE Eclipse Plugin. I set up my application project so that it uses two other projects such as libraries. Both of these projects are on the way to build Java in the settings of the application project, and the manufacturer Eclipse compiles without errors.

    But when I try to run on the Simulator, the application loader throws an Exception stating that it could not find one of the classes listed in library projects. Since it is the importation of first class in the main class, I guess that it was unable to find the entire library.

    I tried to have the application project to import the project two library, but nothing alx files has changed.

    In the old version of the Plugin, there is a property of the project "Blackberry project dependencies" or something like that, which should be set for library and rapc.exe projects and the simulator would be their. That went away, and I was told during Devcon now suffice to add libraries to the classpath. Apparently, this is not so for me.

    Can you give me an indication of what goes wrong?

    The problem seems to be that I imported my projects since the previous version of Eclipse plug-ins, Blackberry. I have now created a new workspace and new projects, completely maintaining the source files, and it works.

  • Problem with the syntax to call a page Apex

    I display 5 faces changing mood of a table. Each face has a link stored in the table. The link should go to a page in the same application and pass a parameter to this page when the face is selected.

    Somewhere, there is a problem with the syntax of the link, can anyone please help me out with the correct syntax, please.

    The error that I get when I select a face, is the following:

    Screenshot (34).png

    The link entry in the table is the following: http://apex.enciva.co.uk/pls/apex/f?p=842:1: & SESSION.: P1_MOODID:1

    and the code to display the faces, is as follows:

    DECLARE

    BEGIN

    FOR (IN) c1

    SELECT Hmauin,

    mntitle, mnlink

    OF MOODYFACES

    WHERE NVL ((mnfilename) dbms_lob.getlength, 0) > 0

    AND mnactive = 'yes '.

    ORDER BY HMAUIN

    ) LOOP

    HTP.prn ("< a class ="dock-item"HREF ="'|) C1. MNLINK | "" ">

    < img src = "f? p = & APP_ID.: & APP_PAGE_ID.: & APP_SESSION.:APPLICATION_PROCESS = GET_IMG1:NO:P141_MNID:' | C1. HMAUIN | "" "alt =" "/ >

    < span > ' | C1.mntitle | / span > < /a > ');

    END LOOP;

    END;

    Any answer will appreciated.

    Thanks fac586, spawn the link works perfectly.

  • There is a problem with the driver for TSSTcorp DVD +-RW Drive SN - 208BB. The driver must be reinstalled.

    Hello
    With the help of the window - 8 installed on newly purchased Dell Inspiron notebook
    For a few days, I wasn't able to use my CD DVD drive because there is a driver problem, here's the trouble shoot report
    could someone help me how this issue be resolved
    TSSTcorp DVD +-RW Drive SN - 208BB has a driver problem fixed is not fixed
     
    There is a problem with the driver for TSSTcorp DVD +-RW Drive SN - 208BB. The driver must be reinstalled.
    Information InformationalDevice
    Name: TSSTcorp DVD +-RW Drive SN-208BB
    ID: SCSI\CDROM & VEN_TSSTCORP & PROD_DVD +-RW_SN-208BB\4 & BB94CF & 0 & 040000
    Error code: 19
     
    Reinstall the complete device driver
     
    There is a problem with the driver for TSSTcorp DVD +-RW Drive SN - 208BB. Reinstall the driver may resolve this issue.
     

    You can check the following registry key? :

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    To the registry for this key, in the right window, in the world is here, under 'Name', a LowerFilters and UpperFilters value?

    If so, for UpperFilters and LowerFilters, value which is listed under "data"?

  • Problem with the plugin ActiveDirectory

    I have a problem with the plugin active directory that it does not show the OUs under a spesific UO (I guess that's because there are too many objects in this spesific UO and for some reason any, limit the amount of objects, it can show).

    To work around the problem I wanted to use the Active Directory script class and use the search method, but I can just find a way to create this object to use the reproductives I guess that I do not understand something in the API.

    Read this it looks like it could be typo...

    Please share your script, or search for mistyped as ActiveDirectory.Search ().

    For example - to throw the object system: TypeError: cannot find the default value for the object

    This code online

    System.Iog ("Test");

    because this isn't a lowercase L, it is a shift that i and this method does'nt exist on the object of the system...

    Other objects throw correcting errors as this method does not exist in the wrapper dyn...

    Depends on the implementation and management inside of it I guess than errors

    Kind regards

    Andreas

  • Problem with the compilation by using the new compiler (Compilation failed during execution: compilation-abc)

    Hello

    Since the release of the fast compiler, I experienced problems with the compilation of the version release with it.

    As it was still in beta, and since it was still possible to use the legacy compiler, I chose to use the legacy compiler each time (especially since it was more stable).

    With this 64-bit iOS requirement came into play on February 1, the legacy compiler is no longer available because it has been completely removed from AIR 16 (and all future versions).

    Now, I can no longer compile release versions (debug versions are works well) because I have the following error every time:

    Error occurred during the application of packaging:

    Stack dump:

    0 program arguments: C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\lib\aot/bin/compile-abc / compile - abc.exe - mtriple = armv7-apple-ios - filetype = obj - sdk C:\Program Files\Adobe\Adobe Flash Builder 4.7 (Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\lib\aot/lib/avmglue.abc 64-fields C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\lib\aot/lib/air-fields.)) arm-air.txt-O3-ane-symbol = MmgCmApiExtInitializer - ane-symbol = MmgCmApiExtFinalizer - ane-symbol = MmgRbApiExtInitializer - ane-symbol = MmgRbApiExtFinalizer - ane-symbol = MmgStoreKitApiExtInitializer-ane symbol = MmgStoreKitApiExtFinalizer-ane symbol = MmgGoViralApiExtInitializer-ane symbol = MmgGoViralApiExtFinalizer-ane symbol = MmgGaApiExtInitializer - ane-symbol = MmgGaApiExtFinalizer - ane-symbol = MmgGAIDFAAccessApiExtInitializer - ane-symbol = MmgGAIDFAAccessApiExtFinalizer - ane-symbol = AFExtensionInitializer - ane-symbol = PushwooshExtInitializer - ane-symbol = PushwooshExtFinalizer elease-temp\AOT\AOTBuildOutput4982262150932522887.tmp\ABCFilesList.txt-abc-file-list=C:\BingoIslandWeb\Client-branch-1.06.05\BingoIslanMobile\BingoIsland\bin-r

    Compilation failed during execution: compilation-abc


    I tried to pin-point the source of the problem leaving specific things in the code, while removing all the rest,

    But so far, all I could find is that he has a problem with the classes that extend EventDispatcher.

    Anyone encounter this problem and knows how to work around it?

    Thank you!



    I had this problem also with other things. It was difficult to solve. Remove all const and var conversion in the Document class solve my problems

  • z index / layer of problems with the new YouTube widget!

    Hello!

    I am facing a problem with the new 'youtube' of social media widget. I currently have two layers in my projects. This is a project for which the menu scrolls initially and then sticks to the top of scrolling parallax. By continuing to scroll, the embedded YouTube video widget does not scroll under the menu as it should but scrolls through the menu. It's strange, as the YouTube widget was placed on level 1 and the menu is at level 2. Shouldn't the menu then always be on top? Only the new widget is not properly defined index-z?

    You can check my web project (and look at the code) here: http://www.firstlight.at

    Any help is greatly appreciated!

    I managed to solve the problem, and I believe this to certainly be a bug in Muse...

    In order to avoid widgets Youtube iframed swim on top of all the other div tags, I had to change the code, add wmode = "transparent" and wmode = "Opaque" to the class of the iframe. This works if you replace all the other parameters behind the CBC "&" by "& amp"tag.

    Here's the original code generated by Muse. This could not prevent my "2nd layer" slip below "Layer 1".

    Makes the following changes to the code, forced the Youtube widget below all other div again (I pinned all changes to "BOLD", so you can see the changes easily):

    Ensure that you do not miss the following change: you need to change all of the vipers '&' to '& amp' this procedure will not work!

    After the new version, I'm sure the Adobe team is working hard to bust of bug last version. But I hope that we will be dismantled soon, otherwise users using the youtube widget will have to recode output Muse whenever we make a change and it is exactly what is the Muse striving to prevent (; After all, in Dreamweaver, you can hardcode the change and he would stick!

    I hope that it will be useful to someone!

  • Problem with the bulk loading IOM account to AD

    Hi all

    I'm doing a loading block account for AD in IOM. I followed all the steps in the oracle documentation.

    I entered the user in the format of CSV file data. Data in the example are given below:

    Primary data in the Table:
    UD_ADUSER_UID, UD_ADUSER_FNAME, UD_ADUSER_LNAME, UD_ADUSER_ORGNAME, UD_ADUSER_BNUMBER, UD_ADUSER_OBJECTGUID
    TWoods, Tiger, Woods, "' 22 ~ CN = Users, DC = gkidmsolutions, DC = com", B000004, 104 "
    TCruise, Tom, Cruise, "" 22 ~ CN = Users, DC = gkidmsolutions, DC = com ", B000005, 105"
    WSmith, Will, Smith, "' 22 ~ CN = Users, DC = gkidmsolutions, DC = com", B000006, d149e9add00198469b1ebef579911024 "

    Data in the Child Table:
    UD_ADUSER_UID, UD_ADUSRC_GROUPNAME
    TWoods, ' 22 ~ CN = users, CN = Users, DC = gkidmsolutions, DC = com ".
    TCruise, ' 22 ~ CN = users, CN = Users, DC = gkidmsolutions, DC = com ".
    WSmith, ' 22 ~ CN = users, CN = Users, DC = gkidmsolutions, DC = com ".

    All of these users are already available in both IOM and AD. I am trying to establish links between these users through loading bulk. I am able to load bulk account using the IOM bulk load utility. After loading bulk accounts, when I go to the tab the user resources, I see a user resource AD for the respective users with the status 'Configured'.

    However, the problem is when I try to update any user information through the process of the object resource AD shape, this not updated for AD. An exception mentioned below can be seen in newspapers. Looks like the loading block creates a map that can be seen from front end, but in fact, he is not pointing the user to the AD. Am I missing something? Help me!

    *********************************************************************************************************************************************
    "Current execution LOCKUNLOCKADADAMUSER
    Target class = com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > <>=
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks: unlockADUser: the user could not unlocked >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < =.
    >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < = start the Stack Trace = >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks: unlockADUser >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < String index out of range:-1 >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < Description: String index out of range:-1 >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < java.lang.StringIndexOutOfBoundsException: String index out of range:-1
    at java.lang.String.substring(String.java:1931)
    at java.lang.String.substring(String.java:1904)
    at com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks.unlockADUser (unknown Source)
    at com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks.lockADorADAMUser (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    to com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADCSLOCK_UNLOCKUSER. LOCKUNLOCKADADAMUSER (adpADCSLOCK_UNLOCKUSER. Java:163)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADCSLOCK_UNLOCKUSER.implementation(adpADCSLOCK_UNLOCKUSER.java:61)
    at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
    at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
    at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:2919)
    at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:553)
    at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:604)
    at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
    at com.thortech.xl.dataobj.tcOrderItemInfo.eventPostUpdate(tcOrderItemInfo.java:374)
    at com.thortech.xl.dataobj.tcDataObj.update(tcDataObj.java:664)
    at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:508)
    at com.thortech.xl.dataobj.tcTableDataObj.save(tcTableDataObj.java:2906)
    at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:710)
    at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:426)
    at Thor.API.Operations.tcFormInstanceOperationsIntfEJB.setProcessFormDatax (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    to $Proxy341.setProcessFormDatax (Unknown Source)
    at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl.__WL_invoke (unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl.setProcessFormDatax (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
    to $Proxy178.setProcessFormDatax (Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
    to $Proxy337.setProcessFormDatax (Unknown Source)
    at Thor.API.Operations.tcFormInstanceOperationsIntfDelegate.setProcessFormData (unknown Source)
    at com.thortech.xl.webclient.actions.UserDefinedFormAction.editForm(UserDefinedFormAction.java:2033)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269)
    at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(tcLookupDispatchAction.java:133)
    at com.thortech.xl.webclient.actions.tcActionBase.execute(tcActionBase.java:894)
    at com.thortech.xl.webclient.actions.tcAction.execute(tcAction.java:213)
    at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
    at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
    at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1914)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:463)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at com.thortech.xl.webclient.security.CSRFFilter.doFilter(CSRFFilter.java:78)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.iam.platform.auth.web.PwdMgmtNavigationFilter.doFilter(PwdMgmtNavigationFilter.java:122)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.iam.platform.auth.web.OIMAuthContextFilter.doFilter(OIMAuthContextFilter.java:108)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:111)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    < 5 April 2012 5:18:54 CEST > < error > < OIMCP. A/d converters > < BEA-000000 > < = end of stack memory trace = >
    EXECUTEREMOTESCRIPT running
    Target class = com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks
    "# SessionContainer:valueUnbound: expired Session of the name of the event is: Xellerate.Session.

    Looks like a problem with the value of the UD_ADUSER_LOCKED field. Change to retry and value non-zero.

  • Problem with the font size, appears as expected.

    I've been struggling with this for a few weeks now, but surely must is close to solved it. It's just a problem with the size of the police to just that one page.

    http://www.kgngroup.NET/logos_and_packaging.html

    I want the body of the text to be 10px, but after two weeks, played with all conceivable means, change the font size of the body in CSS and the document itself. I have the consultation in Safari, but others on Windows machines tell me it is out of whack.

    My main problem is that I can change the size of the font in the extreme, but he always appears as the same size in the browser (about 12px.) I don't know can be changed because I can change the wording and change online. It's just a problem with the font size. Oh, and in the third column, the one on the right in Dreamweaver, the font looks like it of tiny, can't even read, but in the browser, as the style11 is applied, all three columns search size equal.

    Don't know where to go from here. I want to just that the police of the up to 10 pixels.

    TIA,

    Ken

    I guess this is a follow-up of your thread earlier

    http://forums.Adobe.com/message/3627681

    What would really help in the diagnosis of the subjects such as this is to install the Firebug add-on for Firefox (as suggested in the previous thread).

    Firebug shows you visually what CSS rules apply to any element you click on the screen.

    In this case, you have a confusion of the CSS cascading over each other font sizes and who is confused by the mix of units without real reason. .style11 is unnecessarily applied to many people

    Tags. Remove these classes and to remove the rule.

    for example

    The tiny font in the RHS column is the first affected by

    {.style8}
    font size: 0.5em;
    }

    affecting thethen by

    .style11 {size are: 75 %}}

    affecting the

    tag.

    Result = tiny text (about 2px).

    In these cases of mass confusion, my approach is to remove all the sizing of fonts in the CSS and start over.

    Avoid %. Use px.

    Apply font sizing rules logically from thelabel facing downwards.

    That gives you a solid basis without strange effects.

  • Problem with the rendering of JProgressBar in JTable

    I have some problems with the rendering of JProgressBar in JTable. In the case of several lines, when a progress bar is updated, and its text is changing, then he painted all the progress bars in this column.

    Here is my code I used to create the table:
    --------------------------------------------------------------------------------------
    JTable convertTable = new JTable(convertTableModel) {
    
                public Component prepareRenderer(TableCellRenderer renderer,
                        int rowIndex, int vColIndex) {
                    Component c = null;
                    if (renderer != null) {
                        c = super.prepareRenderer(renderer, rowIndex, vColIndex);
    
                        if (vColIndex == INDEX_CONVERT_STATUS) {
                            //System.out.println("c = "+c.getClass());
                            if(c instanceof JProgressBar) {
                                //System.out.println("inside = ");
                                c.setBackground(Color.BLUE);
                            }
                        }
                    }
                    return c;
                }
    
                public boolean isCellEditable(int rowIndex, int mColIndex) {
                    if (mColIndex == INDEX_CONVERT_SELECT) {
                        return true;
                    } else if (mColIndex == INDEX_CONVERT_STATUS) {
                        return false;
                    } else {
                        return false;
                    }
                }
    
                /*
                 * JTable uses this method to determine the default renderer/
                 * editor for each cell.  If we didn't implement this method,
                 * then the last column would contain text ("true"/"false"),
                 * rather than a check box.
                 */
                public Class getColumnClass(int c) {
                    if (getValueAt(0, c) != null) {
                        return getValueAt(0, c).getClass();
                    }
                    return null;
                }
            };
    --------------------------------------------------------------------------------------

    Then I applied on this table rendering engine

    ---------------------------------------------------------------------------------------
    // Applying JProgressBar Renderer for convert table
            TableColumn col = convertTable.getColumnModel().getColumn(INDEX_CONVERT_STATUS);
            ProgressBarRenderer progressBarRenderer = new ProgressBarRenderer();
            col.setCellRenderer(progressBarRenderer);
    ---------------------------------------------------------------------------------------

    Class code ProgressBarRenderer is as follows:
    ---------------------------------------------------------------------------------------
    public class ProgressBarRenderer extends JProgressBar implements TableCellRenderer {
    
        private Hashtable ht = new Hashtable();
    
        public ProgressBarRenderer() {
            super(0);
            this.setMinimum(0);
            this.setMaximum(100);
            this.setStringPainted(true);
            this.setBorderPainted(true);
    
            UIDefaults defaults = UIManager.getDefaults();
            Font font = new Font("Arial", Font.BOLD, 12);
            defaults.put("ProgressBar.font", font);
        }
    
        public void setRowEnabled(int row, boolean enabled) {
            ht.put(row, enabled);
        }
    
        public void setForeground(Color c, int row) {
            //System.out.println("setString ht = " + ht.size() + "  row= " + row + "  Selected= " + (Boolean) ht.get(row) + " color= " + c);
            if (ht.isEmpty()) {
                this.setForeground(c);
            } else if (ht.size() == 1) {
                this.setForeground(c);
            } else if ((Boolean) ht.get(row)) {
                this.setForeground(c);            
            } else {
                this.setForeground(c);
            }
        }
    
        public void setString(String s, int row) {
    
            //System.out.println("setString ht = " + ht.size() + "  row= " + row + " text= " + s);
            if (ht.isEmpty()) {
                this.setString(s);
            } else if (ht.size() == 1) {
                this.setString(s);
            } else if ((Boolean) ht.get(row)) {
                this.setString(s);
            } else {
                this.setString(s);
            }
    
        }
    
        @Override
        public Component getTableCellRendererComponent(JTable table,
                Object value, boolean isSelected, boolean hasFocus, int row, int column) {
            
            //System.out.println("getTableCellRendererComponent = " + table);
            //System.out.println("Renderer ht = " + ht.size() + "  row= " + row + "  Selected= " + (Boolean) ht.get(row));
            
            if (ht.isEmpty()) {
                return this;
            } else if (ht.size() == 1) {
                return this;
            } else if ((Boolean) ht.get(row)) {
                return this;
            } else {
                return null;
            }
        }
    }
    ---------------------------------------------------------------------------------------

    I add the next line and rendered the progress column is follows:
       convertTableModel.addRow(new Vector());
       ((ProgressBarRenderer) convertTable.getCellRenderer(row, INDEX_CONVERT_STATUS)).setRowEnabled(row, false);
    ---------------------------------------------------------------------------------------

    When I add the first row, it works fine, but when I add the second row, he painted the entire column.

    Naturally, you will have problems if you set a string or a color of a table cell value when the class of the column is declared as integer. As I have already said, you need to spend some time with the tutorials.

    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Random;
    import javax.swing.*;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.TableCellRenderer;
    
    public class ProgressBarTableCellRendererExample {
    
      Random random = new Random();
      JTable table;
    
      public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
    
          public void run() {
            new ProgressBarTableCellRendererExample().makeUI();
          }
        });
      }
    
      public void makeUI() {
        table = new JTable(10, 1) {
    
          @Override
          public boolean isCellEditable(int row, int column) {
            return false;
          }
        };
        for (int i = 0; i < table.getRowCount(); i++) {
          table.setValueAt(0, i, 0);
        }
        table.getColumnModel().getColumn(0).
                setCellRenderer(new ProgressBarTableCellRenderer());
    
        JButton button = new JButton("Increment");
        button.addActionListener(new ActionListener() {
    
          public void actionPerformed(ActionEvent e) {
            increment();
          }
        });
    
        JFrame frame = new JFrame();
        frame.add(new JScrollPane(table), BorderLayout.CENTER);
        frame.add(button, BorderLayout.SOUTH);
    
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(400, 400);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      }
    
      private void increment() {
        for (int i = 0; i < table.getRowCount(); i++) {
          Object value = table.getValueAt(i, 0);
          if (value instanceof Integer) {
            Integer oldValue = (Integer) table.getValueAt(i, 0);
            int newValue = Math.min(100, oldValue + random.nextInt(25));
            switch (newValue) {
              case 13: // and its multiples
              case 26:
              case 39:
              case 52:
              case 65:
              case 78:
              case 91:
                table.setValueAt("Failed", i, 0);
                break;
              case 100:
                table.setValueAt("Completed", i, 0);
                break;
              default:
                table.setValueAt(newValue, i, 0);
            }
          }
        }
      }
    
      private class ProgressBarTableCellRenderer
              extends JProgressBar implements TableCellRenderer {
    
        private TableCellRenderer stringRenderer =
                new DefaultTableCellRenderer();
    
        public Component getTableCellRendererComponent(JTable table,
                Object value, boolean isSelected, boolean hasFocus,
                int row, int column) {
          if (value instanceof Integer) {
            setValue((Integer) value);
            return this;
          } else {
            return stringRenderer.getTableCellRendererComponent(table,
                    value, isSelected, hasFocus, row, column);
          }
        }
        // Override void validate(), invalidate(), revalidate(), repaint()
        // and all overloads of firePropertyChange(...) as no-ops
        // for efficiency
      }
    }
    

    DB

  • Problems with the layouts and headers

    Hi I'm a newbie, trying to page layouts, I have 2 questions. I would be grateful for any help or pointers to tutorials.

    (1) I have problems with the links at the top of my page. They are text based and in a table of 2 rank. They have a huge ditch around them and no matter what I do I cannot resize the table or change the text to be less than a gap below it. Basically I have a huge gap between my links at the top of the page and the main logo and the main logo below. (and I think they are related as the h1 which I don't want that they're not really the header only links). Here's the code for that.

    <table width="740"  border="0" align="center" cellpadding="0" cellspacing="0" class="HeaderLogoButton">
          <tr align="center" valign="top">
            <td width="288" height="48"><h1><br /><br />
            </h1></td>
            <td width="452" height="25"><!-- TemplateBeginEditable name="HeaderLinks" --><span class="TextButtons"><a href="../index.html" class="TextButtons">Home</a>      <a href="../featured.html" class="TextButtons">Featured Company</a>      <a href="../youngpeople.html" class="TextButtons">Young People</a>      <a href="../andmore.html" class="TextButtons">And More</a>     </span><span class="TextButtons"> <a href="../blog.html" class="TextButtons">Blog  </a></span><!-- TemplateEndEditable --> </td>
          </tr>
          <tr>
            <th height="48" align="left"><a href="index.html" title="My Site Title"><img src="../images/My Site_logo.png" alt="My Site Logo" width="245" height="46" border="0" align="left" /></a></th>
            <td align="right" valign="top"><!-- TemplateBeginEditable name="HeaderButtons" --><img src="../images/facebook.png" alt="FaceBook Button" width="36" height="36" align="top" /> <img src="../images/twitter.png" alt="Twitter Button" width="36" height="36" align="top" /><img src="../images/blogbutton.png" alt="Blog Button" width="49" height="47" align="top" />  <!-- TemplateEndEditable --></td>
          </tr>
        </table>
    

    (2) my second question with headers in general. As you can see in the code I have a "My Site_logo.png', as the main logo for the site, what concerns me is pointing to it as the main h1 header so that when the spiders come to visit, either by the additional logo or html, they read that the site is called"My Site"the main header. How can I make the logo/title of the h1 of the code section? I'm afraid of making a mess of the code at this point, so any help is very appreciated!

    Thanks in advance

    evilJim wrote:

    Hi I'm a newbie, trying to page layouts, I have 2 questions. I would be grateful for any help or pointers to tutorials.

    (1) I have problems with the links at the top of my page. They are text based and in a table of 2 rank. They have a huge ditch around them and no matter what I do I cannot resize the table or change the text to be less than a gap below it. Basically I have a huge gap between my links at the top of the page and the main logo and the main logo below. (and I think they are related as the h1 which I don't want that they're not really the header only links). Here's the code for that.

    In the first cell of the table, you have a tag h1 (header tag) (see below), in this tag you inserted two break tags
    by pressing return on your keyboard twice. These breaks are reduced the height of the first row of the table, that's why you have all the space under your links.



            

    evilJim wrote:

    (2) my second question with headers in general. As you can see in the code I have a "My Site_logo.png', as the main logo for the site, what concerns me is pointing to it as the main h1 header so that when the spiders come to visit, either by the additional logo or html, they read that the site is called"My Site"the main header. How can I make the logo/title of the h1 of the code section? I'm afraid of making a mess of the code at this point, so any help is very appreciated!

    Thanks in advance

    At the moment you have nothing apart from 2
    tags in your h1 tag (see above answer to your first quetsion.

    Purposes of search engine, you can encapsulate your image in an h1 tag and provide an overview of more descriptive than "My Site Logo" for the images 'alt' tag

    My Site Logo

  • Problem with the instruction FOR... Once again!

    Hello world

    Well, I'm still doing a slideshow of car using external files and can't see the end. The current movie is here:

    http://www.virtuallglab.com/projects.html

    I also enclose the code. My problem is I had initially set up an animation with 2 pictures slide with text and then wait 4 seconds before slipping outside, and then next photos and text would slip in and so on, using a setInterval.
    The problem is the loop FOR seems to ignore the setInterval and slides of the 'wait' service, so buckle up just quickly and get to the last picture, so now the example above, it comes the last picture (I = 9) and that's it!

    Can you do not include another function in a statement FOR. Or is there a way to tell the loop TO wait for all movement is complete?

    Any help greatly appreciated

    ***************************************************

    Mx.transitions import. *;
    Import mx.transitions.easing. *;


    for (i = 0; i < 10; i ++) {}

    var picLeft = "photos /"+ i + ".jpg"; ".
    var picRight = "pics /"+ i +"b.jpg";
    var txtToLoad = "text /"+ i + ".txt"; ".

    this.createEmptyMovieClip("leftHolder",1);
    leftHolder.loadMovie (picLeft, i, leftHolder.getNextHighestDepth ());
    leftHolder._x = - 200;
    leftHolder._y = 15;

    var leftTween:Tween = new Tween (leftHolder, "_x", Strong.easeOut, leftHolder._x, 10, 2, true);

    this.createEmptyMovieClip("centerHolder",2);
    centerHolder.loadMovie (picRight, i + "b", centerHolder.getNextHighestDepth ());
    centerHolder._x = 180;
    centerHolder._y = 250;

    var centerTween:Tween = new Tween (centerHolder, "FLF", Strong.easeOut, centerHolder._y, 15, 2, true ");

    Text._x = 600;

    myData = new LoadVars();
    myData.onLoad = function() {}
    text.carText.text = this.content;
    };
    myData.load (txtToLoad);

    var textTween:Tween = new Tween (text, "_x", Strong.easeOut, text._x, 420, 2, true);

    myInterval is setInterval (wait, 4000);.



    function wait() {}
    var leftTweenFinished:Tween = new Tween (leftHolder, "_x", Strong.easeOut, leftHolder._x,-200, 1, true);
    var centerTween:Tween = new Tween (centerHolder, "FLF", Strong.easeOut, centerHolder._y, 250, 1, true ");
    var textTween2:Tween = new Tween (text, "_x", Strong.easeOut, text._x, 600, 1, true);
    clearInterval (myInterval);

    }
    }


    ***************************************************************************************** ***

    There is no way to tell a loop to wait for. This isn't what they are doing.

    All of the loop for runs (if possible and it is not a kind of infinite loop) completely before whenever the image is rendered.

    If you want to spread in time, you must use the setInterval - but not inside a loop for! If you do this, you immediately set, but the number of intervals of your loop. In this case you will also assign IDS for these intervals to the same variable, replacement effectively the value so you won't ever be able to erase most of these intervals.

    That means rethink you the entire structure. Set up a kind of counter and limit like this:

    var slidesToShow:Number = 10;
    var curSlide:Number = 0;

    Then have your setInterval the curSlide increment each time it is called, and check to see if it showed all the. This is where the "loop".

    As for the other part of your question - Yes you are actually two different issues in progress - once again, you can't do a loop for, wait for anything. So no there is no way to pause while you wait for your pre-teen at the end. But you can be notified when a Tween completes.

    See the documentation on the tween class in the help files. You will find the onMotionFinished event. If you configure one of those to begin with everything that needs to be started when the Tween is finished.

    You should also use the MovieClipLoader class to load your images, because you don't know how long it will take to load. Using this class, you get a nice event (onLoadInit) that tells you when the asset is ready for use.

    Finally, I think that you might want to use instead of setInterval setTimeout. It runs only once, whereas setInterval repeat forever. So I think that your algorithm would be something like that.

    1. load creditrice
    2. when ready to animate in and set onMotionFinished Manager
    3. when the query is finished start loading assets and setTimeout for 4 seconds.
    4. when 4 seconds is up or the clip is loaded (no matter what either takes longer) go to 2 and repeat.

    If this is going to be run locally on a hard drive or CD you will have no problem with the length of time that it takes to load external assets, but if it's on the web it's going to take time.

Maybe you are looking for