How to smoothly scale movieclip while moving it towards viewer?

Hi,
I have a movieclip (mstone) depicting a signpost, which is within another movieclip (graphic1). I am trying to scale mstone to increase by about 44%, and it needs to move along the screen in such as manner that it is moving towards the user. Some how the scale and the x,y coordinates I am providing don't seem to reflect the same way as it normally would, when I see the website live.
Is there a smooth way to move the clip, without specifying particular x,y co-ordinates?? I am using the _xscale, _yscale, _x and _y properties. Not producing the desired effect.
Any suggestions on a better way to approach this???
Thanks

No, I am doing all the scaling and moving withing the onLoadProgress. Since I am using ActionScript 2, not using any classes...would get too complicated for me...
Code is something like this:
ldrlistener.onLoadProgress = function(_mc:MovieClip, loaded:Number, total:Number) {
var prcnt:Number = Math.floor( ( loaded/total ) * 100 );
_root.ldrgraphic.mstone._width = 507.5;
_root.ldrgraphic.mstone._height = 228.1;
_root.ldrgraphic.mstone._x = 0;
_root.ldrgraphic.mstone._y = 0;
if(prcnt==90) {          // for 10, 20, 30, 40 and so on
trace("loading:90");
_root.ldgraphic.mstone._xscale += 4.4;
_root.ldgraphic.mstone._yscale += 4.4;
_root.ldgraphic.mstone._x = -254;
_root.ldgraphic.mstone._y = -56;
_root.ldgraphic.mstone.pertext.text = "10 meters";

Similar Messages

  • How to see the object while moving on the artboard?

    hello everyone;
    maybe a silly question; how to see the object while moving on the artboard? i dont wanna see only the objects bounding box(outline of the object). i wanna see the object it self. thank you.

    What have they gone and messed up now?
    When I drag an object (with bounding boxes turned on), the object moves and the bounding box stays still until I stop dragging, upon which it snaps to the object’s new position.
    If I don’t have bounding boxes turned on (as I usually work), the object moves when dragged.
    If what Bedri says is right, they’ve gone and mended something that wasn’t busted.

  • How to keep green screen effect in one place while moving camera?

    Hello all. I have been trying to use a green screen while moving the camera in Final Cut Pro X however I am running into a problem. Basically when I move the Camera all of the effects on the green screen move with a camera. Is there a way to make them stay in one place as the camera moves from side to side? The following video shows what I am talking about more clearly.
    http://www.youtube.com/watch?v=CsER-fx5UgQ
    Thanks!

    Karsten Schlüter wrote:
    sure ...
    you track, e.g. the corner of your monitor; then apply the motion-path to the second source; apply keying (color, luma, whatever) - done.
    in my 2nd example, I had to track the shaky hand-camera, the second track is no green-screen, but a manual masked freeze .. but basicly ...
    Okay thank you! I think im just going to buy Motion 5 then

  • How to smooth edges?

    Hi all,
    I am in hopes that someone can tell me how to smooth the edges of the numbers in the attached image?
    Thanks for any advice, hints. etc.

    Hi.
    Here's a little more food for thought.
    Noel and Paulo have offered good suggestions for getting very close to the desired result. But the characters might still need a little tweaking.
    Before I tweaked, I would convert the character to a vector path. And do my tweaking on the path. Refining the path should be fairly simple, and when you're done you have a character that can be scaled to your hearts content and it will be crisp.
    Taking Paulo or Noel's method as a starting point, Ctrl+Click on the layer thumbnail then Alt+Click on the "Make work path from selection" button at the bottom of the Paths pallet. In the pop up, select a Tolerance value. 1or 2 pixels if your character is small. Higher if it's larger. Experiment to get the best effect. You will now have an editable vector path. It needs to be edited.
    Then using the Direct Selection Tool (A)and the Pen Tool (P) you can perfect the letter. There is no drawing with the Pen Tool. Just adding and deleting points. Some points will have to be converted from corner to smooth and vice versa. Some will need to be moved a little. I selected the point or points then used the arrow keys to nudge them.
    Below is my finished vector path. As you can see, on this particular font most of the handles are vertical or horizontal. Part of what gives this font its characteristic shape. And it makes things a little easier. Once a point is in the right position, just hold down the Shift key while you drag the handle to adjust the curve. Mostly points will have to be deleted. The fewer the points the better. But no less than you need. They're cheap. (Caveat: Make sure you rename your work path. Otherwise, if you make a new path, you'll lose it.)
    Below, the path is rendered at 3 sizes, Huge, Large, and Actual Size of the screenshot. They are all crisp. Make it big as a barn and it will still be crisp.
    Anyway, if you're going to be fiddling around with fonts, I'd suggest you learn vectors if you don't know them already. The scalability is necessary. As Noel said, Ps is not ideal for this. But the vector tools in Ps are quite good enough to get you going. If you are comfortable with paths, you can convert the Magic Wand selection directly into a path and not refine it first as Noel and Paul suggested. That's what I did. It won't look as good as a converted selection modified by Noel or Paulo's method at first, but it may not be any harder to perfect.
    Once you have the path perfected, you may also convert the path into a Custom Shape. Then using the Shape Tool (U) you can drag and draw the shape to size. You can create a Shape Tool Library for the font. See the Help Files for details.
    Another note about this font. The circles at the end of some of the letters are really circles.You can use this to your advantage when tuning up the letters.
    That should be plenty to chew on top of what the others have already put on your plate.
    Peace,
    Lee

  • In chart (graph), How to set scale value dynamically(user input scale val.)

    Hi ,
    I am using Crystal Reports XI R2.
    I have specified scale value but user is asking he can decide scale value while running the chart like Y-axis major interval (inclement by) 10, 7, 4, .5, .25 etc.
    How to achieve this please give me suggestions.
    Thanks and regards,
    Manjunath N. Jogin

    I do not think this can be done dynamically,   You could build several sections, each with it's own graph,
    set the scales in each graph, in its section, and then supress sections based on parameter.
    So, you could have one section that is  5,10,15,20  etc.
    and another that is 8, 12, 16, 20  
    depending on what they want.

  • Problem with Visibroker while moving to JDK 1.4 from 1.3

    Hi,
    I am getting following error in Visibroker 3.4 while moving to JDK 1.4.
    Its says....
    java.lang.ClassCastException
         at com.inprise.vbroker.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:60)
    I have compiled my IDLs with Visibroker(idl2java) and using those stubs clsses as external jar, also with Visibroker jars (vbjapp.jar and vbjorb.jar) took it from Visibrokers lib directory.
    Its working fine with jdk 1.3....
    Other stubs classes are tested and working fine with 1.3.
    Do we need to get the new Jar for VBJ?
    can any one throw some light on this, Pls share your experience, in case you came across such problem.
    It would be great help
    Thanx in advance
    /GSaha

    Hi,
    I'm not sure, but I suspect the following happened:
    Visibroker 3.4 was targeted for J2SE 1.0 and 1.1 platforms. It probably includes a lot of org.omg.CORBA classes that weren't in J2SE at the time, so the JVM picked them up from the Borland jars.
    In J2SE 1.4, a lot of these classes are in the platform, so are loaded from the JDK rather than the classpath. Also, it's been a long time since J2SE 1.1. Things are added to the J2SE platform from the OMG specs when they are stable. There are probably differences between the Borland ones from the days of J2SE 1.1 and the ones in the J2SE 1.4 JDK, thus the ClassCastException.
    Try overriding the bootclasspath with -Xbootclasspath so the JVM picks up the Borland jars first and overrides the org.omg.CORBA classes in rt.jar. There's a new way to do this for standards outside of Java such as OMG classes called the "preferred classes" or "preferred classpath", but I can't seem to remember how to do it. (You're not supposed to deploy applications with -Xbootclasspath solutions anymore.)
    - Everett

  • DATAGRID FOCUS ISSUE: Focus got lost, while moving from one cell to another cell using tab key.

    Problem: Focus got lost, while moving from one cell to another cell using tab key.
    Example: In an AdvanceDataGrid, there are three columns having custom ItemRenderer with Spark TextInput control (editable=true & focusEnabled=true).
    When I try to move the focus in with in 2nd, 3rd & 4th column using tab key, focus got lost. Most of the time it’s working, but some time it doesn’t work. There’s no clue as to how may rows/columns the focus has jumped to; or whether the focus has gone out of the data grid altogether.
    Observations: I am not sure whether this problem is because of custom component implementation or it is because of some issue related to Flex Component.
    It only occurs when we perform some actions like some server call, some complex logic execution etc. at the focus out event of itemrenderer.
    There is one property of datagrid i.e. editedItemPosition which contains row & column index of datagrid. On the focus out event, it gets null when focus got lost. We tried to set it, but it didn’t work.
    Steps Performed:-
    1. Currently focus is in 2nd column i.e. Apply to #.
    2. Once I press tab key from 2nd column, it goes to 3rd column which is correct.
    3. Now if I press tab key from 2nd column i.e. Payment #, focus should go to 3rd column, but it goes out of data grid and set the focus of button which is outside data grid.

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bjtable+%2Btab+%2B%22enter+key%22&col=javaforums

  • Keeping a mask stationary while moving the object

    Hi all,
    How do I lock a mask in place while moving the layer it is masking through the mask and out the other side. I find that the mask always wants to emulate the motion of its object, which makes sense. I've been manually deleting the motion path for the mask or animating a resize that makes the mask stay in the same location. I know there must be an easy way to do it.
    Thanks,
    Jim

    Howdy,
    Put the layer in a group, and mask the group. This will allow you to independently transform the layer without affecting the mask.

  • Tool Tip for each JComboBox entry while moving mouse on them

    What is the best way to implement a different tool tip for each entry in the combobox. Moreover, while moving the mouse over any entry the tooltip should be visible.

    I'm not sure you can attach a tooltip to a JComboBox item, since these elements are not user interface elements, there may be anything(Integers, Strings, Icons,...). So how can you attach a tooltip to an Integer ?
    I mean, in a menubar, you can attach a tooltip to a menu item, because there's this user interface object called JMenuItem wich has a tooltip text propertyinfo... but what about items in a JComboBox ?
    I'm curious to know if this is possible.
    Diego

  • How to manage slow and fast moving goods in Demand Planning

    Hi All,
    Kindly let me know how to manage slow and fast moving goods in Demand Planning.
    1. First how to detect slow and fast moving goods
    2. which DP model to use
    3. Any Best practice while dealing with slow and fast moving goods
    Thanks
    Arun

    Arun,
    There are two main concerns with forecasting slow moving goods. For fast moving, yes, trend, level and seasonality combined with a decent demand level gets you through.
    So, either you don't have demand in the market for that product; if the product is not critical (like go/no go spare parts) I recommend just averaging out the demand over a period and going with that. Any errors incurred there won't have a significant business impact. On the other hand if it is critical, safety stock and/or contractual obligations come to play.
    OR, if there is market demand but your market share is too low for whatever reason, then it gets tricky because you need a predictor variable(s) for which you have good knowledge off (such as CPI index, demand for related products, etc). The forecast is then done on the predictor variable(s) and the low market share applied to 'translate' the expected demand to the product in question. Unfortunately, the case of low demand/low market share I have no idea of how to implement it on SAP. Since forecasting is just the tip of the iceberg, it may pay to do it outside of SAP (say in Excel) and manually input it (unless the products are many and varied).
    Hope this helps. Please let me know if this makes sense and/or applies to your question.
    Rodrigo

  • Parameter screen pops-up while moving between worksheets

    Hello!
    I have a workbook with mutiple sheets. Everytime i navigate from one sheet to the other, teh parameter page pops-up !
    I am using Discoverer 9i and have checked the "Allow only one value for all

    I have developed the workbook in the desktop version and am viewing it through Discoverer viewer. We have a custom parameter page that the user uses to enter parameters.
    There are 4 parameters defined and I have checked all of them as "allow only one value for all sheets". I have also un-checked the "let the user enter mutiple values" check-box.
    Even in the Disco desktop, I get the parameter page while moving from one sheet to the other. When depolyed on the web ( viewer), the parameter page pops up when the user navigates between worksheets.
    How do I resolve this ? Is this a known bug or is there a patch available for both viewer and desktop ?
    Regards.

  • HT4898 how do you syn mail after moving to icloud

    How do you syn mail after moving to iCloud?

    Yes, you can use iCloud mail with OS X 10.6.8. However you need to enter the account details manually using the Mail Server Information  

  • How to out from infinite while loop in sub VI

    Dear Sir,
    how to out from infinite while loop in sub VI from main VI
    attached photo for solution but I can't understand it and i can't find the function in photo 
    please help
    Attachments:
    stop_subVI_frm_main.JPG ‏36 KB

    Asking how to get out of an infinite loop is like asking how to find the end of a circle. I'm not trying to be sarcastic but by definition, if there is a way out of the loop, then it is not infinite. I think what you are asking is how to avoid creating an infinite loop. Is there something about the suggestions you have been given that you do not like? My favorite suggestion is the notifier but maybe you just need an example. Turn on context help and read about the notifier functions in the code below.
    This is your top level VI
    And this is your subVI
    If this seems too complex then a global variable will work too. But what seems simpler can cause much more complex bugs. You can code fast and spend lots of time debugging or you can code slow and spend less time debugging. Personally I perfer writing productive code than looking for bugs any time.
    =====================
    LabVIEW 2012

  • How do you stop music while video plays???

    Ok...so here's the deal. I'm making a movie that is a combination of pictures and videos. It's basically like a slideshow type thing, but now I'm adding video to it. I've already put all the pictures and transitions and music that goes along with that, but now I'm trying to add my videos in between some of the pictures. I'm trying to figure out if there is a way to stop (like completely stop/cut the music clip) while the video is playing, then resume the music at the end of the video at the point where it was stopped before. Does that make sense? I don't want to simply lower the volume of the music...I want to completely stop it so you can hear the audio of the new video. I have tried trimming the audio, but I haven't figured out how to get it to do what I want. So basically, how can you stop music while a video plays and then resume that same music at the end of the video from the point where it was cut?

    So i think you have clips with their own audio that you want the added music track silenced during those clips alone. Click on the clip in question, go to inspector, audio, "Ducking" and X that box "reduce volume of other tracks" and pull it to 0%. i think that will do it
    roger

  • How can I use zoom while recording on my iPhone 4S?

    How can I use zoom while recording on my iPhone 4S?

    Christina_319 wrote:
    How can I use zoom while recording on my iPhone 4S?
    You can't change the zoom while recording.

Maybe you are looking for

  • How to change link strings on multiple page PDFs - urgent please

    I have several muly page PDF pages, and on each PDF page there are 20-50 different web links. Each of the links are done as Open a Weblink, but on each one I did them like below. javascript:void(window.open('http://www.website.com/link1')) javascript

  • Blank lines in Web Dynpro ABAP

    Hi experts, how do I insert a blan line between two elements in a web dynpro abap?? I mean I want to separate both lines and for that I'd like to insert one or more blank lines. Many thanks,           Juanjo

  • Issue with pa30 transaction for the infotype 15

    Hi All, I am creating additional payments for the infotype 15 in PA30 transaction. i followed following steps: wage type                                      amount                                      date of origin                                  

  • CROSS-APPS : ALE/IDOC

    Hello Abapers, Need some ALE/IDOC objects could anybody help in this regard asap. Thanks/Regards.....Rizwana

  • Can a hacker be stopped through Firefox

    I have had to change my passwords for FB and e-mail at least 3 times in the last couple of days. Under my FB account it shows someone in Mount Laurel, N.J. is signing into my account. I have written down the complete IP address of this hacker. They a