New and need help - drag and drop with dynamic text

So I'm doing this project and as an animator I'm not familiar with the whole action script side of flash
Okay so far I've managed to create the whole Drag and Drop feature and it works well, the thing is I want to make it so when you drag in object in the correct spot and new text appears, and I need like six different object with the dynamic text. but I have no idea how to integrated it in my code or where I should start!
So i based myself on some tutorial so theres some code in there that had dynamic text, but not exactly what i wanted
Your help would be much appreciated!
This is my code:
var counter:Number = 0;
var startX:Number;
var startY:Number;
six_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
six_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
five_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
five_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
four_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
four_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
three_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
three_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
two_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
two_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
one_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
one_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
function pickUp(event:MouseEvent):void {
    event.target.startDrag(true);
reply_txt.text = "";
event.target.parent.addChild(event.target);
startX = event.target.x;
startY = event.target.y;
function dropIt(event:MouseEvent):void {
    event.target.stopDrag();
var myTargetName:String = "target" + event.target.name;
var myTarget:DisplayObject = getChildByName(myTargetName);
if (event.target.dropTarget != null && event.target.dropTarget.parent == myTarget){
    reply_txt.text = "Good Job!";
event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
event.target.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
event.target.buttonMode = false;
event.target.x = myTarget.x;
event.target.y = myTarget.y;
} else {
reply_txt.text = "Try Again!";
event.target.x = startX;
event.target.y = startY;
    if(counter == 6){
        reply_txt.text = "Congrats, you're finished!";
six_mc.buttonMode = true;
five_mc.buttonMode = true;
four_mc.buttonMode = true;
three_mc.buttonMode = true;
two_mc.buttonMode = true;
one_mc.buttonMode = true;

where you have
xxx.text = ....
is where you're assigning text.

Similar Messages

  • Drag movie clip with dynamic text box inside it?

    Hi team, I can drag a movieclip with static text inside it, but when I change the text to dynamic, I get a Property Startdrag not found on Flash.text.textfield and there is no default value.. Any help?
    Cheers
    sub

    assign the mouseChildren property of your movieclip to false.

  • Newbie needs help on creating banner with vanishing text.

    I have never used Flash before.  I may even be barking up the wrong tree. I am trying to create a banner that has text that "appears" and then "disappears". This is the mockup I made for the banner.  I would like for the sentences to seem like they are coming out of the couds, and then vanishing. Any help you can offer would be greatly appreciated!
    Thanks in advance,
    Margaret

    Thanks Ned!  I did what you said and now have the words animated like I need to.  But I am still having one problem.  I'm not sure how to get my background to be visible through the entire animation.  I can see it in the first frame and then it disappears.
    Thanks again,
    m

  • Need help re-synching iPods with new computer and getting iTunes to...

    Need help re-synching iPods with new computer and getting iTunes to recognize our iPods (it doesn't even recognize them when they're plugged in).
    Hubby wiped my harddrive for me, so now I need to get everything back in proper places. I'm using windows XP and installed iTunes once again (I believe it's version 8). I also installed all of my iTunes songs. Now I need to know where to go from here. We have 3 iPods and I need to get them all synched once again. I know how to create different libraries for each of us, but I can't figure out how to get our songs back into our iTunes libraries. When I open iTunes and plug in an iPod, iTunes doesn't even show that an iPod is plugged in.
    What do I do now to get each of our iPods synched with our own libraries?
    TIA
    Brandy

    Thanks Zevoneer. The "Restart ipod service" worked and itunes is now recognizing my ipod! Hooray!
    Okay, now how do I synch all of our ipods with our individual libraries (I don't want all of my kids' songs and vice versa)? We each have hundreds of songs on our ipods that we don't want to lose.
    Thanks again!

  • A drag and drop game with dynamic text response

    Hi,
    I am a teacher and my school has recently upgraded to Adobe Design Premium.  Our previous version was about 5 versions out of date.
    I teach A Level which requires students to create an Interactice Multimedia product.
    In the previous 6 years, I have taught students how to create simple drag and drop game with dynamic text responses.
    Since the upgrade to Actionscript 3.0 the dynamic text response has ceased working.
    When creating the game from scratch, I need to move to Actionscript 2.0 as 3.0 does not allow me to add actionscript to objects - I know and am sure that this is a better way of doing things, but I would prefer to keep working the way I am used to.
    I use a switch case statement which I have copied below to make the drag and drop work.  The objects I apply the code to work in that they can be dragged, however, my dynamic text box with a variable name of "answer" is no longer displaying the response when an answer is left on a dropzone (rectangle converted to a symbol and given an instance name).
    on(press) {
    startdrag(this);
    on(release) {
    stopdrag();
    switch(this._droptarget) {
      case "/dropzoneB":
       _root.answer="Well done";
       break;
      case "/dropzoneA":
      case "/dropzoneC":
       _root.answer="Hopeless";
       break;
      default:
       _root.answer="";
       break;
    Any help would be much apeciated.
    Thanks
    Adrian

    To drag in as3
    blie_btn is the instance of the object drawin on the stage. In AS3 you have to assign a even listener, in this case MOUSE_DOWN, and MOUSE_UP, as we want the drag to stop if the mouse is not clicked. Then we fire the functions, and tell the object to start drag.
    // Register mouse event functions
    blue_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    blue_btn.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    red_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    red_btn.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    // Define a mouse down handler (user is dragging)
    function mouseDownHandler(evt:MouseEvent):void {
         var object = evt.target;
         // we should limit dragging to the area inside the canvas
         object.startDrag();
    function mouseUpHandler(evt:MouseEvent):void {
         var obj = evt.target;
              obj.stopDrag();
    if you want to make the text do what you want then something like this might work.
    In the function, you could add a text box onto the stage, give it a instance of something like outputText
    and then:
    outputText = ("Bla Bla Bla");
    (^Not sure if this will work exactly^)
    PS. I am currently a A-level student

  • Help, new to Linux and need help installing 8i

    I am new to Linux and some of this stuff..
    Yet,I have gotten the JDK116_v5 installed and working on my box.
    I have cut a cd for Oracle8i and need help..
    I have also recopiled my kernal as well...
    Does any one know where I can get help...
    null

    Al Pivonka (guest) wrote:
    : I am new to Linux and some of this stuff..
    : Yet,I have gotten the JDK116_v5 installed and working on
    : my box.
    : I have cut a cd for Oracle8i and need help..
    : I have also recopiled my kernal as well...
    : Does any one know where I can get help...
    Try http://www.akadia.com/html/dod-frame.html for Redhat.
    http://www.suse.de/~mha/oracle/ for SuSE
    Also peruse these
    http://www.akadia.com/html/dod-frame.html
    http://jordan.fortwayne.com/oracle/
    Colin.
    null

  • I have just purchased a new macbook and need to sync my iphone with itunes, i understand that you can only sync your phone with one itunes account. I do not want to wipe my iphone when syncing with this new itunes account. Any advice welcome

    I have just purchased a new macbook and need to sync my iphone with itunes, i understand that you can only sync your phone with one itunes account. I do not want to wipe my iphone when syncing with this new itunes account. Any advice welcome

    1) authorize iTunes on the new machine for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.

  • I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    The way that Dropbox works is that it keeps a copy of all your files in your local Dropbox folder on your hard drive (which is, by default, directly under your home folder). Adding files to that folder will sync them to the Dropbox server.
    You do of course have to download the Dropbox application to enable this (download link at the top right of http://dropbox.com ).
    Matt

  • Screen freezes and popup message says I need to do a shutdown and then restart.  It does it sometimes 2 times a day. Im new to apple and need help.

    My screen freezes and popup message says I need to do a shutdown and then restart.  It does it sometimes 2 times a day. Im new to apple and need help.

    Bad or incompatible RAM is, more often then not, the cause of most Kernel Panics. It could also just need to be reset.
    Here's the most used site for Resolving Kernel Panics. Please do all the steps in order, even if you don't think you need to do a certain step.
    Here is a great MacFixIt article.
     Good Luck!
    DALE

  • Project Server 2013: I am using Project Server Permission Mode and need help with permission assignments?

    Hi 
    Project Server 2013: I am using Project Server Permission Mode and need help with permission assignments?
    How can I change Permissions for the individual users to see specific projects or all projects in project center and to see specific quick launch items?
    For Example: if i have 4 users, A, B, C and D. what i want is:
    User A can see everything and act as a project manager or Admin.
    User B can view all projects in project centre but can change the schedule or resource assignment etc.
    User C can only act as approver of projects and can view all projects in project centre.
    User D can only view specific projects for which permissions are given.
    can i have some expert help in sorting and understanding permission modes... as i was playing with project server mode permissions and can't figure out how to apply the above scenario to set of my user.
    Thanks in Advance
    Cheers
    AJ
    Ajay Kumar

    Hi Ajay,
    Please refer to this link for detailed explanations about PS2013 security model. 
    http://technet.microsoft.com/en-us/library/cc197638(v=office.15).aspx
    Actually, it will take a couple of days to explain in detail the security model that is a fundamental and tricky aspect of every PS implementation. But basically, you NEVER set permissions for a single user. You have groups in which your insert users. Groups
    define "what users can do". Then you associate groups to a corresponding category. Categories define "what user can see". Thus the association of a group with a category will set "what the user can do on the objects he can see". Then, for more advanced security
    level, you can use the RBS that will consist in "branches" in which you'll insert users. Based on those branches, you'll customize categories to fine-tune what user can see (for projects and resources) depending on the RBS branch and level.
    I'd advice you to start "playing" in a test environment with the default categories/groups that might probably cover your need.
    Concerning your 4 users:
    user A : add him to the "administrator" group. Be careful that you're mentionning either project manager or administrator, which are 2 groups/categories with totally different permissions level.
    user B : basically can see everything and change everything? it could be in the project manager group, assuming that there are no project visibility restrictions on the category via the RBS.
    user C : waht do you mean by "approver"? Workflow approvals? Then it will be the portfolio manager group. Task update or timesheet approval? Then it is another long topic: please refer in the documentation to the "status manager" and "timesheet manager"
    concepts. There are not related to the security model. In a few words, the status manager is the owner of the project plan, is defined for each task and approves tasks updates. The timesheet manager is an attribute defined for each resource in its parameters
    and approves resource timesheet.
    user D : you have to define which permission level must be given to this user. Basically it could be a team member that will see only projects he's in the project team. Note that team member cannot interact with the project plan in another way than submitting
    timesheets and/or tasks updates which must be approved.
    Once more, those are large and complex subjects that require a deep dive into your business model and tons of tests in a test environment.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Have an 8800 and need help

    Hi,
    I have an 8800 and need help. The charger socket doesn't work anymore, the trackball doesn't go horizontal (occassionally) and the screen light turns on and off at random. I've had my Blackberry less than a year.
    Before sending it in for repair or replacement I need to back up all my data (apparently it gets cleared when a repair is done) so ordered a cradle and spare battery so I cound charge a batter externally. To compound the problem I keyed in the wrong postcode on the order (it never rains but it pours) but quickly mailed billing to tell them and with the correct PO number.
    Needless to say the items haven't arrived so I called and was fobbed off and told that this is a matter for their partner Globalware Solutions even though I paid via the Blackberry.co.uk website
    I've scoured the site and found no contact details whatsoever by which I can follow this up properly (Why do large companies do that? Are their customers not important enough to them to allow direct contact?).
    Rim/Blackberry/Globalware now have my money and have ignored all my emails. In other words I have no way of finding out the status of the order, what's happening or where my required items are.
    On top of that one of the email addresses I mailed to bounced and this site is a nightmare to use. If you're going to want a capital letter and a number of part of a password to access a forum then tell people in advance. If you're not going to let someone buy in Euros from the UK because you don't consider the UK as part of Europe then tell them. Don't let them go through the entire purchase process before letting them get to the Euopean drop down list of countries and then not including the UK in it. I could go on.
    Can someone please tell me how I chase up my order (it's only a small one) without wasting too much more time on this.
    I have to say that this is all a great shame because I've been happily using Blackberries for years now and think they're superb products. I've been an evangelist for them actively spreading the word about how great they are. I've never needed service or support before though.
    If anyone from Blackberry, Rim or Globalware is reading this then you have my order number and just an email would at least begin to resolve this. The delivery of the items paid for would entirely resolve it.  I wait for your contact.
    One thing you should know if you wish to continue to ignore me though is that I am 'Mr Persistent'.
    Jeremy 

    Thanks. I remember now that is exactly what they said. Which means I need to do it over again.
    Here's what happened. I went to my laptop to try restoring since it was my desktop that was giving me the message. I was able to install the newest OS onto my iPhone. Then I reconnected the phone to my desktop, which now gave me a different message. It said it could not sync with this iPhone until I updated to the newest version of iTunes. I was one version behind.
    So I updated and then since my iPhone had the newest OS and iTunes had the newest version, everything spoke to each other fine. At that point I got the message asking me to whether I wanted to restore from backup or set up as new.
    I thought that restoring from backup would potentially bring back the problem, but discretion being the better part of valor decided to try that first.
    Woke up this morning to your message and of course now realize that I must go through the process again, only this time set up as new. And yes I made sure to back everything up before I did any of this.
    So now it's just a matter of doing it again, which will have to wait until tonight when I don't need to use my phone.
    So thanks for the info!

  • HELP-i got a MuVo for x-mas and need help puting songs on i

    i've read all the directions, but i'm still not sure how this works. here's what i've done, i plug in the mp3 and it brings up the removable disk file, i open it using windows explorer and the removable disk file has 2 folders, one folder is empty and it is 'encoded tracks' and the other folder is 'rancid' and that one isnt empty (rancid is a band), next i go to the creative mediasource/mp3 recorder/musicplayer thingy and i've dragged and dropped all the tracks i want into the little square in the bottom left, then i click record and it looks like its recording but after i unplug it, the mp3 says that there is nothing on it (i always make sure i unplug safely using the icon on the bottom of the screen) if anyone knows what the problem is or if i'm doing anything wrong PLEASE let me know as soon as possible (i've alreaqdy installed everything with the disc)
    P.S
    my computer is an hp pavillion

    We used the software that came with the MuVo N200 ... "Creative Media Source Organizer/Player". If you don't have an N200, your software might be different. The "root" is the "top level" ...when you look at your player through Windows (and you see something like E: Removable Media), that would be the "root". If you then create a folder in it, that would be the "first level".
    My husband first connected the MuVo to the USB port, then started up the program "Creative Media Source Organizer". In the left-hand pane, he could see the MuVo listed as something like "E: MuVo N200". He highlighted that, then clicked on the "New" icon at the top of the screen to create a folder and he named the folder "bwm".
    Then he put the CD he wanted to copy into the CD dri've of his pc, and a listing of tracks on the CD came up in the program. He then highlighted all of the tracks that were listed and then "dragged" them over to the folder. (You could also copy them one at a time.)
    As I said earlier, this then created a folder named "_Unknown" in the folder he created, and the "_Unknown" folder contained all of the tracks. So he then moved all of the tracks in the "_Unknown" folder to his "bwm" folder, then deleted the "_Unknown" folder.
    Again ... this was all with the software that was provided on the installation CD that came with the MuVo N200 ... and he is running Windows 2000.
    Also: his first attempts at recording from the CD to the MuVo got all screwed up (before we really figured out what to do) ... so we also ended up formatting the player before doing everything that is described above. In Windows 2000, to format the player, we could just connect it with the USB cable to get an "E: Removable Media" icon under "My Computer", then right click on it and select "Format". We used the format "FAT".
    I hope this helps ... not sure what else I can tell you.

  • Everytime I open lightroom I get a pop up message saying "Lightroom encountered an error when reading from its preview cache and needs to quit" and it closes. Ive already tried reinstalling, nothing seems to work. Help please!

    Every time I open lightroom I get a pop up message saying "Lightroom encountered an error when reading from its preview cache and needs to quit" and it closes. Ive already tried reinstalling, nothing seems to work. Help please!

    Open the folder containing your catalog. In that folder you will find another folder with the extension .lrdata, and you need to delete that folder. After you do that, Lightroom should start normally and will create a new preview cache.

  • I recently installed iTunes 4.3 and can't drag and drop music into my 'music library' anymore?

    I recently installed iTunes 4.3.5 and can't drag and drop music into my 'music library' anymore. Every time I try to drag the music from a folder into the library, that little circle with the line thru it comes up (not allowed symbol). I've been using iTunes for years and am pretty computer savvy... I have no idea what the problem is. The only way I can add music right now is if I go to File>Add File to Library and that takes way too long, especially when adding 20-30 songs. I am using Windows 7 and I have an iPhone 4. Please help! This is extremely frustrating.

    Francil3n3 wrote:
    I recently installed iTunes 4.3.5
    No, sorry... you did not.  There is no iTunes 4.3.5.
    What did you actually install?  iOS 4.3.5 on your iPhone?  If so, this has NO affect on the ability to manually manage media via iTunes.
    Let's start over... tell us exactly what has been done.

  • Need your help I am color blind and need help ASAP

    I am color blind and need help with this issue. I have the 8520 and t-mobile service. I went to the accessibility wizard and chose the reverse color mode. That is black background with white font. Here starts the problem when you select this option it changes your photos into negatives and also changes the home screen to bright gray . I can not see these colors. What I need is almost like looking at old DOS font Black backgrounds with white or yellow fonts. I have been trying to find a theme but no luck.
    The option of reverse contrast would be great if it did not flip photos or the home screen.
    Can someone please help me
    I would be happy to talk to you in detail to better explain the problem.
    Thanks in advance
    TJ
    I posted t this message in the wrong area before. I hope this is the correct area.
    Mods please remove the message posted in the 8300 series area thanks TJ

    Just a follow up on this matter. I spent most of the day and a few hours at work on  this problem.
    I called T-mobile and was transfered to Blackberry support within T-mobile then to Blackberry RIM . They asked the same questions as everyone else said how much they wanted to help. After about an hour they gave up. They could find no apps or themes that are basic black with white font. The tech could not explain why the designers fell short with reverse contrast . I ask this question why would a programmer or anyone want to see all photos in negative media. I spoke with a local news station about this whole matter and they said give the store one more attempt to make it right. T-mobile said they would sell me another phone at a discount but would not take the Blackberry back because I was out of my7 14 day window. note I have been trying to fix this with T-mobile starting 12/04/09 when I bought the phone. So buyer beware....
    Back to the matter. a very simple fix could be done by BLACKBERRY  make a theme for the 8520 that is black background white font in all areas. Leave the internet as normal ie: browser let photos look like they should and sell the theme or app like everyone else.
    To be honest if I knew how to do it I would build it myself and give it away for free people need this type of theme.
    Thanks for reading my rant everyone.
    TJ
    colorblindguy

Maybe you are looking for

  • Custom Expression creation in Process controlled  workflow

    Hi All, I am working on SRM 7.0 and utilizing process controlled workflow to model my approval workflow scenario. Below are the steps that i have done but still i have not got the desired result. May be i am missing something which the forum members

  • New SSD in T430, Windows not loading, tried everything...

    Hi there, I bought a T430 about a week ago. I'm not completely inept with computers: I successfully added another 4GB of RAM with no problems. Then I wanted to replace my HDD with my SSD. I know the SSD works because it was in another laptop. I put i

  • Set up structure S094 for trx. MCBZ

    Dear. Can you explain how can I set up structure S094 for the transaction MCBZ of the LIS ? Thanks.

  • Creating a java executable

    Hi, I was trying to create a java exe using visual cafe but realised that I have standard instead of expert edition. If anyone is familiar in doing this using the JRE, please let me know (or if you know the lingk to it on the java.sun.com page) Thank

  • Can I Save these images?

    WARDream   The Madness of ArtThe Madness of Art                                                       VigelNomadsOracle Abstract 107Dream               Fight the PowerAlchemy The GatheringFor Haiti