Swf that's embeded in another swf only works on first run

If you go here
and click on the animation link the skin at the bottom of the video is visible then fades away.  If you navigate away from animation then come back the skin isn't there. I don't know why.
Here's the code for the animation swf with the parts I think are relivern in bold:
import mx.video.*;
var totalRecord:Number = 0;
var intStartImage:Number = 5;
var p:Number = 0;
var currPos:Number = scrollFace._y;
var scrollHeight:Number = scrollTrack._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = mask_mc._height;
var initPosition:Number = scrollFace._y=scrollTrack._y;
var initContentPos:Number = thumbnail_mc._y;
var finalContentPos:Number;
var left:Number = scrollTrack._x;
var top:Number = scrollTrack._y;
var right:Number = scrollTrack._x;
var bottom:Number = scrollTrack._y + scrollTrack._height - scrollFaceHeight;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = 0;
var moveAmt:Number = 0;
var contentHeight:Number;
var scroller:Boolean;
//thumbnail_mc._y = thumbnail_mc._y-6; // top of image align with top of mask
function loadXML(loaded) {
    if (loaded) {
        xmlNode = this.firstChild;
        image = [];
        description = [];
        thumbnails = [];
        Heading  = [];
        total = xmlNode.childNodes.length;
        totalRecord = total;
        for (i=0; i<total; i++) {
            image[i]         = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
            description[i]     = xmlNode.childNodes[i].childNodes[1].attributes.Medium + "\n" + xmlNode.childNodes[i].childNodes[1].attributes.Size ;
            thumbnails[i]     = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
            Heading[i]        = xmlNode.childNodes[i].childNodes[3].attributes.Title;
            thumbnails_fn(i);
        scrollbarOnOff();
        firstImage();
    } else {
        content = "file not loaded!";
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("galleryxml/animation.xml");
listen = new Object();
listen.onKeyDown = function() {
    if (Key.getCode() == Key.LEFT) {
        prevImage();
    } else if (Key.getCode() == Key.RIGHT) {
        nextImage();
Key.addListener(listen);
previous_btn.onRelease = function() {previousButton();};
function previousButton():Void {
        if(intStartImage >5) {   
         intStartImage--;           
         thumbnail_mc._y += 65;
    prevImage();
next_btn.onRelease = function() {nextButton();};
function nextButton():Void {
            if(totalRecord >5)
        if(intStartImage < 5){intStartImage = 5;}
        if(totalRecord > intStartImage)
        intStartImage++;
        thumbnail_mc._y -= 65;
        p++;
        contentHeight = thumbnail_mc._height + 8;
        moveVal = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
         currPos = scrollFace._y;
    nextImage();
scrollTrack.onPress = function():Void {
     if (scrollFace._y > _ymouse) {
        previousButton();
     }else{
        nextButton();
this.onEnterFrame = function() {
    filesize = picture.getBytesTotal();
    loaded = picture.getBytesLoaded();
    preloader._visible = true;
    if (loaded != filesize) {
        preloader.preload_bar._xscale = 100*loaded/filesize;
    } else {
        preloader._visible = false;
        if (picture._alpha<100) {
            picture._alpha += 10;
function nextImage() {
    if(scroller == true){
    finalContentPos = maskHeight-contentHeight+initContentPos;
    moveVal = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
    moveAmt = (contentHeight / totalRecord) / moveVal;
    currPos = (moveAmt * p + 1) + top;
    if(currPos > bottom - 5){currPos = bottom - 1;}
    if(thumbnail_mc._y < finalContentPos){thumbnail_mc._y = finalContentPos;}
    contentHeight = thumbnail_mc._height + 8;
    if(p<total){
        if (loaded == filesize) {loadAnimation();}
        scrollFace._y = currPos;
    else{
    currPos = bottom;
    p = total - 1;
    }else{loadAnimation();}
function prevImage() {
    if(currPos < top + (moveAmt*2)){currPos = top +3;}
    if (p>0) {
        p--;
        loadAnimation();
     if(thumbnail_mc._y > initContentPos){thumbnail_mc._y = initContentPos;}
     currPos -= moveAmt;
    scrollFace._y = currPos;
    if(scrollFace._y <= scrollTrack._y +4){scrollFace._y = scrollTrack._y;}
function firstImage() {
    moveVal = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
    if (loaded == filesize) {loadAnimation();}
function picture_num() {
    current_pos = p+1;
     pos_txt.text = current_pos+" / "+total;
scrollFace.onPress = function() {
    contentHeight = thumbnail_mc._height;
    moveVal = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
    startDrag(this, false, left, top, right, bottom);
        this.onMouseMove = function() {
        dy = Math.abs(initPosition-this._y);
        thumbnail_mc._y = Math.round((dy*(-1*moveVal))+initContentPos);
scrollFace.onMouseUp = function() {
    stopDrag();
    delete this.onMouseMove;
function scrollbarOnOff():Void {
    if (totalRecord < 6){
    scroller = false;
    scrollFace._visible = false;
    next_btn._visible = false;
    previous_btn._visible = false;
    scrollTrack._visible = false;
    } else {
    scroller = true;
    scrollFace._visible = true;
    previous_btn.enabled = true;
    next_btn._visible =true;
    scrollTrack._visible = true;
function loadAnimation():Void {
        playVideo();
        desc_txt.text = description[p];
        Heading_name.text = Heading[p];
        picture_num();
function thumbnails_fn(k) {
    thumbnail_mc.createEmptyMovieClip("t"+k,thumbnail_mc.getNextHighestDepth());
    tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {
        contentHeight = thumbnail_mc._height + 8;
        target_mc._y =(mask_mc._y+(target_mc._height+8)*k) - 8;
        target_mc.pictureValue = k; //pictureValue is a dynamic var that's created here
        target_mc.onRelease = function() {
            p = this.pictureValue;
            this._alpha = 100;
            if (p == 1){
                scrollFace_y = top;
            }else{
            scrollFace_y = currPos;
if (loaded == filesize) {
        playVideo();
        desc_txt.text = description[p];
        Heading_name.text = Heading[p];
        picture_num();
        is_scroller_needed();
        nextImage();
        target_mc.onRollOver = function() {
            /* new code goes here */
            this._alpha = 60;
        target_mc.onRollOut = function() {
            this._alpha = 100;
    image_mcl = new MovieClipLoader();
    image_mcl.addListener(tlistener);
    image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
function playVideo():Void {
    myVideo.skin_mc._alpha = 100;
    myVideo.skin_mc._visible = true;
    _level3.logo_mc._alpha = 0;
    myVideo.skinAutoHide = false;
    myVideo.contentPath = image[p];
    setTimeout(hideSkin, 2500);
var tl:MovieClip = this;
function hideSkin() {
    tl.onEnterFrame = function() {
        myVideo.skin_mc._alpha -= 1;
        if(myVideo.skin_mc._alpha <=0){
            _level3.logo_mc._alpha = 100;
            delete this.onEnterFrame;
            myVideo.skinAutoHide = true;
            myVideo.skin_mc._alpha = 100;
            myVideo.onRollOver = function() {_level3.logo_mc._alpha = 0;}
            myVideo.onRollOut = function() {_level3.logo_mc._alpha = 100;}

i don't see a problem (with ff).

Similar Messages

  • Firefox crashes when any facebook mafiawars link is clicked, it only works if i run firefox in safe mode. Why? & How do i fix it?

    after being auto-updated to version 15, firefox crashes when any facebook mafiawars link is clicked, tried versions 3.6.12 to 15 without any change and even updated java but it only works if i run firefox in safe mode. what happened and how to i fix this major problem? the only info i found was about pogo and said to update to version 15 but thats what caused the problem in the first place...

    Hi,
    Unfortunately we had a data base error today and lost some user accounts when we had to go back to our backups. If you have started this thread, your's is one of those. Since we can not recreate your account, please sign-up for a new account here to reply to the forum messages:
    https://support.mozilla.org/users/auth
    You can use the same username and email address as before. We are very sorry for the inconvenience.

  • Anytime I try to print in Firefox a Microsoft KB article that is 1 page, I always only get the first page.

    Anytime I print any Microsoft KB article, I only get the first page worth of text. This is very troubling because the articles are typically long, and I only get 1 page. The second page always comes out blank (even though in IE it will print out multiple pages with all the text).
    My specific example today is listed in the URL below. This example will only print to the "DIR" command, I don't get the full page printed out.
    Anyone else have this problem? Anyone have a resolution? I hate having to hit up IE just to print a single article.
    I updated to FF 8.01 just to make sure, and I have tried different printers and even computers, to no avail. Even the print preview has the issue, only the first page worth of text is printed and the second page is always blank (even if there are 3, 4, 5, etc pages of data to be printed).
    I have also tried the Firefox Menu -> Print command, and the "on-page" print command. I have seen moderate success with highlighting all the text that I want to print and going to "Print-Selection" but it is ugly.
    Any feedback or assistance is greatly appreciated.

    '''Try the Firefox Safe Mode''' to see how it works there. The Safe Mode is a troubleshooting mode, which disables most add-ons.''
    ''(If you're not using it, switch to the Default theme.)''
    * You can open the Firefox 4.0+ Safe Mode by holding the '''Shift''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Don't select anything right now, just use "'Start in Safe Mode"''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shift key) to open it again.''
    '''''If it is good in the Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one.
    Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • My AS3 buttons only work the first time

    I have set up my buttons so that are each a movieclip with 'over' and 'out' states/frame labels. They exist on the main timeline. The actionscript controlling them is situated in a frame on the main timeline and the frame holding that actionscript is on the same point within the main timeline where the buttons are introduced. I am using actionscript 3.
    The buttons have been set up so that they navigate to another frame on the same main timeline and on that frame is a movie. The movie dimensions are smaller than the main stage so the buttons are still accessible when each movie is played.
    The problem is my buttons are only working once - by that I mean they go to the correct place when clicked the first time, but when they are clicked again they navigate elsewhere.
    Totally doing my head in trying find a solution and if anyone can help and show me what I'm doing wrong that would be really really helpful. Here's the code I used for the buttons...
    stop();
    function mainBtnOver(event:MouseEvent):void {
    event.target.gotoAndPlay("over");
    function mainBtnOut(event:MouseEvent):void {
    event.target.gotoAndPlay("out");
    ///////// INDIVIDUAL BUTTON CLICK FUNCTIONS
    function mainBtn1Down(event:MouseEvent):void {
    gotoAndPlay("01Movie");
    function mainBtn2Down(event:MouseEvent):void {
    gotoAndPlay("02Movie");
    function mainBtn3Down(event:MouseEvent):void {
    gotoAndPlay("03Movie");
    function mainBtn4Down(event:MouseEvent):void {
    gotoAndPlay("04Movie");
    function mainBtn5Down(event:MouseEvent):void {
    gotoAndPlay("05Movie");
    ////////// Button 1 Listeners
    mainBtn1.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn1.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn1.addEventListener(MouseEvent.CLICK, mainBtn1Down);
    ////////// Button 2 Listeners
    mainBtn2.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn2.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn2.addEventListener(MouseEvent.CLICK, mainBtn2Down);
    ////////// Button 3 Listeners
    mainBtn3.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn3.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn3.addEventListener(MouseEvent.CLICK, mainBtn3Down);
    ////////// Button 4 Listeners
    mainBtn4.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn4.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn4.addEventListener(MouseEvent.CLICK, mainBtn4Down);
    ////////// Button 5 Listeners
    mainBtn5.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn5.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn5.addEventListener(MouseEvent.CLICK, mainBtn5Down);
    I'm sure it's me doing something very stupid - I'm very new to AS3. Any help much appreciated.
    Thanks :-)

    If the frame labels you are going to have movie clips that have your presentation content, you should use gotoAndStop("frameLabel") instead of gotoAndPlay("frameLabel"). There's no need to play the main timeline when you go to and show any of these movie clips. I'm not sure if this is your issue, though... Using your code, I had no problems.
    Also, you can set up your animated buttons in a way that eliminates the need to have your ROLL_OVER and ROLL_OUT events. This isn't necessarily better, but just another method. Although I might use other ways to animate a button, I do like to reduce the code it takes to use the buttons in an interface, and only use CLICK in most cases.

  • System only works on first power up after plugging in graphics card

    I have a MSI Lightning R7970 that I purchased new however there's an odd problem with it that the internet does not seem to have answers to. Basically my computer only works for the first time after I plug in my graphics card into my motherboard and it works pretty flawlessly (including gaming for hours) until I shut it down or it goes into sleep mode. After that, the computer cannot power up fully but instead only keeps cycling with the fans turning on 1 second and turning off again. This happens all the time and definitely isn't a seating issue because I've gone through this a lot of times already.
    If I take the graphics card out and instead rely on the motherboard onboard graphics, this issue doesn't occur at all. I've pulled out every other component in the system and spent multiple afternoons trying to find another cause but I can't find anything wrong. Everything in the system is new.
    So should I RMA the graphics card? Or are there other settings I should check?
    My config includes i5-4670k, Asus Z87I-Pro, Silverstone ST70F-ES, Crucial Ballistix DDR3 4GBx2.

    Quote
    first time after I plug in my graphics card into my motherboard and it works pretty flawlessly (including gaming for hours)
    So should I RMA the graphics card?
    no
    Quote
    Or are there other settings I should check?
    My config includes i5-4670k, Asus Z87I-Pro, Silverstone ST70F-ES, Crucial Ballistix DDR3 4GBx2.
    could be anything, BIOS/mainboard issue, PSU issue, ram issue
    some kind of mainboard shorting issue
    to check the video card: test it in another PC

  • Hide "more" button in a list view, only works for first item in the list

    I have the following code in a list view that outputs several dozen items in a web app.  The code only works for the first item, how can I make it loop through and execute the test for each item in the list view?  The {tag_hide more button} is a checkmark field that yields a numeric 1" if checked otherwise yields a numeric "0".
    <div id="more-option">
            <p class="right"><a href="{tag_itemurl_nolink}" class="btn btn-small btn-very-subtle">More &rarr;</a></p>
          </div>
          <div class="more-selection" style="display: none;">{tag_hide more button}</div>
          <script>
    if ($(".more-selection").text() == "1") {
        $("#more-option").hide();
    </script>

    What's the URL for the site where you are using this?  Offhand, it looks like it should work with your first example so you are either placing the script before those elements are loaded or you might try wrapping your current javascript inside the:
    $(document).ready(function() {
    --- your existing javascript here
    This make sure the code runs once all the html is loaded on the page.  Without seeing a URL and debugging with the js console in Chrome I can't give you a solid answer.
    But, I do know that you can probably do this with a lot less markup.  Once we figure out what the actual problem is I have a better solution mocked up for you on jsfiddle.
    When looking at my HTML code on jsfiddle, please realize I setup some dummy HTML and removed your tags and added actual values which would be output by your tags.  The main thing I did was remove the whole div.more-selection and instead, added a "data-is-selected" attribute on your div.more-option element.  Then, in my javascript for each div.my-option element on the page, we loop through them, find the value of that data attribute and hide that div if it's less than 1 (or 0).
    Here's the fiddle for you to look at:  http://jsfiddle.net/thetrickster/Mfmdu/
    You'll see in the end result that only two divs show up, both of those divs have data-is-selected="1".
    You can try pasting the javascript code near the closing </body> tag on your page and make sure to wrap my js inside a <script> tag, obviously.  My way is neater on the markup side.  If you can't get it to work it's likely a jquery conflict issue.  My version is using the $(document).ready() method to make sure all the code is loaded before it runs.
    Best,
    Chris

  • InDesign CS5.5 Exporting PDF master page hyperlinks only work on first 2 pages

    We recently upgraded from CS5 to CS5.5 and now our hyperlinks that go to different pages in the PDF only are working on the first 2 pages of each document in the book.  We have about 30 documents wrapped up in a indesign book.  On the master page we have hyperlinks that allow users to quickly go to the index in the back of the book.  After the CS5.5 upgrade the hyperlinks only work the the first 2 pages of each document.  We export to PDF(print) with hyperlinks enabled.
    I have tried the below:
    - I have tried 2 different computers
    - Deleted and re-created the indesign preference file
    - deleted and re-created the hyperlinks

    Can you recommendd the best way to manage the following:
    I'm on a Mac. Created an enewsletter for a client in Indesign CS5 with 7 "click here"s throughout the document. The hyperlinks are to connect w other PDF documents not URLs.
    Where will I have the best luck creating the hyperlinks - Indesign or in the PDF I export? I have Acrobat Pro if I need to create the hyperlinks in the PDF.
    Except I can't figure out how to create the links in either program as far as what name to designate and where do the PDFs reside so people can link to  them? And do I enter the file name of the PDF connected to the particular "click here."

  • Exporting PDF files on CS5 - hyperlinks to URLs only work for first page

    I'm new to InDesign and am working through the "Classroom in a Book" training workbook for CS5, I 've got to lesson 14 and have found that when exporting to PDF (interactive) format, the hyperlink to a URL only work for the first page of the document.
    I made my own document with links on multiple pages, and the same thing happened. I followed the lesson to the letter (3 times!)
    I also tried setting up individual links for individual pages and that did work, so how do I get one piece of text to link to one URL on multiple pages of a document (ie on a Master page) ???

    Thanks Peter,  I've actually got CS5.5, so I presume this patch is already updated on this version, because when I tried the 7_0_4 patch it wouldn't run; giving the message: "Some updates failed to install, and "update is not applicable". So I tried the latest update: 7_5_2 patch, but I'm still experiencing the same problems with hyperlinks not working from the Master pages.

  • Computation only works for FIRST record in detail table

    Hi,
    I am having a weird problem. I have a master/detail form with page computations that work only for the very first record inserted into the detail table. If i try to enter a second or a third record the fields DO NOT get updated with the return values.
    This is driving me nuts and i am on a deadline with this project. HELP!!!!!
    Here is the code for all the computations below. Interestingly enough, only the name computation works for every new detail record. The others work only for the first.
    -- Calulate Social Security PL/SQL Function
    DECLARE
    p_is16to62ssrate NUMBER(6,2);
    p_u16o62ssrate NUMBER(6,2);
    p_dob DATE;
    p_base_date DATE := SYSDATE;
    p_age NUMBER(3);
    p_totalss NUMBER(9,2);
    BEGIN
    SELECT is16to62ssrate, u16o62ssrate
    INTO p_is16to62ssrate, p_u16o62ssrate
    FROM SSC3_RATES
    WHERE ratescheduleid = 1;
    SELECT dob
    INTO p_dob
    FROM SSC3_EMPLOYEES
    WHERE ssno = :P25_SSNO;
    p_age := TRUNC(MONTHS_BETWEEN(p_base_date,p_dob)/12);
    IF (p_age >= 16) OR (p_age <=62) THEN
    p_totalss := (:P25_TOTALWAGES * (p_is16to62ssrate/100));
    ELSIF (p_age < 16) OR (p_age > 62) THEN
    p_totalss := (:P25_TOTALWAGES * (p_u16o62ssrate/100));
    ELSE
    p_totalss := 0.00;
    END IF;
    RETURN p_totalss;
    END;
    -- Calculate Levy PL/SQL Function
    DECLARE
    -- declare local variables to hold rates from rates table
    p_hsdlarate NUMBER(6,2);
    p_hsdlbrate NUMBER(6,2);
    p_hsdlcrate NUMBER(6,2);
    p_hsdldrate NUMBER(6,2);
    p_hsdlaminearnings NUMBER(8,2);
    p_hsdlamaxearnings NUMBER(8,2);
    p_hsdlbminearnings NUMBER(8,2);
    p_hsdlbmaxearnings NUMBER(8,2);
    p_hsdlcminearnings NUMBER(8,2);
    p_hsdlcmaxearnings NUMBER(8,2);
    p_hsdldminearnings NUMBER(8,2);
    p_hsdldmaxearnings NUMBER(8,2);
    p_totalwages NUMBER(8,2);
    p_totallevy NUMBER(8,2);
    BEGIN
    -- Load rate info from table into variables
    SELECT hsdlarate, hsdlbrate, hsdlcrate, hsdldrate, hsdlaminearnings,
    hsdlamaxearnings, hsdlbminearnings, hsdlbmaxearnings,
    hsdlcminearnings, hsdlcmaxearnings, hsdldminearnings,
    hsdldmaxearnings
    INTO p_hsdlarate, p_hsdlbrate, p_hsdlcrate, p_hsdldrate,
    p_hsdlaminearnings, p_hsdlamaxearnings, p_hsdlbminearnings,
    p_hsdlbmaxearnings, p_hsdlcminearnings, p_hsdlcmaxearnings,
    p_hsdldminearnings, p_hsdldmaxearnings
    FROM SSC3_RATES
    WHERE ratescheduleid = 1;
    -- Assign total wages to variable
    p_totalwages := :P25_TOTALWAGES;
    -- Determine applicable levy payment and rate
    IF (p_totalwages < p_hsdlamaxearnings) THEN
    p_totallevy := (p_totalwages * (p_hsdlarate/100));
    ELSIF (p_totalwages >= p_hsdlbminearnings) AND (p_totalwages <= p_hsdlbmaxearnings) THEN
    p_totallevy := (p_totalwages * (p_hsdlbrate/100));
    ELSIF (p_totalwages >= p_hsdlcminearnings) AND (p_totalwages <= p_hsdlcmaxearnings) THEN
    p_totallevy := (p_totalwages * (p_hsdlcrate/100));
    ELSIF (p_totalwages >= p_hsdldminearnings) THEN
    p_totallevy := (p_totalwages * (p_hsdldrate/100));
    END IF;
    RETURN p_totallevy;
    END;
    -- Calculate Total Wages PL/SQL Function
    DECLARE
    t_wages NUMBER(8,2);
    BEGIN
    t_wages := (:P25_WEEK1_WAGE + :P25_WEEK2_WAGE + :P25_WEEK3_WAGE + :P25_WEEK4_WAGE + :P25_WEEK5_WAGE + :P25_BONUS + :P25_OTHER);
    RETURN t_wages;
    END;
    -- Calculate Employee Name PL/SQL Function
    DECLARE
    p_firstname VARCHAR2(20);
    p_lastname VARCHAR2(20);
    p_name VARCHAR2(40);
    p_join VARCHAR2(2) := ', ';
    BEGIN
    SELECT firstname, lastname
    INTO p_firstname, p_lastname
    FROM SSC3_EMPLOYEES
    WHERE ssno = :P25_SSNO;
    p_name := Initcap(p_lastname||p_join||p_firstname);
    RETURN p_name;
    END;
    Regards
    Glenroy Skelton

    Hi,
    The first thing that strikes me is the following IF test:
    IF (p_age >= 16) OR (p_age <=62) THEN
    p_totalss := (:P25_TOTALWAGES * (p_is16to62ssrate/100));
    ELSIF (p_age < 16) OR (p_age > 62) THEN
    p_totalss := (:P25_TOTALWAGES * (p_u16o62ssrate/100));
    ELSE
    p_totalss := 0.00;
    END IF;The first test will be true for every number as all numbers are greater than 16 or less than 62. I'd suggest changing the OR to an AND or use BETWEEN
    Andy

  • Code only works in first frame

    Hello,
    I have several buttons, and when each one is mouse clicked by
    the user, text appears in a dynamic text box. I want to have the
    text appear in a different color for each of the buttons. However,
    it is only working in the first frame, and not in subsequent
    frames. All of the buttons have instance names in every frame (in
    fact, they are named the same in frame 1, frame 2, etc. . .--but
    that doesn't seem to be the problem??) Below is my code. Any
    suggestions? Thanks!

    Found the answer. The code defining the variable:
    var my_color:Color = new Color(textBox);
    must only be on the first frame. The rest of the code must be
    on all the frames.

  • Preloader only works on first swf

    Can anyone help. I have added a preloader in the first frame
    of my movies. But only the first one works. The other movies are
    loaded into an invisable movie in the home screen. They work OK
    went I test the movie in simulated download. I am guessing it it
    something to do with importing swf into the invisable mc on my home
    screen. They are all visable on the web site, but the animated load
    bar and % just says 100%.
    Please can anyone help.

    i don't see a problem (with ff).

  • How to bind a click event to a button that is embedded in another symbol

    All-
    I'm sure this is easy but ya know...
    So I have a menu on the main stage that has 18 buttons.  These buttons are nested inside of a symbol called MC_MENU_CONTAINER.  I'm animating this symbol with show/hide buttons on the main stage, which works great.  What Id like is to bind a click event to these nested buttons from the main stage.  I was able to   access the nested buttons with this code sym.getComposition().getStage().getSymbol("MC_MENU_CONTAINER").$("BTN_INTRO").hide();  This hides the first button but when i try to attatch a click event to "BTN_INTRO" it doesn't work.  I have the code stored on the stage using compositionReady.
    Any ideas?
    thx

    For simple alerts, console.log, and strings, single or double quotes doesn't matter.
    It does matter when you start dealing with quotes in strings. If you wanted to alert: Say "Hello", you could do it either way:
    alert('Say "Hello"');
    alert("Say 'Hello'");
    Since Edge is built on javascript, it's really important to have a good handle on javascript and jQuery, in order to utilize the tool to it's full potential.
    javascript:
    https://developer.mozilla.org/en-US/docs/JavaScript/Getting_Started
    http://elegantcode.com/2010/10/22/basic-javascript-part-1-functions/
    jQuery:
    http://webdesignerwall.com/tutorials/jquery-tutorials-for-designers
    http://docs.jquery.com/Tutorials

  • Having issues with docx files that contain images. I can only see the first page of a multipage docx (the docx only contain images)

    I'm trying to open a file for school on my ipad.  The file is a 14 page document that is text in the form of an image (i.e. someone scanned the document and pasted into micrsoft word).  When I open the file (docx format) in safari I only see one page.  If I save the file on my computer as a .doc I have the same problem.  If I save it as a pdf, I have no problem viewing it.  I was wondering if anyone else is having the same issue and if so, what they've done to solve it.  I use my ipad heavily for school, and do not always have access to a computer, so a solution that stays within the ipad would be best, although at this point i think my best option is to save it as a pdf on a computer to view on my ipad. 

    Hey all,
    I solved this problem. It was not a code-problem but a printer problem. This code do not work on a BrotherHL1660e-printer. On all other printer I tried it works fine.
    Greetings - netti

  • Why do my animated themes only work the first time I open the window? Every one that I have tried stops animating if I close the window and open a new one.

    The headline pretty much sums up my problem. Basically, I picked a few different animated themes to try out in the Add-Ons section to personalize my browser window. They look great initially, and in the window that is open when I actually enable the theme. However, if I close that window and open a new one, the theme is stationary and no longer animates.

    Sorry......I was just too impulsive. ( Maybe because it was 4 AM at Taiwan, and I was still trying to solve the problem= = )
    Although to install the add-on "Personas Shuffler" can solve the problem to me, I don't think it was the BEST solution. This evening, I read why the add-on "Personas Shuffler" was made, and found that the BEST solution is:
    1. Open a new tab, and type "about:config" at the URL bar, then search for "lightweightthemes" with the filter.
    2. Change the values of "lightweightThemes.persisted.footerURL" and "lightweightThemes.persisted.headerURL" from true to false( by double click on them).
    3. After doing so, restart Firefox and you will see it works! You don't have to install any add-on.

  • [Solved] DVDs and CDs only work the first time I put them in

    First lets get this straight before it is asked later on down the line. I am a 6 year Linux user and 2 year Arch user. I am currently using xfce4 and thunar as my file manager with thunar-volman installed. This has been a problem for the past year or so. I use my laptop most of the time (also Arch 64 and working like a dream) so I only try fixing it every so often to no avail.
    I can put in a CD or a DVD and play them with VLC. Here's the catch: after I eject the CD/DVD and put in another one I can't play it or find it. The first time I put one in I even get an icon on the desktop. I don't think it's reasonable to have to reboot everytime I want to play another DVD (time wasted by constant rebooting is one of the very long list of reasons I don't use Microshaft products). I'm stumped, I can't be the only one, but my forum searches yield no treasures.
    Last edited by astrozombie (2010-02-03 01:00:15)

    Thanks for trying, however, I posted what I use for a reason. I am using VLC, and I am a minimalist so I don't want a bunch of programs for doing the exact same thing. VLC is the only player for Linux that plays MTS files out of the box, so I'm not interested in switching or adding another.
    Anyways, it's irrelevant because as I said before, thunar mounts it correctly the first time I put in a DVD or CD and displays an icon on the desktop for the disk. Therefore the problem is most likely hal related, since this began about the time we switched to hotplugging, and besides this I love hotplugging so I am also not interested in disabling that (who know what problems I'll introduce for my MAC keyboard and webcam if I do that). Yes I've read the hal and dbus wikis.
    I can even get a USB CD writer to work with xfburn, however it's a relic and I think that's a sorry work around when I have internal drives that, in theory, work just fine. I wonder if it has anything to do with the drives being IDE when I used the SATA install option on the install disk (I did a fresh install last week) since my hard drives are SATA.

Maybe you are looking for