Drawing order of curve behind loaded movie

Hi,
I'm having an issue with the draw order of curve that's drawn
using Actionscript. In terms of the order of execution of the
function call, I have a SWF loaded first using the loadMovie
function. Then I call the curveTo function with certain parameters
to try to draw a curve on top of the loaded movie. However, the
strange behavior is that the line is hidden behind the movie clip.
I've used swapDepths, but it wasn't working for me. Also tried
using the createEmptyMovieClip function with a depth number
assigned, but didn't do the trick. Any suggestion?

1.  there's no reason for an onEnterFrame loop.
2. there's no reason to use any setInterval() functions in the code you showed.
3. you should be using the same function to load your swfs.  if some logic is needed to position, for example, the different swfs in different locations, the logic should be in that function.
ie, you should be using something like:
_level0 swf:
function nextMov(){
loadF(MovieList[movieQNum]);
movieQNum=(movieQNum+1)%MovieList.length;
function loadF(swf:String){
dep = getNextHighestDepth();
currLo.removeMovieClip();
currLo = createEmptyMovieClip("currLo"+dep, dep);
loadMovie(moviename, currLo);
//move the loaded movie behind movie frame
BlackMovieFrame.swapDepths(currLo);
function endSession(mc:MovieClip){
mc.removeMovieClip();
nextMove();
// in the loaded swfs:
var tl:MovieClip=this;
btnArrow.onPress = function() {
_root.endSession(tl);

Similar Messages

  • Clicking buttons behind loaded movie

    Hi,
    I'm new to flash so please bare with me. I'm loading an
    external swf file into a movie clip and that's working just fine.
    The problem is, while the movie clip is loaded, I'm still able to
    click on buttons that are "behind" the movie clip. Pushing these
    hidden buttons without even knowing it is obviously not a good
    thing. Does anyone have any suggestions?
    Thanks,
    Josh

    Well the stuff "behind" is an interactive workstation thing
    and has lots of nested movie clips, symbols, buttons, etc. with
    many interactive objects and possible states; iterating through all
    of them to disable and then renable once the "front" movie is done
    would be nearly impossible. Is there not some way to prevent
    clicking through the "front" movie?

  • Drawing order of components

    Is there a way in MXML to specify drawing order? I'm
    relatively new and the only thing I can see in MXML to specify
    drawing order is to declare the components in the order you want
    them drawn. Let's say I have two panels,
    p1 and
    p2, and one extra state
    s2. What would I put in
    s2 to make
    p1 appear on
    TOP of
    p2 in
    s2???
    <mx:states>
    <mx:State name="s2">
    </mx:State>
    </mx:states>
    <mx:Panel x="10" y="10" width="250" height="200"
    layout="absolute" id="p1" title="Panel 1">
    </mx:Panel>
    <mx:Panel x="40" y="40" width="250" height="200"
    layout="absolute" id="p2" title="Panel 2">
    </mx:Panel>
    Thanks much in advance

    You are correct in that drawing order is related to the order
    in which components are added to the display list. That's the
    default behavior using the addChild() method of a container. You
    can also use addChildAt( child, index ) to specify a position.
    If the children are already in place you can swap their
    positions or move one child into a specific position. For example,
    if you have two children, the positions are 0 and 1. If you want 1
    to become zero, then use setChildIndex( child, 0 ) and that
    component will be moved behind all others.
    Doing this in a state change is difficult since the order
    isn't a property of the child, you must execute a function. I
    suggest just doing it in ActionScript either before or after you
    switch states.

  • Site behind load balancer - Key not valid for use in specified state

    Hi,
    I have created a sharepoint application page to access an active end point on ADFS and establish a fedauth session. All works well in single server. But when the page runs behind load balancer with 2 servers, it fails with key not valid for use in specified
    state exception. Stickiness is enabled on load balancer. verified that.
    I had made few changes to config file in microsoft.identitymodel section to accomodate adfs custom login. This included removing securitytokenhandlers and issuertokenresolvers as well. Is this impacting the encryption/decryption in anyway?
    Any pointers would help.
    Reference point for my application page : http://blog.helloitsliam.com/Lists/Posts/Post.aspx?ID=76

    Hi,
    As I understand, you encountered the error “Key not valid for use in specified state” when ADFS custom login.
    In order to run in Windows Azure Web Sites a Web application which uses WIF for handling authentication, you must change the default cookie protection method (DPAPI, not available on Windows Azure Web Sites) to something that will work in a farmed environment
    and with the IIS’ user profile load turned off.
    1. If you are using the Identity and Access Tools for VS2012, just go to the Configuration tab and check the box “Enable Web farm ready cookies”.
    2. If you want to do things by hand, add the following code snippet in your system.identitymodel/identityConfiguration element:
       <securityTokenHandlers>
         <add type="System.IdentityModel.Services.Tokens.MachineKeySessionSecurityTokenHandler, 
                 System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
          <remove type="System.IdentityModel.Tokens.SessionSecurityTokenHandler,
                System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        </securityTokenHandlers>
    There is a similar case:
    http://stackoverflow.com/questions/19323287/key-not-valid-for-use-in-specified-state-error-for-net-4-5-mvc-4-application
    Best regards,
    Sara Fan
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Reusing dynamically loaded movies

    Hello,
    I am trying to reuse a dynamically loaded movie which has
    been loaded with a movie clip loader. The movie loads fine and can
    be displayed once with no problem. However, I would like to be able
    to store this movie so that it can be resused again without loading
    it from the URL again. Is there a way to do this?
    I found this in the docs:
    quote:
    the problem w/ attachmovie is that one must have a link
    identifier (in linkage panel) in order to attach it.
    there is no way (that i know of) to attach a *dynamically*
    created clip - either by duplicateMovieClip or
    createEmptyMovieClip.
    I'm hoping this isn't true. What if I had a JPG I loaded
    dynamically and I wanted to use it 100 times? I can't imagine
    having to load the JPG 100 times.
    I need something like attachMovie(), but that only works with
    movies that are already in the library. Does anyone know if there a
    way to reuse a dynamically loaded movie? I've tried all sort of
    combinations of createEmptyMovieClip, duplicateMovieClip, and
    attachMovie but nothing has worked.
    FYI - I am using Flash 2004 MX Pro and ActionScript 2.0.

    yes, load it 100 times. it will be retrieved from the user's
    browser cache after the first time so this is not the limitation
    you're thinking it might be.

  • My MX892 is clicking and can not draw paper - I get a load paper error message - any suggestions?

    My MX892 is clicking and can not draw paper - I get a load paper error message - any suggestions?

    Hi keciakh,
    To try and get the paper to feed, with a flashlight or other bright light, please check the paper feed area of the printer and verify that there are no paper jams or obstructions in the printer that may be causing the error.   Once this has been done, please look inside of the printer where the inks are located and ensure that there are no obstructions in there that may be causing the print head not to move freely.  Next, please remove and reseat all of the ink tanks in the printer.  Once all of these steps have been performed, please follow the steps below to perform a roller cleaning on the printer:
    You need to prepare: three sheets of A4 or Letter-sized plain paper  
    1. Make sure that the power is turned on. 
    2. Open the paper output tray gently. 
    3. Select Roller cleaning.
    (1) Press the MENU button.
    (2) Select Setup, then press the OK button.  The setup menu screen will appear.
    (3) Select Maintenance, then press the OK button.  The Maintenance screen will appear.
    (4) Select Roller cleaning, then press the OK button.
    The confirmation screen will appear.
    (5) Select Yes, then press the OK button.
    (6) Select the paper source to clean (Rear tray or Cassette), then press the OK button.
    4. Clean the paper feed roller without paper.
    (1) Follow the message to remove any paper from the paper source you selected in (6) of step 3.
    (2) Press the OK button.  The paper feed roller will rotate as it is cleaned.
    5. Clean the paper feed roller with paper.
    (1) Make sure that the paper feed roller has stopped rotating, then follow the message to load three or more sheets of A4 or Letter-sized plain paper in the paper source you selected in (6) of step 3.
    (2) Press the OK button.  The machine starts cleaning. The cleaning will be complete when the paper is ejected.
    (3) When the completion message appears, press the OK button.  The screen will return to the Maintenance screen.
    Reference
    To access other available functions, use the mode buttons or the MENU button.
    This didn't answer your question or issue? Please call or email us at one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Ad Control not showing above Unity3d window even if draw order is adjusted

    I am using Unity3d and Visual Studio to release a simple game. I already have a paid version released and working great. I am trying to make an ad supported version with little luck.
    I added in the Ad Control item into design view and attempted to adjust the Unity window so that it sits below where the ad banner will sit.  I have even tried to adjust the Ad Control draw order to various numbers higher than 0 (not sure if that should
    help or not).
    When the game starts, there is a "flash" of a red outline where the ad should be, but then it disappears, presumably behind the Unity window.  This area is also not pressable, it blocks the presses on my game where the ad should be.
    Is this something to do with the Unity object window parameters, or is there something else I may have to do to get my ads to work?
    Thanks!
    Nick

    Hello,
    Welcome to MSDN forum.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because your issue is related to Unity3d which is third-party, I suggest consulting your issue on Unity3d community:
    https://unity3d.com/community for better response in order to resolve your issue as soon as possible.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Loaded movie loses functionality

    I have a movie called pageturn.swf and is loaded in this
    order....................First my main timeline is loaded , which
    is an animation.....at the end of the animation, my first movie is
    loaded with "loadMovie("movie2.swf"); at the end of this movie my
    third movie is loaded. ....In my third movie I have three
    navigation points and on one point when a button is click it takes
    the user to the the frame label and loads my page turn.swf
    movie........so.......I've gone from
    Main timeline
    ->movie1->movie2->movie3->pageturn.swf.
    I have a btn that resides in pageturn.swf that takes the
    navigation back to movie 3 or the "start" frame label. The
    pageturn.swf works the first time BUT pageturn.swf doesnt work when
    I try and open it again. It works the first time, then just doesnt
    do anything, sometimes when I test export, sometimes it will work
    but just not all the time like I would want it. I tried placing the
    unloadmovie at the end of the page turn exit but it does not fix
    the problem. below is what I have when it exits
    this.unloadMovie();
    _level0.lines.holder.holder2.gotoAndPlay("play");
    Any ideas?

    I think the problem is the use of attachSound in an
    externally loaded movie.
    attachSound (Sound.attachSound method)
    public attachSound(id:String) : Void
    Attaches the sound specified in the id parameter to the
    specified Sound
    object. The sound must be in the library of the current SWF
    file and
    specified for export in the Linkage Properties dialog box.
    You must call
    Sound.start() to start playing the sound.
    To make sure that the sound can be controlled from any scene
    in the SWF
    file, place the sound on the main Timeline of the SWF file.
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "devilmuzik" <[email protected]> wrote in message
    news:e83i28$7s4$[email protected]..
    > Hi Jan-Paul...here it is...
    > _______begin code_______
    > on (press) {
    > stopAllSounds();
    > mySound = new Sound();
    > mySound.attachSound("pl");
    > mySound.setVolume(100);
    > mySound.start();
    > }
    > _______end code_______
    > I've tried declaring the sound var everywhere...the
    loader clip's main
    > timeline...I even tried declaring it as a
    _global...still no joy...
    > It is clear that this is something to do with how I'm
    handling the Sound
    > object, but still don't get why
    myLoader.content._lockroot=true didnt
    > work...
    > Remember...the player works when called by itself...it
    just fails to play
    > in
    > the loader...
    > Your continues help is much appreciated...
    >
    >

  • My photos in a folder are not in the correct order. How can I move them around?

    I  Am making an album of the life of an aunt. My photos are all in the wrong order. How can I move them around in the folder?

    lets use the correct words so we do not mis-communicate
    are you using iPhoto or the finder?  Never touch your photos using the finder if you use iPhoto!
    In iPhoto folders can not hold photos - folders hold only other folders or albums - albums hold photos  --  within an album you can manually arrange photos as you wish

  • Unable to load movie playlist?

    I'm really starting to regret Upgrading to Director 11. I
    didn't have any of these issues going from MX to MX 2004. All I'm
    trying to do is make a simple projector work on a Mac and it's one
    issue after another. Not to mention all this after updating a whole
    boat load of Xtras 11 requires.
    The new one is this;
    Unable to load movie playlist. Does the INI file exsist? It
    must contain a section '(Movies)' with an entry
    'Movies01=pathname.dir'.
    I've already read a couple of other forum post with the same
    error message going on with others but can't find certain files
    required to make the fix like the 'Projec32.skl',
    and I don't know how to read, let alone make an .INI file.
    I'll mention I got this error after updating to Shockwave 11
    EVEN though I was not publishing a Shockwave movie.
    I know I just need to include a certain file on my CD when I
    burn one because all works great on the desk top, but I'm throwing
    darts trying to figure out what the CD burn is missing.
    So to make a long story short does anyone know what I might
    be missing?
    I'm new to making director movies for the Mac, and even using
    a Mac so I might need it spelled out a little more for being a
    novice.
    Thanks in advance. :o)>
    PS I tried making a Mac Projector from my PC with no good
    results either.

    This is a very frustrating problem.  I have run into it as well, but can't tell you exactly how I solved it, its been a while since I've seen it.  It does have something to do with the length of the path to your projector when its published.  I would suggest moving your movie as close as possible to the root of the drive, you may even want to restart to ensure all the internal variables have been reset and then republish the movie.
    If you publish the movie from your authoring location and then copy the projector to a cd or the desktop the path length seems to be built into the projector at publishing. So that does not solve the problem.  It is fairly easy to get a long path name - c:/mylocaldrive/documents and settings/yourusername/yourprojectsfolder/yourprojectname.dir has a path name length of 100 characters!  I realize you are on a mac, but the same rules apply.
    I also might be mistaken with the maximum path length.  Perhaps its 128 characters?
    Has anyone else run into this error?
    Mike M

  • This message comes up "This computer is already associated with an Apple ID" trying to down load movies of another computer of ICloud how do I get By?

    This message comes up "This computer is already associated with an Apple ID" trying to down load movies of another computer of ICloud how do I get By?

    Hi Allan, thanks for that. I've already set up a log in for my wife and that is all working fine. The problem is that when she logs in and opens iTunes and trys to associate her library with her iTunes account she gets the error message "This computer is already associated with another iTunes account". Whilst this is true, the computer is associated with my iTunes account under my separate log in, which should have nothing to do with hers. If she transfers the association to her account it will lock me out of my content on my log in for 90 days - I'm trying to work out how to associate each of the log in accounts with a separate iTunes account so we can access our music independently of one another without locking each other out. Hope that makes sense!

  • HT4352 My apple tv will no longer load movies.

    My apple tv will no longer load movies that I have in iTunes. It shows them in the menu, but when I click on them I just get the spinning wheel. Music works fine. Every thing worked fine the day before.

    Power cycle the ATV.
    Close and relaunch iTunes on the computer or simply reboot the computer.

  • HT202157 Does anyone else have a problem with the latest Apple TV update?  My Apple TV no longer can load movies from my iTunes library, including ones I've already watched or were watching.  Can I roll back this update, and if so, how?

    After updating my Apple TV, it will no longer load movies from my iTunes library.  Music works, but no movies.  I've turned this puppy every which way but loose, but no joy.  Is there a way to roll back an update?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • Automatic creation of meter reading order with RR 01 after move in

    Hi Experts,
    I am working with DM module of SAP ISU. Currently I am facing a problem that after move-in a periodic order with RR 01 is created automatically by the system.
    Ex: Move in date is 01.01.2010. Monthly Portion is used with Schedule record 01.01.2010, 01.02.2010, 01.03.2010, 01.04.2010 and so on.
    If current system date is 20.07.2010 then Meter reading order is created automatically by the system for sch MRD 01.08.2010.
    Please let me know how to overcome this problem
    Thanks in advance.

    Thanks for your reply but I have cheked SPRO setting the suggested check box is already uncheked.
    I beleive the setting you have suggested is meant for default meter reading during move in but my problem is automatic creation of meter reading order with reason 01 during move in

  • I rented a movie on an iPad mini while connected to wifi. Now I'm in the car with out Internet and when I try to play the movie is says "could not load movie" what can I do? I purchased it from iTunes and let it load fully before leaving.

    Can somebody help me figure this out? So before a road trip I rented a movie on my Ipad mini. The movie fully loaded before I left. It downloaded under wifi. Now that I'm in the car I tried to watch the movie but it isn't working. When I press play an error message pops up saying "could not load movie" can I not watch it with our wifi? What's going on? What can I do to watch the movie?

    Having the same problem. Watched 25 minutes of a rental and it stopped with the message"unable to load video"
    Using current version IPad mini.
    Ios7 is  HUGH PIECE OF CRAP!!!!

Maybe you are looking for