Jigsaw Puzzle - Congrats Text When X And Y Are Correct?

Jan 12, 2010

I'm trying to create a jigsaw puzzle and need to show a text when the puzzle is complete. I can't solve it. I have 12 puzzle peaces and when all of them are correct placed i need the "Congratulation" text to show. Is there a easy AC snippet telling a text to show when all peaces are in correct x and y? The puzzle peaces are buttons and have instant names as, puz1, puz2 and so on....

View 2 Replies


Similar Posts:


Jigsaw Type Puzzle And Visibility Not Working?

Jul 2, 2009

The top left corner works ok - I copied and pasted the code and made the minor changes. The other 3 parts of the puzzle are causing a real puzzle for me.I've checked instance names, and everything else I can think of.Is there something in the code that could prevent the other bits working properly? Some of the names aren't brilliant - I thought this would only take a few minutes to knock up!

Code:

// Drag cameron 2
a2.onPress = function() {
this.startDrag(false);
};

[code]....

View 1 Replies

ActionScript 3.0 :: Jigsaw Puzzle Unloading Images?

Apr 2, 2010

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;

[code]....

View 4 Replies

Jigsaw Type Puzzle And Visibility Not Working

Mar 14, 2009

I have a simple jigsaw type puzzle - only 4 pieces at the moment. The top left corner works ok - I copied and pasted the code and made the minor changes. The other 3 parts of the puzzle are causing a real puzzle for me. I've checked instance names, and everything else I can think of.
Is there something in the code that could prevent the other bits working properly?

Code:
// Drag cameron 2
a2.onPress = function() {
this.startDrag(false);};
a2.onRelease = function() {
this.stopDrag();
// Convert the slash notation to dot notation using eval.
if (eval(this._droptarget) == b_mc) {
b_mc._visible = false;
c2._visible =true;
a2._visible =false;
change_score();
}};
The fla is attached.

View 1 Replies

ActionScript 2.0 :: Rotate A Jigsaw Puzzle Piece?

Oct 24, 2004

how to rotate individual jigsaw puzzle pieces using the left and right arrow keys. Can anyone help? Here is the action script that I am using:

on (press) {
startDrag("_root.pic9", true);
this.swapDepths(100);
}

[code]....

View 9 Replies

ActionScript 3.0 :: Adding Ability To Rotate Each Piece In Jigsaw Puzzle?

Mar 29, 2011

I have a jigsaw puzzle that I want to add the ability to have each peice rotate. This code is based off some code I purchased. I cannot reach the company other than some generic instructions to add an event. The instruction I was given was:

public function rotateActivePiece(dir:int=1):void
Rotates the active puzzle piece (last clicked),
90 degrees, clockwise if dir>0, and counterclockwise if dir<=0.
Parametersdir:int (default = 1) - Parameter defining the direction of the rotation.
CW if pozitive, CCW if zero or negative.

I dont know what to do with this or where to add.

View 3 Replies

Actionscript 3 :: Creating Irregular Shapes For A Jigsaw Puzzle Game In Flash

Aug 17, 2011

I want to make a jigsaw puzzle in flash. I know how to create square kind of shapes. But I want to create this kind of irregular shapes. See the live demo of puzzles in the links shown

[URL]

I just want to how to create the irregular shapes.

View 4 Replies

ActionScript 2.0 :: Rotate Individual Jigsaw Puzzle Pieces Using The Left And Right Arrow Keys?

Oct 24, 2004

how to rotate individual jigsaw puzzle pieces using the left and right arrow keys.Here is the action script that I am using:

on (press) {
startDrag("_root.pic9", true);
this.swapDepths(100);[code]....

View 7 Replies

Professional :: Embed HTML In Flash - When I Click ,opens The Correct Description Text File In The Second Text Box?

Apr 17, 2011

Is there any way I can embed HTML in flash? I know I can do this with text boxes but is there any other way I can do it? If not I know theres is the load feature where I can load text from a text file. With the html text box editing, Can i link that to the text file?. As in when you edit the text box with html could i have the textbox's instance name equal to the text file? With this my issue is with the <a href> in one textbox, I would like when i click those it open another text file in a different text box.

Clarification: I have two text boxes in my flash file.One has current products. And the other is the description of the product they select. I would like a way to edit and change the products in the first text box without having to keep using the FLA file. Which is why i am using this code

var myTextLoader:URLLoader = new URLLoader(); myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
function onLoaded(e:Event):void {trace(e.target.data);} 
myTextLoader.load(new URLRequest("myText.txt"));

The contents of myText.txt are <a href=(not sure what to put here)> Product 1 </a> But all that does is put it in the text output section in flash.It does not show it in flash. I need help getting it to show up in a text box.That is the first part But the main problem is im not sure how to code the a href correctly so that when i click it, another text file opens in the second text box.So that when a user clicks on a product ,like "Product 1" It opens the correct description text file in the second text box.

View 2 Replies

ActionScript 3.0 :: Get The Depths Of All The Blocks To Be At The Correct Levels At The Correct Times

Dec 30, 2009

I'm trying to get the depths of all the blocks to be at the correct levels at the correct times so that the 3d effect is maintained. I've tried many things, but have had little success. All the instances of the blocks are stored in an array, but since it's adding them in accordance with when they're added to the stage, it doesn't help me locate them to swap depths. Is there a way to arrange them by location on the board?

View 4 Replies

ActionScript 3.0 :: Gettting The Correct To Read In Text?

Jul 17, 2009

ok, i have been working with this text to load in dynamic text fields. what I have is a movieclip called 'textInfo' inside this two dynamic text fields called 'headerTex1' and 'headerText2' where I want the text to load into from the XML file.the text should appear next to image that rotate on menu which has 25 images on the menu.What I am getting confused with is do I need to repeat the script 25 times with 25 differently labeled movieclips and text fileds,this is the script;

Code:
var textInfo:TextInfo = new TextInfo();
texInfo.headerText1.text =

[code]......

View 11 Replies

Php :: Get The Correct Coordinates Of Text From That Flex Editor?

Mar 1, 2012

We have an image editor in Flex to add text and other changes. Once all the changes are complete, we need to save this to the server.We are using php to save the images by accepting coordinates from flex about what all edits are made for that image. Using this we are editing that image using imagick function in PHP. But the problem is output is different from what we see in flex. The issue is mainly with text alignment in flex editor and in the output we get after editing in php.Is there any other way to do this without making the user to wait for a long time to save the images? Is it possible to get the correct coordinates of text from that flex editor. Our issue is flex is passing the x,y of the container of that text editor. For this reason, test is misaligned in the output.

View 1 Replies

ActionScript 2.0 :: All Correct For Text Boxes In Flash Mx?

Oct 21, 2004

I have an interactive assignment in which the students have to enter text entries into an input box. I have it working to where when the enter the correct answer it will tell them, or if it's wrong. I need to be able to tell them when they get to the last question, after they have gotten all of them correct, that they got all the questions correct. I know how to do this with a drag and drag interaction but not text entry. can someone point me in the right direction?

View 4 Replies

ActionScript 2.0 :: Clicks To Load Correct Text?

Mar 5, 2005

I'm loading dynamic text into a textField created at runtime. The problem is that you have to click the button twice to see the correct text. The previous text won't clear on the first click.

Go to this link Web Site and click on "Our Work" then click on one of the categories to see what I'm talking about.

[Code]...

View 2 Replies

ActionScript 2.0 :: 2 Clicks To Load Correct Text?

Mar 5, 2005

I'm loading dynamic text into a textField created at runtime. The problem is that you have to click the button twice to see the correct text. The previous text won't clear on the first click.Go to this link Web Site and click on "Our Work" then click on one of the categories to see what I'm talking about.

Here is the function to create the textField:

// Create TextField and load text
function makeTxtBox(txtFile) {
var txtFile;

[code]....

View 2 Replies

ActionScript 1/2 :: Input Text Will Not Allow To Access The Correct Answer

Mar 8, 2012

i am trying to create a simple quiz in school. I have one test question which requires the answer to be -1.I have created Input text and assigned the variable answer for this question.I have a button with the following AS2 script: 

on (press, keyPress "<Enter>") {
if(answer eq "-1" or answer eq "minus 1"
or answer eq "Minus 1" or answer eq "Minus one" or answer eq "minus one")

[Code]....
 
Firstly whatever you type the numerical keys are immobilised on the keyboard when the .SWF file is builtSecondly I cannot enter the correct answer!! If I type in Minus 1 etc it goes to frame 3.I have tried flags rather than frame numbers - same problem.i have tried remaking the quiz as a  separate file.using CS4 and CS5 flash - windows 7 PC.

View 6 Replies

ActionScript 2.0 :: Text File Var Decides Which Button Is Correct

Aug 14, 2002

I was wondering if anybody would have some input on this. I have three paths in my movie, p0, p1 and p2 (instance names). These paths are buttons and when I click on the right button I will get a message saying congratulations, if I click on the wrong button I will get a message saying wrong path. The catch is, a text file will contain the info on which button(path) is the correct one. The text file will contain, p1=true&, nothing else.

View 5 Replies

ActionScript 3.0 :: Jigsaw Development Using PS And Flash CS5

Feb 9, 2012

I am planning to develop a jigsaw puzzle, by designing the puzzle pieces in Photoshop (with each jigsaw piece on a separate layer) and then importing all PS layers into flash, to compile the game. I haven't been using AS3 for too long, but am reasonably happy with the progress I've been making and would like to take this step up in terms of complexity.

The pieces will be stored in an array (piecesAry). I want the pieces to each be registered to a Point on the playing board. For example, if there are 100 pieces in the jigsaw, each piece will have correct place in terms of a 10x10 matrix (10 rows x 10 columns). The unique Point for each piece will, I think, need to be stored in the piecesAry.

My query relates to how I am best assigning the unique Point to each individual piece. For example, to take again the example of the 100 piece jigsaw, would it be possible / effective to create an underlying 10 x 10 bitmap square grid, and have each piece of the grid assigned to an individual piece (the thinking being that the square grid can be "cut up" easier than the jigsaw once in flash).

[Code]....

View 1 Replies

ActionScript 2.0 :: CS3 Single Spawning Jigsaw Piece

Mar 24, 2010

I know how to make a basic jigsaw but at the moment i'm trying to create a map of europe jigsaw. Unfortunately with the map taking up the majority of the room there's no space to have all the pieces on screen at once. I had a look for solutions and i found this... [URL] How would i go about making it so that only 1 piece appears on screen until you have placed it?

View 1 Replies

ActionScript 3.0 :: Split Bitmap For Jigsaw Game?

Jul 31, 2010

i need to make a jigsaw game. i want to make such a system by code(AS3) that when i give the bitmap it will split it. how can i split the bitmap in such a extraordinary shapes?

View 9 Replies

Professional :: Drag And Drop Jigsaw Not Working

Apr 9, 2011

After 3 drag and drops of the puzzle I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MultimediaProducttest_fla::MainTimeline/dropIt()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MultimediaProducttest_fla::MainTimeline/pickUp()

restbar_btn4.addEventListener(MouseEvent.CLICK, restbar4Clicked);
museum_btn4.addEventListener(MouseEvent.CLICK, museum4Clicked);
sark_btn4.addEventListener(MouseEvent.CLICK,sark4Clicked);
market_btn4.addEventListener(MouseEvent.CLICK, market4Clicked);
[Code] .....

View 10 Replies

ActionScript 3.0 :: Jigsaw Have Answer Equal A Movieclip?

Mar 7, 2012

basically i have this jigsaw code, and i need to modify it so that the only jigsaw piece that will be accepted is the answer to a question which is randomised as follows,

[Code]...

View 6 Replies

IDE :: Jigsaw Gone Awry - Back To The Original Xy Position?

Jan 24, 2010

My code in theory works find but for some reason things aren't doing what they're supposed to. Basically I have all my draggable puzzle pieces as movieclips; they start at specific x's and y's on the axis. You drag them to the corresponding hitbox movieclip and it pops into the other specific x and y spot on the axis (otherwise they go back to the first xy spot).

The problem is sometimes the pieces drag and drop fine, but other times when you click the mouse down, they drag, but when you let go, they don't drop! Randomly! They just follow the cursor around, til you click a few times, and then randomly it will drop and not move (when it's supposed to go back to the original xy position).

[Code]...

View 1 Replies

ActionScript 2.0 :: LoadMovieNum - How To Close Movie Jigsaw

Jan 5, 2011

I am doing a 5 frame file that on frame 1 has 4 buttons and the following code
on (release) {
gotoAndStop(4);
} on (release) {
loadMovieNum("jigsaw.swf", 1);
}

I am happy with this as it jumps to frame 4 and loads the movie jigsaw that I done from a tutorial. The problem is I cant get it to close, I have got a button on page 4 that has the gotoAndStop(1) but it just goes to frame 1 (that's the good bit) but the jigsaw is now on frame 1 as well and I dont know how to close it.

I tried
on (release) {
gotoAndStop(1);
} on (release){
unloadMovieNum("jigsaw.swf", 1);
}
but it does nothing not even go to frame 1

View 2 Replies

ActionScript 3.0 :: User Inputted Text: Determining If A Specific Character Is Correct?

May 4, 2010

I'm creating a learning activity for one of our biology classes. The basis of the activity is to test students ability to transcribe and translate DNA into other sequences.I have a dynamic text field where the student would type in a 36 character squence.
 
I already know that I can use an if statement to see if all 36 characters are correct. I was wondering if there was a way to individually check each letter the student typed in is the correct one for that line. So if UUAACCGG is the correct answer, I want flash to check and see if the third character is indeed A or not.

View 1 Replies

ActionScript 3.0 :: Correction - User Enters The Text The System Should Accept It As Correct?

Mar 1, 2012

I currently have an input text field where the user can enter their text.The text to be entered say is Adobe. First letter is Caps and rest small.In whatever probability the user enters the text the system should accept it as correct. For example: Adobe, adobe, adobE, ADOBE etc etc

View 4 Replies

Flex :: Text Input Error / Validation And Restore Previous Correct Value

Jul 2, 2009

I have text input boxes. There is validation for each of the boxes using numberValidator. Now, the thing is that am using alert box to show if any error occurs.

Flowchart ::

1> Insert value in textBox.

2> NumberValidator validates the input on "trigger=change".

3> If error, alert message is displayed. The user clicks OK to go back to form.

4> Focus set back to the TextBox.

5> But, alert box makes the text input value blank / null. i.e. Both the previous error value entered by user and the default correct value will not be displayed now.

Display the most recent correct value that was entered in the text box. Not the default of any other, but the most recent correct value entered by the user.

View 3 Replies

ActionScript 3.0 :: User Inputted Text: Determining If A Specific Character Is Correct

May 4, 2010

I'm creating a learning activity for one of our biology classes. The basis of the activity is to test students ability to transcribe and translate DNA into other sequences.

I have a dynamic text field where the student would type in a 36 character sequence.

I already know that I can use an if statement to see if all 36 characters are correct. I was wondering if there was a way to individually check each letter the student typed in is the correct one for that line. So if UUAACCGG is the correct answer, I want flash to check and see if the third character is indeed A or not.

I know I can do this with 36 individual text boxes, but I was kind of hoping to get away with just one big text box.

View 0 Replies

Professional :: Jigsaw Game: With Instances - Isn't Recognizing Symbols

Jul 31, 2011

I am trying to make a simple jigsaw game, I have copied the code but it isnt recognising my symbols. Is this an instance-naming problem? [URL]

View 7 Replies

How To Get Puzzle Game To Be Aligned Right

May 21, 2009

I'm pretty new to flash but recently got an assignment at college to produce a childrens game, I've been following a tutorial online to produce a jigsaw puzzle, so I can get use to actionscript and gain a little experience. I cant get some alignment right. I've followed this tutorial exactly and this is where i am stuck, below are the instructions and how it should look:
This is how mine looks, as you can see its out of place:

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved