RE: [Flashcoders] Crossword generator advice

2009-06-02 Thread Paul Steven
Sorry to drag this one out but I have one last question. I implemented the recursive solution as Paul Andrews and Charles suggested however I find that it can take up to 8 minutes to generate a solution (which incidentally is pretty much the same amount of time my non recursive implementation take

RE: [Flashcoders] Crossword generator advice

2009-06-02 Thread Paul Steven
Here is a link to the crossword generator in its current state. http://www.mediakitchen.co.uk/crossword.html Cheers Paul -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Steven Sent: 02 June 2009 10:2

Re: [Flashcoders] Need beta testers!

2009-06-02 Thread Sidney de Koning
No one is interested? That really breaks my heart ;) You dont have to check it out in SVN, just browse the source and give me feedback, code wise, structure wise, best way/different way to parse files, comments, suggestions etc I want to learn dammit ;) Greets Sid On May 27, 2009, at 9:55

Re: [Flashcoders] Crossword generator advice

2009-06-02 Thread Paul Andrews
Paul Steven wrote: Here is a link to the crossword generator in its current state. http://www.mediakitchen.co.uk/crossword.html Cheers Paul -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Steven Se

RE: [Flashcoders] Crossword generator advice

2009-06-02 Thread Paul Steven
Thanks Paul for your reply. You may be right about my placement checker. What I currently do is as follows: Starting with first char of word I want to place, loop through the characters of each word that is already on the puzzle and see if a match can be found. If a match is found then I calculat

Re: [Flashcoders] Crossword generator advice

2009-06-02 Thread Paul Andrews
Off the top of my head.. For a horizontal overlap of a word, the new word can only be placed in a very few places - no further left than the leftmost position of the wordlaready placed and no further right than the new word can be placed without going off the grid, or not overlapping the right

Re: [Flashcoders] Crossword generator advice

2009-06-02 Thread Karl DeSaulniers
You may want to also set something to read how many of those letters are in the word that match the letter your using in the one your placing. This may give you a few more options on placement. Karl On Jun 2, 2009, at 6:34 AM, Paul Andrews wrote: Off the top of my head.. For a horizontal

[Flashcoders] removing dynamically created movie clips

2009-06-02 Thread Gustavo Duenas LRS
Hi I have movie clips, that are created one I click a button, I'd like to know how could I remove then, something to put in the buttons, problem is when I try to remove the movieclip from the stage(I put the orders en every single button I have there), it says that is not created yet, there i

Re: [Flashcoders] removing dynamically created movie clips

2009-06-02 Thread Matt Gitchell
if (container.contains(itemToRemove)){ container.removeChild(itemToRemove); }; On Tue, Jun 2, 2009 at 8:45 AM, Gustavo Duenas LRS < gdue...@leftandrightsolutions.com> wrote: > Hi I have movie clips, that are created one I click a button, I'd like to > know how could > I remove then, something to

Re: [Flashcoders] removing dynamically created movie clips

2009-06-02 Thread Glen Pike
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObjectContainer.html#getChildByName() Gustavo Duenas LRS wrote: Hi I have movie clips, that are created one I click a button, I'd like to know how could I remove then, something to put in the buttons, problem is when

Re: [Flashcoders] removing dynamically created movie clips

2009-06-02 Thread Gustavo Duenas LRS
in this case what is container? is stage.? like this if(stage.contains(contactWindow)){ stage.removeChild(contactWindow); } is like this, if not please explain me what this container is about. Gustavo On Jun 2, 2009, at 12:07 PM, Matt Gitchell wrote: if (container.contains(itemToRemove)){

Re: [Flashcoders] removing dynamically created movie clips

2009-06-02 Thread Gustavo Duenas LRS
Hi Glen, thanks do you think can I use: stage.removeChildAt(0); gustavo On Jun 2, 2009, at 12:08 PM, Glen Pike wrote: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ display/DisplayObjectContainer.html#getChildByName() Gustavo Duenas LRS wrote: Hi I have movie clips, that a

Re: [Flashcoders] removing dynamically created movie clips

2009-06-02 Thread Matt Gitchell
The container would be the stage in that instance, yes. I used it because Stage extends DisplayObjectContainer, and you could use that chunk of code for any DisplayObjectContainer (MovieClip, Sprite) as well. I should also mention that we're talking AS3. --Matt On Tue, Jun 2, 2009 at 10:38 AM, Gu

Re: [Flashcoders] removing dynamically created movie clips

2009-06-02 Thread Gustavo Duenas LRS
sure Matt, I'm using as3...:) also can I use stage.removeChildAt(0); since the newly created movieclip instance appears always on 0 or at least I think based on the link Glen pike send me about. Gustavo On Jun 2, 2009, at 2:02 PM, Matt Gitchell wrote: The container would be the stage in t

[Flashcoders] Fast color-transformation over MovieClip with cacheAsBitmap

2009-06-02 Thread Pavel Repkin
Hey! I have a very complex vector symbol on the Stage - background_mc . I have set background_mc.cacheAsBitmap = true. This turns background to bitmap and makes Stage repaint fast. Every frame the background light changes. I use the following code to alter the light. (new Color(background_mc)).s