[F8] How to move a MovieClip with Ease In/Out tween using Actionscript

In Flash 8, I need to move a MovieClip from point A to point
B when a user clicks a button.
I currently have a function which I pass three arguments:
TargetX, TargetY, and the Duration (in frames). I have it working
to move the clip linearly, however, I would really like to be able
to ease in/out on the tween.
I'm really stuck on the math of it all and need someone to
give me the formula.
Here's my function:
Code:
// Function which is called when user clicks button to move
the mc
_global.fMoveTheMovieClip = function(iTargetX, iTargetY,
iDuration){
// Calculate the distance to the Target position
iTotalDistance = iTargetX - MoveThisClip_mc._x;
// Mover function
MoveThisClip_mc.onEnterFrame = function(){
// If the movie clip has gotten close enough to the target
if((Map_mc._x > iTargetX && Map_mc._x <
(iTargetX + 1)) || (Map_mc._x < iTargetX && Map_mc._x
> (iTargetX - 1))){
// Snap the movie clip to the target x
MoveThisClip_mc._x = iTargetX
// And stop this function
delete this.onEnterFrame;
// Else, if the mc has NOT reached the target zone
}else{
// Move the clip
// This is where I would like a formula to ease out then in
based on the duration
// Right now I have this to move the mc at a constant speed
MoveThisClip_mc._x += (iTotalDistance / iDuration);
Also, everything needs to be AS2 compatible.
AND, I can't use the "tween" or "transitions" classes.
So, please don't post anything with code similar to this:
Code:
import mx.transitions.Tween
import mx.transitions.easing.*;
If I need to add a "power" or "strength" argument to my
function, that's fine.
Thanks!!!!

I'm thinking what I want isnt possible...
Here is what I get.
Its perfect for landscape.
But when I use the same settings on a portrait, I get this
The entire canvas should be portrait.  If I flip it, then the watermark is under the image instead of on the right hand side going up like on the landscape one.
The portrait one should end up looking like this
I know this is being picky, but I'm taking over running photo and reviews for a media, and we have 4-5 photographers (myself including) covering shows.  So I'm looking for a one click to export and bam everything is fine type of thing. 
So it's like the canvas would need to be portrait for portrait photos and landscape for landscape photos, and keep the name on the lower right regardless.  I'm thinking LR isnt that smart just yet to say "add 1 inch and put logo down here on all images" lol
But I totally appreciate your input.

Similar Messages

  • How to replace a movieclip with another movieclip

    How to replace a movieclip with another movieclip
    Hi,
    I am having a swf called tchild.swf... in this i got a
    movclip 'child1'. i am loading this tchild.swf into another swf
    tparent.swf within 'mcloader' movie clip.. i got another movclip
    called 'picture1'
    i am loading tchild.swf into mcloader movclip.. and i want to
    load 'child1' moviclip into picture1..
    how to replace a picture1 movieclip with child1 mc..
    PS: i dont want to load picture1 from library.. its on the
    stage.

    AWT or Swing?

  • How to move multiple clips with transitions?

    Im still transitioning from FCP7 to FCP 10.1.2 and can't believe I have missed the lesson that explains how to move multiple clips with transitions.
    Up till now I have tried several work arounds including deleting all the transitions then using the (P) Position tool to move the clips from the primary track to some track above it then re adding all the transitions.  This is a function I do on a daily basis.  Am I missing something?  Please help!
    Thank you

    With some further investigation, the transitions have nothing to do with my problem.  In my case there was a tiny “Black gap slug” within the group that was preventing me from being able set it on top of another group of clips or gap someplace.  But even with the gap removed… I can move the clips on top of another group but the transitions stay behind on the primary (Magnetic)
    In the screen shot you can see what happens when I move a group out of the primary (magnetic) timeline onto a gap.  All the transitions get left behind. 
    Ive notices that Cutting and pasting will only paste the sequence some other place on the primary (magnetic) timeline for me.
    An example of why I would want to put a cropped/ resized group on top of another group is to do picture in picture effects or if I wanted to create a background behind a set of adjusted clips.

  • HT4245 i use a macbook pro which came with facetime i have an iphone 4S as well. whenever i use the wireless on my iphone i can facetime with ease however when i use the same wireless for my mac to facetime the call always gets disconnected.

    i use a macbook pro which came with facetime i have an iphone 4S as well. whenever i use the wireless on my iphone i can facetime with ease however when i use the same wireless for my mac to facetime the call always gets disconnected.

    To use factime on your Mac, I believe you will need to use your email address to do so instead of your wireless number.  Since you can't make calls on the Mac.

  • How to move(migrate) OAF files(class files,PG files) using tool(Kintana)

    Hi,
    How to move(migrate) OAF files(class files,PG files) using tools(Kintana).
    Just want to know process for moving(migrating) OAF Files(class,PG) one instance to over instance(i.e dev to testing) using tools like kintana. We are planning to PVCS as versioning tool.
    Thanks

    New Line Types need to be added to Kintana Workflows and these line types should be able to use the xmlimport/xmlexport scripts.
    We have customized Kintana to migrate forms personalizations using FNDLOAD.
    I think, Change Management team should be able to address this.
    Srini

  • How can I share photos with others in other places using ICloud?, How can I share photos with others in other places using ICloud?

    How can I share photos with others in other places using ICloud?

    If you have iPhoto on an iOS device rather than a Mac, you can create a 'Photo Journal', which is an online gallery hosted on iCloud: details here -
    http://help.apple.com/iphoto/ipad/1.0/#blnkaf3ef70a
    This facility is not as yet available in iPhoto on a Mac. If you don't have an iOS device you will need to find a third-party alternative. This page examines some options:
    http://rfwilmut.net/migrate4

  • How to load other obejects in flash file after intro using ActionScript 3.0

    How to load other obejects in flash file after intro using ActionScript 3.0 or any other method all in same fla file. see blow intro screen shot ,this one playing repeatedly without loading other fla pages .only way to load other pages is click on Skip intro .see second screeshot below .i need that site to load after intro .
    see codes already in
    stop();
    skipintro_b.addEventListener(MouseEvent.CLICK, skipintro_b_clicked);
    function skipintro_b_clicked(e:MouseEvent):void{
    gotoAndStop("whoweare");
    There is another script there
    /* Simple Timer
    Displays a countdown timer in the Output panel until 30 seconds elapse.
    This code is a good place to start for creating timers for your own purposes.
    Instructions:
    1. To change the number of seconds in the timer, change the value 30 in the first line below to the number of seconds you want.
    var fl_TimerInstance:Timer = new Timer(1000, 30);
    fl_TimerInstance.addEventListener(TimerEvent.TIMER, fl_TimerHandler);
    fl_TimerInstance.start();
    var fl_SecondsElapsed:Number = 1;
    function fl_TimerHandler(event:TimerEvent):void
              trace("Seconds elapsed: " + fl_SecondsElapsed);
              fl_SecondsElapsed++;
    i have no knowledge about these thing ,any help really appreciated .

    Ned Murphy Thank you very Much .It is working .Great advice

  • How to move the cursor with keyboard

    Is there a way to move the cursor with the keyboard? My right forearm is hurting prob because of extended use of the mouse.

    While in the 'Finder' click on 'Help' in the upper menu bar....enter 'Mouse Keys' and then select 'Controlling the pointer with the numeric keypad'....only problem I can see is the MacBook doesn't have a numeric keypad...so you would need an full size external keyboard....tried it on my iMac and it works OK...

  • How to move folders from one server to another serve using unix command

    Hi All,
    How to move the folders from one server to another server using unix command.
    scp -r armops@sjarmprd01:/ARM/scripts [email protected]:/ARM/scripts/
    but it is giving an error like not a regular file .. what it means .. please let me know if any one knows about it
    Thanks
    Sreedhar

    not a regular file .. what it meansProbably you have some fifo (named pipe) files...
    Said that this has nothing to do with database (you should post on some nix forum, for example http://forums.oracle.com/forums/forum.jspa?forumID=135), you may try rsync* command (man rsync).

  • How to move to next record of the databank file using custom code

    hi,
    can someone please tell me how to move to next or the previous record the Databank file. i found a funtion setcurrentdatabankrecord(), but i am not able to use it.
    thanks in advance...

    Hi,
    I recently had the same problem, here's my solution:
    "setCurrentDataBankRecord" is available only to External Program Control.
    I used the VB of an empty Word2002 Document.
    1. you have to reference the webAnlyst.exe in the object-catalogue
    2. create a module via the menue
    3. type in the code
    This is the code I used - some of the code is just for control
    Private Sub TestSetDBRec()
    Dim pdtest As webanlst.ProgT
    Set pdtest = New webanlst.ProgT
    Dim currDBI, numRecsCurrDB As String
    ' Workspace öffnen
    pdtest.play.OpenWorkspace "VBTest"
    ' Script öffnen
    pdtest.play.openScript "BM2B_VK_Änderung"
    ' DB-Abfragen
    numRecsCurrDB = CStr(pdtest.play.getDataBankSize)
    currDBI = pdtest.play.currentDatabankIndex
    pdtest.play.setCurrentDataBankRecord (2)
    currDBI = pdtest.play.currentDatabankIndex
    ' jetzt das Script abspielen
    pdtest.play.doScript "BM2B_VK_Änderung"
    End Sub
    This works! You can also looping through the database by getting the current value and set the value back increased by e.g. one
    Hope it is helpful!

  • How to bind ADF table with a collection of elements using backing bean.

    Hi Experts,
    My JDev version is 11.1.1.6.0.
    I need to bind ADF table with a collection of elements using backing bean.
    My backing bean consists of 6 lists of strings, where each list represents a column of table. How can I populate the entries of table with these lists.
    Thanks
    Gopi

    Hi,
    Create an object representing the row (setter/getter). Then have a list of these objects. Drag and drop the table and point its value to the list and the type to the row object
    Frank

  • Editing Keyframes of Movieclips in Flash Builder 4 just using Actionscript 3?

    Hi
    I'm developing a Flash-Game using the Flash Builder 4 with only Actionscript.
    So I have to generate all the MovieClip-Classes without using the IDE witch allows you to edit MovieClips with Mouse. I want to add a class on the stage witch extends MovieClip. This class represends a enemy or the player or something. If the Enemy get a hit or turn in a diffrent direction, it has to change his image.
    My Problem is, I dont't know how to manage the diffrent frames of the Timeline from that new class. I tried
    mc.gotoandstop(2); //change keyframe to another one
    mc.addChild(theSecondImage); //adding another sprite
    mc.gotoandstop(3); //change keyframe to another one
    mc.addChild(theThirdImage); //adding another sprite
    … //and so on
    after placing it (the mc) on the stage, it tried
    public function changeImage(nr) {
    mc.gotoAndStop(nr);
    but it doesent't work
    It seems like its doesn't matter on witch frame i add the Sprite.
    Have anybody an Idea how to work with MCs and edit the timeline WITHOUT using the IDE from Adobe Flash CS5?
    Greetings

    Having the same problem with a Java REST service using HTTPS requests, Adobe Air appears to ask to verify the certificate with every single request on windows ???  and on mac after accepting the certificate  we do not get a result?

  • How to adjust the path of a tween using actionscript

    I'm a novice at Actionscript3 and would greatly appreciate an answer to what seems like a simple question:
    Here's my project:
    http://home.comcast.net/~samiri/director/mortals/amadoFlashPortrait/index.htm
    Click on the gray scale frame images. A larger version of that image tweens out along the z axis. However it comes from 'somewhere else' not from 'within the frame.' How do I get the each larger gray scale frame image to look like it comes directly from the place where the user clicks (not to one side or the other)?
    So I guess what I'm asking is how to adjust the path of the tween along the x and y axis using the actionscript code (below).
    My method:
    I'm using this line of code in my script:
    var myTween:Tween = new Tween(mdImg, "z", Strong.easeOut, 300, 0, 1, true);
    "mdImg" is the variable that holds the name of the hotspot clicked upon by the user.
    I have the larger (faded edge) image positioned directly on top of the frame image and just kept invisible until the User clicks on the hotspot over the frame image.
    Thanks much.

    Thanks moccamaximum,
    By "do your tweens manually" you mean to use the timeline to do frame-based tweening? That is an option but I'm wondering (as a newbie): Isn't it better to use actionscript to do animation since you have more control and it's time based rather than frame-rate based (and works better on low performance machines)? Just curious if I should be spending the time to learn actionscript or do it in the traditional way.
    Thanks

  • How to move sound track with video to another drive

    If I want to work on a project on another Mac, I copy the iMovie Events and Projects folders to a portable drive, then drag them into the correct folders of the other Mac. (Not sure if this is the best way, but it works.) But the sound track is missing if I don't have the same songs in that Mac's iTunes. What's the best way to keep the song with the project when I transfer to another Mac?

    I tried the Consolidate command, and I see how it works, copying the events or clips to another >drive. But how does the music track get transferred? I don't see it in the copied folder.
    If you followed the instructions, the music track is there. It is probably in the Project file. If you right click on the RCPROJECT file, select "Show Package Contents" and see if you can spot it.
    If I consolidate from one computer to a portable drive, what happens when I plug the portable >drive into another computer? Does iMovie just see the project and events on the external drive? Or >do I have to drag them to the new computer's drive? What about the music tracks? Do I have to >import them into the other computer's iTunes?
    Yes, iMovie sees the external drive, and you can work on your movie. If you prefer, you could drag the RCPROJECT file to the Movies/iMovie Events Folder and then run the Consolidate command again to move everything to the new computer, but you really don't need to. It should work fine on the external drive.
    The external drive must be formatted as Mac OX Extended (journaled)

  • How to move whole section with a single mouse scroll

    Hi, i can do the basic navigate to the anchored section, but how do you MOVE COMPLETELY to the next section (with completely fitting vertical) with 1-SCROLL of the mouse or finger flick (in the case of touchscreen/smartphone)?
    See the example here at apple's site here - Apple - iPhone 5s
    I don't need to animate the objects, just to jump to the next section with a scroll.
    Thanks!

    Hi
    Please refer to this thread :
    https://forums.adobe.com/thread/1430281?q=apple.com
    Thanks,
    Sanjit

Maybe you are looking for