the button Delete video when it is coded to add video

The button at the bottom of the page titled "Watch the video" is supposed to attach the video to the screen of the display panel.  Instead it removes it.  Can someone look at the code below and tell me what I need to change to have it load the video?  the line of code that targets the video is

video.addEventListener (MouseEvent.CLICK, btnClick);

ACTIONSCRIPT FRAMEWORK 1
partial code.

var defaultSWF:URLRequest = new URLRequest("swfs/managers.swf");

lLoader.load (defaultSWF);
lLoader.x = Xpos;
lLoader.y = Ypos;
addChild (lLoader);

Adding a feature complete charger for loading clip
lLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, checkVid);

the video is set to play as soon as it loads, this function will be;
Say the sound started at the top, 'American Pie' to stop playback
When the video begins
function checkVid(event:Event):void
{
var loadedVideo:MovieClip = lLoader.content as MovieClip;
If (loadedVideo.video.playing)
{
Channel.Stop ();
}
}
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////

Function universal BTNS
Add a variable to contain the name of the last used button...
var currentButton:String;

function btnClick(event:MouseEvent):void
{
store the last button used in another variable
var thisButton:String = event.target.name;
Check whether the button is in use...
If (currentButton! = Ceboutonselectionnel)
{
If this is not the case, replace in the new .swf...
removeChild (lLoader);
stop the sound in the video or any other sound
SoundMixer.stopAll ();
currentButton = Ceboutonselectionnel;
var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + Ceboutonselectionnel + ".swf");
lLoader.load (newSWFRequest);
lLoader.x = Xpos;
lLoader.y = Ypos;
addChild (lLoader);
}
}
Listeners of BTN
video.addEventListener (MouseEvent.CLICK, btnClick);
contact_form1.addEventListener (MouseEvent.CLICK, btnClick);
contact_form2.addEventListener (MouseEvent.CLICK, btnClick);
contact_form3.addEventListener (MouseEvent.CLICK, btnClick);
contact_form4.addEventListener (MouseEvent.CLICK, btnClick);
contact_form5.addEventListener (MouseEvent.CLICK, btnClick);

garage.chest.videoC.addEventListener (MouseEvent.CLICK, btnClick);
garage. Chest.contact_form1.addEventListener (MouseEvent.CLICK, btnClick);
garage. Chest.contact_form2.addEventListener (MouseEvent.CLICK, btnClick);
garage. Chest.contact_form3.addEventListener (MouseEvent.CLICK, btnClick);
garage. Chest.contact_form4.addEventListener (MouseEvent.CLICK, btnClick);
garage. Chest.contact_form5.addEventListener (MouseEvent.CLICK, btnClick);


video.buttonMode = true;
video.useHandCursor = true;

contact_form1.buttonMode = true;
contact_form1.useHandCursor = true;

contact_form2.buttonMode = true;
contact_form2.useHandCursor = true;

contact_form3.buttonMode = true;
contact_form3.useHandCursor = true;

contact_form4.buttonMode = true;
contact_form4.useHandCursor = true;

contact_form5.buttonMode = true;
contact_form5.useHandCursor = true;


garage.door.addEventListener (MouseEvent.CLICK, openHandler);
function openHandler(event:MouseEvent):void {}
garage. Play();
}

arrowBtn.addEventListener (MouseEvent.CLICK, openUpHandler);
function openUpHandler(event:MouseEvent):void {}
garage. Play();
}

garage.chest.closeBtn.addEventListener (MouseEvent.CLICK, closeHandler);
function closeHandler(event:MouseEvent):void {}
garage.gotoAndPlay ("close");
}

garage.buttonMode = true;
garage.useHandCursor = true;
arrowBtn.buttonMode = true;
arrowBtn.useHandCursor = true;

to move an existing object (for example, dobj1) to the top of the display list of its parent, the following still works.

dobj1.parent.addChild (dobj1);

Tags: Adobe Animate

Similar Questions

  • How can I remove bookmarks on my toolbar when the "bluestar" is not turned on? (Ditto for the button 'delete' in the menu library).

    Dear Sir/Madam
    I had a quick glance at your solutions page and have tried to use all of the tips suggested however, when I try to remove three items on toolbar, none of them illuminate the "BlueStar" located next to their address. (I got rid of other elements). I also tried to remove the Firefox menu library items, however, the button delete them is not on either. I'm now concerned that items are spyware. I thought to reinstall the software, but it would mean losing all my favorites.

    For your information, I've just updated Firefox to 28.0.

    I would appreciate your help with this matter.

    Kind regards
    Suzanne

    Good to hear! I think you should be able to use the trackpad however. I think I remember to make it work on Mac a friends (first one I've listed below, in this web page)-use two fingers and tap the trackpad. I think you might have to watch that you don't type it too lightly, or he doesn't know what you're trying to do.

    On this second which says to use the CTRL, to my memory, the Mac is not that (it does now, maybe)... I think I had to use a different key that was downstairs left... Google Images, I see that there are four: fn, control, option, command... If the control key does not work, my next guess would be to use the option or command key. It's easy to see which experience.

    If you press and hold the function key, and then regular - click on the bookmark you want to delete, isn't that bring up the contextual menu? It's rather than just giving the bookmark two fingers tap.

    • * * * * * * * * * * * * * * * * * * * * * * *

    Use the tap two fingers on the trackpad, not a click, just a light tap with two fingers.

    • * * * * * * * * * * * * * * * * * * * * * * *

    If you have a mouse with a button, hold down the CTRL key, and then click the mouse button.

    If you have a magic mouse, press and hold the mouse on the right side.

    • * * * * * * * * * * * * * * * * * * * * * * *

    Otherwise, go to system-> Trackpad-> Point & Click Preferences and select your preferred option for "secondary click."

  • How can I keep my top bar with "delete" on it to go away when I click it. I want to remove successive emails using the button Delete on top of my Windows Live Mail

    I want to delete several emails in Windows Live Mail. When I click on the button Delete in the upper part, the entire bar disappears. I want to keep it there all the time to use it to remove some of the emails but it keeps going away after a single use.

    Right click on the home tab and click cut the Ribbon to deselect.

    You can also ensure that the delete button is always visible by showing it on the Quick Access toolbar at the top of the window. There is a drop-down menu at the right end of the QUICK access with the controls bar, and others can be added by right-clicking on any command on the Ribbon and select Add to quick access toolbar.

  • How to get the confirmation message when I press the button Delete?

    Hai,
    I want to display a confirmation popup before you delete the line.

    I created an Entiity object and a view to EmpTable... object and drag and drop the button Delete.
    I want to show a confirmation message that "you want to remove?
    If the user clicks OK, the data must be deleted... or not... I'm using JDeveloper 11 g

    You can use a popup for this. Put a component showpopuupbehavior on the delete button to display a popup.
    Article 13 of the web developer guide here shows how proceed.

    Timo

  • In windows live quick view mail, how can I activate the button Delete

    Hello

    When I opened my windows live mail, I can see a quick view, which is great. There are more than 3,000 mail there that I don't need. When I click on the button Delete is in shadow. How can I activate the button Delete or is there a quick way to delete these messages at once. I'm working on Windows xp

    Hello

    The question you posted would be better suited to Windows Live Solution Center. I suggest you to send your application in the Windows Live Solution Center for better support.

    http://windowslivehelp.com/product.aspx?ProductID=15

  • Can not find the button Delete in my windows media player 11.

    I don't think you understand me... they ask something.no you won't miss them but my windows media player... when I right click on my files or files .it's not remove button only remove from the list button.when I click on this file disappears for a while but returned then again.this is not good because I want to delete a large number of my files in my library .so what is the answer do I have to remove windows media player, and then download it again.must be a response,.

    * original title - just had my question answer can not find the button Delete in my windows media player 11

    Hello

    ·          Are you a right click on the file in the playlist or library?

    Try the procedure described in the following article:

    You cannot view, add, or remove items from the Windows Media Player 11 library: http://support.microsoft.com/kb/925718  

  • How can I delete my facebook contacts in my email? Receive a name-click, the button Delete is not lighted.

    How to remove Facebook and email contacts that I no longer use? When I click on a name, the button Delete is not lit so I can't use it. I clicked on my address book selected a contact but I couldn't delete the name.

    I use Windows Live Mail.

    Facebook doesn't allow other programs that can delete your friends.  If you want to unfriend someone to remove from the list, you must Access the site www.facebook.com and unfriend them directly.

  • Override the default behavior of the button Delete of list manager

    Hello

    Everyone please help. I'm trying to override the default behavior of the button Delete of list manager. The first thing, I want to restrict users to select only one option from the list to delete; meaning don't allow multiple options for users to remember. Before removing the selected option in the list; I want to perform a Javascript/AJAX validation on the database to check if the user has permissions to remove the option from the list. If the user has privileges simple delete option selected in the list. If the user does not have privileges and then draw the attention of the user with a message "not authorized...!  and this should occur when the user selects the option in the list to the list manager, and then click Remove from the list manager.

    Remove list manager of the shutter release button of the function 'deleteListElement ($x ('P3_LM_USES'))' on the onclick event. P3_LM_USES is my element of list manager in a form.

    I use the version of Oracle APEX 4.0.2 and Oracle 11 g R2 database.

    I was able to substitute the Add button functionality using the JS function below list manager and perform validation on database by using the method of ajax on request.

    {code}

    < script type = "text/javascript" >

    <!--

    This replaces the default manager of Apex lists which removes embedded spaces from the last item when it is added to the text box

    appendToList function (value, toList)

    {

    First of all, get rid of all spaces

    trimmedValue = value;

    var ajaxRequest = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS = VALIDATE_ADD_USE', 0);

    ajaxRequest.addParam('x01',trimmedValue);

    var ajaxResult = ajaxRequest.get ();

    Alert (ajaxResult);

    If (ajaxResult == 1)

    {

    Alert ('after alert ajaxResult');

    Then, divide the string separated by commas in a table

    valueArray = trimmedValue.split(",");

    for (i = 0; i < valueArray.length; i ++)

    {

    If (valueArray [i]! = ' ')

    {

    found = false;

    for (j = 0; j < toList.length; j ++)

    {

    If (toList.options [j] .value is [i] valueArray)

    found = true;

    }

    If (found == false)

    toList.options [toList.length] = new Option ([i] valueArray, [i] valueArray);

    }

    }

    }

    on the other

    {

    Alert ("you cannot add it" "+ theValue +'".) Please contact the administrator of the application. ") ;

    }

    }

    ->

    < /script >

    {code}

    I have this above function JS in a section of text of element the element of P3_LM_USES list manager post. Please help me with your suggestions for the button Delete.

    Thank you

    Orton

    Hello

    I was able to solve the problem by replacing the default functionality of the list manager delete button using a JS/AJAX process. FYI, here's the JS function.

    {code}

    function deleteListElement (toList)

    {

    Alert ("Hello in function");

    var x = $x ('P3_LM_USES');

    for (var i = 0; i)< x.options.length;="">

    {

    If (x.options [i] .selected is true)

    {

    Alert (x.options [i] .value);

    var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=VALIDATE_REMOVE_USE',0);

    ajaxRequest.addParam('x02',x.options[i].value);

    var ajaxResult = ajaxRequest.get ();

    If (ajaxResult == 1)

    {

    var y = x.remove (i);

    alert (y + 'removed');

    }

    on the other

    {

    Alert ("you can't remove this" ' + x.options [i] .value +' "item in the list.) Please contact the database administrator.') ;

    }

    }

    }

    }

    {code}

    Thank you

    Orton

  • Remove the button DELETE in webconsole:OIM9102

    Hi Experts,
    I want to remove the button Delete when I search for users in the console of the IOM.
    http://hostname:port/xlWebApp/searchUser.do
    I modified tjspSearchUserResultsTiles.jsp, commenting on all the tags that refer to DELETION operations. but still it is not reflected.
    I was able to remove the http://HostName:PORT/xlWebApp/manageUser.do delete button by changing the tjspViewUserDetailsTiles.JSP.
    I read in another link, to change TableGenerator.jsp, but I do not see that anything related to the DELETE operation. so don't would not invite risk by changing something else. any of you can suggest me please?
    The goal is to disable the REMOVE Option of the Web console, is there another way, I could do this?
    Thank you

    Try to use javascript based fix

    You can remove the button Delete of the page using a small javascript based snippet that will take place during the loading of the page.

    var loc = window.location + ''; '.
    If (loc. IndexOf("searchUser.do") >-1) {}

    var El = document.getElementsByClassName ("Commandbutton");
    for (var i = 0; i)
    If (El.value == 'User of MSN Search') {}
    El [i] .setAttribute ("Disabled", "Disabled");
    $(El[i]).remove ();
    }
    }

    }

    Please note that this uses the remove method of Jquery, so you would need that which include in javascript to get this working.

  • Help with Javascript for the button Delete

    Hi, Im new JavaScript and have my code works partially, but the trouble with a nested if-then-else statement.

    I have a page element, P4_COUNT, and if its value is 0, the button Delete will allow the user to delete the record. If the number is > 0, a message should appear stating that the record cannot be deleted. That's what I have so far and it works, but the first ELSE is misplaced. This code is the URL target for my button remove.

    JavaScript:var response; response = confirm ("are you sure you want to delete this POC?'");
    If {(response)
    If (document.getElementById('P4_COUNT').value == 0) {}
    doSubmit ('DELETE');
    }
    }
    else {-this other fires when the user hits cancel on the first question above not what I want, I want another one here who said only: "removal cancelled '"}
    -This one should only be fired if p4_count is not equal to 0
    var answer2;
    answer2 = confirm ('you cannot remove this POC, that this POC is associated with a RIF.');
    If {(answer2)
    Alert ('cancelled deletion');
    }
    else {}
    Alert ('cancelled deletion');
    }
    }


    The above should follow this logic:

    Are you sure you want to delete this POC?
    Yes - if p4_count = 0 then
    delete the record
    on the other
    second line: cannot delete this record
    OK - prompt removal cancelled
    Cancel - prompt removal cancelled
    end if;
    Cancel - prompt removal cancelled


    Help, please. Thank you, Laura

    Published by: user8936524 on May 10, 2010 14:14

    Hello

    Try if it works. I didn't test it

    javascript:if($v('P4_COUNT')*1==0){
    var answer=confirm('Are you certain you want to delete this POC?');
    if(answer){doSubmit('DELETE');}
    else{alert('Deletion Cancelled');}
    }else{alert('You may not delete this POC, as this POC is associated to an FRR.');}
    

    BR, Jari

  • missing text in the button Delete the bookmark.

    There is missing text in the button Delete the bookmark. The key works but the text is missing.

    Here is a screenshot of the problem:
    http://Tinypic.com/view.php?pic=dltkau & s = 8 #. U0rV96KrFEM

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • Satellite A660 - sensitivity of the button Delete

    Hello

    I bought a Satellite A660 a week ago. Everything is fine, except for one thing so far: the delete button must be perfectly struck in the middle of work. What I mean is that if you press the button Delete, even very slightly off center (laterally), it does nothing. All the other buttons I have tested work perfectly - even if you touch or the other side.
    In view of the frequency of use of the button Delete in the edition, you can imagine how frustrating it is!

    How can I get it repaired or replaced?

    Thank you very much.

    Gary Bartlett

    Hey Buddy,

    It's not easy to say something about this, but from my own experience, I can say every key on the keyboard has the same sensitivity, I don t notice any difference between the buttons.

    So in your case I contact an authorized service provider and ask the guys on this problem. They can tell you if it of normal or not and if not they can replace the keyboard. It would be free if your laptop is under warranty. :)

  • deletion line causes the error after clicking on the button Delete: oracle Apex 5.0

    helloo...

    Use: Under shape whenever I checked and click on Remove button works fine.

    According to the need on my project, I took a default editable TEXT FIELD. Now, I did this TEXT FIELD on the SCREEN only.

    so now if click the button Delete after checking the check box I get below error.

    Session state protection violation:

    This can be caused by manually editing the protected element p11_total.

    Thank you

    Pranav shah

    Hi Dominique,.

    Pranav.Shah wrote:

    helloo...

    Use: Under shape whenever I checked and click on Remove button works fine.

    According to the need on my project, I took a default editable TEXT FIELD. Now, I did this TEXT FIELD on the SCREEN only.

    so now if click the button Delete after checking the check box I get below error.

    Session state protection violation:

    This can be caused by manually editing the protected element p11_total.

    Thank you

    Pranav shah

    Change your display-only item and do save the State of session No.

    or create the sample on apex.oracle.com and share credentials with us.

    Kind regards

    Jitendra

  • play on the button Delete

    Hi dear,
    I'm trying to create the button Delete Action: redirecting to a URL
    JavaScript:confirmDelete(htmldb_delete_message,'DELETE');
    but the massage of javascript does not, what is the problem...
    FYI,.
    Remove this button as a manual
    Thank you
    ABO Yahya

    ABO Yahya,

    I've changed the reference to htmldb_delete_message to a custom string. It works ok for you?

    Malay Keith

  • Hide the button Delete when no line is marked as a table.

    Hi all

    I have demands, but I couldn't find the right solution:

    1. to hide remove button when no line is marked as a table.

    2. to hide the Apply Changes button when no line is existed as a table.

    For no. 1, I tried the solution of How to hide and show the button if the line is selected in the form of tables , but it did not work.

    Could someone please give some advice?

    I use Oracle APEX 4.2.5.

    Thank you and best regards,

    Troy.

    Hi Troy,

    fair value the scope of the event of dynamic dynamic Action and it works!

    I had to fix your delete action to test the results.

    Kind regards

    Steven

Maybe you are looking for