Help with movement of sprite forced on the edge of an irregular shape of bitmap or vector.

Hello

I need to be able to restrict the movement of a "wheel" along the edge of an irregular bitmap or vector shape. In addition, as the "wheel" moves along the way, it should return the length of the path travelled in pixels.

What it is for is to demonstrate the extent of what is called the "range of vision." The process involves moving two rods share sighting until the lower part of one is no longer visible on the other, then running a wheel odometer along the road alignment irregular to measure the distance of moving real between the two rods.

I was able to complete the first part of the present, with two rods connected by a "visibility" moved out on an irregular shape vector until the distance of visibility becomes invisible. And it returns the distance the two stems are separated by, feet, using 1 pixel = 1 foot. A segment of this film is reproduced below. The wheel should run on the gray slopes after the Red sight line disappears as it is moved over the Hill.

Of course, the wheel on the edge of the irregular shape and the actual distance of the way back in pixels are the hardest part of this. I remember James Newton and others had developed several methods to constrain the movement of a sprite on the edge of another form. But I could not find these behaviors. In addition, I know calculate the distance travelled by the wheel is going to be a bit complicated, as I suspect, it will need to calculate the hypotenuse of several rise and run triangles, with new triangles added when changing the direction of the irregular surface.

Can anyone offer help at least getting the traffic restricted to a sprite("wheel") along the edge of the shape bitmap or vector?

Thanks in advance.

Rod Wolford

Hi Rod,

Maybe you are looking for this:

http://nonlinear.OpenSpark.com/tips/dragging/irregular/

In addition, I know calculate the distance travelled by the wheel is going to be a bit complicated, as I suspect, it will need to calculate the hypotenuse of several rise and run triangles, with new triangles added when changing the direction of the irregular surface.

How irregular is your form is going to be? If it's just a series of triangles, then it should be simple. If you know in advance what triangles are going to be, then it is even simpler.

Maybe you can find some inspiration here:

go film ("http://nonlinear.openspark.com/tips/other/irregularLength.dir")

Can you give examples of the way in which the irregular surface must be created?

See you soon,.

James

Tags: Director

Similar Questions

  • Need help with movie controls (specifically the reboot)

    Hi all

    Noob question, so bear with me.

    I have a site that loads a page with video playing on one of the pages.  I put it in place so that clicking on the button of the page starts the video and clicking on a button for a another page stops the video.

    However, instead of stop the video she just paused, so that when the user returns to the page with the video the video resumes where it left off, rather than restart.

    My site as a whole is a great movie clip, so each page is not loaded when we click a button - the content is just interpolated on the stage.

    Is it possible for me to have the control to stop the film playing (other buttons on the page) or to start playback of the movie (own page button) to have restart instead of the first image?

    Code for the start is really simple:

    content_mc.about_mc. MyVideo.Play ();

    and the judgment is:

    content_mc.about_mc. MyVideo.Stop ();

    Thank you.  I know I'm asking for the wrong thing because I left speechless Google results with what I ask, helps find the right way to do it is appreciated, even if I like a lot the way the site is designed so preferably not redo the whole site would be great!

    C.

    If you do not use a pause button so you can activate your flvplayback instance autoRewind property the flv file will restart from the beginning, whenever it stops:

    content_mc.about_mc. MyVideo.autoRewind = true;

  • Help with service pack 3 to install - "" the component that you are trying to use is on a CD-ROM... "."

    original title: help with service pack 3 installation

    I get the message to update and install service pack 3, but every time I try it can not be installed. "the component that you are trying to use is on a CD-ROM or removable disk that is not in vain. Insert the microsoft excel 2002 disc, and then click ok' I have no disk, what do I do

    Hello

    Try to install the stand-alone version of the Service Pack by this link:

    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=24

  • Need help with a script (o - o8) *, see the Virgin if there is no

    Hi all what I need help with a script I can't find an example.

    I'm trying to subtract 2 numbers and then multiply this product. (o o8) * one but I just want to do the calculations if all fields have the numbers IE field o, o8 of field and field one.

    Thank you in advance. I was stuck on this days searching the Internet.

    Assuming you want to affect the outcome of this calculation in another text field, use this code as a custom field calculation script:

    var o = this.getField("o").valueAsString;
    var o8 = this.getField("o8").valueAsString;
    var a = this.getField("a").valueAsString;
    if (o!="" && o8!="" && a!="") event.value = (Number(o)-Number(o8))*Number(a);
    else event.value = "";
    
  • Help with installing previously bought CS5 on the new iMac.

    Today I bought a new iMac, when I got home and started putting in place I realized, he didn't have a CD player (very attentive to me), and now I'm totally stuck with how to get my macbook on my new mac CS5.

    Ive asked for help on Apple and Adobe cat. The cat from Adobe told me that they do not support it more because it isn't CS6 so now I am totally confused and worried, I'll have to pay a charge more money for the software, I need for my coursewhich I already bought once!

    HELP ME PLEASE!


    You can download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important article Instructions on the pages to download to this site or the download may not work properly.

    CS5:

    http://prodesigntools.com/all-Adobe-CS5-direct-download-links.html

  • Help with html files when you place the overlay Web content

    Hello

    We have an educational application with plenty of interactive exercises - which were originally designed in Flash.

    I have converted in HTML using Wallaby fla files. For each fla file, Wallaby creates a js, css and html file but also an active file.

    When I place the frame Web Content, and then link it to the html file, it link to the real HTML created Wallaby? It wont let me select the folder containing all the files in that, and I can't link to a zip file either... Then, how it recognizes assets if I select only the html file? (see screenshot)

    Screen Shot 2013-03-28 at 2.09.20 PM.png

    Or do I need to add a HTMLResources file and bind it to who?

    Thanks in advance for any help.

    You a link to the HTML file but make sure that these things are in their own folder or InDesign will add EVERYTHING in the folder that has the HTML in there.

    Bob

  • Help with rotation symbol and address at the top left

    I want to be able to turn a symbol on the center of my choice (or even the center of the image/symbol), but retain the upper left corner as 0,0. Is this possible? It seems that I may have only one or the other.

    My project is an image (inside a MovieClip symbol) which moves and rotates according to the direction of travel. Only problem, it's funny. And then when I Center/adjust the rotation of the image inside the symbol, its origin is no longer in the same place, and I have to give additional numbers to compensate for. I guess the reticle is (0,0) as well as the central point or rotation. I'm fine with this being (0,0), but how can I move the rotation/pivot also point? I tried to use the free transform tool to move the white dot in the Center, but little success.

    Any tips? Thank you!

    AFAIK, you must choose one or the other.  If centered rotation is important, then Center your 0,0 and use the compensation values if you need to locate the top-left corner moving ever.

    I don't know if the loading of the moiveclip in an empty movieclip can offer a solution that you want to or not.  You can rotate the movieclip centered inside and use the movieclip containing the x / values there.  It might be interesting to play with and see what happens.

  • help with installing a printer lexmark without the original Cd

    Hi, can someone help me. I need to install the software for my printer Lexmark P4350, I tried to go to the lexmark Web site but I have installation through their process. Anyone know of any other sites that I can use to install the software. We organize a home business if need the printer online as soon as possible

    Hello

    I must say that I had big problems to make the cooperative Lexmark site. Try this link...

    http://support.Lexmark.com/index?docLocale=en_US&page=content&segType=recommendedSegmentMICROSOFT&ID=DR3684&locale=en&UserLocale=en_US

    or this one...

    http://downloads.Lexmark.com/downloads/CPD/cjb4300EN.exe

    Tricky

  • Help with movie mod rebel T5

    Hi all a new im so I had a rebellious t5 as a gift and I love it but I have a problem I have when I want to shoot film I have is my exhibition manual but in the view of the line next to the opening that resembles an exhibition line but I control I need upside lining to a dark scene , but it's still automatic cannot someone can help me please?

    What lens do you use?  Exposure settings are fully automatic with the T5 in video mode.

    Here are the notes and precautions on T5 movie mode.

  • * URGENT * help with movie maker 2.6

    Hey there,

    I am trying to add a title in my movie, but everytime I try there is no words or anything like that, just a white screen and it takes all the videos of my film and I'm just left with the sound. I have no idea how to solve this problem! Help, please.

    Mm2.6 running on Windows 8 is buggy when it comes to titles and citations... but subtitles work fine.  Use a picture in black clear with a caption top and it'll be the same as a video title or credits.

  • Help with my drop-down list in the fluid grid view

    Print-screen-mobile-LO-070615.jpgPrint-screen-tablet-LO-070615.jpgPrint-screen-desktop--LO-070615.jpg

    I built the site of "fluid" and that's great, up and running and I am delighted!  A big thank you to the DW forum. URL is: tyndall.net.au

    Now, I want to add a drop-down in the three 3 sizes: mobile, Tablet and desktop. And I want it to develop the ' Services ' section. On the 'Services' page there are links to 21 different types of services.

    It is these types of different services, have to be displayed in the drop-down list button.

    Objective: in hover mode, the fall down to look identical to the head key, centered with a complete history! To inherit.

    You can see on the screenshots:

    In Mobile, there is a complete history, but it is not centered and not the same size

    Tablet & Desktop - background not complete, not centered, not the same size

    I can't find a tutorial on this issue. Tutorial of Daniel Walter - Scott in BYOL helped a long way, thanks mate.

    Can someone help me with this problem?

    Concerning

    Jonathan

    Byron Bay, Australia

    __________________________________________________________________

    Reach:

    Here is the HTML code for the nav div:

    < nav id = 'mainNav' class = "fluid" > < ul id = "menuSystem" class = "fluid fluidList" > "" ""

    < li = class "menuItem fluid zeroMargin_tablet zeroMargin_desktop" > < a href = "/ index.html" > home < /a > < /li >

    "< class li ="fluid menuItem"> < a href="/About/about.html "> on < /a > < /li >

    "< class li ="fluid menuItem"> < a href="/Services/services.html "> Services < /a >

    < ul >

    < class li = "fluid menuItem" > < a href="/Services/otherpage.html" > Immigration < /a > < /li > ".

    < class li = "fluid menuItem" > < a href="/Services/otherpage2.html" > Banking < /a > < /li > ".

    < class li = "fluid menuItem" > < a href="/Services/otherpage3.html" > bankruptcy < /a > < /li > ".

    < /ul >

    < /li >

    < class li = "fluid menuItem" > < a href="/Articles/publication.html" > items < /a > < /li > ".

    < class li = "fluid menuItem" > < a href="/Migrate/migrate.html" > migrate < /a > < /li > ".

    "< class li ="fluid menuItem"> < a href="/Journal/journal.html "> Blog < /a > < /li >

    < class li = "fluid menuItem" > < a href="/Contact/contact.html" > Contact < /a > < /li > < /ul > < / nav >.

    < / header >

    Here are all the css in style.css code:

    @charset "utf-8";
    / * Simple fluids
    Note: Fluid requires that you remove the attributes height and width of the media of the HTML
    http://www.alistapart.com/articles/fluid-images/
    */
    IMG, object, embed, {video
    Max-width: 100%;
    }

    / * IE 6 doesn't support max-width so 100% width by default * /.
    . IE6 img {}
    Width: 100%;
    }

    /*
    Properties Grid Dreamweaver fluid
    ----------------------------------
    DW-num-CLO-mobile: 4;
    DW-num-CLO-Tablet: 7;
    DW-num-OCOL-Office: 14;
    DW-gutter-percentage: 25;

    Inspiration of "Responsive Web Design" by Ethan Marcotte
    http://www.alistapart.com/articles/responsive-web-design

    Golden by Joni Korpi grid system and
    http://goldengridsystem.com/
    */

    {.fluid}
    Clear: both;
    left margin: 0;
    Width: 100%;
    float: left;
    display: block;
    }

    {.fluidList}
    list-style: none;
    list-style-image: none;
    margin: 0;
    padding: 0;
    }

    / * Mobile layout: 480px and below. */

    {.gridContainer}
    left margin: auto;
    margin-right: auto;
    Width: 86,45%;
    padding-left: 2,275%;
    padding-right: 2,275%;
    Clear: none;
    float: none;
    font size: small;
    }
    #top {}
    }
    #top img {}
    left margin: auto;
    margin-right: auto;
    display: block;
    }
    {#mainNav}
    }
    {#menuSystem}
    list-style-type: none;
    }
    .menuItem {}
    top of the margin: 2px;
    margin-bottom: 2px;
    padding-top: 1px;
    padding-bottom: 1pk;
    text-align: center;
    color: #FFFFFF;
    background-color: #051383;
    border-radius: 5px;
    Width: 100%;
    left margin: 0;
    Clear: both;
    }
    {.photois}
    }
    body p {}
    do-family: Arial;
    }
    {.jonofigcaption}
    make-style: italic;
    Police-family: Garamond;
    font size: small;
    text-align: left;
    }
    body figcaption p {}
    }
    {motto}
    Police-family: Garamond;
    font size: large;
    make-style: italic;
    text-align: left;
    }
    .Text1 {}
    }
    . Header {}
    do-family: Tahoma;
    font-size: medium;
    }
    {.jonotext}
    do-family: Arial;
    text-align: justify;
    }
    .Text2 {}
    do-family: Arial;
    text-align: left;
    }
    {.footer1}
    text-align: right;
    do-family: Arial;
    do-size: x-small;
    }
    {.footer2}
    text-align: right;
    Police-family: Garamond;
    do-size: x-small;
    }
    {.footer3}
    text-align: right;
    do-family: Arial;
    Police-weight: 900;
    make-style: italic;
    }
    . gridContainer.clearfix. fluid.footer2 p img {}
    }
    {#jonominibutton}
    left margin: 1px;
    right margin: 1px;
    padding-left: 1px;
    padding-right: 1px;
    }
    #mainNav a {}
    display: block;
    text-decoration: none;
    color: #FFFFFF;
    }
    #mainNav a: hover, #mainNav a: active, #mainNav one: {emphasis
    background-color: #A3C3FF;
    text-decoration: none;
    color: #051383;
    }

    . gridContainer.clearfix #top img {}
    padding-bottom: 5px;
    padding-top: 5px;
    }
    UL {}
    list-style-type: none;
    }
    {body
    }
    a: link {}

    }
    {.footer4}
    do-family: Arial;
    font size: small;

    }
    . gridContainer.clearfix. fluid.footer2 p an img {}
    }
    {.officearea}
    }
    .officearea img {}
    vertical-align: bottom;
    }
    {.jonofooter4}
    do-family: Arial;
    do-size: x-small;
    text-align: left;
    }
    .jonothumb img {}
    vertical-align: baseline;
    }
    {.footer7}
    do-family: Arial;
    Police-weight: 900;
    make-style: italic;
    font size: small;
    }
    {.zeroMargin_mobile}
    left margin: 0;
    }
    {.hide_mobile}
    display: none;
    }
    #mainNav ul ul {}
    display: none;
    position: absolute;
    }
    #mainNav li: hover ul > ul {}
    display: block;
    }
    #mainNav ul ul li {}
    float: none;
    text-align: center;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;


    background-position: center
    %;
    }

    #mainNav a: hover, a: active {}
    }

    / * Tablet Layout: 481px to 768px. Inherits the styles of: Mobile layout. */

    @media only screen and (min-width: 481px) {}

    {.gridContainer}
    Width: 90.3428%;
    padding-left: 1.3285;
    padding-right: 1.3285;
    Clear: none;
    float: none;
    left margin: auto;
    }
    #top {}
    }
    {#mainNav}
    }
    {#menuSystem}
    }
    .menuItem {}
    Width: 11.7647%;
    Clear: none;
    margin left: 2.9411%;
    }
    {.photois}
    }
    .Text1 {}
    }
    .Text2 {}
    }
    {.footer1}
    }
    {.footer2}
    }
    {.footer3}
    }
    {.footer4}
    }
    {.officearea}
    }
    {.footer7}
    }
    {.hide_tablet}
    display: none;
    }
    {.zeroMargin_tablet}
    left margin: 0;
    }
    }

    / * Office Layout: 769px to a maximum of 1232px.  Inherits the styles of: Mobile and tablet. */

    @media only screen and (min-width: 769px) {}

    {.gridContainer}
    Width: 88.7142%;
    Max-width: 1232px;
    padding-left: 0,6428%;
    padding-right: 0,6428%;
    margin: auto;
    Clear: none;
    float: none;
    left margin: auto;
    }
    #top {}
    }
    {#mainNav}
    }
    {#menuSystem}
    }
    .menuItem {}
    Width: 13.0434%;
    Clear: none;
    margin left: 1.4492%;
    }
    {.photois}
    }
    .Text1 {}
    }
    .Text2 {}
    text-align: left;
    }
    {.footer1}
    }
    {.footer2}
    }
    {.footer3}
    }
    {.footer4}
    }
    {.officearea}
    }
    {.jonoboldarial}
    Police-weight: 900;
    do-family: Arial;
    make-style: italic;
    }
    {.footer7}
    }
    {.zeroMargin_desktop}
    left margin: 0;
    }
    {.hide_desktop}
    display: none;
    }

    }

    It's these types of different services, I should show up in the drop-down buttons. >

    Drop-down lists that appear to move the mouse do not work on touchscreens because they do not have a mouse.  The current trend is to keep the navigation simple & simplified.  21 links dropdown under Services is going to be too expensive for mobile users.   Just keep the simple navigation with a link to the Services page you did and your users will have fewer problems with your site.

    Either way, justified text links seem strange.  See screenshot.   You can see that.

    Finally and most importantly, provide enough space between links to help mobile users.  Android recommended that links be 10mm high providing for easier faucet finger gestures.  When the links are stacked too close together, which makes it very difficult selecting the link desired without the aid of a stylus.

    Nancy O.

  • Help with movie that continues to play when we click on a text external link button

    I am using Captivate 3.

    I have a movie with text buttons different one of my buttons in this particular module I created when clicked opens a PDF file for the display external.

    However, my movie in the background continues to play when I need to stay on this Menu screen with different buttons.

    Ideally if the user makes when looking at an external PDF can then click another button to continue to the section in the film where they need to go to the demonstration of software.

    Any ideas on how to get it to stop?   I thought I had work yesterday, but today is not... Its possible, I removed a break in double or something?

    * UPDATE - just went to check the settings of break... It STOPS CORRECTLY if I click on the external link once button... but if I click on it again... It opens again the link and then the demonstration starts playing in the background...

    Help, please

    Christina

    Hello

    Your message has probably been neglected because we assume you watched first page frequently encountered problems.

    See if the link below answers this question.

    Click here to see

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Flash beginner needs help with Movie Clips/Action script

    HI -.

    I'm having a problem with my video clips playing simultaneously and cannot, for the life of me, know what I did wrong. I'm new to flash so I can I have created something wrong but this is what I have so far:

    11 layers, total: 1 layer with 10 buttons, each button with the following actionscript code:


    on (release) {}
    gotoAndPlay (85);
    }


    When the number changes with regard to keyframes, the next film is about.

    I have 10 films, total, but they are only video clips, mainly photo slideshow with audio, does everything in the library.

    The problem occurs when I click on the second or third button. Not only the movie I selected starts to play, but all previous clips are as well, he has completely blurred all the sounds. I don't know what Miss me in action script, as my Action layer has a stop command to this topic at each keyframe where there is a new clip to play.

    I tried to add a stopAllSounds command, but I'm afraid that does nothing because it is not an "audio file" in itself playing in the timeline panel.

    I'm at the end of my rope and really need help to understand this one. My project is hanging in the balance on this point, I wrote everything correctly and it works beautifully.

    Help, please!

    Thank you
    Caroline

    Start your sounds in frame 2 and place stopAllSounds() on each keyframe where begins a movieclip.

  • Need help with security when AS3 running inside the browser

    Hello

    I'm relatively new to flash, but a fairly skilled programmer.

    I've created a game that works perfectly and communicates with a WinSock server on port 4000 to publish his final to score. With the help of simple XMLSocket and Send.

    When I start the game in the stand-alone flash player everything works perfectly as it should

    However, when I embed in an HTML page or similar this is wrong. The game works fine, but the final display on the WinSock socket server fails. I got the error message.

    ioErrorHandler: [SecurityErrorEvent type = "securityError" bubbles = false cancelable = false eventPhase = 2 text = "Error #2048"]

    My server is a local server run me IIS 6. Everything works very well by the stand-alone flash player, so I know that the ports are clear and firewalls is not the problem.

    Searching around google and forums I discovered in 9,0,124,0 (flash I'm short) that they brought security enhancements, namely you must validate a cross-domain file.

    My file is sitting in the wwwroot in my Web server where my flash swf is hosted and looks like

    < cross-domain-policy >
    < allow-access-from domain = "" * "safe ="false"/ >"
    < / cross-domain-policy >

    I also tried adding to article 1 of the swf file

    Security.loadPolicyFile (" http://mydomainname.com/crossdomain.xml");

    I tried all the bottlenecks, but I can't get the flash to communicate with the server socket when it inside a web browser.

    If I run it in the stand-alone player, everything works perfectly.

    Can someone help me please. I've been googling and ripping my hair out for centuries. It's the last step in my project and I failed the final step.


    Just to add.

    My server and the test computer are on the same domain, the web server is a win2003 server and my tests and server coding is a XP machine running IE7. They are connected by a router ADSL, sharing the same external IP address, but rather through the DHCP addressing. Everything works fine for winsocket port port forwarding.

    Just for emphasis, I think that this configuration is correct, because everything works fine when I run in the flash player.

    Thank you very much

    I fixed it later.

    In version 9.0.124.0 flash they force now you have a server running on port 843 XML socket server somewhere if you want to use XMLSocket in a browser.

    Nothing to do with the domain or crossdomain.xml files.

    You must also call

    Security.loadPolicyFile ("xmlsocket://x.x.x.x:843") before opening the socket.

    to load into the XML file that defines what is allowed.

    Google search for AS3 and socket server port 843 and you will find examples and even a simple Java based server to use.

  • New driver tuner help with DVB - T TV gel to the United Kingdom on Qosmio?

    Hello Qosmio users

    Today I saw on Toshiba download page nine PCI DVB-T/Analog hybrid Tuner. I can't use it in my country because it DTT is not available, but maybe it can help the United Kingdom with Frost TV guys.

    If this will solve your problem please let us know.

    Hey guys

    If someone has some problems with the installation of the new driver of TV tuner, so I recommend you visit this forum to the topic:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=15212

    It s very useful :)

Maybe you are looking for

  • Hiroto: How interpred firefox the page Inspector

    How should interpret the dotted lines? Why is the width x 20 box height 0.  I am the mouse hovering over the ul. How to interpret the position of the dotted lines? See this, and I get it. I am move the mouse over the li.

  • "' I want that the old" see all bookmarks "so that I can copy / paste

    In my bookmark menu folders for the different categories of bookmarks and favorites that have not been categorized there. You people has changed the user interface. I want to 'see all bookmarks' before I can move the bookmarks not classified in their

  • iCloud Photo Upload on Win/Mac

    Hello How will I know if all images have been uploaded successfully? I am about to download my entire library and don't want to eventually have duplicates or search manually if all goes well. Y at - it log files, etc.? Is there a difference when you

  • 15-f010dx HP: HP 15-f010dx corrupted Bios

    Hi all I have a HP 15-f010dx laptop will not boot.Indicated by 2 LED flashing BIOS corruption failureHave tried to update the BIOS (now WIn + B) with a USB, no luck. Warranty has expired less than 2 months ago. Any thoughts?

  • I really need help with win7 users in c: drive Security tab help

    I noticed that this laptop is really slow, even after a fresh reboot. Now when I open the Task Manager it is about 9 processes running. When I click on the 'show processes from all users", there are 58 running.  BUT users in 'control panel' are mine