Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Making Chess Puzzle In Flash



Hi guys!I'm pretty new to Flash, but I love chess and would like to make chess puzzles in Flash to get more familiar with the program. I've looked in my CS3 book and browsed google for tutorials, but didn't find any on chess. Then I figured that maybe some nice people at these forums would help me out!I have a board and my pieces, and I imagine it like, say, 4 squares will be highlighted, and then the user can drag a chess piece onto any of them, but only one will be right (the others produce failure messages). Then when they find the right square, I make the game make a move, and then they have to find the next move, then the game moves, and then they have to find the mating move.Frankly, I don't know what to type in my actionscript for this to happen.Help me out a bit? Thanks, Carinawww.carlinart.net (<-- home to my other chess art ;))



Adobe > ActionScript 3
Posted on: 12/15/2008 11:00:32 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Chess Puzzle Problems
Hello,

I'm new to this forum and quite new to the Actionscript programming language. I've got some experience programming in PHP and Java though.
The reason why I post here, is that I'm trying to make this Chess Puzzle game in Flash and I've encountered some problems.

So, why not ask the Experts here?

Description:
This is a brief idea how the game will work:

1. When the game starts, the boards is drawn using a for-loop.
I got graphic symbols named white_square.gif and black_square.gif.
Each sqaure is given an exact x,y coordinate, so that
a1 = 50,500 (white square)
a2 = 100, 500 (black square)
a3 = 150, 500 (white square)
etc.
b1 = 50,450 (black square)

Mayby the positions could be read from an array?

There are 8 rows and 8 columns total - 64 Squares. Each row start with the opposite color, f.instance a1 - white square, b1 - black square. c1 - white square

Q: How do I code this?

2. After the board is drawn the different pieces are inserted on top of the board.
I've made transparent Movieclips of all the Black and White pieces -
King, Queen, Rook, Bishop, Knight and Pawn.

Each movieclip should be placed on top of one of the squares - f.instance place the white Queen on top of Square a7, then place the Black king on h8 and so on..

Q: How can I solve this issue and how do I copy a movieclip from the Library and place it on the scene?

3. I would like to save the position of all the pieces in a textdocument.

Q: How can I load the this information from the textdocument and use it to place the pieces correctly?

4. When the pieces are placed correctly it should be possible to move all white pieces (black pieces are standing still).
However, only one piece is the "correct" piece to move, the others are false.

The "false" movieclips should contain #include "Move_rules.as"
"move_rules.as" contain StartDrag("") and on(release) -> go back to original position.

The "correct" (or true) movieclip however, should include code to check if the piece is moved correctly from one squre to another - f.instance Rook H2 to Rook H8.

Q: How do I code this?

If the rook is moved to the correct square, H8, then a Motiontween should be triggered on a black piece - f.instance the Black King.

Q: How do I copy a Movieclip from the Library, place it on an exact position and use Motiontween to move it to another position?

After the Black King has moved, white once again can move his pieces, but this time the "correct" piece to move is another piece - like the Queen.

I'm trying to save the piece_positon and piece_moves into tables on a MySql database, but first I want to check it out with textfiles.

Hope you can help.

Help Making A Puzzle
I am building a puzzle similar to the example that comes with flash 5. The one where you move around blocks until they are in the right order. Unfortunately I have little time and I don't want to use any code that macromedia coded (not sure if it's allowed). Everything is complete except for the dialogue which says "You have won". This must be more or less modal - so that the user cannot continue moving the blocks around. What do you guys recommend? Thanks in advance

Flash Chess
This was completed with MX scripting any guesses on how?

http://www.media-division.com/flashchess.htm#

Online Chess With Flash
I need some help. I need to build a site that can feature online peer to peer chess.
I want to use flash to build the game but I need help with the ip to ip part of it. Can I use actionsript?
Please Help!!!

Chess Fla
Do you knowe some good chess fla online? It seems i seen it before but i cannot find some now, if you know some links, please post, no multiplayer or comupter stuff(altought that would be great ) but simple 2 player flash chess and fla so i can see how to do it and make my own

thanx

Multiplayer Chess
I am looking for a person that can build a multiplayer chess game for www.chesskit.com in flash or other.

Basically what is required is a lobby, where everyone can chat, and tables where people can sit down and specify info on time etc.

Similar to yahoo.com or zone.com/chess

Please email webmaster@chesskit.com if you are interested.

Chess Game
I started to do a chess game.
I've drawn the figures and the board.
The figures are moved like this:
There is a button inside each movie clip of a figure that does this:
code: on (press) {
startDrag("_parent", true);
}
on (release) {
stopDrag();
}

My questions are:
1. How do I define the legal moves?
2. How do I make that when the figures are released, they snap to the center of the square?

Chess Board
I'm just trying to construct a chess board, using one square movie clip which has two frames labelled, black and white.

The code i have now returns the board but all the squares are black, can anyone help.

code:
makeBoard();

function makeBoard(){

var row, col, name, mc, count=1, colStat, rowStat;

for(row=0; row<8; row++){
for(col=0; col<8; col++){
// loops used to iterate code 64 times

name = "board" + row + "_" + col;
// constructs instance names for pieces
duplicateMovieClip("square", name, count++);
//adds new square
mc = eval(name);
//asigns instance name

if(col % 2 == 0){
colStat = "even";
}else{
colStat = "odd";
}
//checks if the column number is even

if(row % 2 == 0){
rowStat = "even";
}else{
rowStat = "odd";
}
//checks if the row number is even

if(colStat != rowStat){
mc.goToAndStop("white");
}
//all white squares have one odd number and one even, so if the two don't match set the piece to white
mc._x = col * 45 +36;
mc._y = row * 45 +36;
//aligns pieces
}
}
}

Chess Problem
I only need the idea, not the actionscript.

I have a n*n chess board and a knight (chess knight). The knight has to move to all of the squares without touching one two times so that it will, in the end, cover all of the board. Any ideas ?

Chess Board
hello
i need help with this animation i need to make
i have a chess board and a simple form, lets say a circle, my problem is that i need to change the color of the part of the cell while the circle pass, so when the cicrle is in a black cell part of the cell becomes white and the next white cell should be change to white
thanks alot for you help

Chess Program Help
I want to make a chess program in Flash MX 2004 (or Flash 5.0).
Is there a good tutorial out there to start with?

Chess Program Help
I want to make a chess program in Flash MX 2004 (or Flash 5.0).
Is there a good tutorial out there to start with?

Need A Yahoo Chess Booster
hi i would really apprecitate it if someone could give me a yahoo chess booster, i dont have any money, and i would greatly appreciate it if you would help me out, my yahoo id is, circleofpawns
email me or yahoo message me if im not online then i will recieve an offline message, please help

Chess Source Code?
Anyone know where I can find source code for an action script based chess game?

MSN Chess | Hmm Strange | How Did They Do That | Maybe A Tough One?
Hi,

MSN chess is a great online chess game made with macromedia flash when you go there, they ask you to download an activex control to be able to play the games.

Now this is very strange, I wanted to see those swf files offline in my cache but its impossible and I am unable to locate them, I have seen cab files and some swf's but these swf have nothing to do with the actual game. So my question is are the swf's embeded inside these cab files??? and if so how did they do that or how are they able to extract the swf in memory and not to the user's cache and still allow him to view and play the game?

you can check it out here, you will need to have a normal hotmail account to login.

http://zone.msn.com/en/chess/default.htm

so can someone please explain how this activex control the we have to download allow this to happen? or I am missing something?

Thanks in advance

MSN Chess | Hmm Strange | How Did They Do That | Maybe A Tough One?
Hi,

MSN chess is a great online chess game made with macromedia flash when you go there, they ask you to download an activex control to be able to play the games.

Now this is very strange, I wanted to see those swf files offline in my cache but its impossible and I am unable to locate them, I have seen cab files and some swf's but these swf have nothing to do with the actual game. So my question is are the swf's embeded inside these cab files??? and if so how did they do that or how are they able to extract the swf in memory and not to the user's cache and still allow him to view and play the game?

you can check it out here, you will need to have a normal hotmail account to login.

http://zone.msn.com/en/chess/default.htm

so can someone please explain how this activex control the we have to download allow this to happen? or I am missing something?

Thanks in advance

Scripts For A Chess Game?
I'm planning to make a simple chess game using Macromedia Flash. Can anyone provide me some scripts on how to get started?
It will only be a prototype so I don't need a complete script..

AS2 - Chess Search Algorithms
This my flash chess.
I'm trying to develop AI.
How can I build search tree (like this).
I'm thinking about 2dimensional array for chess nodes tree.
Any suggestions?

Ideas/concepts For MX Chess
hey, i am going to attempt to create a chess game with fMX , but i dont know where to start, im in no rush to get this done, its just a side thing im doing for my own site.. i want to know if anyone has any good ideas, or concepts, that might be helpfull, im not really big on back-end programming, and im trying to be, so i need something like this to make me learn.. Im not even sure on how im gonna start this whole thing, so right this second.. im just drawing out the pieces and the board and what now until i figure out how im gonna make this_**** work with two players.. like, i have seen many flash chat rooms, so im sure that it is possible to have piece coordinates relayed between two players online.

ANY RESPONSES ARE GREATLY APPRECIATED, EVEN STUPID ONES.. AN IDEA IS AN IDEA , SO **** IT...

Preloader Puzzle :: Flash MX
I have a swf that's fairly large, approximately 4Mb. I have designed the preloader to proceed it, but i can't get the coding to work properly.
I have attached the preloader scene fla and swf in the zip file, so that you can use it to help me. I need the preloader to determine when every 10% of the file is downloaded and then play the next part of the movie clip, then when 100% of the file is downloaded and the movie clip has played that section I need it to play the second frame of the scene.

I would be very grateful if someone could help me.

Many thanks in advance

::The Badman::

Flash Puzzle Game
Does anyone knows how to make crossword puzzle by flash (any version)? Or I can find any book, CD, or website has this instruction.

Thanks a lot!

Flash Crossword Puzzle
Hello,

I would like to create my own Flash crossword puzzle. Does anyone have a tutorial on this?

I found one on Flashkit but it did not work when I typed in all the correct answers. Any help would be great.

Thanks.

Shift Puzzle In Flash
Hi All,

I am in need of script to build a shift puzzle in flash.

I need an exact replica of the javascript example below

http://www.yourlearningadvantage.com/html/arrange.htm

Thanks

Chess Game In Colour -help Wanted
i am a painter-photographer who's been working for several years on a new type of chess game that's played in colour. i managed to get a general idea on my website, but would appreciate if somebody could give me some help to make the game more interactive.(i'm fairly new to gamedesign)
here's the link
--played with coloured pieces
http://www.theapplegallery.com/drag%...y11-transp.htm
--played with little carpets
http://www.theapplegallery.com/drag%20and%20drop+.htm
i managed to show things with the drag and drop system but need help with-(1)how could i put the pieces straight on top of the carpets?
(2)is there a way of counting the moves people make?
(3)any help or idea to make it more interactive
(4)i have seen somewhere a chess game in flash where the moves pieces made, where shown
here's the link http://www.newsandentertainment.com/zfchess.html
could i use something similar ?

--
website
http://www.theapplegallery.com/

Chess Game In Colour - Help Wanted
i am a painter-photographer who's been working for several years on a new type of chess game that's played in colour. i managed to get a general idea on my website, but would appreciate if somebody could give me some help to make the game more interactive.(i'm fairly new to gamedesign)
here's the link
--played with coloured pieces
http://www.theapplegallery.com/drag%...y11-transp.htm

--played with little carpets
http://www.theapplegallery.com/drag%20and%20drop+.htm
--more info
http://www.theapplegallery.com/chess...omebasics.html
i managed to show things with the drag and drop system but need help with
-(1)how could i put the pieces straight on top of the carpets?
-(2)is there a way of counting the moves people make?
-(3)any help or idea to make it more interactive
-(4)i have seen somewhere a chess game in flash where the moves pieces made, where shown
here's the link http://wickedgoodgames.com/flash3/chess.html
could i use something similar ?

the basic difference between this game and normal chess is
that the nature of the game is not one of attacking but of helping eachother
(i'm at present working (writing) on some form of play (story) where "WAR IS OVER" and the two clans are invited to a wedding (hence they need to get there as soon as possible)
my initial idea was (still is)to play the game with coloured lights (additive colour)when for example (in the theatre)you shine red+blue+green toghether on the stage it will make white. so having 2 opposites would make a white light(RIGHT MOVE)), while for example green and red would create just another colour (-yellow) so (WRONG MOVE)
the players need to find their opposite colour ( that could be made easy or difficult)+ you can change the whole setup

over the years i have been applying different forms how this game could be played
(for example the game with the carpets i made with the help of a whole village in india and works on the same principle- finding their opposite player) same as the other game with the coloured squares . i also used numbers to make it a bit easier to understand (opposite players need to make nr "7")


the moves used are exactly the same as in chess (horse,bishop,etc...)

deedebee

website
http://www.theapplegallery.com/

Check King In Chinese's Chess
I've a problem while coding this game. Check King, I done, but check to Win or not, I can't. Please give me your help. thanks in advandce

Help Hero Movement Like A Chess Game
Hy

I want to make the hero.mc available to move with the mouse when you click down and then you drag where you want to position the hero.mc example like in a chees game

Thanks for any info







Attach Code

var tiles:Object = new Object({width:52, height:26}); // The size of the 'flat' tile. Tiles are allowed to be different dimentions, to give the '3D' effect.
var offset:Object = new Object({x:400, y:100}); // Este objeto ayuda a centrar el 'slotmachine' en el stage.
var hero:Object = new Object({x:1, y:1}); // La posicion inicial del 'slotmachine'
var canvas:Object = new Object({mc:_root.createEmptyMovieClip("canvas", _root.getNextHighestDepth())}); // Contains the primary movie clip and map information.

canvas.map = new Array( // Determina la Topografia del mapa
new Array(200,200,200,200,200,200,200,200,200),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100),
new Array(200,100,100,100,100,100,100,100,100)
);
onLoad = function():Void
{
initmap(canvas.map); // Draw the map
initplayer(); // Draw the player

return;

};
_root.onEnterFrame = function():Void
{
input(); // Handle keyboard movement
return;

};

function input():Void // Modifies the 'hero' object, handles collision detection ('hero' and wall)
{
// Any tile less then 200 is walkable, anything above is not.
// No need to change this code handle more tiles, just name the tiles a number.
// (not the best way to do this but simple, quick, and easy to do)
if(Key.isDown(Key.LEFT) && canvas.map[hero.y - 1][hero.x] < 200) hero.y--;
else if(Key.isDown(Key.RIGHT) && canvas.map[hero.y + 1][hero.x] < 200) hero.y++;
else if(Key.isDown(Key.UP) && canvas.map[hero.y][hero.x - 1] < 200) hero.x--;
else if(Key.isDown(Key.DOWN) && canvas.map[hero.y][hero.x + 1] < 200) hero.x++;
move();

return;

};
function move():Void // Moves the background and the hero
{
// These three lines handle swapping the tile depths to give the '3D' effect
var d:Number = (hero.y * tiles.height) + (hero.x * tiles.width) + hero.y;
hero.mc.swapDepths(d);
canvas.mc["tile_" + hero.y + "_" + hero.x].swapDepths(d - 1);

// Move the hero in the opposite direction the environment moves
hero.mc._x = (tiles.width / 2) * (hero.y - hero.x) + offset.x;
hero.mc._y = (tiles.height / 2) * (hero.y + hero.x) + offset.y;

return;

};
function initplayer():Void // Self-expalanatory
{
var d:Number = (hero.y * tiles.height) + (hero.x * tiles.width) + hero.y;

hero.mc = canvas.mc.attachMovie("hero", "hero_mc", d + 1, {_x:hero.x * tiles.width, _y:hero.y * tiles.height});

move();

return;

};
function initmap(map:Array):Void // Render map
{
var map_height:Number = map.length; // Determine height of the map
var map_width:Number = map[0].length; // Determine width of the map

for(var y = 0; y < map_height; y++)
{
for(var x = 0; x < map_width; x++)
{
// Movieclip depth is everything when doing an isometric game
var depth:Number = (y * tiles.height) + (x * tiles.width) + y;

// Attach tile to 'canvas'
var tile:MovieClip = canvas.mc.attachMovie("tile" + map[y][x], "tile_" + y + "_" + x, depth);

tile._x = (tiles.width / 2) * (y - x) + offset.x;
tile._y = (tiles.height / 2) * (y + x) + offset.y;

};

};

return;

};

Newbie - How To Create Chess Game?
Hi there,

I am a newbie who don't know a thing about scripting... However I want to create a simple board game with no AI. It will be as simple as the player will click on the empty area to make a black seed appear, on the next click it will turns white, then on the next click it will turn empty.

Original board:
+++++
+++++
+++++
+++++


Click once:
+++++
+++++
++B++
+++++

Click again:
+++++
+++++
++W++
+++++


Click again:
+++++
+++++
+++++
+++++

Click click click click....
+++++
++BB+
+BBB+
++B++

Click click ....
+++++
++BW+
+BWB+
++B++

Click ....
+++++
++BW+
+B+B+
++B++


i hope you can understand from the draft above... Thats mean the game does not need to process all the rules in the game, but the player will play the game with the rules he knows.

Please help!

Flash MX Puzzle - Load Movie
New user, lot's of great posts - decided to give this a shot. I have a problem encountered before but will need help in my scenario:

Running a flash movie (created in MX)
movie stops as planned
a user menu is prompted
each menu item is to load a swf movie file
the loaded movie file must appear in the same window as the originator(preferably unload movie on exit and return to the stopped movie for another selection)

I've seen something used like this:

on(release){
loadMovie("my file name here.swf", ....?

What else is needed?
final product will be on cd - all movie files to reside on the cd with the menu movie.

Thanks a mil in advance.

DCA

Flash's Sample Puzzle Program
I'm trying to figure out how the puzzle program-that comes in flash as a sample was created-and I can't figure out how they did the "puzzle pieces" layer-is anyone familiar with it-and knows how to do it?
thank you

Somone Reply (yahoo Chess Booster)
i need a yahoo chess booster, if you happened to have one for free i would appreciate it, please send me an email, circleofpawns@yahoo.com, or yahoo message me thanks alot please reply someone, i will do what i can for you in return

MX 2004(AS2)Error With Actionscript In Flash Puzzle
Statement must appear within on/onClipEvent handler varoffsety = 0
I was trying to follow a tutorial by the book, which did not mention using any of the "on" commands
the tutorial can be found here:
as a .doc
google cahced as HTML(no pics)

Any suggestions?
based off of the tutorial, should I use onClipEvent and then which code?

I Need A Good Scripter To Help Me Out To Help Me With A Puzzle Flash Game
I just need a good coder to make a code for my game , i have already got everything for the game, i even have a sample script that you could work off of , somone tryed to dump me on the project and take all the credit for himself so i need to do it fast. Please respond or email me at rindotheraven@yahoo.com

Build A Video Jigsaw Puzzle In Flash
This is an article discussion thread for discussing the SitePoint article, "Build A Video Jigsaw Puzzle in Flash"

Made A Sliding Puzzle In Flash... Tried To Use ActionScript To Align It...
Here's the script I used:

[font color = #0068D0]

function initGame () {
// set the horizontal and vertical distance
// between tiles
tileDist = 54;

// set all tiles in exactly the right spot
for (x=1;x<=4;x++) {
for (y=0;y<=3;y++) {
tile = x+y*4;
_root["tile"+tile]._x = x*tileDist;
_root["tile"+tile]._y = y*tileDist+tileDist;
}
}

// make 100 random but valid moves
for(tilenum=0;tilenum<100;tilenum++) {
do {
// pick a random tile
tile = "tile"+(random(15)+1);
// see if there is an empty space near it
emptySpace = findEmpty(tile);
// keep looping until a tile is found that
// has an empty space near it
} while ( emptySpace == "none" );

// move this tile to the empty space
moveTile(tile,findEmpty(tile));
}
}

// given a tile, see if the empty space is near it
function findEmpty (tile) {
// get location of tile
tilex = _root[tile]._x;
tiley = _root[tile]._y;

// see if there is a tile to the left
if (tilex > tileDist) {
if (!tileThere(tilex-tileDist, tiley)) {
return("left");
}
}

// see if there is a tile to the right
if (tilex < tileDist*4) {
if (!tileThere(tilex+tileDist, tiley)) {
return("right");
}
}

// see if there is a tile above
if (tiley > tileDist) {
if (!tileThere(tilex, tiley-tileDist)) {
return("above");
}
}

// see if there is a tile below
if (tiley < tileDist*4) {
if (!tileThere(tilex, tiley+tileDist)) {
return("below");
}
}

// tiles are in all directions
return("none");
}

// check to see if there is a tile at a certain location
function tileThere (thisx, thisy) {
// loop through tiles
for (i=1;i<=15;i++) {
// see if x matches
if (_root["tile"+i]._x == thisx) {
// se if y matches
if (_root["tile"+i]._y == thisy) {
return true;
}
}
}

// no tile there
return false;
}

// move a tile in a certain direction
function moveTile (tile, direction) {
if (direction == "above") {
_root[tile]._y -= tileDist;
} else if (direction == "below") {
_root[tile]._y += tileDist;
} else if (direction == "left") {
_root[tile]._x -= tileDist;
} else if (direction == "right") {
_root[tile]._x += tileDist;
}
}

// utility function to see which tile the
// player clicked on
function tileUnderMouse () {
for (i=1; i<=15; i++) {
if (_root["Tile"+i].hitTest(_xmouse, _ymouse)) {
return (i);
}
}
}

initGame();
stop();

[/font color]

Why isn't my puzzle aligning properly?

~lafunk~

Resizing Puzzle: Please Flash Movie, Fill The Space Available...
Hello

I'mn trying to get my head around resizing Flash movies when they are embedded in HTML pages.

What I can't seem to achieve is to get the Flash movie to fill the space available.

Here's the problem:

If I make a Flash movie which is 200 x 100 pixels, then embed the published file as an element in an HTML page (where there are many other elements), it won't resize greater than 200x150 if viewed on a large monitor.

I'm making pages for people viewing the material on a wide variety of screen sizes.

Is it possible to achieve this fill-the-space available behaviour in a fluid layout?

Where can I find the controls to do this? (in Flash's publish settings? in the HTML page?)

I'm guessing that there is a solution for it, but I've been hunting, testing, groping and not getting anywhere. Help, please!


RW

How To Make A "puzzle" In Flash?
Hello!

I´m a newbie here and a newbie to Flash. Which is not good in this situation. I need to do something like a "puzzle" out of an image of celebreties. To understand me better, here is a link of what i have in mind:

http://freeweb.siol.net/henriks1/index.htm

This images were made in Photoshop, with layers and stuff, just to demonstrate the situation.

Can i import that .psd file in Flash and define some "onMouseOver" actions (when somebody clicks on a square, so it would dissapear or something similar) on already made layers? Or should i just import the image and do all the stuff in Flash? And do i need to use the timelines or just the (Flash) layers?

I would appreciate any help. Thanks!

How To Make A "puzzle" In Flash?
Hello!

I´m a newbie here and a newbie to Flash. Which is not good in this situation. I need to do something like a "puzzle" out of an images of celebreties. To understand me better, here is a link of what i have in mind:

http://freeweb.siol.net/henriks1/

This images were made in Photoshop, with layers and stuff.

Can i import that .psd file in Flash and define some "onMouseOver" actions (when somebody clicks on a square, so it would dissapears or something similar) on already made layers? Or should i just import the image and do all the stuff in Flash? And do i need to use the timelines or just the (Flash) layers?

I would appreciate any help. Thanks!

Puzzle.fla
HELP! I am completely new, not only to Flash, but to web design also. This actionscript stuff is a foreign language to me. In the puzzle.fla in the Macromedia tutorial, the "OK" button pulses. I see how the animation was built, but where is the instruction to cause it to run? I am out of my league

This Is A Puzzle (pun)
i have been working with this puzzle for a while - can someone help me?

here is the puzzle:
http://www.flashkit.com/movies/Games...2433/index.php

(copy all of the url)

this is what i am trying to do:

1. make the puzzle bigger!
2. make it so it can be random pictures (with a button to reset with a random picture)

thanks for your time guys

Yechiel

(i am using flash mx - hi was done in flash 5)

Puzzle
I found this article in the Flash Tutorial, it describes Ifframeloaded action script for Flash MX,

If Frame Is Loaded (Scene 1, "end")
Go to and Play (Scene 1, 1)
End Frame Loaded

i am currently using Flash 5. How do i overcome this problemo.

Thanks for takin your time reading this.
Help is greatly appreciated. I would also like little bit more info on how to create a preloader if possible.

thanks again.

A Puzzle
Not sure how else to subject title this problem so hopefully you like starting your monday's off with a puzzle...

Bit o' background:
I have a multi-level movie that has 2 ways in...the user is either coming in for the first time or returning to a previously viewed 'page'. Each time the user views a 'page' he triggers code that makes a clip visible. That clip's name as well as the level it's on is dynamic...determined by AS code:


Code:
_level0[holdsVisual][visual]._visible = true;
Everything works fine on the 'user here for 1st time' branch...but the above statement is evalutaing to null on my 'return via bookmark' branch. Here's the puzzle....the variables 'holdsVisual' and 'visual' both return exactly what they should but taken together they ain't got it. That means the most obvious source of problem ... populating/initializing my vars ... works correctly.

When I run this trace from the '1st time' branch:

Code:
trace("visual is: " add visual);
//returned: myVis
trace("holdsVisual is: " add holdsVisual);
//returned: _level41
trace("holdsVisual is: " add _level0[holdsVisual][visual]);
//returned: _level41.myVis
trace("holdsVisual is: " add _level0[holdsVisual][visual]._visible);
//returned true
But when run from the 'resume from bookmark' branch the 2 vars show the correct value but they don't evaluate to anything when used in the '_level0[holdsVisual][visual]' statement:

Code:
trace("visual is: " add visual);
//returned: myVis
trace("holdsVisual is: " add holdsVisual);
//returned: _level41
trace("holdsVisual is: " add _level0[holdsVisual][visual]);
//returned: [blank]
trace("holdsVisual is: " add _level0[holdsVisual][visual]._visible);
//returned [blank]

I've taken great pains to be sure that all the levels have already loaded before the ' _level0[holdsVisual][visual]._visible = true;' is called so i'm at a loss for my next troubleshooting step.

thankx
--steve...

Puzzle?
i'm trying to make a jigsaw puzzle and i dont know how to make the parts join and move as one group if they are placed correctly. can anyone help? ps. am using flash mx

Help With Puzzle
I am trying to build a sliding puzzle. Not for a game just for a navigation system. My trouble is that I don't even know where to begin. I found this:

http://www.flashkit.com/movies/Effec...5043/index.php

That is on the right track, but I don't want to have 1 movie duplicated. I want to have each square be a button to a seperate page, each with its own rollover picture. I guess my question is that even possible. Can I achieve the random movement of that example, with out the duplication of movie clips. Basically start with my pattern on screen and have the boxes move around at random like a sliding puzzle. This is probably extremely confusing, so I will check back and answer any questions you have of me.

Thanks in advance

Here's A Puzzle For Someone...
How would you define setInterval so that depending on which content is loaded into your movieclip, the delayed would be longer or shorter.

For example I have a movie clip with 3 text fields. Each text field loads text from a txt file. This movie clip has an animation (10 frames) and on frame 9 I have the setInterval command that acts as a pause so content can be displayed.

What I am looking to accomplish is using setinterval to, depending on what frame of my movie clip is displayed (some text fields are 2 lines of text others 1)display for a longer or shorter period of time.

I am using this code on frame 9

//
_root.animate = setInterval(_root.playMovieClip, 5000, this);

and I imagine I would just incorporate if then statements

Any takers?

Puzzle
hi guys
can any one help me to do a puzzle just like the sample was in flash 5,
but i want it 9 squares rather than 15 and i want to put a picture on the squares

Puzzle
I got as far as making the pieces, converting to buttons doing the x y thing so they click into place; but then I want to add a click sound, so put another layer on the buttons with a sound; and they don't move with the mouse anymore! also it has a stop in the first frame of the first layer, but I want the player when he has put the puzzle together to go automatically to the next scene. I have put the condition script. I am stuck at making it go ahead. The puzzle image is a house with a window and when assembled I want it to go to same pic but with a person looking out of the window, it's for a birthday card. I hope I have explained what I am trying to do clearly. Found tutorials on making a puzzle but no sound and no final changed scene.

[CS3] Puzzle With If
Hi,
I have made three puzzles, but now I need to add code, so the animation continue after the puzzle is finish.

I already have done some coding for the first one, but it doesn't work :
if ((_root.Puzzle.CercleE._rotation==_root.Puzzle.Cer cleE._rotation+(180,250))
(_root.Puzzle.CercleI._rotation==_root.Puzzle.Cerc leI._rotation+(65,115))
(_root.Puzzle.Centre._rotation==_root.Puzzle.Centr e._rotation+(150,210))){
play;}

For the second I want something similar, but its the frames that will make the animation continue.

For the last I have a whiteboard, and when 5 specific locations will have been hit by the draw, the animation must continue.

Thanks for your help.

Puzzle
Hi there!
I m making a puzzle. I want when i attach the objects to the rt place - a sound will produce like in normal windows game.
If i place the sound in the puzzle piece it plays early n look awkward.
Can anyone help me in this?

Copyright © 2005-08 www.BigResource.com, All rights reserved