Jigsaw puzzle in flex

Hi all,
How can i do jigsaw puzzle using flex?For this i got source image from drupal,is it possible to do jigsaw puzzle in flex3?

Hi,
See this thread for some ideas and also the puzzle.psd (post 5) that used to ship with photoshop.
http://forums.adobe.com/message/4593630#4593630

Similar Messages

  • Jigsaw puzzle shows up weird in preview and publish. Help!

    I'm using a trial version of Captivate 8, and I added a Jigsaw Puzzle interaction, with no funky settings. I didn't resize or even move the interaction either. It's sitting in the middle of my slide.
    However, whenever I preview or publish, the many of the pieces of the puzzle are scattered off-screen and I can't even see them, let alone move then in order to complete the puzzle.
    Here's a sample of my preview (the puzzle is supposed to have 16 pieces). Doesn't look any better in the "1024" view.
    Did anyone else encounter this? Or know how to fix it?

    Interesting...you're right! I can finally see all of the pieces.
    I wonder if there's a way to get rid of that hint picture though. I unchecked the "hint" box but it's still there.
    Thanks!

  • Playing a jigsaw puzzle on my ipad4, after awhile the screen starts feeling warm to the touch?

    When playing a jigsaw puzzle on my ipad 4, the screen feels warm to the touch.

    That's normal. It's only abnormal if it gets too hot to hold.

  • The Infamous Jigsaw Puzzle...

    Hey everybody,
    So I came along an old thread in the 'Flash' section of the board that was asking about a link to a jigsaw puzzle tutorial (Action Script 1). Here is the link:
    http://www.adobe.com/support/flash/action_scripts/actionscript_tutorial/actionsc ript_tutorial02.html
    Now, that was like 3 years ago it was posted, LOL! I'm just wondering if anybody can chime in nowadays with an answer to the question that was asked. How do you switch the main image of the puzzle? Do you have to create the pieces from scratch?
    Take a look and let me know,
    Thanks as always!

    I'm not sure you do actually. When I clicked into a single piece and played around with it, I discovered that each piece seems to be filled with a bitmap image instead of a solid colour. If you click into a single piece (it's a movie clip) you'll see that the piece is a bitmap, but, when I grabbed the edge of that bitmap and stretched it out of shape, I noticed that the entire image is somehow masked within that piece.

  • TS1702 Why am I unable to in-app purchase more features on Jigsaw Puzzle app?

    I purchased Jigsaw Puzzles months ago and have always been able to purchase more puzzles from the app.  Yesterday, when I try to purchase more, I received a message advised "In-app purchases are not allowed".  Why???  I have the latest software and I am able to purchased from other apps.

    Settings>General>Restrictions>Allowed Content>In-App Purchases. Did you turn off in app purchases?

  • Best way to transform a jigsaw puzzle to landscape

    Hello,
    I am trying to puppet warp a big square that looks like a complete jigsaw puzzle and warp it to a rolling hill landscape. What befuddles me is how to rotate the plane around its center? Another words, if I put a skewer into the middle of the plane or puzzle, and take the corner and rotate it around that axis or the in 3D talk it would be the y axis. Every place I put the axis poin and rotate the plane, it rotates in the z axis, or around like a clock. So, to clarify, if I could put my palm down onto teh center of this plane, and with the other hand, take the corner of this plane and spin it around a bit, how could I do this move in Photoshop?
    Do I just continue to warp it so it has that appearance, or can I rotate it as shown in my image?? I just want the perspective to be more like the puzzle is coming out of the lower right corner and extending out to the top left corner perspective. instead of cming from the bottom and out to background as it is here. Thank you.
    Laurie

    Why don't you use info objects? For example your table is having col1(number),col2(text/varchar),col3(text/varchar), create an info object like this,
    class MytableInfo implements java.io.Serializable {
    private int col1;
    private String col2;
    private String col3;
    public MytableInfo(int col1,String col2,String col3) {
    this.col1=col1;
    this.col2=col2;
    this.col3=col3;
    public int getCol1() {
    return col1;
    //Getter for other two properties too.
    and in your ResultSet class,
    Vector v = new Vector();
    while(rs.next()) v.add(new MytableInfo(rs.getInt(1),rs.getString(2),rs.getString(3));
    return v;
    So, it will be easier for retrieving the values later and it is a clean way of doing it.
    Sudha

  • TS1702 I own a jigsaw puzzle that was made for iPad.  It keeps freezing up on me?.

    I own a jigsaw puzzle made for iPad and it keeps freezing up on me.  Why

    Have you tried a Rese?t [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. The screen will go blank and then power ON again in the normal way.] It is app and data safe!

  • My itunes acct was charged for jigsaw puzzles I had to reinstall

    My I tunes acct was charged for jigsaw puzzles I had to reinstall

    Did you download using the same Apple ID for both?
    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: [email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    iTunes Purchase Problems: How to Report a Problem to iTunes Support
    http://tinyurl.com/7tscpa7
    iOS: Troubleshooting applications purchased from the App Store
    http://support.apple.com/kb/TS1702?viewlocale=en_US&locale=en_US
    How to Get a Refund from the App Store
    http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
    Getting Refunds for your iTunes Store Purchases
    http://www.labnol.org/software/itunes-app-store-refunds/13838/
    Canceling a Digital Subscription
    http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
     Cheers, Tom

  • When I load a game or anything before the flash will load I have to click on a jigsaw puzzle piece

    Before I upgraded the flash it load itself. Now when ever a pic or something come on I get a jigsaw puzzle piece I have to click to start flash. Why? Can I fix it?

    Hi Mandi
    Two thoughts. Your Mac is struggeling about how to get organized.
    - free space on internal hard disk should read more than 10Gb and even
    rather like 25GB
    - The hard disk that You store Your movie on can be in wrong format
    ∆ is it formatted OK (if only one = internal it's most probably OK)
    ∆ external hard disks MUST BE - Mac OS Extended formatted to work
    • DOS/UNIX/Mac Exchange - won't do !
    - The hard disk can be untidy:
    ∆ Run: Repair Permissions (Apple Disk Util tool)
    ∆ Run: Repair Hard disk (Apple Disk Util tool) (You need to start from CD/DVD
    or externa hard disk)
    ∆ AND - delete iMovie pref file (or start a new account / log into this and re-try.
    (will do the same but it discards even more eventually faulty files)
    Yours Bengt W

  • Shockwave Player 12.0 and Jigsaw Puzzles

    AS verified by Adobe and installed in my programs Dec. 12, 2013, which is the latest version. I upgraded from SW 10 due to security issues that were brought to my attention by US-Cert. Not going into detail about that notification; here's what my problem is. When I go to a site that has jigsaw puzzles and click on the site, I get a prompt to download SW 10 which as stated is an older version. Why aren't these sites made aware that there is a newer and safer version of Adobe Shockwave so we don't have the inconvenience of being shut out? I have no other problems with sites such as crosswords, sudoku, etc...And I won't open SW10 just for one game only then uninstall because as mentioned there have been security issues on that site.

    Thanks for your reply Sean. However, I did notify the site developer via email and only response I got was tincture of time and scientific neglect. Maybe I'm the only user of their game site. Thanks again.

  • AS1 / 2 Jigsaw puzzle pieces - positions

    Hi and sorry this is a long one, but please bear with it - I think it should be simple.
    I have a jigsaw that I'm back engineering to suit my needs. The jigsaw's default is to place the pieces in a random order on the stage, and then when you drag and drop the pieces into the puzzle area, they either click in place (if placed in the right area), or spring back to a random position on the stage, until you get the puzzle right. I need to just adjust this a little. I want the puzzle instances to appear in a defined position on the stage (think I've cracked this OK), but also when the user places the piece in the wrong position I want the piece to spring back to that exact same position it was in. This is the bit I can't resolve. Here are some script snippets which I hope will shed light on this.
    I'm defining the position of the pieces on the stage like this:
    p2._x = -380;
    p2._y = 70;
    p2 being the instance name of one jigsaw piece. This bit of script being in the timeline of the movie clip that contains the puzzle pieces:
    Then in a separate external AS file, the original author has defined the following rule if the piece is not dragged to the correct spot.
    else
    this._x = Math.random()*180;
    this._y = Math.random()*200;
    snd = new Sound();
    snd.attachSound("snd_fault");
    snd.start();
    The jigsaw pieces reference the external script with a simple:  #include "ascript.as"
    this. defining the individual jigsaw piece that's currently being interacted with (I guess). You can see this syntax applies a random positioning to the piece. How can I adjust this to make it move the piece in question back to it's original position when placed in the wrong area?
    The original FLA file and script can be downloaded here:
    http://www.actionscript.org/resources/articles/13/1/Jigsaw-Puzzle/Page1.html
    Any help on this would hugely appreciated. Thanks in advance.
    Ed.

    Hi. Thanks for the swift reponse. Where would I apply this script and how does that impact on the random 'springing back' positioning of the pieces when dragged to the wrong area of the puzzle. I need them to spring back but to their original positions. What should I do with the 'else' snippet of script that the original author has generated in the external AS file?
    Thanks,
    Ed.

  • Doing a Jigsaw Puzzle need help :-)

    Hi hoping that I can get some help with out having to start all over on my project.  I am very new at this coding and have never coded anything before.  I see there is a ton of code out there but the examples really confuse me.  They don't tell you what or where my instance names fit into the code given.  Or that I am not familiar with it enough to see where my names for either my movie clips or button names fit into the codes available.
    The code I have for my simple puzzle is as follows:
    var pArr:Array = new Array (p1_mc, p2_mc, p3_mc, p4_mc, p5_mc, p6_mc, p7_mc, p8_mc, p9_mc, p10_mc, p11_mc);
    for (var i:uint =0;
    i < pArr.length; i++) {
    pArr[i].addEventListener(MouseEvent.MOUSE_DOWN, drag);
    pArr[i].addEventListener(MouseEvent.MOUSE_UP, drop);
    function drag(event:MouseEvent):void {
    event.currentTarget.startDrag();
    function drop(event:MouseEvent):void {
    event.currentTarget.stopDrag();
    Although this will move all the pieces around, what I need is to be able to be able to lock the pieces together, and complete it.
    Please Help
    Valerie

    The code you have now should be fine as a starting point, so chances are you can build onto what you already have.  The reason you might not be able to do that is if you find a tutorial that takes a different approach that forces you to changes things due to lack of understanding the coding/programming.
    What you should do is search Google using terms like "AS3 jigsaw tutorial" and "AS3 drag tutorial", and try to find one that somewhat matches what you have so far.
    As an aid to maybe help you to avoid having to rewrite your code to follow someone else's approach, just realize that you have the basics already in place for the dragging and dropping.  You are just missing the rest of the code you'll need in the dropping function that helps you determine when an object is placed where it belongs and how process it into whatever position is deemed necessary (where it goes versus where it came from, etc).  So you might be able to skip to the part where checking the if the drop is on target gets discussed.

  • I purchased several jigsaw puzzles from the app store, played with them for a few months, did not finish all of them.  They have disappeared from the site.  I have emailed Dayana networks Ltd. about the Jigsaw Pro Puzzle.  No response.  Any suggestions

    How to contact non responsive Dayana Networks LTD. Purveyors of HD Jigsaw Pro Puzzle by Bej Bej apps?

    -> https://itunes.apple.com/us/artist/dayana-networks-ltd./id403434357
    -> Jigsaw Pro Puzzle

  • Actionscript 3 - jigsaw puzzle unloading images

    I am using the puzzle game sample from adobe and want to use it as part of an interactive narrative for students. However, everytime I try to go to new frame or scene the image stays with me. How do I remove or unload the puzzle frame and bitmap images so that it doesn't follow me. I am not a coder very confusing here is the entire script.
    var puzzlePiecesArr:Array;
    var puzzlePiecesFound:Array;
    var topDepth:Number;
    var totalPuzzlePieces:Number;
    var correctPuzzlePieces:Number;
    var puzzleBmp:BitmapData;
    var intervalID:Number;
    var threshold:Number;
    var imagesArr:Array;
    var imageLoader:Loader;
    var requestURL:URLRequest;   
    var puzzleBoardClip:MovieClip;
    var holder:MovieClip;
    init();
    function init(){
        puzzleBoardClip = new MovieClip();
        addChild(puzzleBoardClip);
        totalPuzzlePieces = 8;
        //imagesArr = new Array("http://www.helpexamples.com/flash/images/image1.jpg", "http://www.helpexamples.com/flash/images/image2.jpg", "http://www.helpexamples.com/flash/images/image3.jpg");
        imagesArr = new Array("image1.jpg", "image2.jpg", "image3.jpg");
        puzzlePiecesArr = new Array();
        puzzlePiecesFound = new Array();
        correctPuzzlePieces = 0;
        threshold = 0xFFFF;
        /* Create the image Loader */
        imageLoader = new Loader();
        imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadImg);
        /* Create the URL Request */
        var index:Number = Math.floor(Math.random() * imagesArr.length);
        requestURL = new URLRequest(imagesArr[index]);
        // Load the image
        imageLoader.load(requestURL);
        // Setup a holdery mc to hold the puzzle pieces
        holder = new MovieClip();
        addChild(holder);
    function onLoadImg(evt:Event):void{
        // Determine the width and height of each puzzle piece.
        // Each puzzle consists of 4 columns and 2 rows.
        var widthPuzzlePiece:Number = imageLoader.width / 4;
        var heightPuzzlePiece:Number = imageLoader.height / 2;
        // Draw the image from the movie clip into a BitmapData Obj.
        puzzleBmp = new BitmapData(imageLoader.width, imageLoader.height);
        puzzleBmp.draw(imageLoader, new Matrix());
        var puzzlePieceBmp:BitmapData;
        var x:Number = 0;
        var y:Number = 0;
        // Loop 8 times to make each piece
        for (var i:Number = 0; i < 8; i++)
            puzzlePieceBmp = new BitmapData(widthPuzzlePiece, heightPuzzlePiece);
            puzzlePieceBmp.copyPixels(puzzleBmp, new Rectangle(x,y,widthPuzzlePiece,heightPuzzlePiece), new Point(0,0));
            makePuzzlePiece(puzzlePieceBmp, i);
            x += widthPuzzlePiece;
            if(x >= puzzleBmp.width)
                x = 0;
                y += heightPuzzlePiece;
        makePuzzleBoard(puzzleBmp.width, puzzleBmp.height);
        arrangePuzzlePieces();
    function makePuzzlePiece(puzzlePiece:BitmapData, index:int){
        var puzzlePieceClip:Bitmap = new Bitmap(puzzlePiece);
        var tmp2:MovieClip = new MovieClip();
        tmp2.addChild(puzzlePieceClip);
        tmp2.name = String(index)     // Added for Strict Mode
        holder.addChild(tmp2);
        holder.addEventListener("mouseDown", pieceMove);
        holder.addEventListener("mouseUp", pieceMove);
        puzzlePiecesArr.push(tmp2);
        // This is used to check if the same piece has been placed
        puzzlePiecesFound.push(tmp2.name);
    function pieceMove(evt:Event):void{
        if(evt.type == "mouseDown"){
            evt.target.startDrag();
        } else if(evt.type == "mouseUp"){
            evt.target.stopDrag();
            var puzzlePieceIndex:Number = evt.target.name;
            // ADDED VV 4.3. Check if droppped inside of the grid
            if(evt.target.dropTarget){
                var puzzleBoardSpaceIndex:Number = evt.target.dropTarget.name;
            if(puzzlePieceIndex == puzzleBoardSpaceIndex)
                var coordinate:Point = new Point(evt.target.dropTarget.x, evt.target.dropTarget.y);
                var coordinateGlobal:Point = new Point();
                coordinateGlobal = puzzleBoardClip.localToGlobal(coordinate);
                evt.target.x = coordinateGlobal.x;
                evt.target.y = coordinateGlobal.y;
                if(puzzlePiecesFound.length != 0)
                    for(var i:int = 0;i < puzzlePiecesFound.length; i++)
                        if(puzzlePiecesFound[i] == puzzlePieceIndex)
                            puzzlePiecesFound[i] = "Correct";
                            correctPuzzlePieces++;
                if(correctPuzzlePieces == totalPuzzlePieces)
                    puzzleSolved();
    function arrangePuzzlePieces():void
        var widthPuzzlePiece:Number = puzzlePiecesArr[0].width;
        var heightPuzzlePiece:Number = puzzlePiecesArr[0].height;
        var locationArr:Array = new Array();
        locationArr.push({x:10, y:10});
        locationArr.push({x:10 + widthPuzzlePiece + 5, y: 10});
        locationArr.push({x:10, y:10 + heightPuzzlePiece + 5});
        locationArr.push({x:10 + widthPuzzlePiece + 5, y:10 + heightPuzzlePiece + 5});
        locationArr.push({x:10, y:10 + (heightPuzzlePiece + 5) * 2});
        locationArr.push({x:10 + widthPuzzlePiece + 5, y:10 + (heightPuzzlePiece + 5) * 2});
        locationArr.push({x:10, y:10 + (heightPuzzlePiece + 5) * 3});
        locationArr.push({x:10 + widthPuzzlePiece + 5, y:10 + (heightPuzzlePiece + 5) * 3});
        var index:Number = 0;
        var coordinates:Object;
        while(locationArr.length > 0)
            coordinates = locationArr.splice(Math.floor(Math.random() * locationArr.length), 1)[0];
            puzzlePiecesArr[index].x = coordinates.x;
            puzzlePiecesArr[index].y = coordinates.y;
            index++;
    function makePuzzleBoard(width:Number, height:Number):void{
        var widthPuzzlePiece:Number = width / 4;
        var heightPuzzlePiece:Number = height / 2;
        var puzzleBoardSpaceClip:MovieClip;
        var x:Number = 0;
        var y:Number = 0;
        for(var i:Number = 0; i < 8; i++)
            puzzleBoardSpaceClip = new MovieClip();
            puzzleBoardSpaceClip.graphics.lineStyle(0);
            puzzleBoardSpaceClip.graphics.beginFill(0xFFFFFF,100);
            puzzleBoardSpaceClip.graphics.lineTo(widthPuzzlePiece,0);
            puzzleBoardSpaceClip.graphics.lineTo(widthPuzzlePiece,heightPuzzlePiece);
            puzzleBoardSpaceClip.graphics.lineTo(0,heightPuzzlePiece);
            puzzleBoardSpaceClip.graphics.lineTo(0,0);
            puzzleBoardSpaceClip.graphics.endFill();
            puzzleBoardSpaceClip.x = x;
            puzzleBoardSpaceClip.y = y;
            x += widthPuzzlePiece;
            if(x >= width)
                x = 0;
                y += heightPuzzlePiece;
            puzzleBoardSpaceClip.name = String(i);    // Added for Strict Mode
            puzzleBoardClip.addChild(puzzleBoardSpaceClip);
        puzzleBoardClip.x = 350;
        puzzleBoardClip.y = 200 - puzzleBoardClip.height/2;
    function puzzleSolved():void{
        holder.visible = false;
        var tmp:Bitmap = new Bitmap(puzzleBmp);
        puzzleBoardClip.addChild(tmp);
        var timer:Timer = new Timer(50);
        timer.start();
        timer.addEventListener("timer", puzTrash);
    function puzTrash(evt:Event):void{
        if(threshold > 0xFFFFFF)
            threshold = 0xFFFFFF;
            evt.target.stop();
            init();
        puzzleBmp.threshold(puzzleBmp, new Rectangle(0,0, puzzleBmp.width, puzzleBmp.height), new Point(0,0), "<=", 0xFF000000 | threshold);
        threshold *= 1.2;

    When you create dynamic content, it does not have a timeline home unless you place it in something that's anchored to the timeline.  What you could do is place the puzzle inside of an empty movieclip that you manually incorporate into the timeline rather than dynamically which you currently do.  For the code you show, you may be able to eliminate this...
    var puzzleBoardClip:MovieClip;
    and these...
    puzzleBoardClip = new MovieClip();
    addChild(puzzleBoardClip);
    and create an empty movieclip with that instance name that you only allow to exist in the frames where you intend the puzzle to be visible.
    Instead, you could also try using: removeChild(puzzleBoardClip);  wherever it is you have code where you would want to make the puzzle no longer visible.

  • Multiple jigsaw puzzle pieces entering the head through the ear effect

    Hi,
    I just got the Adobe CC and was wondering how I would create an video intro of 3-5 second of a sideview of a head like this: http://image.shutterstock.com/display_pic_with_logo/489523/489523,1287061475,4/stock-vecto r-puzzle-head-couple-vector-63…
    The idea is to have multiple puzzle pieces coming from the corner of the video at a fast rate like a hurricane and entering through the ear of the human head and filling up the head. Once it's completely filled and looks like a solved puzzled, it should say in the middle "unpuzzled" which is my company's name. When the puzzle pieces connect to solve the puzzle, it should have some sort of effects as well.
    What should I dig into in order to achieve these things on after effects? I'm an begineer/intermediate user.
    Thank you

    Card Dance, with its 3D camera and remarkably complex XYZ animation controls, can create the tornado or hurricane. However, the discreet pieces of Card Dance are rectangles so your puzzle pieces will need to be set up with alphas. A simple transition to a movie created using Shatter will get them assembled.
    As Sz said, there are many different ways to do this. Decide on a style and look first. If you want it to look Industrial Light and Magic did the animation, you'll need a few months, literally, to work on this. If it less realistic and more highly stylized, you can approach it much more simply. but you will want to change it i a few months after you have found your way around the application.

Maybe you are looking for