Actionscript 3 :: Minimax With Alpha-beta Pruning, Getting The Result?

Oct 26, 2011

I have followed the pseducode on the wikipedia article, and I think I got it working. However, it returns the score, and that doesn't exactly help when I want to know what move I want to make. I tried what I think would be a way to get the best move, but I don't think it is working as when I actually try to play against it (chess), the AI makes somewhat retarded moves with a depth level of 3.

Here is my function:

public static function alphaBeta(node, depth, alph, beta, team, tellTheMove:Boolean = false):* {
var pointer:ChessMove;
if (depth == 0) {
return scoreOf(node);

[code]...

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Meaning Of The Word Beta?

Mar 21, 2011

On the following language reference page [URL] the word Beta is associated with the AnimatorFactoryBase class. Can one presume that the class is not yet fully functional?When I right click on a functional motion tween in Flash and select "Copy Motion as Actionscript 3.0", the code does NOT work at all (no errors though).

View 1 Replies

Flash :: Develop For Player 10.1 Beta?

Dec 31, 2009

I've been waiting for the day that flash gets access to raw audio data. That day is now, but i'm not sure how to get 10.1 working in CS4. I have 10.1 installed and a function bound to the mic's "SampleDataEvent.SAMPLE_DATA" but my "micSampleData" function is not being called.

var mic = Microphone.getMicrophone();
Security.showSettings(SecurityPanel.MICROPHONE);
mic.setUseEchoSuppression(true);

[code]........

View 1 Replies

Professional :: IOS 5 Beta Publishing Doesn't Work?

Jun 17, 2011

I recently updated my flash to cs5.5 and my iPad (1g) to the IOS 5 beta. Since then I haven't been able to publish my apps to any IOS device. The apps run in adl and as swf on my macbook pro, but on my iPad (IOS 5) and iPhone 3gs (IOS 5) they just start up and freeze at the stage. I use a loader to load a soundfile and image to the stage right at the start but they just don't show up.

The weirdest thing is that my colleague uses cs5.5 on windows and cs5 on a mac to publish to the same iPad and his apps do work! When I tried to publish on another mac in cs5 I just got the same problem as before.

I hope someone knows a solution for this problem because it is getting on my nerves.

View 3 Replies

ActionScript 2.0 :: Login - Beta Tester's Browser

Oct 14, 2009

When I log in with the fla file, everything is ok. When I log in with the swf file which is on the server, there is no success with

Code:
my_lv = new LoadVars();
my_lv .onLoad = function(success) {
if (success) {
How can it work with the fla and not with the swf.

Even more mysterious : on my web host browser, everything works ok. But not on my beta tester's browser.

View 3 Replies

ActionScript 3.0 :: Uninstalling Flash Player 10.1 Beta?

Nov 24, 2009

I installed the Beta of Flash Player 10.1 a few days ago, and since then I have had NOTHING but problems.

I ran the add remove programs, as well as the "uninstall" exe file from Adobe, but there is still a Macromed file in the wow64 directory of my computer, and when I try and reinstall "Flash player" for WINDOWS i receive a 16155 error (previous version installed)

I CAN install the Chrome/FireFox version of Flash, which runs fine, but when I try and run SWF Files, or install Captivate 4, I receive an error message pertaining to the version of flash installed...

View 2 Replies

ActionScript 2.0 :: Looking For Beta Testers For Flash Backend Tool?

May 8, 2009

If there are any flash coders out there who love the idea of being able to create the backend for your flash app in about, oh say, 10 minutes.

At this stage I'm looking for about 10 beta testers with varying backed requirements, from simple to complex.

This would perfectly suit people who love to tinker around and try out new stuff - however it will require electronic signing of an nda - basically just sending an email saying that you won't blab about it until it's ready for final release! [url]...

View 2 Replies

Professional :: Adobe Flash Player 10.1 Beta For Mobile?

May 27, 2010

I'm newbie at forum , if I opened this topic to the wrong place ; please , excuse me I'm an HTC HD2 user. nd I noticed that ; Flash 10.1 support to the Android OS had come to HTC Google Nexus One , with "Froyo" update. I watched some videos at Youtube , about "Open Screen Project" (that Adobe leads) . And Adrian Ludwig(at Flash team) was using HTC HD2 and showing the Flash 10.1 at phone. I'm thinking that , if he used Flash at HTC HD2 , then there must be a release for phone too. I'm not sure , it's very important for me.

View 4 Replies

Flex :: Validator Gets Called Multiple Times With Beta 2

Feb 28, 2010

I created a custom validator as follows in Flex 4 beta 2[code]...

it works but if you notice I have an Alert window for testing and it gets displayed 4 times which means the validator is getting called 4 times.

View 1 Replies

ActionScript 3.0 :: Flash Avatar Virtual World Chat - BETA Test

Jul 18, 2010

For the past two months I have been developing a new kind of Flash chat that allows you to fly around in a 2D virtual room with an animated graphical avatar. You can also upload your own picture for an avatar. The special thing about this chat is that it works with MySQL and PHP, so no fancy servers are needed. It can easily be customized in terms of design. Switch out the background image and the avatar icons and you have a completely new chat room. Flash AS3 Avatar Chat v0.94 BETA.

View 2 Replies

Flash - Mxmlc (flex4 Beta) Command Line On Ubuntu Hangs?

Nov 23, 2009

Im using mxmlc to compile as3 on ubuntu linux. I've donwloaded flex4_b2_100509, just to use the most recent stuff...so Im typing 'mxmlc file.as' but it just hangs on me... it doesnt return anything. I checked running processes ('ps -e') and its showing both mxmlc and java as running, which tells me the compiler started. after a while the shell reports a 'segmentation fault'l.

View 1 Replies

ActionScript 3.0 :: Setting The Alpha Of MovieClip With Objects Changes The Alpha Separately For Each Object

Oct 23, 2010

[URL] i want the object to fade out but in the object there's a lot of overlapping pictures and each becomes half transparent. how to make the movieclip to change the alpha as it was without objects?

[Code]....

View 2 Replies

ActionScript 3.0 :: Curious Tip: Flipping Sprite.alpha=0 To Alpha=1 Back And Forth With No Logic?

Dec 15, 2011

just spotted this curious trick. If you want to flip something to go invisible on a click, and then reappear on another click (etc etc), try this:

create the sprite, setting alpha to either to 1 OR -1
mySprite.alpha=1; //OR
mySprite.aplha=-1;

[code]....

View 9 Replies

ActionScript 2.0 :: Loading A Movie A Solid Shape Is There With Alpha At 100% Then Over A Period Of 5 Secs Its Alpha Is Reduced To 0?

Jun 27, 2003

using AS, on loading a movie a solid shape is there with alpha at 100% then over a period of 5 secs its alpha is reduced to 0.

i'm new to this......please help if you want to if you don't have a good weekend but think of me struggling onwards and upwards...

View 14 Replies

Flex :: Working With Data In Flex By James Ward / EmpWeb Example In Flash Builder 4.0 Beta

Jul 31, 2009

From a video on AdobeTV, I tried to play with example empWeb (LiveCycle Data Services).In Flex Builder 3 (FB3) everything works fine. When I tried this on Flash Builder 4.0 Beta (FB4) it doesn't work. When I replaced original xmlns declarations (2009, spark, halo)with declarations from FB3 (2006) it works. Could you explain why?I'm using the default SDKs (Flex 3.2 for FB3 and Flex 4.0 for FB4). I investigated this (please see 3 source code examples). Source #1 works OK in FB3 and FB4, Source #2 gives a FB4 compilation error message: [code]

View 1 Replies

Set Alpha For Whole Stage Down But Have 1 Mc Full Alpha?

Aug 2, 2011

I want to do aplpha = .5 for the whole app, but then have a MC display at full alpha, is there any way to do this?

View 6 Replies

ActionScript 2.0 :: Dynamic Text Alpha - Find A Component That Allows Alpha Control With A Dynamic Text Box?

Feb 26, 2005

As far as I know theres in no way to cahnge the alpha of a dynamic text box. I put one in a movie clip and when i try to change the alpha of it everything else in it changes its alpha but the not the DT box. Could someone plz verify for me that u can't change alpha and help me find a component that allows alpha control with a dynamic text box. thx in advance.

View 5 Replies

Get The Result Of .fla Movie?

Sep 10, 2009

get the better result of my .fla movie,
 
* my flash movie loader is'nt working after uploading it to website (online).

* The Replay option has gone and not showing after the movie ends

* I want the "skip button" to show while movie is loading.

* my movie should automatically start playing after loading and after clicking "Skip INTRO Button" the page should redirect to next page (URL is defined in skip button action script)

View 2 Replies

Actionscript 3 :: Cannot Get Same Result In C#?

Jul 6, 2011

I ams still experiencing some problems with ActionScript 3 and flash and I think it is because of variable scopes what I am trying to do is to make this code iterate exactly same number of times as flash does but the problem is again variable scopes here so please if you have time could you help me with converting it to c#?

[Code]...

View 1 Replies

Flex :: XML HTTPService Result And For Each

Mar 3, 2010

XML is cool in flex, but I have an annoying problem to solve, caused by what I can imagine is a feature. You see, when you have just one tag of something, it creates an object which is not an array. But when finds more than one, it puts it on an array structure.[code]I could check the format of resObj.specifictag (to check if it is has an array) and then duplicate the code (for each case). But -even if it's calling a function- I don't think it is an elegant solution.Well, I hope someone has a good idea on this matter. (I know from experience that SO has much more C++ experts than flex, but well...)The perfect thing would be that HTTPrequest handled every tag in a consistent way (using always arrays... though I'm guessing that that would also have its drawbacks).

View 3 Replies

Actionscript 3 :: XML Gives Undefined Result?

Sep 13, 2010

So good so far in ActionScript language I actually haven't fell in bad condition but still I have one good issue that I can't do!In order at the root timeline everything is Ok when I call the XML childNodes or write the XML class everything its true, but when I call the XML childNodes from root within a movieclip XML

View 2 Replies

Xml :: Getting Unpocessed Php From Httpservics As Result FB4?

Aug 19, 2011

using httpservice in flash builder 4 for a login system, but am getting the result as raw php unprocessed data from server, but when i run the same file in the browser i get a correct xml file am using MAMP, here is the php code :

<?php
define( "DATABASE_SERVER", "localhost:8888" );
define( "DATABASE_USERNAME", "root" );[code].......

View 1 Replies

Php :: Print The Result In A TextBox?

May 25, 2009

On ResultEvent through HTTPService, i need to print the result in a textBox.

private function google(evt:ResultEvent):void
{
Alert.show(evt.result.loginsuccess.person);

[Code]...

View 2 Replies

Make An SWF Read Result From A PHP?

Mar 26, 2012

I need to make a SWF that should show some data from the DB. The DB will be read using PHP.I was thinking that the SWF would get the data by accessing "data.php" and data.php will read from the DB. The SWF would read the XML/JSON/RAW DATA from that file and update it's variables.

View 1 Replies

ActionScript 3.0 :: Up Down And Switch The Result

Jul 25, 2009

I am trying to create a weekly calendar. I have a 'switch' statement that shows the week dates and the name of month the week relates too. I have three functions

1. takes the pc date and converts it into the day of the year. eg between 1 and 365

2. it takes the day from 1. and assoicates it to the week number eg 1 - 52

3. functions that are associated with a previous and next button that use the current week number based on the pc date and count up and down.

This is where I have come unstuck. This is the code for my 'next' button.

Code:
function onClickNext(event:MouseEvent)
{
if(currentWkNum != 53)

[Code].....

View 5 Replies

Setup Multiple Passwords For One Result?

Mar 18, 2010

Below is my code and it is working. What I need to know is how to setup multiple passwords for one result. So look at the first four actions.. they go to the same page. I also want it to go if it is small caps verses large. How do I put all in one statement or do I have to do it this way. How do I put this in a text file if I have multiple passwords going to different pages. So as you see below if they put in password1,PASSWORD1,cash,CASH this all goes to page1.html If this put in password2,PASSWORD2 it goes to page2.html[code]...

View 1 Replies

ActionScript 3.0 :: Get 'root1' As The Trace Result

Aug 7, 2009

I have a button within a movieClip. I have an event handler on the main timeline that traces this.name when the button is clicked. I get 'root1' as the trace result. I would like to trace the button name.

View 4 Replies

ActionScript 3.0 :: Tow Button Result Different Size?

Nov 24, 2009

1. Same Button and Same Size on Stage.

2. First Button is only on Stage.

3. Second Button in MovieClip.but Tow Button result different Size.Why different Size? I can't understand this sample result.

Attachments:
MovieClipSizeTest.swf (18.7 K)
MovieClipSizeTest.fla.zip (740.5 K)

View 1 Replies

ActionScript 1/2 :: Something Wrong With Comparison Result?

Aug 16, 2010

I have a problem that bugging me and hindering me from advancing to next part of the game. I'm very much behind schedule because of these weird behavior. (Well I blame my ignorance for not properly coding them)
 
I'm trying to do a simple click-and-match game where there are 18 items to flip but only 10 items (5 pairs) are the valid answer. The problem lies with this part:

[Code]...

View 3 Replies

AS3 :: Flash - Resizing As A Result Of An EventListener

Jun 16, 2010

I have coded a map that when a province object is clicked on, it should move to the center of the screen and grow a percentage of the width, along with displaying a number of different things.

The problem is that in order for the image to resize it needs to be clicked on twice. It moves, and all of the children display just as they were designed to do, but the resize doesn't work on the first click.

menuItem4_mc.addEventListener(MouseEvent.CLICK, onClick);
public function onClick(mc:MouseEvent):void {
menuItem4_mc.width = width * .65;

[Code]....

View 1 Replies







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