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.

Similar Messages

  • Use a Shared Object in a game to store pairs player_name - player

    If I want to use a Shared Object in a game for a local
    computer to store
    pairs player_name - player_score (a string and a number) what
    would be the
    best approach to push the data in and retrieve them out as a
    table?
    Flash Help says that the properties created in a SO can
    enumerated in a
    for..in loop - how do I use this?

    thank a lot
    "clbeech" <[email protected]>
    ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ
    × ÎÏ×ÏÓÔÑÈ
    ÓÌÅÄÕÀÝÅÅ:
    news:fvsrst$qkp$[email protected]..
    > I usually use an array and objects to store the pair or
    more stats, then
    store
    > the array in the SO. it goes something like this:
    >
    >
    > var so = SharedObject.getLocal('mygame', '/');
    > var scores = [ ];
    > for(var i=0; 1<10; i++) {
    > var obj = {n:' ', s:o};
    > scores.push(obj);
    > }
    >
    > function updateScores() {
    > if(so.data.highscores == undefined) {
    > so.data.highscores = scores;
    > }else{
    > scores = so.data.highscores;
    > }
    > }
    >
    > function saveScore() {
    > var obj = {n:name_ti.text, sc:playerScore}
    > scores.push(obj);
    > scores.sortOn('s', Array.NUMERIC | Array.DESCENDING);
    > if(scores.length>10) scores.pop();
    >
    > so.data.highscores = scores;
    > so.flush();
    > setScoreboard();
    > }
    >
    > function setScoreboard() {
    > updateScores();
    > scores.sortOn('s', Array.NUMERIC | Array.DESCENDING);
    > for(var i=1; i<scores.length+1; i++) {
    > this['name_'+i].text = scores
    .n;
    > this['score_'+i].text = scores.s;
    > }
    > }
    >
    > setScoreboard(); //initialize the board
    >
    > save_btn.onPress = function() {
    > saveScore(); //save the score input
    > }
    >

  • Adobe Flash shared objects disabled

    On or about 11-4-2013 I was trying to access the television company channel ABC and I kept receiving the following message:"Adobe Flash shared objects disabled)" The help desk sent on 11-8-2013 a response as to how I should fix the problem.  Unfortunately I really do not have a clue where find the information to change it.  Should I be in Adobe when I "find" the area to change or should I be on the ABC webpage?

    Perhaps it would be better to post your question in the Flash or the Flash Player forum. This is the Reader one.
    http://forums.adobe.com/community/flash
    http://forums.adobe.com/community/flashplayer

  • HT4352 Do u have to have a computer/pc to use home sharing? I have apple tv not sure if it's 2nd or 3rd generation or even if it's first generation. My laptop is broken and in the shop, can I not run my apple tv off my iPad?

    Do u have to have a computer/pc to use home sharing? I have apple tv not sure if it's 2nd or 3rd generation or even if it's first generation. My laptop is broken and in the shop, can I run my apple tv off my iPad?

    If you have home sharing turned on in the settings of your apple tv and your iPad you can AirPlay from your iPad to the apple tv. When you play a video there is a tv icon on the right side of the play/pause/fwd/rwd icons. Click that and choose your apple tv. Your apple tv and iPad must be on the same network.

  • Flash Shared Objects Wiped - by what?

    Does anyone know of any external software events (Windows
    updates, browser updates, anti-virus software scans etc) that wipe
    out the Flash Shared Object files?

    Does anyone know of any external software events (Windows
    updates, browser updates, anti-virus software scans etc) that wipe
    out the Flash Shared Object files?

  • How to Get property values from Shared Object in client's load event - Very urgent

    I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.
    Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.
    Anyone faced such issue while using shared object between two users. If so, I would appreciate if you could let me know your suggestions for following questions:
    1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.
    2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.
    Any kind of help would be greatly appreciated.
    Thank You.

    I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.
    Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.
    Anyone faced such issue while using shared object between two users. If so, I would appreciate if you could let me know your suggestions for following questions:
    1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.
    2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.
    Any kind of help would be greatly appreciated.
    Thank You.

  • How can i use the shared object already present in the system from java.

    explanation:
    Actually there are shared objects present in the jdk which is used by java itself.I want to know if i can use the methods in any library file(shared object) which is already present in the system.
    Or the question can be put this way how does the java call the native methods? (Can we do that explicitly) in our code.

    It isn't entirely clear what you mean by 'shared' objects and what the relationship with these shared objects and calling native code is.
    There are no shared objects in the Java language, only the java platform.
    The platform system properties are exposed via the System class (java.lang package).
    You are free to create your own shared objects by using static member access or some other mechanism.
    Your access to methods in any of the API's is dictated by the access type you have, normally public being the only completely open access allowing complete visibility.
    You can call native methods, thats what JNI is for. Calling native methods in classes other than your own is generally done using the API provided by the developer(s) of those classes.

  • Can i use home sharing then connect to bluetooth speakers to play my music

    I use home sharing to play my music on my ipad and iphone on my wi-fi using the integral speakers. Is it possible while doing this to connect to a bluetooth speaker  so the audio would come out of the bluetooth speaker
    Many thanks

    Ok, so what I did was create an iTunes media (not library folder) folder in my TC's Data file by finding the folder on my Mac and dragging it to the TC. I then went into iTunes and consolidated the library. I went back to the original iTunes media file in my Mac and put it in the trash (DO NOT DUMP FROM TRASH YET!!!). Before I deleted it I went back into iTunes>preferences>advanced and then told it where to find my media in the iTunes media location box. You will then click ok, exit out of iTunes and go to iTunes in the dock and tell iTunes to quit. You will then reopen itunes while holding the option key on your keyboard.
    Now check your shared media on your iPad or ATV or whatever to make sure it sees everything and if it does you were successful and may now dump the iTunes media that you put into the trash previously.

  • What do I do now that I have down loaded LR 4 only to find out that it's not compatable with win. XP

    What do I do now that I have down loaded LR4 only to find out that it's not compatable with windows XP?

    Upgrade your operating system? Call sales support to return the package/ undo the purchase within the 14 day timeframe? Whichever you prefer...
    Mylenium

  • Play only once movie using LSO script

    I have just put together a website for my employer which has a flash movie that plays as soon as you land on the homepage. I want that movie to only play once, so when the visitor goes to another page then goes back to the homepage the movie will not play again. I have applied the following LSO script to the flash movie to create a sort of flash cookie stored on the visitors computer. It works fine in Internet explorer and Safari, but for some reason there's a problem in Firefox. When you go back to the homepage, instead of going to the last frame as scripted gotoAndStop(_totalframes); it stops at a random point roughly half way through the movie. I have no idea why this is happening, does anyone have any suggestions how to resolve the problem?
    Actionscript:
    // create a Shared Object
    var my_so:SharedObject = SharedObject.getLocal("animationPlayed");
    // if it's the first time here, i.e, <em>played</em> hasn't been set already,
    // see the animation
    if (my_so.data.played == undefined)
         // set played to true
         my_so.data.played = true;
         my_so.flush(); // write the data
    else
         // you've already watched the animation before
         // go to the last frame
         gotoAndStop(_totalframes);
    // for testing purpose, clear the Shared Object, i.e.,
    // pretend you haven't watched the animation already
    clearLSO_btn.onRelease = function()
         my_so.clear();
    Also, how long will this flash cookie be stored on the visitors computer? Can you suggest the script I can use to clear this data after a certain period of time?
    Thanks  

    normally that indicates a swf has not completely loaded.  i would expect, if you cleared your other browser's cache, you would see the same issue when clicking back and forth quickly enough.

  • Make a Flash animation play only when it scrolls into view

    I am designing a very long page. There will be a flash animation at the bottom of the page. I want this animation to play only when the user scrolls down and this flash object comes into view. How do I do this? I am quite familiar with flash and actionscript, so I just need some pointers.
    I have seen that this is already being used for advertisements. If you visit www.amazon.com, there are ads that appear far below on the page. These ads play only when you scroll down and the ad appears within the browser window. This happens on many other sites as well.
    Many popular sites also use something like this. On CNN, try opening a new tab that loads a flash video. The video begins to play only when you actually go to that tab. Until you open the tab and the contents become visible in your browser window, the video doesn't start. How is this done?
    Thanks in advance,
      Kumar

    Hmmm ... It looks like Amazon doesn't always run ads. I will give another example.
    Take a look at http://digg.com/
    There is a 300x250 ad at the top of the right-column. Ignore that.
    In addition, there is a second 300x250 ad halfway down the page in the right column.
    This second 300x250 ad appears when you scroll down.
    The interesting thing is that the ad plays from the beginning when you first see it after scrolling down!
    Most flash ads run for 15 seconds. After that the animation stops. When you see this second 300x250 ad, you will find it at the beginning of its 15 second animation. It plays from the beginning even if you wait for some time before scrolling down. This means that the ad is waiting for you to scroll down before it begins to play.
    How is this done?
    Thanks.

  • Library Projects compiled using Flash Builder and ANT have different outputs

    Hi Guys.,
    I am really having hard time to get something work right with RSL projects in Flex 3.2 SDK. Here is my weird problem.
    I have a library projects which has the following settings in Flash Builder
    Link Type : External
    airglobal.swc
    framework.swc
    datavisualization.swc
    rpc.swc
    utilites.swc
    applicationupdater.swc
    applicationupdater_ui.swc
    Link Type: Merged into code
    airframework.swc
    servicemonitor.swc
    Compiler settings
    -directory=true -output=../../lib/core -debug=true -optimize=false -define+=CONFIG::bindingdebug,false -define+=CONFIG::frameworkdebug,false -define+=CONFIG::flexspy,true -define+=CONFIG::debug,true -define+=CONFIG::release,false -define+=CONFIG::logtoconsole,false -allow-source-path-overlap=true  -keep-as3-metadata+=Metadata,DefaultProperty,Required,Event,AssignableTo,Inject,InjectCon structor,Publish,Subscribe,PublishSubscribe,Factory,Init,Destroy,Observe,AsyncInit,Managed Events,MessageDispatcher,MessageHandler,MessageBinding,MessageInterceptor,MessageError,Com mand,CommandComplete,CommandResult,CommandError,CommandStatus,ResourceBinding,Selector,Tar get,Autoremove,Internal,ObjectDefinition,DynamicObject
    When I compile my library projects I get a MyLibraryproject.swc. The SWC has the following files in it
    mx/controls/HTML.png
    mx/core/Windows.png
    library.swf
    Note: airframework.swc and servicemonitor.swc has a many png files and properties files in it. But these properties and png files are not included when compiled in Flash builder.
    But when the same project is compiled using ANT compc task, i get all the png and properties files from airframework.swc and servicemonitor.swc files into my library project SWC file.
    Here is the ANT version which is used to compile the library project
    <compc output="${project.output.dir}/${project.name}.swc"
       include-classes="${as} ${mxml}"
       use-network="false"
       directory="false"
       allow-source-path-overlap="true"
       incremental="${build.incremental}"
       debug="${build.debug}"
       locale="${build.locale}"
       optimize="false"
       >
    <define name="CONFIG::bindingdebug" value="${build.bindingdebug}" />
    <define name="CONFIG::logtoconsole" value="${build.logtoconsole}" />
    <define name="CONFIG::frameworkdebug" value="${build.frameworkdebug}" />
    <define name="CONFIG::flexspy" value="${build.flexspy}" />
    <define name="CONFIG::debug" value="${build.debug}" />
    <define name="CONFIG::release" value="${build.release}" />
    <keep-as3-metadata name="Metadata" />
    <keep-as3-metadata name="DefaultProperty" />
    <keep-as3-metadata name="Required" />
    <keep-as3-metadata name="Event" />
    <keep-as3-metadata name="AssignableTo" />
    <keep-as3-metadata name="Inject" />
    <keep-as3-metadata name="InjectConstructor" />
    <keep-as3-metadata name="Publish" />
    <keep-as3-metadata name="Subscribe" />
    <keep-as3-metadata name="PublishSubscribe" />
    <keep-as3-metadata name="Factory" />
    <keep-as3-metadata name="Init" />
    <keep-as3-metadata name="Destroy" />
        <keep-as3-metadata name="Observe" />
        <keep-as3-metadata name="AsyncInit" />
        <keep-as3-metadata name="ManagedEvents" />
        <keep-as3-metadata name="MessageDispatcher" />
        <keep-as3-metadata name="MessageHandler" />
        <keep-as3-metadata name="MessageBinding" />
        <keep-as3-metadata name="MessageInterceptor" />
        <keep-as3-metadata name="MessageError" />
        <keep-as3-metadata name="Command" />
        <keep-as3-metadata name="CommandComplete" />
        <keep-as3-metadata name="CommandResult" />
        <keep-as3-metadata name="CommandError" />
        <keep-as3-metadata name="CommandStatus" />
        <keep-as3-metadata name="ResourceBinding" />
    <keep-as3-metadata name="Selector" />
    <keep-as3-metadata name="Target" />
    <keep-as3-metadata name="Autoremove" />
    <keep-as3-metadata name="Internal" />
    <keep-as3-metadata name="ObjectDefinition" />
    <keep-as3-metadata name="DynamicObject" />
    <load-config filename="${air.config}"/>
    <compiler.include-libraries dir="${flex.frameworks.dir}/libs/air" append="true">
         <include name="servicemonitor.swc" />
         <include name="airframework.swc" />
    </compiler.include-libraries>
    <external-library-path dir="${build.compc.dir}" append="true">
         <include name="TriGeoFlexFramework/TriGeoFlexFramework.swc" />
         <include name="TriGeoLibrary/TriGeoLibrary.swc" />
         <include name="TriGeoRPCFramework/TriGeoRPCFramework.swc" />
         <include name="Degrafa_Beta3.1_Flex3" />
         <include name="parsley-flex3-2.4.0.swc" />
         <include name="spicelib-flex-2.4.0.swc" />
    </external-library-path>
    <external-library-path dir="${flex.frameworks.dir}/libs" append="true">
         <include name="framework.swc" />
         <include name="datavisualization.swc" />
         <include name="utilities.swc" />
         <include name="rpc.swc" />
         <include name="air/airglobal.swc" />
         <include name="air/applicationupdater.swc" />
         <include name="air/applicationupdater_ui.swc" />
    </external-library-path>
    <source-path path-element="${basedir}/src" />
    </compc>
    </target>
    </project>
    Any insights is greatly appreciated.!

    #1, If it compiles then you have no issue. There's no reason at this point not to use 4.6. You should bundle a captive runtime to assure the users computer won't need to have AIR installed at all.
    #2, Papervision is old. Use the Stage3D and/or a wrapper framework. As far as the generic "If I download lots of data will it take the user more time to load it", well, of course. Just don't make the loading experience painful. Entertain them while they way or find ways of displaying data sooner than later. If it's desirable on the web has more to do with the context of the app and the device displaying it. In other words, a phone user would find it easy but obviously not a desktop user.
    #3, Definitely referring you to Google on that one.
    #4, Size always matters, it's common sense. The more you process the harder it is. While I haven't done AR I've used the Microsoft Kinect SDK and ANE and tracking was extremely fast but limited. From what I've seen and your basic built in location and direction hardware on any mobile device you shouldn't have much trouble. Depends on what you're doing.
    #5, This discussion would be way too large for a forum. You'd need to consult a firm experienced in AR development.
    #6, "Applications using the commercial license do not have to provide source code, but must pay a licensing fee. Contact ARToolworks at [email protected] for more information." They will base your price on your product, there is no single price.
    #7, The models could be huge and elaborate or tiny and simple which changes the answer. Consult the answer in #4. Ultimately most people are getting on fast networks with mobile and excessively fast on desktop/wifi. Size matters a lot less than 3 years ago.
    #8, Depends on what you're doing. You have to explain it.

  • How do you use pathfinder on objects that have effects applied?

    I outlined a bit of text, and then applied Effect > Warp > Arch. What I'd like to do is cut apart parts of the now outlined letters. I tried to use the pathfinder palette, but it applies the pathfinder to old, non-arched shape. Any advice is appreciated. Thanks.

    In case it is important to keep the Warp effect alive you would have to use rather complex Pathfinder Effect constructions (see Effect > Pathfinder).
    Probably it's easier to just expand the appearance of your Warp effects (see Object menu), then use the Pathfinder palette.
    Which version of Illustrator are you using?

  • How do I use home sharing if I have a different apple ID than my wife?

    My wife and I have two seperate accounts.  Do we need to create one apple ID for our house and keep our seperate ID's?  If thats the case how do I listen to my music with my apple ID if it is for a different account?  We want to share our libraries since we have different music.  Dont tell me to copy our music to  DVD or CD and transfer it that was, that defeats the purpose of home sharing.

    Keep in mind we both have our own iPhones and iPads under our own accounts.

  • Help needed: How can I import a large audio collection with many playlists? iTunes crashes because so many playlists try to load and play at once.

    I've got a problem that I can't seem to figure out after reading scads of articles and posts. I'd be grateful for any help or ideas you can provide. Here's what's going on.
    I have a folder of GraphicAudio audio books. It contains roughly 500 subfolders, one for each book. In each folder are the mp3 files for the book and an m3u file that was supplied with the books at the time of purchase. None of this content is currently in my iTunes library.
    When I try to add this folder to my iTunes library, iTunes starts trying to play each playlist it encounters. It crashes after around 30 seconds. I suspect this is because it tries to switch and play playlists so rapidly.
    I don't actually want iTunes to start playing each playlist it finds. I just want to import my files. Once they're imported, I can select them and send individual books to my iPod Touch.
    Do any of you know of a work-around for this? I'm dreading the thought of having to import each subfolder one by one. I keep thinking that if I could just prevent iTunes from automatically trying to play the playlists, it would import the mp3s and playlist info without a problem. If there's no way to do this in iTunes, might there be a third party app that can manage it somehow?
    For reference, I'm using the latest version of 64 bit iTunes under 64 bit Windows 7.
    Thanks for taking the time to help me.

    I've written a script called DeDuper which can help remove unwanted duplicates. See this  thread for background.
    That said you should probably start by "undoing" the creation of extra mp3s. If you sort the song list on the Date Added column you can select then first song from the relevant batch, then scroll to the end of the group, hold shift and click to select the range. You can then delete and send to the recycle bin.
    My script won't be as effective against this group. The "Convert to format" tool may well specifiy a different bit rate from the source file, but it won't ever increase the quality of the audio. Clearly converting 128k mp3 to 256k mp3 would have no benefit so you want the original files.
    If you still have duplicates use the script to thin out what remains.
    tt2

Maybe you are looking for