Puzzle Grid
I want to take one photo and separate it into SIX 19 3/4 x 19 3/4 prints to put on my wall (together they will make one picture), but there's no easy way to do this in Lightroom or Photoshop CS3. If anyone has any ideas, feel free to send them my way! Otherwise, I think future upgrades should have this option so people can divide one picture into many with whatever individual dimensions they want. Think of the possibilities!!!
I'l just make 6 virtual copies, then get the crop tool and crop each one of the 6 images into the shape and crop I wante d, then export all 7 into photoshop, the original as the reference, then do what you need' lay them out in photoshop if you want them a 6 images or just print them out as 6 different images.
Its not really complicated, its not even complicated.
Its not even a lightroom necessary feature as you are just exporting 6 parts of one image. You could even stack all the 6 + original together for tidyness sake.
Similar Messages
-
http://kirtmarkle.com/slide1.html
http://kirtmarkle.com/
http://kirtmarkle.com/gallery_frameset.html
Above I have included a link to a set of 3 slides I create
this morning in an attempt to better define my site (as well as
links to my Home and Gallery pages for reference):
Slide 1: a flowchart of the “stuff” that makes up
the site:
Red items are “class 1” elements that will not
change
Green items are “class 2” elements which could
change
Blue items are “class 2” elements used for
section-specific navigation
Brown items are “class 3” elements which will
change every page
Slide 2: the elements in their current position on the site.
The white dividers with “150px” and “145px”
are used to mark the current boundaries of the frames-based layout.
Red: graphic images placed inside CSS-P elements absolutely
positioned
Green: navigation bar placed inside CSS-P element absolutely
pos.
Blue: overlapping CSS-P elements with “previous”
and “next” buttons
(typically, there are two such 5x4 grids for each Year
Category)
Slide 3: when any of the Blue CSS-P elements are clicked,
they navigate/animate to their new position above the
“Legend”, hide the other Blue CSS-P elements and reveal
the “Legend” “Viewer”
“previous” and “next” buttons. Clicking the
image inside the “Viewer” cycles through a series of
detailed/zoom views. When the Blue CSS-P element is clicked again,
it navigates/animates to its original position, hiding the
“Legend” “Viewer” “previous”
and “next” buttons while revealing the overlapping Blue
CSS-P elements again. You’ll note, however, that the button
(in this case “D2”) swaps CSS-P element
“D2” to “D2-y” to allow the return
navigation/animation, swapping back once it reaches its original
position.
TASK: create a template containing all the class 1 elements.
Question #1: What should this template be named? Would
“page.html” suffice?
Question #2: Should the Red elements be CSS-P? Would a
navigation bar work better? If so, how does one have two navigation
bars on a page? (I refer to the Green elements)
TASK: Create server-side include files containing all class 2
elements and place them on the template as needed.
Question #3: Which elements are used to build the SSI files?
How many SSI files would need to be built? For example, for the
Green navigation bar, do I create a file with only those five
elements in a table and then save it as an SSI? How are they then
placed correctly on the template (I assume inside the CCS-P
wrapper)? How does the “Gallery” button make them
appear when clicked?
TASK: Insert editable regions to cover the class 3 items,
including the section-specific navigation.
Question #4: The same question with regards to the SSI files
required for the puzzle grid. Is each grid saved as its own SSI?
(Currently, there are nine variations of this 5x4 grid, two for
each navigation bar item except 2007) Or, since each piece is in
its own CSS-P element, does each piece need to be saved as an SSI?
Do the “previous” and “next” buttons belong
in this class 2 section-specific navigation elements?
Question #5: In the “Viewer” I cycle zoom levels.
Is a separate page to be built for each zoom level, as I have
currently done?
[Of course, I realize I’m asking for a LOT of
information. I don’t know if this is beyond the scope of this
board or if I’m overstepping my bounds by asking too many
questions. However, I believe if I can have the answers it will go
a long way towards my understanding of something that seems
essential to web design. And as I hope to make this a profession
when my skills improve, I need to learn the BEST methods for
executing the work. I apply the same attitude towards my work as an
artist, animator and, yes, word processor. I desire to be just as
proficient in the field of web design and will continue to work has
hard as necessary until I achieve that goal. The assistance
I’ve received on this board has been most helpful towards
that end.]I am unable to spend the kind of time this would really
require, but to
say one thing: rethink the use of Absolutely Positioned
elements. There
has been much written here on this subject which you night
want to
google. But they will be more misery than you might imagine.
As a
general rule, use Divs instead.
E. Michael Brandt
www.divaHTML.com
divaGPS : you-are-here menu highlighting
divaFAQ : FAQ pages with pizazz
www.valleywebdesigns.com
JustSo PictureWindow
JustSo PhotoAlbum
KirtMarkle wrote:
>
http://kirtmarkle.com/slide1.html
>
>
http://kirtmarkle.com/
>
>
http://kirtmarkle.com/gallery_frameset.html
>
>
> Above I have included a link to a set of 3 slides I
create this morning in an
> attempt to better define my site (as well as links to my
Home and Gallery pages
> for reference):
>
> Slide 1: a flowchart of the ?stuff? that makes up the
site:
> Red items are ?class 1? elements that will not change
> Green items are ?class 2? elements which could change
> Blue items are ?class 2? elements used for
section-specific navigation
> Brown items are ?class 3? elements which will change
every page
>
> Slide 2: the elements in their current position on the
site. The white
> dividers with ?150px? and ?145px? are used to mark the
current boundaries of
> the frames-based layout.
> Red: graphic images placed inside CSS-P elements
absolutely positioned
> Green: navigation bar placed inside CSS-P element
absolutely pos.
> Blue: overlapping CSS-P elements with ?previous? and
?next? buttons
> (typically, there are two such 5x4 grids for each Year
Category)
>
> Slide 3: when any of the Blue CSS-P elements are
clicked, they
> navigate/animate to their new position above the
?Legend?, hide the other Blue
> CSS-P elements and reveal the ?Legend? ?Viewer?
?previous? and ?next? buttons.
> Clicking the image inside the ?Viewer? cycles through a
series of detailed/zoom
> views. When the Blue CSS-P element is clicked again, it
navigates/animates to
> its original position, hiding the ?Legend? ?Viewer?
?previous? and ?next?
> buttons while revealing the overlapping Blue CSS-P
elements again. You?ll
> note, however, that the button (in this case ?D2?) swaps
CSS-P element ?D2? to
> ?D2-y? to allow the return navigation/animation,
swapping back once it reaches
> its original position.
>
> TASK: create a template containing all the class 1
elements.
>
> Question #1: What should this template be named? Would
?page.html? suffice?
>
> Question #2: Should the Red elements be CSS-P? Would a
navigation bar work
> better? If so, how does one have two navigation bars on
a page? (I refer to
> the Green elements)
>
>
> TASK: Create server-side include files containing all
class 2 elements and
> place them on the template as needed.
>
> Question #3: Which elements are used to build the SSI
files? How many SSI
> files would need to be built? For example, for the Green
navigation bar, do I
> create a file with only those five elements in a table
and then save it as an
> SSI? How are they then placed correctly on the template
(I assume inside the
> CCS-P wrapper)? How does the ?Gallery? button make them
appear when clicked?
>
>
> TASK: Insert editable regions to cover the class 3
items, including the
> section-specific navigation.
>
> Question #4: The same question with regards to the SSI
files required for the
> puzzle grid. Is each grid saved as its own SSI?
(Currently, there are nine
> variations of this 5x4 grid, two for each navigation bar
item except 2007) Or,
> since each piece is in its own CSS-P element, does each
piece need to be saved
> as an SSI? Do the ?previous? and ?next? buttons belong
in this class 2
> section-specific navigation elements?
>
> Question #5: In the ?Viewer? I cycle zoom levels. Is a
separate page to be
> built for each zoom level, as I have currently done?
>
>
> [Of course, I realize I?m asking for a LOT of
information. I don?t know if
> this is beyond the scope of this board or if I?m
overstepping my bounds by
> asking too many questions. However, I believe if I can
have the answers it
> will go a long way towards my understanding of something
that seems essential
> to web design. And as I hope to make this a profession
when my skills improve,
> I need to learn the BEST methods for executing the work.
I apply the same
> attitude towards my work as an artist, animator and,
yes, word processor. I
> desire to be just as proficient in the field of web
design and will continue to
> work has hard as necessary until I achieve that goal.
The assistance I?ve
> received on this board has been most helpful towards
that end.]
>
> -
I have written the code to take a text file (from a command line argument) holding the information for the word find grid and also the file holding the words to be found in the grid. The whole find the two files and drop them into memory works all peachy keen but the rest of the program doesn't work for some oddball reason that I can't figure out (and the TAs are useless as usual). I dropped in print statements all over the world to see why it's not working but all I can see is that I hit the method SolvePuzzle and don't actually get any further than the print statement.
Just so you know, all of the methods in the program do work as I wrote them for another version of the same puzzle...it was just that I had to change the program to run with command line arguments instead of asking the user to input the file names. Please, can someone take a look at this monstrous mess and tell me how on earth I get the stupid thing to output correctly?
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
// WordFind class interface: solve word search puzzle
// CONSTRUCTION: with no initializer
// ******************PUBLIC OPERATIONS******************
// int solvePuzzle( ) --> Print all words found in the
// puzzle; return number of matches
public class WordFind
* Constructor for WordFind class.
* Prompts for and reads puzzle and dictionary files.
public WordFind(String fname, String fname2 ) throws IOException
loadPuzzle(fname, fname2);
//solvePuzzle( );
* Routine to solve the word search puzzle.
* Performs checks in all eight directions.
* @return number of matches
public int solvePuzzle( )
int matches = 0;
for( int r = 0; r < rows; r++ )
for( int c = 0; c < columns; c++ )
for( int rd = -1; rd <= 1; rd++ )
for( int cd = -1; cd <= 1; cd++ )
if( rd != 0 || cd != 0 )
matches += solveDirection( r, c, rd, cd );
System.out.println("testing to see if we get BBOOOOO.");
return matches;
* Search the grid from a starting point and direction.
* @return number of matches
private int solveDirection( int baseRow, int baseCol, int rowDelta, int colDelta )
System.out.println("testing to see if we get this far part 2.");
String charSequence = "";
int numMatches = 0;
int searchResult;
charSequence += theBoard[ baseRow ][ baseCol ];
for( int i = baseRow + rowDelta, j = baseCol + colDelta;
i >= 0 && j >= 0 && i < rows && j < columns;
i += rowDelta, j += colDelta )
charSequence += theBoard[ i ][ j ];
searchResult = prefixSearch( theWords, charSequence );
if( searchResult == theWords.length )
break;
if( !((String)theWords[ searchResult ]).startsWith( charSequence ) )
break;
if( theWords[ searchResult ].equals( charSequence ) )
numMatches++;
System.out.println( "Found " + charSequence + " at " +
baseRow + " " + baseCol + " to " +
i + " " + j );
return numMatches;
* Performs the binary search for word search.
* @param a the sorted array of strings.
* @param x the string to search for.
* @return last position examined;
* this position either matches x, or x is
* a prefix of the mismatch, or there is no
* word for which x is a prefix.
private static int prefixSearch( Object [ ] a, String x )
System.out.println("testing to see if we get this far part 3.");
int idx = Arrays.binarySearch( a, x );
if( idx < 0 )
return -idx - 1;
else
return idx;
private void loadPuzzle(String fname, String fname2)
String oneLine;
try {
// open file for reading
wsFile = new BufferedReader(new FileReader(fname));
// get the row and columns
oneLine = wsFile.readLine();
List puzzleLines = new ArrayList( );
if( ( oneLine = wsFile.readLine( ) ) == null )
throw new IOException( "No lines in puzzle file" );
int columns = oneLine.length( );
puzzleLines.add( oneLine );
while( ( oneLine = wsFile.readLine( ) ) != null )
// if( oneLine.length( ) != columns )
// System.err.println( "Puzzle is not rectangular; skipping row" );
// else
puzzleLines.add( oneLine );
int rows = puzzleLines.size( );
theBoard = new char[ rows ][ columns ];
Iterator itr = puzzleLines.iterator( );
for( int r = 0; r < rows; r++ )
String theLine = (String) itr.next( );
theBoard[ r ] = theLine.toCharArray( );
System.out.println(theBoard[r]);
//BufferedReader wsFile2;
//ring oneLine;
try {
// open file for reading
wsFile2 = new BufferedReader(new FileReader(fname2));
List words = new ArrayList( );
String lastWord = null;
String thisWord;
while( ( thisWord = wsFile2.readLine( ) ) != null )
// if( lastWord != null && thisWord.compareTo( lastWord ) < 0 )
// System.err.println( "Dictionary is not sorted... skipping" );
// continue;
words.add( thisWord );
lastWord = thisWord;
theWords = words.toArray( );
System.out.println(words);
catch (FileNotFoundException e)
System.out.println("File not found.");
catch (IOException e)
System.out.println("IO error.");
//solvePuzzle();
// Cheap main
public static void main( String [ ] args )
String fname = args[0];
String fname2 = args[1];
// String fname = "cahsiers.txt";
//String fname2 = "cashwords.txt";
WordFind p = null;
try{
System.out.println(args[0] + " " + args[1]);
p = new WordFind(fname, fname2);
catch (IOException e)
System.out.println("IO error.");
System.out.println( "Solving..." );
p.solvePuzzle( );
private char [][] theBoard;
private int rows, columns;
private Object [] theWords;
private int numWords;
private BufferedReader wsFile;
private BufferedReader wsFile2;
}Sample output - notice the only output are the test print statements at the moment
cashiers.txt cashwords.txt
BSERENITYNZEKYI
ZBREAMOANARHECM
BBASSWGITOOLKAY
QSCENERYTNLCYMM
TUORTIASEAUBDPA
JZIVVVYYVDXOWSE
FSSENREDLIWAMIR
FIRSEHRSPNLTLTT
CLSCUILRTLYKAES
XAOHQKFOEFYLUSR
ORBGIIWYDSAQLEM
GEYITNEFPGOROEA
EKALNGGAXRERCGJ
TEKRAMSGCAFETOY
[ANTIQUE, BASS, BOAT, BREAM, CABIN, CAFE, CAMPSITE, CRAFTS, CROQUET, DOWNTOWN, D
UCK, FISHING, GEESE, GOLF, GROCERY STORE, HIKING, HONEY, INN, JAM, JELLY, LAKE,
LODGE, MARKET, MOUNTAIN, POND, PRESERVES, RELAXATION, RESORT, RIVER, SCENERY, SE
RENITY, SPA, STREAM, TROUT, VACATION, VALLEY, VIEW, WALLEYE, WILDERNESS, ]
Solving...
testing to see if we get BBOOOOO.
Press any key to continue...
Thanks for all your help.
WulfYour problem is the duplicate declarations of rows/columns
class fields
private int rows, columns;
and in loadPuzzle()
int columns = oneLine.length( );//remove int
int rows = puzzleLines.size( );//ditto
the 'int' makes rows/columns local to loadPuzzle(), leaving the class fields rows/colums = 0
the for loops of solvePuzzle() are not executed because rows = 0
also, in loadPuzzle() you seem to have an extra readLine() at the top. This could be by design, but you will lose the first line
// get the row and columns
oneLine = wsFile.readLine();//<--------------
List puzzleLines = new ArrayList( ); -
Java program for Sudoku puzzle
I basically need to list the possible solutions to every blank space in a sudoku puzzle. I can make my puzzle in a .txt file and then just run that in my program.
Here's an example of a line I would create in my.txt file:
5 3 _ _ 7 _ _ _ _ (So possible solutions for the third spot would be 1,2, or 4. Then you'd continue down the line)
So to get started I need to create a 9x9 array to store my .txt file. Read in my input one line at a time, then use a StringTokenizer to break apart each value in the line. So basically I need help starting that beginning part of my program. I'm a pretty slow learner with this stuff so a little help getting me started helps out a lot, then I tend to catch on to what is going on and I can finish up from there.
Thanks GuysI still need to loop through and rows, columns, and grid to find possible solutions but I didn't ask for help on that. I know how to set up a 2d array, but when I set it up it's not reading out my .txt file. I was going to use 'char' in my array, but I don't know how I'm going to read from that .txt file, charAt I was thinking. Then for the stringTokenizer I'm really confused on how I would break apart each value from my .txt file.So, it looks like you're panicking and trying to do everything all at once. Maybe that's why you aren't getting anywhere. You need to start small. Don't try to write the whole program in one go, but instead start with a simpler program that doesn't do the whole business. In fact, start with a really simple program that does just one thing.
What's the first thing that's necessary? You have to read your input data from a file, one line at a time. (Yes, then you have to break each of the lines into pieces, but don't get ahead of yourself.) So write a little program that only reads your input file one line at a time. To check that it's working, just write each of the lines out to the console.
Then when that's working, add another feature. That would be splitting the lines into pieces. Again, for now just write the pieces out to the console to check that it's working. Then carry on from there. -
Installing of Grid Control failed at Repository Creation Assistant
I have a "clean" Windows Server 2003 machine (formatted hard disk, installed the OS and applied all service pack and critical system updates). I was trying to install Oracle Grid Control 10.1 for Windows.
Everything went OK until it reached the "Configuration Assistants" step. The "Enterprise Manager Repository Creation Assistant" step was failed. I looked into the log file and saw messages like this:
-------------------- (start) -------------------------
"'stty' is not recognized as an internal or external command,
operable program or batch file."
Getting temporary tablespace from database...
Could not connect to SYS/(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=76.44.2.169)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=emrep.44.2.169))): ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach)
Repository Creation Failed
Repository Creation Assistant Failed
-------------------- (end) -------------------------
This got me puzzled. What problem could this be?
I realized that I was using DHCP, and I am now in the process of installing a loopback network adapter. But is there any other area I should check too?
DeecayThis ierror mean listener is not running ,start the listener and try again.
-
One question about Pricing and Conditions puzzle me for a long time!
One question about Pricing and Conditions puzzle me for a long time.I take one example to explain my question:
1-First,my sale order use pricing procedure RVAA01.
2-Next,the pricing procedure RVAA01 have some condition type,such as EK01(Actual Costs),PR00(Price)....,and so on.
3-Next,the condition type PR00 define the Access Sequences PR00 as it's Access Sequences.
4-Next,the Access Sequences PR00 have some Condition tables,such as:
table 118 : "Empties" Prices (Material-Dependent)
table 5 : Customer/Material
table 6 : Price List Type/Currency/Material
table 4 : Material
5-Next,I need to maintain Condition tables's Records.Such as the table 5(Customer/Material).I guess the sap would supply one screen for me to input the data of table 5.At this screen,the sap would ask me to select one table,such as table 5.When I select the table 5,the sap would go to the screen to let me input the data of table 5.But when I use the T-CODE VK31 or VK32 to maintain Condition tables's Record,I found it's total different from my guess:
A-First,I can not found one place for me to open the table,such as table 5,to let me input the data?
B-Second,For example,when I select the VK31->Discounts/Surcharges->By Customer/Material,the sap show the grid view at the right side.At the each line of the grid view,you need to select the Condition Type at the first field.And this make me confused very much.Why the sap need me to select one Condition Type but not the Condition table?To the normal logic,it ought not to select Condition table but not the Condition Type!
Dear all,I'm a new one in sd.May be this is a very stupid question.But it did puzzle me for a long time.If any one can explain this question in detail and let me understand the concept,I will appreciate him/her very much.Thank you.Hi,
You said that you are using the T.codes VK31 or VK32.
These transaction codes are used to enter condition records for standard condition types. As you can see a grid left side having all the standard condition types like price, discounts, taxes, frieghts.
Pl check using T.code VK11 OR VK12 (change mode)
Here you can enter the required condition type, in the intial screen. (like PR00, MWST, K004, K005 .....etc)
After giving the condition type, press enter or click on Combinations icon on top of the screen. Then you can see all the condition tables which you maintained for that condition type. Like as you said table 118, table 5, table 6 and table 4.
You can select any table and press enter, then you can go into the screen in which you have all the field cataglogues you maintained for that table. For example you selected combination of Customer/Material (table 5) then after you press enter then you can see customer field on top, and material fields.
You can give all the required values and save the conditon record.
Hope this is clear.
REWARD IF HELPFUL.
Regards,
praveen -
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. -
Export Crystal Report to Excel with Grids
Can anyone tell me how or if it's possible to include the grid lines when exporting from Crystal Reports (version 10) to Excel? I am exporting as "data only" because I need to include field properties (color, bold, etc.). Because of this, I don't see a "Show Gridlines" option on the export. On the Crystal report, I have selected both single line and double line borders for each field on the report, but it's not transferring over to Excel.
Thanks for any help you can provide.I did adjust the col. widths, but on larger col. headings, the text was chopped off. I could get around this by making the field wider on the Crystal report. With having so many cols., this was an issue. And if the detail wasn't the same width as it's corresponding header, the report was not pretty.
This report was an evolution with me trying different things to get everything to fit in the designer until I finally discovered the Image Writer. By exporting as Data Only, it doesn't matter how wide the heading/field is in the designer because the entire text exports. Then I just select the entire worksheet and adjust the col. alignment so that everything shows. I had to play around with things to get my colors and fonts to export - but the grids were the only remaining piece to the puzzle.
As it turns out, the users are happy with the end result without the grids. They can add them manually if they so choose.
Thanks -
How to make my own grid and perform a "snap to grid" effect?
Hi! I am a newbie in flash and I am trying to create a puzzle like game (a chinese puzzle game called tangram). I am wondering what kind of functions should I use to create a "triangular" grid i.e. something similar to this ? http://img40.imageshack.us/img40/2259/triangulargrid.jpg. What should I do to make the movie clips to perform the "snap to grid" effect to this grid?I have tried to draw my own grid and used the "cacheAsBitmap" function to implent it, however it doesnt seems to be working. Is there any suggestions or tutorials to this problem? Thank you very much.
Well, the project you are taking is not a simple one. It requires quite an experience with AS3. It is not a few lines of code but an understanding of Flash display list model and how objects can interact. In addition, there is no a single solution but rather wide array of possible approaches depending on use case.
To illustrate, the code below draws a mesh that replicates the image in your first post. Do you think that this is enough from the standpoint of your AS3 knowledge to get you started?
This code needs Flash 10:
var side:Number = 400;
var s:Sprite = new Sprite();
var g:Graphics = s.graphics;
g.lineStyle(3);
//g.beginFill(0xFF8000);
g.drawTriangles(
Vector.<Number>([ 0, 0, side * .5, 0, side, 0,
side * .25, side * .25, side * .75, side * .25,
0, side * .5, side * .5, side * .5, side, side * .5,
side * .25, side * .75, side * .75, side * .75,
0, side, side * .5, side, side, side
Vector.<int>([
0, 1, 3,
1, 2, 4,
0, 3, 5,
1, 3, 6,
5, 3, 6,
1, 2, 4,
1, 4, 6,
2, 4, 7,
6, 4, 7,
5, 6, 8,
5, 8, 10,
6, 8, 11,
10, 8, 11,
6, 7, 9,
6, 9, 11,
7, 9, 12,
9, 11, 12
addChild(s); -
A puzzle game using Flash Builder Burrito
I used the Flash Builder Burrito and AIR 2.5.1 to build a simple puzzle game for the Android market. It is called 'Ramanujam's Magic Square' and is live. Performance on Galaxy S is as good at it can be with a native app. considering that the puzzle is about number crunching.
Here is the pic:it's ok, I figured it out.
just using Flash builder 4.5 grid containers -
On my iMac, I have created a Sukoku grid using a Table within Pages. But I can't find out how to make some more lines more bold to create the three-by-three boxes. I have read relevant posts here but not found the answer.
If you are actually on OS X 10.9 and using Pages v5, then the following approach will visually identify Sudoku groups:
Make a 9 x 9 table, and using the Arrange tab, size it to 6.5 x 6.5 in.
Select the upper-left 3x3 group, and click the Cell tab.
Click Border, and set it to the thickness desired for the group boundary
Pick the color of your line in the adjacent color well, or color chooser globe
Click the box with the leaning paint brush on a line icon
Click the icon that represents a complete box outline
Your first Sudoku group is now outlined.
Repeat for each new 3x3 Sudoku group
Click the following to enlarge. For challenging Sudoku play. Or an excellent teaching/play tool, get Sudoku Daily from the OS X App Store. The in-app, paid update version allows you to key in a puzzle from another source, and then walk you through solving it. Also available for iPhone/iPad. I use OS X and IOS versions. -
What determines the origin point of the grid lines in Illustrator?
I know that I can control the origin of the rulers, but when I change that, the grid lines do not change, which is quite annoying. I know also that I can change the color and major and minor intervals in the gridlines.
But how do I change the origin?
Puzzled... Any tips would be really appreciated!I know that I can control the origin of the rulers, but when I change that, the grid lines do not change, which is quite annoying.
Depends on which version of Illustrator you are using.
In recent versions turn on global rulers, then change the rulers origin in order to position the grid. -
I'm designing a Sudoku Solver program and I need to represent the grid. How would you suggest I design it? Using buttons, labels, Table? What would you suggest?
Custom components in a GridLayout. When I solve a sudoku by hand, I notate the cell with the numbers I've eliminated, so if I jot:
..This means I've eliminated 1, 3, 5, 6, 7 and 8. You can define a custom component to draw these dots.
(This is assuming you want your GUI to be interactive -- allow a user to try to solve the puzzle, or show how your algorithm solves it, step by step.) -
Ubiquitous Information:
Adobe Illustrator CS6 v. 16.0.3 (32-bit)
Win XP sp3 OS
I have a vector art file of puzzle pieces (connected as though the puzzle has been assembled) that I would like to use with an image file. If I wanted the entire image to appear finished, I would simply place this vector layer above the image layer and voila...finished puzzle. However, I would like to use the 3D effects in Illustrator to make it appear that some of the pieces are not yet seated into place. I know how to do this with the puzzle vector art, but how do I attach or clip the image layer to it so that it rotates, bevels, etc. with the individual puzzle pieces I want to treat in this manner?
Any assistance will be GREATLY appreciated!!
Susan ShermanBob,
Let me is if I'm interpreting the mud correctly.
Let's say that each puzzle piece is 3/4" square. What you are recommending that I do is, in Photoshop, crop a 1" square piece of my image that corresponds in the "grid" to the puzzle piece representing it. Then, in Illustrator, I create a clipping mask for that image square that corresponds with the puzzle piece edge it should resemble, thereby "hiding" the extra 1/4" of each piece.
IF I got that right, my next question is...how do I get the edge vector piece and the image piece to remain together when I apply the 3D effect?
Thanks for softening the blow as I bang my head! My "cool" effects projects seem to always turn out to be so much more difficult than I imagine.
Susan -
I'm working on designing my first website and I'm using CS6 Fluid Grids. I've come across my first totally puzzling problem. I want to narrow the width of a fluid grid from 100% to around 67% which should create two columns. As I'm resizing the grid from right to left, I can see the percentages and column numbers going down but as soon as I release the mouse, it always goes back to a width of 100%. I can't resize any of my fluid grids, including the footer.
The goal is to have the text in the grid below this one to move up and fill up the right 1/3 of the screen, giving me two columns. Doing this is incredibly easy and seamless in the video tutorials. I think this is one of best features of fluid grids but obviously I'm doing something wrong.Some tips.
#1 Do not tamper with FluidGrid.css or boilerplate.css code. FGLayouts are very temperamental and even experienced coders can muck things up in a hurry.
#2 Use a separate external stylesheet for your content styles. If something breaks, you'll know where to look for the problem.
#3 Build your Mobile layout first because everything else is based on that primary layout. Then build your Tablet and finally your Desktop. Don't add any content to the page until you've perfected the Layouts in all 3 devices.
#4 When you're completely satisfied with your layout. SaveAs Template. Add Editable Regions for content that will change from page to page. Save & close your Template.
#5 Use the Template to spawn your site pages by going to New > Page from Template and hit Create. SaveAs index.html. Repeat for your other site pages.
Don't be discouraged. The first time I used FGLayouts, I had to start over 9 times before I got an acceptable layout.
Nancy O.
Maybe you are looking for
-
What is your theory on what happened with ASUS Transformer Prime and BB?
This is my theory: First preorder batch 11/22: BB opened up for preorders based on expected date of anticipated 12/9 ship date. The buyers at BB that orders from vendors did not buy any preorder stock from ASUS in Champagne on first order. I gotta b
-
Sender Mail Adapter - CC list limitation
Hi All, Is there a way to receive the CC list in the MailPackage in stead of receiving it in the message Header? If the above is possible, please specify the sender mail channel configurations required and the changes required to the standard SAP Mai
-
Connecting to Oracle 8i R2 via iiop
Hi I am trying to connect to oracle 8i release 2 from a win nt 4 sp5 client. when I run sess_sh I receive the following error message. Exception in thread main org.omg.CORBA.COMM_FAILURE: java.net.SocketException: Connection shutdown: JVM_recv in soc
-
Uninstalling Photoshop Elements 8.0
I'm trying to uninstall photoshop elements version 8.0 with 11.0. When I try to uninstall photoshop elements 8.0. It won't uninstall. I get an error message that reads "error message #1316; a network error occurred while attempting to read from th
-
Dull colors on specified paper sizes
I have an HP Photosmart printer D7260. I use only HP premium plus photo paper. when I print photos from my pc using borderless 4x6 or borderless 5x7 paper, the colors are dull and dark; however when i print the very same photos onto 8x11 1/2 paper, t