SharedObject, using it to play an intro animation only once

Hi all,
Having some difficulty getting my sharedobject to operate.
All I am trying to do is have my intro animation play only once, so
that I can use the same swf on multiple pages without showing the
intro animation every time.
If the 3rd page was viewed first the intro animation would
play but then if the 2nd page was viewed the intro animation would
not play (because it was already played on page 3).
My code:
logoload = SharedObject.getLocal("logoload1");
if (_root.logoload.data.logoloadvar == undefined){
_root.logo_mc.gotoAndPlay(1);
} else if (_root.logoload.data.logoloadvar == "logoseen") {
_root.logo_mc.gotoAndStop(31);
stop();
//_root.logo_mc //My trigger to say the intro has been played
computer = System.capabilities.os;
_root.logoload.data.logoloadvar = "logoseen";
_root.logoload.flush();
stop();
File here
http://users.ncable.net.au/~timfranc...red_object.fla
If someone could please help would be much
appreciated.

That would explain it.
I got around it by passing a variable through the querystring
to flash solution using some if statements.
But I also now have a difficulty doing it that way because of
this active content fix I am using, my post for that is here.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=288&threadid=1162386&en terthread=y
If you could take a look. Thanks again for the help.

Similar Messages

  • HTML website, SWF do a load animation only once. Same file used on all pages?

    Hey all,
    Just going through some thinking here. My HTML website is
    going to using a flash header and navigation. Now I will be using
    the same swf's on all of the pages across the site. I would like to
    play a loading animation only on the first time the swfs are
    loaded. Is there a way to do this? Or because I am using the same
    swf's will it be okay to just tell my mc to go sit on a specific
    frame and because it is in the cache each page will be using the
    same file so the mc will still be at that frame or???
    And help would be nice...

    While Breqent is right that server side includes are the best way of doing this if you aren't up on
    server side coding then you can use Dreamweaver to manage you menu.
    You do this by simply ensuring you never edit the menu area on any individual page.
    It should therefore be identical on all page and as such you can just use find and replace across the entire site or folder to edit all occurances of your menu.
    I hope this helps.
    Andy
    Best Reception

  • Please help... On click event play animation, only once animation has ended, launch lightbox

    Hey all,
    I could really use some advise, I have been searching for a good few hours and have come up with nothing.
    I was hoping to play a small animation and launch the edge commons spotlight as soon as the animation ends.
    My code:
    // insert code for mouse click here
    sym.getSymbol("no17").play();
          // Open spotlight overlay
    // Set up configuration
    var config = {
        width: 1400,
        height: 900,
        type: "animate",
        source: "http://new.oliverrice.co.uk/folio.html"
    // Open the overlay
    EC.Spotlight.open( config );
    The code launches the spotlight as the animation begins. I would like the 2 second animation to play out first before launching the spotlight.
    Im sure the answer is really simple, though im new to JavaScript and am struggling to work out how to achieve this.
    Are there any clever people that maybe able to help me?

    Hi, thanks for the reply, I had a think about it today and placed the spotlight code:
    // Open spotlight overlay
    // Set up configuration
    var config = {
        width: 1400,
        height: 900,
        type: "animate",
        source: "http://new.oliverrice.co.uk/folio.html"
    // Open the overlay
    EC.Spotlight.open( config );
    In a trigger at the end of my animation which has done the trick!
    so:
    1-  I click on animation
    2- it plays
    3- then launches spotlight lightbox

  • Redirected printers using Remote Desktop Easy Print driver work only once during session

    Hello all
    We are running Windows Server 2012 R2 Remote Desktop Services Sessions hosts with printer redirection allowed using only the Easy Print Driver, we have no other drivers installed on the servers. All client printers are redirected and can print fine, but
    only once per session! We have tested with several different client printers and they all work a single time in each session. After that the user needs to log off and then back on again to be able to print once again, but only once. Needless to say, our users
    are annoyed. If I look at the c:\windows\system32\spool\printers folder while jobs are printing, but failing, I can see the spool files appearing and disappearing as jobs are spooled. No errors in the event logs accompany the behaviour. Our clients are running
    Windows 7, 8 and 8.1. All exhibit the same problem. The error looks a little like what is described here:
    http://support.microsoft.com/kb/2925429
    While similar, this problem describes a scenario where Easy Print is not used, but XPS is, and since Easy Print is based on XPS and the behaviour is very similar, I am tempted to make a connection.
    I have checked all the usual stuff with permissions etc, and no manufacturer provided drivers are present. The problem appears on newly installed systems as well as one that have been running for some time. Restarting the spooler services does not resolve
    the problem. Actually I do not think it is related to the spooler service or driver framework at all, but rather is an Easy Print driver issue that is occurring much later in the process, if not I would see some errors in the logs and no jobs would print at
    all.
    Anyone ever heard of something like this?
    Thanks
    Morgan

    Hi Morgan,
    Based from your description, users can only print once during single RDP session, I suggest you check if this issue also happens locally.
    In addition, after the first print attempt, does any other issue exist on the RDP session?
    Is the server fully patched? If there are any available driver updates, please also apply them. If there are any third party software installed, try disable/uninstall them to see if the issue persists.
    You can also enable print auditing to get more detailed information about this issue.
    More information for you:
    Auditing Printing Events
    https://technet.microsoft.com/en-us/library/cc976774.aspx
    Logging Spooler Events
    https://technet.microsoft.com/en-us/library/cc976746.aspx
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • Play Edge animation only once

    I have created an animation in Edge Animate, and placed it in the middle of a page in Muse and applied the Edge Animate scroll effect.
    The animation works nicely, but it repeats over and over as I scroll. I only want the animation to play ONCE.
    I tried coding a STOP ALL action on the final frame, but that seems to be ignored by Muse.
    I even tried extending the end of the animation, and jumping back so it would sit and loop on the final frame ad infinity... that too seems to be ignored by Muse.
    Is there really no way to only have an animation play once while scrolling?

    rolfejr wrote:
    > I am building a site that will use flash for the top
    navigation bar. I want
    > some items in the navigation bar to animate the first
    time into the site, but
    > then remain static from there on out. As an example,
    look at
    > www.summerlin.com. After the intro page, the logo in the
    top left animates
    > your first time in. After that, it is static, even if
    you go to another page
    > and come back to the home page. Does anyone have any
    good suggestions on how
    > to accomplish this? I could do it with cookies, but I am
    wondering if there is
    > a better way. It's an asp page, so I could also pass a
    variable in the URL
    > string or the http header, but I'd like to handle it
    entirely in Flash. I
    > suppose I could do it if the flash document can detect
    the refering page (not
    > the page it's on, the one the user just came from). Can
    flash do this? Any
    > thoughts?
    Forum archives :
    http://groups.google.com/advanced_group_search?q=group:macromedia.flash.*&hl=en&lr=&ie=UTF -8
    search for "Play Flash Once" and you come up with this post :
    http://groups.google.com/group/macromedia.flash/browse_thread/thread/f90aebad3d089c20/ddf0 1516bd84f6e6?lnk=st&q=play+flash+once+group%3Amacromedia.flash.*+author%3Aurami_&rnum=6&hl =en#ddf01516bd84f6e6
    And you got all you need, within , roughly, 4 minutes time...
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Play animation only once

    I am building a site that will use flash for the top
    navigation bar. I want some items in the navigation bar to animate
    the first time into the site, but then remain static from there on
    out. As an example, look at www.summerlin.com. After the intro
    page, the logo in the top left animates your first time in. After
    that, it is static, even if you go to another page and come back to
    the home page. Does anyone have any good suggestions on how to
    accomplish this? I could do it with cookies, but I am wondering if
    there is a better way. It's an asp page, so I could also pass a
    variable in the URL string or the http header, but I'd like to
    handle it entirely in Flash. I suppose I could do it if the flash
    document can detect the refering page (not the page it's on, the
    one the user just came from). Can flash do this? Any
    thoughts?

    rolfejr wrote:
    > I am building a site that will use flash for the top
    navigation bar. I want
    > some items in the navigation bar to animate the first
    time into the site, but
    > then remain static from there on out. As an example,
    look at
    > www.summerlin.com. After the intro page, the logo in the
    top left animates
    > your first time in. After that, it is static, even if
    you go to another page
    > and come back to the home page. Does anyone have any
    good suggestions on how
    > to accomplish this? I could do it with cookies, but I am
    wondering if there is
    > a better way. It's an asp page, so I could also pass a
    variable in the URL
    > string or the http header, but I'd like to handle it
    entirely in Flash. I
    > suppose I could do it if the flash document can detect
    the refering page (not
    > the page it's on, the one the user just came from). Can
    flash do this? Any
    > thoughts?
    Forum archives :
    http://groups.google.com/advanced_group_search?q=group:macromedia.flash.*&hl=en&lr=&ie=UTF -8
    search for "Play Flash Once" and you come up with this post :
    http://groups.google.com/group/macromedia.flash/browse_thread/thread/f90aebad3d089c20/ddf0 1516bd84f6e6?lnk=st&q=play+flash+once+group%3Amacromedia.flash.*+author%3Aurami_&rnum=6&hl =en#ddf01516bd84f6e6
    And you got all you need, within , roughly, 4 minutes time...
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • JavaFx 2, play gif image animaiton only once

    Hello,
    I have a gif image that only plays once, (set repeat off). but when i use it in the program it keeps repeating itself forever.
    how can I make it stop repeating?
    Thanks for all help

    I'm assuming your'e using a timeline/animation? Just set the play count to once! setCycleCount();Edited by: KonradZuse on Jun 2, 2013 12:18 AM

  • Playing two midi files at once using threads?

    Hi all, I have the following simple code here which plays a midi file, but I'm not sure how to use threads to play two midi files at once:
    import org.jfugue.*;
    import javax.sound.midi.*;
    import java.io.*;
    public class MidiPlayer {
    public static void main (String [] args) {
    try {
    Player player = new Player();
    player.playMidiDirectly(new File("C:\\Sounds\\bach.mid"));
    } catch (IOException e) {
    } catch (InvalidMidiDataException e) {
    Is there a way to use a thread for this class so that in another class I can call 'start' twice and have the parameters be the midi file locations (e.g. "C:\\Sounds\\bach.mid" & "C:\\Sounds\\bach2.mid").
    Any kind of help would be great, thank you!

    Something like the below.
    import org.jfugue.*;
    import javax.sound.midi.*;
    import java.io.*;
    public class MidiPlayer {
    public static void main (String [] args) {
    String fileName = "c:\\Sounds\\bach.mid";
    Thread t1 = new Thread(new MyRunable(fileName));
    t1.start();
    String fileName2 = "c:\\Sounds\\bach2.mid";
    Thread t2 = new Thread(new MyRunable(fileName2));
    t2.start();
    } // main
    class MyRunnable implements Runnable {
    private String fileName
    public MyRunnable( String fileName) {
      this.fileName = fileName;
       public void run() {
         Player player = new Player();
        player.playMidiDirectly(new File(fileName));
    } // MyRunnable
    } //

  • Using characters contained within brackets only once

    Hi everybody!
    I have a list of numbers which go from 0 to 999. Given a set of three numbers, I want to use regex to choose from that list of elements (0 to 999) using each number from the set only once:
    If the user enters 123, the regex should choose all the posible permutations of this set from the list:
    123
    132
    312
    321
    213
    231
    but should NOT choose 122, 113 or any other posible combination that would repeat numbers of the given set.
    If I use the regex
    [123]it of course outputs numbers like 111, 122 which are not permutations of the given set.
    How can it tell regex to use each number contained within the brackets only once? Of course if the users enters 122 then it should choose all the permutations of this set:
    122
    122
    212
    221
    212
    221
    Any help would be really appreciated!
    Edited by: Vulture on Oct 19, 2008 9:55 PM
    Edited by: Vulture on Oct 19, 2008 9:56 PM

    prometheuzz wrote:
    Vulture wrote:
    Exactly! What exactly? It would help if you quote the part of someone else's post you're replying to.
    Exactly, I'm trying to create some sort of spell-suggestion app, I say "some sort" because it should work also with numbers.
    prometheuzz wrote:
    Okay, forget regexes. What you can do is convert the String the user has entered into an array of characters:
    String userInput = /* your code here */
    char[] userInputArray = /* your code here: look at the methods from the String class to see which one converts it to an array of char's */Now sort the array
    java.util.Arrays.sort(userInputArray);and convert this sorted array to a String:
    String userInputSorted = new String(userInputArray);If the user has entered "bza", your 'userInputSorted' will be "abz".
    Now just iterate over your list of Strings, and sort each String in the same fashion as you did with the 'userInput' and compare each of them with 'userInputSorted'. If they're equal, you've got a match.
    I've tried what you told me, but the idea is to find in the list the substrings that can be formed with at least three letters of the user input string. Anyway here's the code:
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    public class Main {
         * Given a user input, displays (or should display) a set of words from a list that can be formed using at least three characters
         * contained within the user input.
        public static void main(String[] args) {
            // Set a bogus user input
            String userInput = "plasma";
            // Get the sorted input
            String userInputSorted = sortInput(userInput);
            // create a prepared list of know words that can be formed with the characters of the user input and should be selected for output
            List list = new ArrayList();
            list.add("ala");
            list.add("alp");
            list.add("amp");
            list.add("asp");
            list.add("lam");
            list.add("lap");
            list.add("las");
            list.add("map");
            list.add("mas");
            list.add("pal");
            list.add("spa");
            list.add("alas");
            list.add("alma");
            list.add("alps");
            list.add("amps");
            list.add("lama");
            list.add("lamp");
            list.add("lams");
            list.add("laps");
            list.add("maps");
            list.add("palm");
            list.add("pals");
            list.add("slam");
            list.add("slap");
            list.add("spam");
            list.add("lamas");
            list.add("lamps");
            list.add("palms");
            list.add("plasm");
            list.add("psalm");
            list.add("plasma");
            // add some entries of Strings that can't be formed with the user input's characters and that should not be selected
            list.add("llama");
            list.add("llamas");
            list.add("lamma");
            list.add("mass");
            list.add("plasmas");
            list.add("java");
            list.add("firefox");
            list.add("netbeans");
            // now iterate the list
            Iterator it = list.iterator();
            while (it.hasNext()) {
                String listEntry = it.next().toString();
                String listEntrySorted = sortInput(listEntry);
                if (userInputSorted.contains(listEntrySorted))
                    System.out.println(listEntry);
        public static String sortInput(String userInput) {
            // Convert user input to an array
            char[] userInputArray = userInput.toCharArray();
            // Sort the array
            java.util.Arrays.sort(userInputArray);
            // Convert this sorted array to a String
            String userInputSorted = new String(userInputArray);
            return userInputSorted;
    }This is the output that I get when I execute the code:
    ala
    lam
    alma
    lama
    lamp
    palm
    lamps
    palms
    plasm
    psalm
    plasma
    Process finished with exit code 0I don't get all the wanted output because the length of the Strings in the list is not the same as the user's input's. My mistake, I should have explained my desired output with an example from the beginning.
    The list could contain a large number of words and numbers, that's why I thought that a faster way would be using regex! So, if your patience has not become exhausted yet, here's my code using regex; it chooses all the words that it should but also some it shouldn't because I haven't found anywhere the way to tell regex to use the characters within the brackets without repeating them (unless they are specifically repeated):
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    public class RegexMain {
        private static final String bogusList =
                // here the words that should be choosed
                "ala alp amp asp lam lap las map mas pal spa alas alma " +
                "alps amps lama lamp lams laps maps palm pals slam slap " +
                "spam lamas lamps palms plasm psalm plasma " +
                // here 8 words that shouldn't be choosed
                "llama llamas lamma mass plasmas java firefox netbeans";
        public static void main(String[] args)
            // Set a bogus user input
            String userInput = "plasma";
            // [charsFromUserInput]{3,} choose words that contain at least three chars
            String regex = "[" + userInput + "]{3,}";
            Pattern pattern = Pattern.compile(regex);
            Matcher matcher = pattern.matcher(bogusList);
            while(matcher.find())
                String listEntry = matcher.group();
                System.out.println(listEntry);
    }It chooses all the words it should, but it lets pass 5 from the 8 unwanted words contained in the list.
    ala
    alp
    amp
    asp
    lam
    lap
    las
    map
    mas
    pal
    spa
    alas
    alma
    alps
    amps
    lama
    lamp
    lams
    laps
    maps
    palm
    pals
    slam
    slap
    spam
    lamas
    lamps
    palms
    plasm
    psalm
    plasma
    llama
    llamas
    lamma
    mass
    plasmas
    Process finished with exit code 0The last five words contain characters that are in the user input, but more times that in there (like in the case of the "l", the "m" and the "s". How could I tell regex to match words with the same or less repetition of chars, but not more? Thanks a lot for your time, I really appreciate it.

  • Using flash shared object to have a load animation play only once

    Hey all I have a swf on multiple pages, I onyl want it to
    play the load animation once, so I thought I would try the shared
    object to do this.
    //On frame 1 on my mc if it hasnt played the file below it
    should to gotoAndPlay frame 1 of my mc, logo_mc
    logoload = SharedObject.getLocal("logoload1");
    if (logoload.data.logoloadvar == undefined){
    _root.logo_mc.gotoAndStop(30);
    } else {
    _root.logo_mc.gotoAndPlay(1);
    stop();
    //at the end of my load animation frame 30 of logo_mc I am
    trying to tell the shared object that its has played, so I put
    something in it:
    stop();
    computer = System.capabilities.os;
    _root.logoload.data.logoloadvar = "logoseen";
    _root.logoload.flush();
    But it does not appear to be responding, what am I doing
    wrong there? Its the first time Ive used the object.
    Any help would be great.

    Wow. That is exactly what it was, thanks so much. Our IT guys are working on the problem now. Thanks again.

  • Creating/buying an Intro Animation?

    I would like to create or buy an intro movie that should be 5-8 seconds that will play before all my videos.
    What software could be used to make such an intro?  Can you point me to any resources?
    Thanks,
    --Jeff

    Jeff,
    PrE can do just that. Now, depending on what you are think about, you might need to incorporate material from other programs, like a 3D application, perhaps Photoshop, or others.
    If you can outline the Intro, someone can give you tips on how to do that.
    Also, if you need stock footage, say abstract graphics, check out the stock footage at Muvipix. They also have original music, that could be helpful That material is available for purchase, or is free with a subscription to Muvipix. It doesn't take many downloads, before the price of a subscription is paid for.
    Good luck,
    Hunt
    PS - I have similar, as I do most of my DVD's with Dolby Digital 5.1 SS, and it includes some LFE SFX clips, plus title animation. I just output this Project to DV-AVI, and can Import it into any other Project, where it's the Intro.

  • Animated gif plays only once

    I am using Captivate 5.5 on a Windows machine. I inserted an animated gif into my Captivate, using insert > animation...  Then, I inserted a button. When I pressed F4 to preview the animation, it played only once. I put a check mark on the loop on the timing of the properties of the animation. Still, it played only once. It stopped when the play head stoped moving. I cannot make the animated gif play continuously. Does anybody know how to make the animated gif play continuously?
    thaks.

    You can try this:
    Stick this in the header area of your code
    <script type="text/javascript"> function showBuyLink() {
    document.getElementById("buylink").style.visibility = "visible";
    } // adjust this as needed, 1 sec = 1000
    setTimeout("showBuyLink()", 5000);
    </script>
    Stick this around your buy link code.
    <div id="buylink" style="visibility: hidden"> <!-- put all your add to cart buy links and images inside this hidden div --> <p style="text-align:center; font-size:26px;"> <a href="http://mybuylink">Add to Cart or Buy Link</a> </p> </div>
    Yopu can rename "buylink", but you have to make sure you rename all instances or it will kill the script.
    If you're not comfortable incorporating that, unfortunately, the other option would be to create a Flash animation and put a button in the last frame.
    That would be just as difficult (if not worse) as writing (or tweaking) a javascript to delay the hotspot, and even worse because it would be invisible to phone users. Additionally, people who disable javascript would never see the link if you did add the script.
    There isn't any way to do this with HTML or CSS, and you now know the flaws with the methods that will work.

  • Playing HTML 5 animations/ interactives from AIR mobile app

    Hi,
    Is it possible to play/ launch HTML5 animations and interactives [drag n drop, cloze, etc] from an AIR based mobile app supporting iOS and Andorid devices?

    Hi
    It seem's to be a common issue of ghosting itemrender.
    In flex item renderer is reused to keep memory performance.
    You can try this fix
    1- you can fix it by turning the "virtual layout" property of the llist to false;
    But it will decrease the performance, because you turn off the behavior of reusing item renderer
    2- you can override the "set data(data:object)" function of your item renderer class and move the "field=data" assignement inside it.
    3- Or you can use a dataChange event handling function instead of the creationComplete.
    I hope it's help you

  • How can I play song intro in iTunes?

    iTunes used to have a feature to play song intros (12 seconds to be exact) of songs in a playlist or library.  I need that feature as useless as I thought it was.  I have 596 classical pieces (from 100 and 150, 200 collections) and I need to play first 10 seconds of each.  I am looking for a piece in particular that I know I have, but of course, looking through all means I'd need to do 596 double-clicks and I rather just listen through.  Not to mention some of those pieces are at least 18 minutes long.

    .MPC = Musepack
    See:
    [http://forums.macosxhints.com/archive/index.php/t-30453.html]
    [http://rails.wincent.com/wiki/ConvertingMPC_audio_files_toMP3]

  • I was downloading podcast video in my itouch using wifi, but suddenly my wifi got disconnected and now there is a link in my podcast list which on opening uses wifi to play that video. I want to delete that link. Right to left swapping is not working.

    I was downloading podcast video in my itouch using wifi, but suddenly my wifi got disconnected and now there is a link in my podcast list which on opening uses wifi to play that video. I want to delete that link. Right to left swapping is not working.

    I bet this is too late but...
    Are you trying to print through the airport express wirelessly or the built in wireless of the lexmark? If you want to use the airport express, there is no need to mess with the wireless printing on the lexmark at all. The airport express will be easy to set up, all the wireless setups through the printers are a pain.

Maybe you are looking for

  • Copy Command in ABAP report

    HI Gurus, I have a ABAP report - basic list, with lot of batch data on it. based on the report they will copy the batch numbers and paste in standard transactions. Users complaining to do a Ctrl + Y and then Ctrl + C then Ctrl + V to paste the batch

  • How to convert a class file to exe file and how to cteate a class file to d

    how to convert a class file to exe file

  • Download attachment speed in mail

    Hi all, I am experiencing something very annoying for quite a while. Whenever I receive emails with attachments it takes forever to download them. i.e I receive an 8megs email and am waiting forever. really 8megs...15minutes on a fast connection! Now

  • 5.1 sound not working

    I have a X-Fi fatalty titanium champion series sound card with logitech z5500 5. speakers running vista x64 sp. I cannot fully utilize the 5. speakers for some reason. I have updated to the latest drivers, selected 5. speakers from both windows and t

  • Convert from component cable to Stereo A/V + S-video for AppleTV

    Hello, We are looking for a converter cable, box, hub that will convert from component cable (red/blue/green) to Stereo A/V + S-video. We are hooking up a AppleTV box to an older Sony WEGA TV. Anyone heard of such a product or work around? We have no