SWFLoader unloading problem

I'm loading a swf into a SWFLoader. Problem is when someone
doesn't want to see it anymore, I can't get rid of the swf playing.
I can turn of it's visiblity, but you can still hear the audio
playing. How can I unload the swf when using the SWFLoader
component?

I think maybe you can set the loaderContext to null maybe.
You could probably also do a:
mySwfLoader.content.stop(); or gotoAndStop(1); if your swf
responds to that.
You can always set the source to null. That's off the top of
my head without checking the SDK docs.

Similar Messages

  • SWFLoader Unload Problem

    Hi,
    After doing some searching on the web I still couldn't slove the memory usage problem.
    I have tried using unloadAndStop function and also tried using setting source to empty, but none of these worked for me.
    Even I used the hack way to force GC to work, the memory still occupied by the old swf.
    The situation is each time a new swf file loaded, the memory usage is more and more larger.
    The unload action seems never worked.
    I hope any one could help me about this problem.
    The following is my source code.
    Thanks.
    PS:1. My flash player version: 10
          2. I use Flex builder to build the file.
    Source Code:
       <mx:Script>
            <![CDATA[
                [Bindable]
                public var selectedItem:Object;    
                private function unloadSWF(evt:MouseEvent):void{
                    displayItem.source = "";
                private function nullSWF(evt:MouseEvent):void{
                    displayItem.unloadAndStop();
                private function setSWF(evt:Event):void{               
                    selectedItem=(evt.target).selectedItem;
                    displayItem.load(selectedItem.module);               
            ]]>
        </mx:Script>
        <mx:ComboBox
            width="215"
            labelField="label"
            close="setSWF(event)">
            <mx:dataProvider>
                <mx:Object label="Select Coverage"/>       
                <mx:Object
                    label="Life Insurance"
                    module="JSCaller.swf"
                />
                <mx:Object
                    label="Auto Insurance"
                    module="JScaller2.swf"
                />         
            </mx:dataProvider>
        </mx:ComboBox>
        <mx:Panel width="100%" height="100%">
            <mx:SWFLoader id="displayItem" width="100%" height="100%"/>
        </mx:Panel>
        <mx:HBox>
            <mx:Button label="Unload" click="unloadSWF(event)"/>
            <mx:Button label="Nullify" click="nullSWF(event)"/>
        </mx:HBox>

    Hi,
    Thanks for reply.
    1. What version of Flex are you using?
    The Flex builder I used is Flex Builder 3 and the SDK version is 3.4.
    2. Have you checked for leaks caused by styles or resource bundles?
    I though I didn't use any other resources.
    3. Please paste the smallest possible code for JSCaller.swf that does not unload.
    The following is the source code of JSCaller.swf and  the code of JSCaller2.swf as the same as JSCaller1.swf.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="0x000000" borderStyle="none" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#A9F87E, #74C61C]">
        <mx:Label id="lb1" text="fs3"/>
        <mx:Label id="lb2" y="23" text="fs4"/>
    </mx:Application>

  • [svn:fx-3.x] 12301: Clean up lastSystemManager reference when SWFLoader unloads a SWF.

    Revision: 12301
    Revision: 12301
    Author:   [email protected]
    Date:     2009-11-30 14:52:14 -0800 (Mon, 30 Nov 2009)
    Log Message:
    Clean up lastSystemManager reference when SWFLoader unloads a SWF.
    When SWFLoader unloads itself null out SystemManager.lastSystemManager reference if the reference is the content it loaded. This will prevent SWFLoader leak reports when simply loading and unloading a swf.
    Move the removeInitSystemManagerCompleteListener() code before we unload because the contentLoaderInfo is destroyed by the time we get the unload message.
    Add code to prevent double loading.
    QE notes: None.
    Doc notes: None.
    Bugs: SDK-18076
    Reviewer: Alex
    Tests run: checkintests, MarshallPlan, components/SWFLoader
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-18076
    Modified Paths:
        flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/controls/SWFLoader.as

    Hello,
    using that page as guide:
    http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/events/Uncau ghtErrorEvent.html#includeExamplesSummary
    (last sample on where to insert handlers) what about:
    <s:SWFLoader id="swfLoader" init="swfLoaderInitHandler(event)" source="B.swf"/>
    and:
    protected function swfLoaderInitHandler(event:Event):void
         if(!swfLoader.content) return;
         swfLoader.content.loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAU GHT_ERROR,
              uncaughtErrorHandler);
    protected function uncaughtErrorHandler(errorEvent:UncaughtErrorEvent):void
         if(errorEvent.error is Error)
              var e:Error = errorEvent.error as Error;
              // my error is 1009 - it is expected here
              const NULL_ERROR:uint = 1009;
              if(e.errorID == NULL_ERROR)
                   errorEvent.preventDefault();
                   Alert.show(e.errorID+" "+e.message);
              // else fall through
         // else fall through
    B is supposed to fail:
    private var emptyObject:Object = null;
    public function B()
         flash.utils.setTimeout(throwErrorNow, 100);
    protected function throwErrorNow():void
         emptyObject.numericValue();
    regards,
    Peter

  • SwfLoader Compile problem.

    I`m running into a tiny but very serious problem here in Flex Builder version 3.0. I've made 2 projects in Flex. One is the main project and the second one gets loaded over swfLoader from the main project. The reason why this is made is so the final user can actually make any type of modification on the second project and then upload the .swf file in the main application where all the binaries are stored. So i ran into an error after 2 weeks of hard work after i designed the whole project. The thing is that every time the user has to modify things on the second project he/she has to copy the compiled .swf file to the binary repository of the server AND import the changed MXML into the first project and re-compile the parent swf ... now I'm wondering if there's a way i can get past that problem with just putting the compiled version of the second swf file and then get all the changes without importing the MXML file from the second project into the first and having to re-compile the first project. I must mention that both the swf file and mxml must be compatible to each other. If you change code in the mxml file it will not affect the swf that is compiled and so as the reverse mode. So all i need is the swf file to be uploaded with the changes made and thats it Any clues from someone who ran into this type of problem ?

    I think maybe you can set the loaderContext to null maybe.
    You could probably also do a:
    mySwfLoader.content.stop(); or gotoAndStop(1); if your swf
    responds to that.
    You can always set the source to null. That's off the top of
    my head without checking the SDK docs.

  • Unload problem:  Difference between Project and Authoring

    I was wondering if anyone encountered the following problem
    and knows how to
    solve it. It's quite basic what i'm doing. I'm trying to show
    a serie of
    bitmap images (prefferably png's) Before i start showing them
    i use repeat
    loop to preload them :
    repeat with i = 1 to 10
    member(i,"test").preload
    end repeat
    (I also tried preloadmember member(1,"test"),
    member(10,"test") )
    And after displaying it, i jump to another frame and use a
    repeat loop to
    unload the members. (Note at that point there are no
    references in memory or
    stage to those members.)
    repeat with i = 1 to 10
    member(i,"test").unload
    end repeat
    (I also tried unloadmember member(1,"test"),
    member(10,"test") )
    In authoring mode it does exactly what is supposed to do. But
    in projector
    mode, it will not unload. It unloads only a small portion,
    about 1 mb. The
    total amount needed doesn't matter is seems to stop after
    unloading
    approxmately 1mb. I tried unloading in idle time, unloading
    at intervals of
    5 sec and more, it will not work.
    When monitoring the process in xp it, the memory usage keeps
    climbing. The
    odd part is, when preloading a second time, the projector
    will not recognize
    the bitmap data is already stored in memory and the same
    amount of memory
    needed again, so it keeps adding more and more memory to the
    projector.
    Please Help, all suggestions are appreciated.
    Thanks,
    Mike

    I always use the try cath statement...
    I think i found the problem.. I still used the sapbobscom 6.7 in place of the 2005 version...
    No the addon doesn't dump anymore!
    Very strange cause I don't use any object of the 2005 version or something.
    Normally it should be backward compatible.. I guess not!!!
    Regards,
    Steven

  • Driver unloading problem in mac os x snowleopard and lion

    Hi i want to unload a wifi driver which I am having.. It is not the driver which is for Airport.. My driver creates another interface en2..  That driver contains two classes Controller class and interface class. when I try to unload using sudo kextunload name_of_kext then it is giving as one instance of controller class and one instance of interface class are remaining , I cant unload the kext.. when I give sudo dmesg it will show terminate(kIOServiceSynchronous) timeout.. As terminate is failing free() is not getting called. The driver contains only one kext and both controller and interface classes inherits from IO80211Controller class and IO80211Interface class respectively.. Now how can I unload my driver..
    and also after kextunload while doing gdb, when I gave showallworkloopthreads one passive event source of IOCommandGate is remaining.. when i typed
    sudo kextutil -m name_of_kext.kext, It is showing as
    No kernel file specified ; using running kernel for linking
    name_of_kext.kext appears to be loadable (including linkage for on-disk libraries)
    When I gave
    sudo kextunload -v name_of_kext.kext/
    The output is :
    (kernel) Can't unload kext com.name.driver; classes have instances:
    (kernel) Kext com.name.driver class nameController has 1 instance
    (kernel) Kext com.name.driver class nameInterface has 1 instance
    Failed to unload com.name.driver - (libkern/kext) kext is in use or retained (cannot unload)
    Please could anybody help me in unloading my driver???

    along with that while doing gdb, when I gave showallworkloopthreads after kextunload one passive event source of IOCommandGate is remaining.. when i typed
    sudo kextutil -m name_of_kext.kext, It is showing as
    No kernel file specified ; using running kernel for linking
    name_of_kext.kext appears to be loadable (including linkage for on-disk libraries)
    When I gave
    sudo kextunload -v name_of_kext.kext/
    The output is :
    (kernel) Can't unload kext com.name.driver; classes have instances:
    (kernel) Kext com.name.driver class nameController has 1 instance
    (kernel) Kext com.name.driver class nameInterface has 1 instance
    Failed to unload com.name.driver - (libkern/kext) kext is in use or retained (cannot unload)
    Please could anybody help me in unloading my driver???

  • OSGi bundle JNI load/unload problem

    Hi everybody!!
    One more thread about the topic. I still didn't find a solution. Can anybody help me?
    I have an OSGi bundle that access native methods from a JNI library (for a medical device). I could make my bundle work once, but the second time I tried to access the methods, the dll was still in use I couldn't get data from the methods.
    This is the class I used (I even tried with a custom libloader):
    public class Omron637ITjni {
         /*Native functions from the JNI dll*/
         public native int OmronInit();
         public native int OmronClose();
         public native int OmronFinish();
         public native int OmronOpen(int disp);
         public native int OmronRead(MeasurementData MData, int pos);
         public native void OmronNumRead(DataCount DCount);
         static{
              //Using LibLoader
              /*try {
              LibLoader.loadCommLib("omron637IT");
              catch ( Exception x ) {
              // do what is necessary
                   System.out.println(x);
              //Using System Commander
              try{
                   System.out.println("Charging Library Omron");
                   System.loadLibrary("omron637IT");
              }catch(UnsatisfiedLinkError unsatisfiedlinkerror)
    System.out.println("Error loading library: " + unsatisfiedlinkerror);
    As it seems not to work, I'm trying with Singleton pattern. This is my new class:
    public class Omron637ITjni_Singleton {
              * Native functions from the JNI dll
              public native int OmronInit();
              public native int OmronClose();
              public native int OmronFinish();
              public native int OmronOpen(int disp);
              public native int OmronRead(MeasurementData MData, int pos);
              public native void OmronNumRead(DataCount DCount);
              private static Omron637ITjni_Singleton singleton;
              * Instance accessor following singleton.
              public static Omron637ITjni_Singleton getInstance() {
                   if (singleton == null){
                        System.out.println("Create Object");
                        singleton = new Omron637ITjni_Singleton();
                   else{
                        System.out.println("Object already created; use instance");
                   return singleton;
              * Private constructor to ensure that a <tt>ResourceManager</tt>
              * cannot be constructed from outside this class.
              private Omron637ITjni_Singleton() {     
              static{
                   //Using LibLoader
                   /*try {
                   LibLoader.loadCommLib("omron637IT");
                   catch ( Exception x ) {
                   // do what is necessary
                        System.out.println(x);
                   try {
                        System.out.println("Charging Omron library from Singleton");
                        System.loadLibrary("omron637IT");
                        System.out.println("Library charged");
                   } catch (UnsatisfiedLinkError ule) {
                        System.out.println("Error loading library: " + ule);
    At this very moment, when executing
    Omron637ITjni_Singleton jni = Omron637ITjni_Singleton.getInstance();
    from the Activator, I get from the Knopflerfish console:
    [stdout] omron637ITBPM starting...
    [stdout] Service registered: Omron 637IT Blood Pressure Monitor
    [stdout] Charging Library Omron desde Singleton
    [stdout] Library chatged
    [stdout] Create object
    Then, I call a services provided by the bundle:
    framework call omron637IT.Omron637ITInterface getData
    which calls the following function:
    public void getData() {
              // TODO Auto-generated method stub
              //Omron637ITjni jni = new Omron637ITjni();
              //Singleton
              Omron637ITjni_Singleton jni = Omron637ITjni_Singleton.getInstance();
              try {
                   int res = jni.OmronInit();
                   int ok_open = jni.OmronOpen(res);
                   System.out.println("The attempt of connecting the Omron637IT device ended with code: " + ok_open + " [(0) normal (1) still in process (2) error]");
                   if (ok_open == 0){ //OK
                        DataCount NumData = new DataCount();
                        jni.OmronNumRead(NumData);
                        System.out.println("DATA");
                        System.out.println("----");
                        for (int pos = 0;pos<NumData.nData1;pos++){
                             MeasurementData Data = new MeasurementData();
                             int ok_read = jni.OmronRead(Data,pos);
                             int annyo = Data.cYear + 2000;
                             int i = pos + 1;
                             if (ok_read == 0)
                                  System.out.println("Num: " + i + "; Date-> " + Data.cDay + "/" + Data.cMonth + "/" + annyo + "; Time-> " + Data.cTime + ":" + Data.cMinute + ":" + Data.cSecond + "; Sys-> " + Data.nSys + "; Dia-> " + Data.cDia + "; Pls-> " + Data.cPls);
                        int stop = jni.OmronClose();
                        System.out.println("Close with code " + stop + " Right?");
                        int finish = jni.OmronFinish();
                        System.out.println("Finish with code " + finish + " Right?");
                        System.gc();
                        System.gc();
                   else
                        System.out.println("The process of opening the device ended with error");
              }catch (UnsatisfiedLinkError ule) {
                   System.out.println("BRUTAL ERROR: " + ule);
    [stdout] The objeto already exists
    [stdout] BRUTAL ERROR: java.lang.UnsatisfiedLinkError: OmronInit
    Result: null
    which indicates that this time I'm using the same instance of the singleton class created in the activation process, but that I cannot access the method. ANY HINT??
    I also provide you the JNI dll code (because I add the exporting of the JNI_OnLoad & OnUnload methods:
    .h
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class omron637IT_Omron637ITjni */
    #ifndef Includedomron637IT_Omron637ITjni
    #define Includedomron637IT_Omron637ITjni
    #ifdef __cplusplus
    extern "C" {
    #endif
    * OnLoad & UnLoad
    JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM vm, void reserved);
    JNIEXPORT void JNICALL JNI_OnUnload(JavaVM vm, void reserved);      
    * Class: omron637IT_Omron637ITjni
    * Method: OmronInit
    * Signature: ()I
    JNIEXPORT jint JNICALL Java_omron637IT_Omron637ITjni_OmronInit
    (JNIEnv *, jobject);
    * Class: omron637IT_Omron637ITjni
    * Method: OmronOpen
    * Signature: (I)I
    JNIEXPORT jint JNICALL Java_omron637IT_Omron637ITjni_OmronOpen
    (JNIEnv *, jobject, jint);
    * Class: omron637IT_Omron637ITjni
    * Method: OmronRead
    * Signature: (Lomron637IT/MeasurementData;I)I
    JNIEXPORT jint JNICALL Java_omron637IT_Omron637ITjni_OmronRead
    (JNIEnv *, jobject, jobject, jint);
    * Class: omron637IT_Omron637ITjni
    * Method: OmronNumRead
    * Signature: (Lomron637IT/DataCount;)V
    JNIEXPORT void JNICALL Java_omron637IT_Omron637ITjni_OmronNumRead
    (JNIEnv *, jobject, jobject);
    * Class: omron637IT_Omron637ITjni
    * Method: OmronClose
    * Signature: ()I
    JNIEXPORT jint JNICALL Java_omron637IT_Omron637ITjni_OmronClose
    (JNIEnv *, jobject);
    * Class: omron637IT_Omron637ITjni
    * Method: OmronFinish
    * Signature: ()I
    JNIEXPORT jint JNICALL Java_omron637IT_Omron637ITjni_OmronFinish
    (JNIEnv *, jobject);
    #ifdef __cplusplus
    #endif
    #endif
    and part of the code (.cpp):
    JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM vm, void reserved)
         return JNI_VERSION_1_4;
    JNIEXPORT void JNICALL JNI_OnUnload(JavaVM vm, void reserved)
    JNIEXPORT jint JNICALL Java_omron637IT_Omron637ITjni_OmronInit
    (JNIEnv *env, jobject obj)
         iNumberOflist = DEVLISTMAX;
         iSpeed = USF_SPEED4800;
         iStopBit = USF_STOP2;
         iProduct = USF_BPM;
         ret = USF_Search(hDlg, iSpeed, iStopBit, iProduct, DevList, &iNumberOflist);
         return iNumberOflist;
    Can anybody tell me what I'm doing wrong???. This really drives me crazy
    BR & very thanks in advance for any input.

    This is a known bug. Check out http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4712793

  • CSS unloading problem

    Sorry a long question:
    I wonder if anyone can help me with an annoying problem.
    I'm building a site using css for the navigation bar (my
    first go at it!). I've attached it the css file by choosing attach
    css from the properties panel. Then I highlight what I want the
    style to go on and apply it.
    Once I've uploaded it, I can see the css style in my browser
    but people on different computers say they can't. What am I doing
    wrong? The site can be viewed at www.shelleyhadler.co.uk/nerja.html
    can you guys see the css???
    Is it the difference between selecting import or link when
    bringing in the css file??
    Thanks Shell

    > Is it the difference between selecting import or link
    when bringing in the
    > css
    > file??
    No. That would make no difference in how the CSS would be
    expressed on the
    page.
    > but people on different computers say they can't.
    Which computers? What do they see instead? I can see nothing
    on that page
    that might cause this to happen.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "shelleyfish" <[email protected]> wrote in
    message
    news:ejehju$ngi$[email protected]..
    > Sorry a long question:
    >
    > I wonder if anyone can help me with an annoying problem.
    >
    > I'm building a site using css for the navigation bar (my
    first go at it!).
    > I've attached it the css file by choosing attach css
    from the properties
    > panel.
    > Then I highlight what I want the style to go on and
    apply it.
    >
    > Once I've uploaded it, I can see the css style in my
    browser but people on
    > different computers say they can't. What am I doing
    wrong? The site can
    > be
    > viewed at www.shelleyhadler.co.uk/nerja.html can you
    guys see the css???
    >
    > Is it the difference between selecting import or link
    when bringing in the
    > css
    > file??
    >
    > Thanks Shell
    >

  • XML AS3 Problem

    I'm developing an elearning course for learning MS EXCEL.
    In the course, I have Next and Back Buttons to navigate between lessons.
    Each lesson has number of tasks (maximum of 3), which are buttons at the left side.
    and here is part of the XML file:
    <excel>
         <chapter id="1" title="">
         <screen title="lesson">
         <swf>EXCEL/CH01/CH01_S01.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Choose a lesson</prompt>
         </screen>
         <screen title="lesson" tasks="3">
         <swf>EXCEL/CH01/CH01_S02.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson01task01">
         <swf>EXCEL/CH01/CH01_S03.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>What's Excel?</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson01task02">
         <swf>EXCEL/CH01/CH01_S04.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>What's Excel?</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson01task03">
         <swf>EXCEL/CH01/CH01_S05.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>What's Excel?</rtitle>
         <prompt>Open the Microsoft Excel</prompt>
         </screen>
         <screen title="lesson" tasks="1">
         <swf>EXCEL/CH01/CH01_S06.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson02task01">
         <swf>EXCEL/CH01/CH01_S07.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Become Familiar with Excel</rtitle>
         <prompt> Roll mouse over each icon to recognize its name</prompt>
         </screen>
         <screen title="lesson" tasks="1">
         <swf>EXCEL/CH01/CH01_S08.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson03task01">
         <swf>EXCEL/CH01/CH01_S09.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Create a workbook</rtitle>
         <prompt> Follow the following Instructions</prompt>
         </screen>
         <screen title="lesson" tasks="1">
         <swf>EXCEL/CH01/CH01_S10.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson04task01">
         <swf>EXCEL/CH01/CH01_S11.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Modify a workbook</rtitle>
         <prompt> Create a new workbook</prompt>
         </screen>
         <screen title="lesson" tasks="1">
         <swf>EXCEL/CH01/CH01_S12.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson05task01">
         <swf>EXCEL/CH01/CH01_S13.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Modify a worksheet</rtitle>
         <prompt> Follow the Instructions</prompt>
         </screen>
         <screen title="lesson" tasks="3">
         <swf>EXCEL/CH01/CH01_S14.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson06task01">
         <swf>EXCEL/CH01/CH01_S15.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Customizing the Excel Window</rtitle>
         <prompt></prompt>
         </screen>
         <screen title="lesson06task02">
         <swf>EXCEL/CH01/CH01_S16.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Customizing the Excel Window</rtitle>
         <prompt>Follow the Instructions</prompt>
         </screen>
         <screen title="lesson06task03">
         <swf>EXCEL/CH01/CH01_S17.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Customizing the Excel Window</rtitle>
         <prompt>Follow the Instructions</prompt>
         </screen>
         <screen title="">
         <swf>EXCEL/CH01/CH01_S18.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Customizing the Excel Window</rtitle>
         <prompt>Follow the Instructions</prompt>
         </screen>
         <screen title="lesson">
         <swf>EXCEL/CH01/CH01_S19.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Test yourself</rtitle>
         <prompt>Follow the Instructions</prompt>
         </screen>
         <screen title="lesson">
         <swf>EXCEL/CH01/CH01_S19.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Test yourself</rtitle>
         <prompt>Follow the Instructions</prompt>
         </screen>              
         </chapter>
         <chapter id="2" title="">
    I load the info and swf files from XML into arrays.
    I'd like when the user click on Next and Back buttons, he navigate only between screens that has title of "lesson".
    and when the screen has attribute of tasks,  tasks buttons appear (number of task buttons is determined by the number in the tasks attribute).
    When the user click on the tasks button, he navigate to screens that comes after the lesson.
    I handled some of them but I can't handle the others.
    Here is the code:
    page.task1.visible = false;
    page.task2.visible = false;
    page.task3.visible = false;
    var excel:XML;
    var len:Number;
    var swfArray:Array=new Array();
    var leftArray:Array = new Array();
    var rightArray:Array = new Array();
    var promptArray:Array = new Array();
    var xmlLoader:URLLoader = new URLLoader();
    var xmlReq:URLRequest = new URLRequest("excel.xml");
    xmlLoader.load(xmlReq);
    xmlLoader.addEventListener(Event.COMPLETE, onXMLLoad);
    var task:Array = new Array(page.task1, page.task2, page.task3);
    function onXMLLoad(e:Event):void
         excel = new XML(xmlLoader.data);
         len = excel.chapter.screen.length();
         //trace(excel.chapter.screen.length());
         for(var i:Number = 0; i < len; i++)
              swfArray.push(excel.chapter.screen.swf[i].text());
              leftArray.push(excel.chapter.screen.ltitle[i].text());
              rightArray.push(excel.chapter.screen.rtitle[i].text());
              promptArray.push(excel.chapter.screen.prompt[i].text());
         page.left_txt.text = leftArray[0];
         page.right_txt.text = rightArray[0];
         page.prompt_txt.text = promptArray[0];
         //trace(leftArray.length);
    //trace(swfArray);
    var swfLoader:Loader = new Loader();
    swfLoader.load(new URLRequest("EXCEL/CH01/CH01_S01.swf"));
    swfLoader.x = 105;
    swfLoader.y = 130;
    page.addChild(swfLoader);
    var n:Number = 0;
    function loadScreen(strURL:String):void
         swfLoader.unload();
         swfLoader.load(new URLRequest(strURL));
         swfLoader.x = 105;
         swfLoader.y = 130;
         page.addChild(swfLoader);
         page.left_txt.text = leftArray[n];
         page.right_txt.text = rightArray[n];
         page.prompt_txt.text = promptArray[n];
         if(excel.chapter.screen[n].@tasks != undefined)
              for(var m:Number = 0; m < excel.chapter.screen[n].@tasks; m++)
                   task[m].visible = true;
                   task[m].addEventListener(MouseEvent.CLICK, onTask_btns);
         else
              for(var t:Number = 0; t < task.length; t++)
                   task[t].visible = false;
    function onTask_btns(e:MouseEvent):void
         if(e.target == task[0])
              loadScreen(swfArray[n+1]);
         else if(e.target == task[1])
              loadScreen(swfArray[n+2]);
         else if(e.target == task[2])
              loadScreen(swfArray[n+3]);
    function onNextButton(e:MouseEvent):void
         if(n < (swfArray.length - 1))
              n += 1;
         else
              n = 0
         loadScreen(swfArray[n]);
    function onPrevButton(e:MouseEvent):void
         if(n > 0)
              n -= 1;
         else
              n = (swfArray.length - 1);
         loadScreen(swfArray[n]);
    page.next_btn.addEventListener(MouseEvent.CLICK, onNextButton);
    page.prev_btn.addEventListener(MouseEvent.CLICK, onPrevButton);
    Waiting for your help.

    I'm developing an elearning course for learning MS EXCEL.
    In the course, I have Next and Back Buttons to navigate between lessons.
    Each lesson has number of tasks (maximum of 3), which are buttons at the left side.
    and here is part of the XML file:
    <excel>
         <chapter id="1" title="">
         <screen title="lesson">
         <swf>EXCEL/CH01/CH01_S01.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Choose a lesson</prompt>
         </screen>
         <screen title="lesson" tasks="3">
         <swf>EXCEL/CH01/CH01_S02.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson01task01">
         <swf>EXCEL/CH01/CH01_S03.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>What's Excel?</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson01task02">
         <swf>EXCEL/CH01/CH01_S04.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>What's Excel?</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson01task03">
         <swf>EXCEL/CH01/CH01_S05.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>What's Excel?</rtitle>
         <prompt>Open the Microsoft Excel</prompt>
         </screen>
         <screen title="lesson" tasks="1">
         <swf>EXCEL/CH01/CH01_S06.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson02task01">
         <swf>EXCEL/CH01/CH01_S07.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Become Familiar with Excel</rtitle>
         <prompt> Roll mouse over each icon to recognize its name</prompt>
         </screen>
         <screen title="lesson" tasks="1">
         <swf>EXCEL/CH01/CH01_S08.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson03task01">
         <swf>EXCEL/CH01/CH01_S09.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Create a workbook</rtitle>
         <prompt> Follow the following Instructions</prompt>
         </screen>
         <screen title="lesson" tasks="1">
         <swf>EXCEL/CH01/CH01_S10.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson04task01">
         <swf>EXCEL/CH01/CH01_S11.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Modify a workbook</rtitle>
         <prompt> Create a new workbook</prompt>
         </screen>
         <screen title="lesson" tasks="1">
         <swf>EXCEL/CH01/CH01_S12.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson05task01">
         <swf>EXCEL/CH01/CH01_S13.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Modify a worksheet</rtitle>
         <prompt> Follow the Instructions</prompt>
         </screen>
         <screen title="lesson" tasks="3">
         <swf>EXCEL/CH01/CH01_S14.swf</swf>
         <ltitle>Chapter 1</ltitle>
         <rtitle>Setting Up a Workbook</rtitle>
         <prompt>Click Next to continue</prompt>
         </screen>
         <screen title="lesson06task01">
         <swf>EXCEL/CH01/CH01_S15.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Customizing the Excel Window</rtitle>
         <prompt></prompt>
         </screen>
         <screen title="lesson06task02">
         <swf>EXCEL/CH01/CH01_S16.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Customizing the Excel Window</rtitle>
         <prompt>Follow the Instructions</prompt>
         </screen>
         <screen title="lesson06task03">
         <swf>EXCEL/CH01/CH01_S17.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Customizing the Excel Window</rtitle>
         <prompt>Follow the Instructions</prompt>
         </screen>
         <screen title="">
         <swf>EXCEL/CH01/CH01_S18.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Customizing the Excel Window</rtitle>
         <prompt>Follow the Instructions</prompt>
         </screen>
         <screen title="lesson">
         <swf>EXCEL/CH01/CH01_S19.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Test yourself</rtitle>
         <prompt>Follow the Instructions</prompt>
         </screen>
         <screen title="lesson">
         <swf>EXCEL/CH01/CH01_S19.swf</swf>
         <ltitle>Setting Up a Workbook</ltitle>
         <rtitle>Test yourself</rtitle>
         <prompt>Follow the Instructions</prompt>
         </screen>              
         </chapter>
         <chapter id="2" title="">
    I load the info and swf files from XML into arrays.
    I'd like when the user click on Next and Back buttons, he navigate only between screens that has title of "lesson".
    and when the screen has attribute of tasks,  tasks buttons appear (number of task buttons is determined by the number in the tasks attribute).
    When the user click on the tasks button, he navigate to screens that comes after the lesson.
    I handled some of them but I can't handle the others.
    Here is the code:
    page.task1.visible = false;
    page.task2.visible = false;
    page.task3.visible = false;
    var excel:XML;
    var len:Number;
    var swfArray:Array=new Array();
    var leftArray:Array = new Array();
    var rightArray:Array = new Array();
    var promptArray:Array = new Array();
    var xmlLoader:URLLoader = new URLLoader();
    var xmlReq:URLRequest = new URLRequest("excel.xml");
    xmlLoader.load(xmlReq);
    xmlLoader.addEventListener(Event.COMPLETE, onXMLLoad);
    var task:Array = new Array(page.task1, page.task2, page.task3);
    function onXMLLoad(e:Event):void
         excel = new XML(xmlLoader.data);
         len = excel.chapter.screen.length();
         //trace(excel.chapter.screen.length());
         for(var i:Number = 0; i < len; i++)
              swfArray.push(excel.chapter.screen.swf[i].text());
              leftArray.push(excel.chapter.screen.ltitle[i].text());
              rightArray.push(excel.chapter.screen.rtitle[i].text());
              promptArray.push(excel.chapter.screen.prompt[i].text());
         page.left_txt.text = leftArray[0];
         page.right_txt.text = rightArray[0];
         page.prompt_txt.text = promptArray[0];
         //trace(leftArray.length);
    //trace(swfArray);
    var swfLoader:Loader = new Loader();
    swfLoader.load(new URLRequest("EXCEL/CH01/CH01_S01.swf"));
    swfLoader.x = 105;
    swfLoader.y = 130;
    page.addChild(swfLoader);
    var n:Number = 0;
    function loadScreen(strURL:String):void
         swfLoader.unload();
         swfLoader.load(new URLRequest(strURL));
         swfLoader.x = 105;
         swfLoader.y = 130;
         page.addChild(swfLoader);
         page.left_txt.text = leftArray[n];
         page.right_txt.text = rightArray[n];
         page.prompt_txt.text = promptArray[n];
         if(excel.chapter.screen[n].@tasks != undefined)
              for(var m:Number = 0; m < excel.chapter.screen[n].@tasks; m++)
                   task[m].visible = true;
                   task[m].addEventListener(MouseEvent.CLICK, onTask_btns);
         else
              for(var t:Number = 0; t < task.length; t++)
                   task[t].visible = false;
    function onTask_btns(e:MouseEvent):void
         if(e.target == task[0])
              loadScreen(swfArray[n+1]);
         else if(e.target == task[1])
              loadScreen(swfArray[n+2]);
         else if(e.target == task[2])
              loadScreen(swfArray[n+3]);
    function onNextButton(e:MouseEvent):void
         if(n < (swfArray.length - 1))
              n += 1;
         else
              n = 0
         loadScreen(swfArray[n]);
    function onPrevButton(e:MouseEvent):void
         if(n > 0)
              n -= 1;
         else
              n = (swfArray.length - 1);
         loadScreen(swfArray[n]);
    page.next_btn.addEventListener(MouseEvent.CLICK, onNextButton);
    page.prev_btn.addEventListener(MouseEvent.CLICK, onPrevButton);
    Waiting for your help.

  • Setting External Loaded SWF dimension

    hi guys...,
    i'll be straight to point,well i'm now working on a project using action  script 3 now what i'm trying to make is a Main SWF that load whatever  other swf into it the tricky thing is that i used 1 xml document read  the external swf source and it's setting(such as it's x,y position and  it's width and height) and i'm having problem setting the loaded swf width and  height btw it's an desktop application and not a website application.,
    here is my code:
    //variable list
    var swfList:XMLList; //hold all the zone list from the xml
    var totalZone:uint; //total of zone there is in the xml
    var myURLLoader:URLLoader = new URLLoader();
    var swf:Movie Clip;//hold the loaded swf
    var swfLoader:Loader = new Loader();//loader instance used to load the external swf
    var myCounter:uint = 0;
    //load the xml file
    myURLLoader.load(new URLRequest('myXMLFile.xml'));
    myURLLoader.addEventListener(Event.COMPLETE, processXML, false, 0, true);
    function processXML(e:Event):void
        removeEventListener(Event.COMPLETE, processXML);
        XML.ignoreWhitespace= true;
        var myXML:XML = new XML(e.target.data);
        swfList = myXML.SWF;
        totalSWF = myXML.SWF.length();
        loadSWF();
    function loadSWF():void
        swfLoader.contentLoaderInfo.addEventListener(Event.INIT, swfSetting);
        swfLoader.load(new URLRequest(swfList[myCounter].@source));
    function swfSetting(e:Event):void
        //making new instance of sprite to hold the new loaded swf
        swf = new MovieClip();
        //casting the loader content into a movieclip
        swf = e.target.content;
        addChild(swf);
        swfLoader.unload();
        swf.x = swfList[myCounter].@left;
        swf.y = swfList[myCounter].@top;
        swf.width= swfList[myCounter].@width;
        swf.height= swfList[myCounter].@height;
        addChild(swf);
        if(myCounter < totalSWF)
            myCounter++;
            trace('myCounter: ' + myCounter );
            loadSWF();
    and here is what the result ( it make the width and height of the loaded swf to 0):
    swfLoader.contentLoaderInfo.width : 320
    swfLoader.contentLoaderInfo.height : 240
    module: MyVideo/flvplayer.swf
    x:0
    x container:0
    y:0
    y container:0
    xml width:550
    width container:0
    xml height:400
    height container:0
    myCounter: 1
    swfLoader.contentLoaderInfo.width : 550
    swfLoader.contentLoaderInfo.height : 400
    module: AnalogueClock.swf
    x:50
    x container:50
    y:0
    y container:0
    xml width:250
    width container:250
    xml height:200
    height container:200
    myCounter: 2
    swfLoader.contentLoaderInfo.width : 800
    swfLoader.contentLoaderInfo.height : 30
    module: MyNewsticker/newsticker.swf
    x:0
    x container:0
    y:0
    y container:0
    xml width:300
    width container:0
    xml height:50
    height container:0
    most of my loaded swf beside the analouge clock is full action script code and in case of the analouge clock it is a swf that has a movie clip on it's stage (the other are fully created from action script 3.0)
    please do help me..,
    cause i'm already really desperate and going crazy by this problem..,

    sorry i copied the code from the other swf i used to do try and error test..,
    basically the container is the same as swf varibale
    here the code so you would'nt get confused:
    //variable list
    var swfList:XMLList; //hold all the zone list from the xml
    var totalZone:uint; //total of zone there is in the xml
    var myURLLoader:URLLoader = new URLLoader();
    var swf:Movie Clip;//hold the loaded swf
    var swfLoader:Loader = new Loader();//loader instance used to load the external swf
    var myCounter:uint = 0;
    //load the xml file
    myURLLoader.load(new URLRequest('myXMLFile.xml'));
    myURLLoader.addEventListener(Event.COMPLETE, processXML, false, 0, true);
    function processXML(e:Event):void
        removeEventListener(Event.COMPLETE, processXML);
        XML.ignoreWhitespace= true;
        var myXML:XML = new XML(e.target.data);
        swfList = myXML.SWF;
        totalSWF = myXML.SWF.length();
        loadSWF();
    function loadSWF():void
        swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfSetting);
        swfLoader.load(new URLRequest(swfList[myCounter].@source));
    function swfSetting(e:Event):void
        //making new instance of sprite to hold the new loaded swf
        swf = new MovieClip();
        //casting the loader content into a movieclip
        swf = e.target.content;
        addChild(swf);
        swfLoader.unload();
        swf.x = swfList[myCounter].@left;
        swf.y = swfList[myCounter].@top;
        swf.width= swfList[myCounter].@width;
        swf.height= swfList[myCounter].@height;
        addChild(swf);
        if(myCounter < totalSWF)
            myCounter++;
            trace('myCounter: ' + myCounter );
            loadSWF();
    well in my code i did cast the loader into a movie clip and then set it's width and heigt,right???
    wouldn't it just give me the same result??
    if it's not can u describe what u mean in more detail??
    some example about accessing the loader content would be really appreciated

  • ITunes Stream Stuttering and Crackling Noises (Temporary Work Around Option

    Note: If you don’t take the time from your busy schedule to address these suggestions being provided in this and future upcoming series, then by all mean continue with what you were doing before and continue to experience the frustrations and problems. The series is not meant to be a cure-all for the problems you are having. But the information will go a long way toward correcting and improving a lot of issues that you may be having with your system. Think About It !!!!!!!!!!
    I listen to the radio a lot using the iTunes player as well as listen to music that I have transferred to the player. When a problem occurs it aggravates me to no end especially if it is occurring when I am try to relax to my music. At times I am also experiencing the stuttering and crackling issues in the 7.0 update that has been recently released. The following information can be useful in temporarily correcting this problem until Apple comes up with a patch to resolve this issue. If you choose to proceed with implementing this information then you assume any liability that may occur during your attempts at using and applying this information. This information has so far suited any needs that I may or am currently having to date personally.
    1)Quick Time Preferences – In the Quick Time Preferences\Audio tab check to make sure that the settings are at the default level. Your platform may reflect a different khz Rate. On my platform my default level will be the following:
    Rate: 44.1 khz
    Size: 16 bit
    Channels: Stereo (L R)
    When I listen to my music I like a good quality stereo sound so I have my audio sound routed from my laptop to my CD or Video jacks in the back of my stereo. Stereo System: Pioneer SX 251R Receiver. External Speakers: 2 - 8 ohm Yamaha.
    Make sure the Safe Mode box is unchecked. Close the Quick Time player. Now, when you begin experiencing the stutter problem there are two immediate steps that you can try to correct the problem:
    1)Stop the stream or the music that you are listening too and restart the service each time that the event occurs, (In my case the events that have been occurring has not been consistent when they do occur. Close monitoring in place on all connection ports. Running Snap In’s deployed: IPSec Monitor/MMC Console– Currently monitoring IKE and IPSec Statistics for any changes. To run this snap in properly the Event Monitor must be in the running state and actively logging events in the Administrative\Event Viewer Folder) I will also be configuring Dr Watson to generate a Stack and Dump file log to the desk top in the event of an unexpected occurrence. or,
    2)If that does not correct the problem then try the following: Go to the My Computer folder and open it up. When you have done so, Right click the Local Disk and enter the Properties section. When the Local Disk Properties box comes up, enter the Tools tab, in the Error Checking section, place a check mark in the “Automatically Fix System Errors” and click start\yes. Back out of that and close all running programs including firewall in the tray next to your clock and reboot the system.
    Once you have rebooted run the Disk Cleanup utility and the Disk Defragmenter utility. While we are using the Disk Defragmenter lets take an extra step to insure that we defragging the hard drive volumes as much as possible. Click on the analyze button a second time. If there are any entries in the box highlight the first entry and run the Defrag utility a second time.
    Tip! If you would get in the habit of running defrag process regularly on a daily basis it will help improve the overall baseline performance of your machine.
    Last Step: Open your player and try again.
    If you are still experiencing the problem and it hasn’t leveled out to your satisfaction then there are two additional steps that I have personally used or am currently using that may help with your issues. The steps will involve installing a small batch file program and a hot fix patch.
    User Profile Hive Cleanup Service– (Batch Program) Open your Browser and type in the following address: www.microsft.com once the page has loaded look for the search bar in the upper right hand corner of the page. In the search bar type in the following: “User Profile Hive Cleanup Service”. Once the search result page comes up click on the first result to bring up the proper download page. Before you can use this batch program you will be required to go through a short validation process before you can download the program. The validation process is to ensure that you are running a genuine windows platform.
    Overview
    The User Profile Hive Cleanup service helps to ensure user sessions are completely terminated when a user logs off. System processes and applications occasionally maintain connections to registry keys in the user profile after a user logs off. In those cases the user session is prevented from completely ending. This can result in problems when using Roaming User Profiles in a server environment or when using locked profiles as implemented through the Shared Computer Toolkit for Windows XP.
    On Windows 2000 you can benefit from this service if the application event log shows event id 1000 where the message text indicates that the profile is not unloading and that the error is "Access is denied". On Windows XP and Windows Server 2003 either event ids 1517 and 1524 indicate the same profile unload problem.
    To accomplish this the service monitors for logged off users that still have registry hives loaded. When that happens the service determines which application have handles opened to the hives and releases them. It logs the application name and what registry keys were left open. After this the system finishes unloading the profile.
    Once you have downloaded and installed the batch file close all running programs and reboot. Now, ‘This is important”, lets determine if the batch file is properly running after installation. Go to Start\Help and Support. Once the Help and Support Center comes up click on the following link: “Use tools to view your computer information and diagnose problems” under the “Pick a task” section. Once the page has been loaded in the left hand pane click on the “Advanced System Information” link. Once that page has been loaded click on the following link: View detailed system information (Msinfo32.exe).
    Once the System Information box is loaded look in the left pane and open the Software Environment Tree and click on the following link: Windows Error Reporting. If the batch program is properly running you should see the following entry: “User profile hive cleanup service version 1.6.30.0 started successfully
    &#x00a”. The ending symbols may be different on your platform.
    Now, we want to go to another location in your system to verify this entry and that this service is properly working again. Pull up your “Control Panel” and enter the “Administrative Tools” folder. Once there enter the “Event Viewer” folder. Then enter the “Application Folder”. If the service is properly working the following entry will be logged: User profile hive cleanup service version 1.6.30.0 started successfully, Event ID 1001. If for some reason this program is not functioning properly a different error code other then the Event Id 1001 will be generated and logged in this folder. Also if one is generated you will want to verify if it’s a genuine error. To do this you need to go back into the help and support center Advanced System Information link and click on the following link: “View the error log”. If anything goes wrong a corresponding general entry that was logged in the Event Viewer will be logged in this link verifying that a problem had occurred. All of the information in the logs will be useful in your trouble shooting efforts. To date I have not had any measurable conflicts to occur while using this batch program to date. Closing Overview: when this program engages it will target itself at the Kernel System only at shutdown and startup. A corresponding entry will be made in the folders that I have described above stating that the program had started or failed.
    System Restore Feature and USB Device’s – Event Viewer\System and Application Folders\Event ID SR 1 (Hot Fix Patch) – I have noticed that some folks are loading and unloading iTunes in attempt to correct problems. Also, I see by the forum board that a lot of folks are having a lot of problems with their iPods. Think about this for a moment, iPods will have their own unique set of drivers to operate from. I am going to attempt to explain an experience that occurred with me last year on this issue. When working with USB Devices it is important to keep your eyes on the Event Viewer folders for the following event id being logged: Event ID SR 1. This is especially true if you are using your System Restore Feature. The main folders that you want to keep your eyes on are the “System\Application” folders.
    I have not witnessed any specific Software Applications generating this code in general at this point in time. But when it comes to Software and USB Devices I have personally experienced a situation that did cause a SR 1 entry last year. Example: My wife has Sevier medical problems. When we travel I keep a USB Flash Drive on my key chain with her medical information installed in case of an emergence. The Medic Alert E-Health Key was a new device that came out that had bugs that needed resolved just as with iTunes 7.0. The short of the story is that the flash drive was conflicting with the System Restore Feature, which led to additional problems such as conflicts in the Add/Remove Utility. I could not properly unload the Uninstall .Dll files when trying to uninstall the flash drive itself using the Add/Remove Utility. During a conversation with a Microsoft Support tech I was informed that other unloading issues had also been identified in the Add/Remove Utility. I could be wrong but I think there is a patch available that would help with unloading issues while using the Add/Remove Utility. To keep an eye on any possible loading/unloading issues that I may have while using the Add/Remove Utility, I use the following program to determine if there any issue’s that I need to deal with: (30 Day Trial Program-Fully Functional)
    http://www.mikasalonen.com/remove/?remove40
    Program Name: Remove 4.0. All of the information you need to know about this program will be summarized in the provided link. If anything: USE IT !!!!
    NOTE: This SR 1 patch is only a temporary hot fix. They are suggesting that we wait until the next Windows XP service pack release that contains the hot fix.
    Article Id : 888402
    Last Review : June 01, 2006
    Revision : 1.5
    Also keep this in mind. The only time that you want to become concerned about the SR 1 issue is when you notice an increase in the number of SR 1 entries in Event viewer logs. If you are logging two (2) or more events then I would begin investigating the problem. Again, In my case the System Restore Feature was identified as the initial cause of conflict when the conflict first occurred when loading the USB Flash Drivers. So, if you suddenly notice this entry in the Event Viewer then you can pretty much bet that you are experiencing a USB issue that is conflicting with the System Restore Feature. But there is a Hot Fix available to temporarily resolve this issue as I have stated. Go back to the Microsoft link that was provided. When the page loads, in the search bar in the upper right hand corner of the page type in the following KB 888402. Be Advised – if you have to resort to this measure you will have to contact the Microsoft Support Team directly by phone to receive this patch.
    When you talk to the tech you will need to provide the following information: A brief description if the Event being generated in the Event Viewer as well as a brief description of the problem that you are having. Once the tech has verified the information he/she will e-mail the hot fix to you in a zip folder if I’m not mistaken.
    System and Third Party Drivers
    Drivers can be another source of conflict that can have a direct impact on how your system operates. I have already given you an example of this in the System Restore/USB Devices section. They can also cause unexpected stability issues. In addition to that malicious Root Kits and Trojans can download drivers on your hard drive without your knowledge further complicating matters. So, before I close this information out let me show you how we can quickly gather and display a listing of all drivers that are currently installed on you hard drive by using a very simple program. (This program will be a 15-day Trial program).
    Program Name: My Drivers 3.11
    With this program you will be able filter out all preinstalled drivers that came with the system at the time of purchase, thus exposing the remaining Third Party drivers and as well as the Unknowns. If you know what your doing I would take this time now and disable the drive(s) in question if removal procedures are deemed necessary once you have obtained the driver listing. My overall objective with this program is to immediately determine if there is anything out of the norm with the drivers overall.
    A download link is unavailable at this time. The web site appears to be under construction at this time.
    As a final step on this issue I suggest keeping an eye on the Device Manager for any sudden “Yellow Warning Symbols” appearing within the Device Manager Tree Structure.
    Print this information off and us it as a reference point. Any new helpful hints that I can think of will be posted as soon as I can squeeze the time in.
    Jblittlejohn
    Toshiba Satellite 1135/S155 Laptop
    Windows XP Home SP2
    Build 2600
    DSL Lite – 2Wire

    Oh, also want to add that the PC I'm currently using is:
    Windows Vista Home Premium Service Pack 2
    My other PC was:
    Windows 7 Ultimate
    My MacBook is:
    Max OSX 10.5.something (the last update available for it. .8 maybe? haha)
    Not sure if this stuff is important, but I thought I'd add it.

  • Loading External SWF Files: Making Things Simple...

    Hello everyone! This is my first post and I'm learning AS3 =)
    I didn't know about this forum but now I hope to have the time to come hear a lot, to help and be helped!
    Well, I'm trying to import some external files to my main flash file with buttons. Yes, this is a newbie question, but I'm learning... I click button 1 and content 1 is loaded, click button 2 and content 2 is loaded, and so on. So, I got two ways for doing it:
    **various buttons with listeners to run the function "loadCity"
    var box:MovieClip = new MovieClip();
    addChild(box);
    box.x=20;
    box.y=20;
    function loadCity (Event:MouseEvent):void {
    var currentCity=Event.target.name;
    var swfRequest:URLRequest=new URLRequest(currentCity+".swf");
    var swfLoader:Loader = new Loader();
    swfLoader.load(swfRequest);
    box.addChild(swfLoader); }
    The problem with this first option is that the content to the box is not renew with each click but it stacks one over each other, so I can't use it =/
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    var box:MovieClip = new MovieClip();
    addChild(box);
    box.x=20;
    box.y=20;
    var cityLoader:Loader = new Loader();
    var cityURL:URLRequest=new URLRequest("montreal.swf");
    cityLoader.load(cityURL);
    box.addChild(cityLoader);
    **various buttons with listeners to run it's own functions, like "montreal.addEventListener(MouseEvent.CLICK, loadMontreal);"
    var box:MovieClip = new MovieClip();
    addChild(box);
    box.x=20;
    box.y=20;
    function loadCity (Event:MouseEvent):void {
    var currentCity=Event.target.name;
    var swfRequest:URLRequest=new URLRequest(currentCity+".swf");
    var swfLoader:Loader = new Loader();
    swfLoader.load(swfRequest);
    box.addChild(swfLoader); }
    The problem with this first option is that the content to the box is not renew with each click but it stacks one over each other, so I can't use it =/

    Thanks Andrei!
    The "while statement" did the trick! =D
    Just one little problem. This first thread was opened involuntarily and I don't know how to delete it. The other topic, above this one, is more complete and has more details in what I'm trying to do. I still want to use tweens. =/ Could you check my other topic?
    Well, thanks again Andrei and I'm leaving the finished code here, just in case anyone else needs to do the same thing. =)
    montreal.addEventListener(MouseEvent.MOUSE_UP, loadCity);
    dublin.addEventListener(MouseEvent.MOUSE_UP, loadCity);
    sydney.addEventListener(MouseEvent.MOUSE_UP, loadCity);
    var box:MovieClip = new MovieClip();
    addChild(box);
    box.x=20;
    box.y=20;
    function loadCity (event:MouseEvent):void {
        var currentCity = event.target.name;
        // remove all the children of the box
        while (box.numChildren > 0) {box.removeChildAt(0);}
        var swfRequest:URLRequest=new URLRequest(currentCity+".swf");
        var swfLoader:Loader = new Loader();
        swfLoader.load(swfRequest);
        box.addChild(swfLoader);}

  • Loading External SWF Files: Making Things Simple... Still need help here =)

    Hello everyone! First of all, sorry for my english... I'm Brazilian and english is not my first language.
    This is my first post meant to be my first post and I'm learning AS3. Didn't know about this forum but now I hope to have the time to visit it a lot to help and be helped! =)
    Well, I'm trying to import some external files to my main flash file with buttons. Yes, this is a newbie question, but I'm learning... I click button 1 and content 1 is loaded, click button 2 and content 2 is loaded, and so on. So, I got two ways for doing it:
    edit: The code below is working fine now...
    montreal.addEventListener(MouseEvent.MOUSE_UP, loadCity);
    dublin.addEventListener(MouseEvent.MOUSE_UP, loadCity);
    sydney.addEventListener(MouseEvent.MOUSE_UP, loadCity);
    var box:MovieClip = new MovieClip();
    addChild(box);
    box.x=20;
    box.y=20;
    function loadCity (event:MouseEvent):void {
        var currentCity = event.target.name;
        // remove all the children of the box
        while (box.numChildren > 0) {box.removeChildAt(0);}
        var swfRequest:URLRequest=new URLRequest(currentCity+".swf");
        var swfLoader:Loader = new Loader();
        swfLoader.load(swfRequest);
        box.addChild(swfLoader);}
    The problem with this first option is that whenever I click a button, it don't renew the content of the "box"... instead, the content loaded is stacked over the last one and I don't know how to clean it... The user Andrei did the trick with the "while statement" so the above code is working but I don't know how to use tween with it...
    So here comes the second option:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    montreal.buttonMode=true;
    dublin.buttonMode=true;
    sydney.buttonMode=true;
    rio.buttonMode=true;
    paris.buttonMode=true;
    london.buttonMode=true;
    home.buttonMode=true;
    var box:MovieClip = new MovieClip();
    addChild(box);
    box.x=20;
    box.y=20;
    var cityLoader:Loader = new Loader();
    var cityURL:URLRequest=new URLRequest("montreal.swf"); //I use this to show a city when the site is opened
    cityLoader.load(cityURL);
    box.addChild(cityLoader);
    **Here I add the listeners to button, each one calling its own function like:
    montreal.addEventListener(MouseEvent.CLICK, loadMontreal);
    function cityTweens():void {
        var cityIn:Tween = new Tween(box, "y", Strong.easeOut, -350, 20, 1, true);}
    function loadMontreal(event:MouseEvent):void {
        var cityURL:URLRequest=new URLRequest("montreal.swf");
        cityLoader.load(cityURL);
        cityTweens();}
    function loadDublin(event:MouseEvent):void {
        var cityURL:URLRequest=new URLRequest("dublin.swf");
        cityLoader.load(cityURL);
        cityTweens();}
    function loadSydney(event:MouseEvent):void {
        var cityURL:URLRequest=new URLRequest("sydney.swf");
        cityLoader.load(cityURL);
        cityTweens();}
    function loadRio(event:MouseEvent):void {
        var cityURL:URLRequest=new URLRequest("rio.swf");
        cityLoader.load(cityURL);
        cityTweens();}
    function loadParis(event:MouseEvent):void {
        var cityURL:URLRequest=new URLRequest("paris.swf");
        cityLoader.load(cityURL);
        cityTweens();}
    function loadLondon(event:MouseEvent):void {
        var cityURL:URLRequest=new URLRequest("london.swf");
        cityLoader.load(cityURL);
        cityTweens();}
    function loadHome(event:MouseEvent):void {
        var cityURL:URLRequest=new URLRequest("home.swf");
        cityLoader.load(cityURL);
        cityTweens();}
    Well, the second option "is" working but I have some problems with the Tween... I have to wait the tween to finish before clicking another button or the tween will bug... I don't know how to disable the buttons until the tween is finished =/
    Now, I used to have one tween for each function but now I got it inside a function and just call it inside each function. Simple for you but I was like WOW when I had the idea and put it to practice! But I'm still repeating a lot of codes here with the "cityLoader.load(cityURL);" but when I try to put it inside the function "cityTweens" it will just open the Montreal City, maybe because I'm calling it as soon as the site opens...
    I'm almost sure I can make things simple, like mixing the idea of the first code (currentCity+".swf") so I don't need to call a function for each button. I just don't know how to do it...
    Could anyone help me? I'll also be VERY happy if you point me to any tip like good practices that I'm not following.
    Thanks in advance!
    Message was edited by: newToAS3

    As I said in your previous post, removing the child would not do the trick. Technically, you need to remove it after the tween is finished.
    In any case there are several issues with how you approach the whole thing. First of all, if you target your application to be on Internet - swf loading will not happen instantly - thus you, perhaps, need to consider waiting for swfs to be loaded before you doing anything with them. But if you just do it on local machine - you don't really need for them to show up. On the other hand, even with local environment it makes sense to take into account asynchronous/unpredicatable nature of external file loading.
    Also, your code can be more comact and the same functionality delegated to a single function. The code below demonstrates one of the ways. This is not the bes way though because it forces to load objects again although they were loaded already. But this is another story. I did not check code in action, of course (this is just an idea) - it is up to your to work out bugs:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    import flash.display.DisplayObject;
    import flash.display.Loader;
    import flash.events.Event;
    montreal.buttonMode = true;
    dublin.buttonMode = true;
    sydney.buttonMode = true;
    rio.buttonMode = true;
    paris.buttonMode = true;
    london.buttonMode = true;
    home.buttonMode = true;
    var box:MovieClip = new MovieClip();
    addChild(box);
    box.x=20;
    box.y=20;
    var cityLoader:Loader = new Loader();
    // this line will allow to wait untill content is loaded
    cityLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
    var cityURL:URLRequest = new URLRequest("montreal.swf"); //I use this to show a city when the site is opened
    cityLoader.load(cityURL);
    // don't need the following line
    // box.addChild(cityLoader);
    // make it a single listener
    montreal.addEventListener(MouseEvent.CLICK, loadSWF);
    dublin.addEventListener(MouseEvent.CLICK, loadSWF);
    sydney.addEventListener(MouseEvent.CLICK, loadSWF);
    rio.addEventListener(MouseEvent.CLICK, loadSWF);
    paris.addEventListener(MouseEvent.CLICK, loadSWF);
    london.addEventListener(MouseEvent.CLICK, loadSWF);
    home.addEventListener(MouseEvent.CLICK, loadSWF);
    // the single function handles all the loading
    function loadSWF(e:MouseEvent):void {
         switch(e.currentTarget) {
              case montreal:
                  cityURL = new URLRequest("montreal.swf");
              break;
              case dublin:
                  cityURL = new URLRequest("dublin.swf");
              break;
              case sydney:
                  cityURL = new URLRequest("sydney.swf");
              break;
              case rio:
                  cityURL = new URLRequest("rio.swf");
              break;
              case paris:
                  cityURL = new URLRequest("paris.swf");
              break;
              case london:
                  cityURL = new URLRequest("london.swf");
              break;
              case home:
                  cityURL = new URLRequest("home.swf");
              break;
         cityLoader.load(cityURL);
    function onLoadComplete(e:Event):void {
         loadedContent = e.target.content;
         // assuming that previous content will be moved out -
         // place new content behind previous one
         box.addChildAt(e.target.content, 0);
         // now you can start tweening
         // if there are more than one child
         if (box.numChildren > 1) {
              cityTweens();
    function cityTweens():void {
         // tween the topmost object
          var cityIn:Tween = new Tween(box.getChildAt(box.numChildren - 1), "y", Strong.easeOut, -350, 20, 1, true);
         // wait until motion finished
         cityIn.addEventListener(TweenEvent.MOTION_FINISH, tweenFinished);
    function tweenFinished(e:TweenEvent):void {
         // make Tween instance eligible for arbage collection
         e.target.removeEventListener(TweenEvent.MOTION_FINISH, tweenFinished);
         // now you can remove tweened object from the box
         box.removeChild(e.target.obj);
         e.target.obj = null;
    Edited some code.

  • External AS3: Loading swf video

    I need to load a  swf file, which is video player and video. The swf loads but the video contained in it does not play and the video controls are dead too. What do I need to do to load a swf containing a flv video so the video plays?
    I have a fla file connected by class to an external as file. Here is the external as file I am using:
    package final {
        import flash.display.Loader;
        import flash.display.Sprite;
        import flash.display.MovieClip;
        //import flash.text.*;
        // URLRequest class resides in flash.net package
        import flash.net.URLRequest;
        import flash.events.*;
        import flash.errors.*;
        public class ControllingSwfs extends Sprite {
            public function ControllingSwfs() {
                var swfContainer:MovieClip = new MovieClip();
                var swfLoader:Loader=new Loader  ;
                swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleteHandler);
                function loaderCompleteHandler(evt:Event):void {
                    addChild(swfLoader);
                    swfContainer=swfLoader.content as MovieClip;
                    swfContainer.x=10;
                    swfContainer.y=20;
                    addChild(swfContainer);
                    //swfContainer.setText('SWF Loaded Properly');
                    stage.addEventListener(MouseEvent.MOUSE_UP, unloadAssetHandler);
                function unloadAssetHandler(event:MouseEvent):void {
                    swfLoader.unload();
                    stage.removeEventListener(MouseEvent.MOUSE_UP, unloadAssetHandler);
                swfLoader.load(new URLRequest('kitty.swf'));
                addChild(swfLoader);

    Now I am going to ask some dumb questions:
    What is the difference between a script that loads an external image or a swf file into a new swf,
    and a series of scripts that, when used together with a fla file, create a swf movie player (into which a target flv file gets played)?
    Can a loader script load an that swf file that contains a movie in an ActionScripted movie player? If so, does it need access to the movie player scripts?
    A little background:
    My functioning ActionScript 3 movie player relies on 4 scripts —
    1. a button manager script that controls play, pause, rewind, fast forward and stop
    2. a media control script that extends flash.events.Event
    3. a video script that extends MovieClip, targets the video to be played and controls and displays things like the scrubber
    4. a main script that integrates all the above and is the Class for the fla file
    Because I wanted to be able to load multiple flv movies in my flash swf, and I didn't know how to make the movie player do this, I thought loading the movies as swf files via a loader would be the solution.
    If I could get my scripted movie player to be able to load and play different movies (as does the Adobe Media Player), that would be satisfying. (I am not relying on the AMP because I am doing this project for a class (which is now finished, but I'm still trying).
    What I really need is working sample scripts so I can begin to understand how to assemble something like this. Oh, and the key is that I am required to do this all in external ActionScript 3, not on the timeline within the fla file.
    Is there somewhere online that I can visit that creates purely scripted flash stuff?

  • Mac Mini cd stuck in drive

    I've had aMac Mini for less than a week and I've got an audio cd stuck in the superdrive. When I first inserted it, the mac spat it out, and I had to re-inserted it. It's now well and truly stuck. I've checked out the excellent forums here, and elsewhere, and tried all of the methods I could find, including terminal commands.
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh1750.html
    None of these work. It sounds like the drive is continually trying to search for the disc. On re-boot the (audio) CD is briefly identified, but disappears when I try to eject. In the disk utility program the eject button is 'greyed-out'. It seems that the computer doesn't think there is a disc present, I know there is (Snow Patrol - Final Straw).
    thanks,
    Chris

    Stuck discs, along with loading and unloading problems are an inevitable risk when using the sort of slot-loading drives found on the mini, iMacs and Mac laptops, but given the sheer number of these systems out there, it's not really a greatly common problem.
    The business card twisted to stop the disc spinning is a good trick for those situations where the Mac doesn't recognise the disc because it forces the system into an eject, but in a situation where the disc is stuck in the drive due to fouling the casing, it doesn't help of course - hence the advice to try and guide the disc out. It must be said that sometimes the only solution is to remove the casing!
    In the past, this issue has most commonly been caused by discs which are slightly thicker than standard, or a casing that has not been correctly refitted after opening the system up for something like a RAM upgrade.

Maybe you are looking for

  • Link to a specific workitem in UWL

    Hi All, I have a requirement to send a link to the user's Outlook that takes him directly to a specific workitem in the UWL (not the general UWL page). Can anybody tell me how to obtain this link...I know how to get to the UWL, but not to a specific

  • Fire Fox used to be so fast,since I upgraded to4 ,it is turtle slow,been waiting 10 minutes for it to load

    I just turned on my lap top,15 minutes ago and fire fox still hasn't loaded,I recently upgraded to fire fox 4 and since it has been terrible.

  • DBUri and xsl transform  hanging

    Hi All, I'm using the DBUriServlet (oradb) to access XML data stored in Oracle. If I query the data without transforming it, E.g. http://<machine>:<port>/oradb/TABLE_NAME/...etc...?contenttype=text/xml&rowsettag=<row-tag> Everything works fine and re

  • Scam email Your Apple ID was just used to download

    Has anyone received the following email / Scam? I didn't buy this. Please advise. Thanks.  Rob Your Apple ID was just used to download All-In-1 3D Emoticons Professional 5$ from the App Store on a computer or device that had not previously been assoc

  • Problem with CS4 brush tool "paint inside mode"

    When I use the Flash CS4 brush tool in "Paint Inside" mode it erases part of the strokes around shapes. For rectangles it erases the stroke on the top and left hand side where the brush head crosses it, though it never seems to affect the other sides