Adding Pieces To A Dynamical Created Board
Hi guys I need some help. Ive worked out how to created a board in AS3 as you can see below with the code ive attached. As you can see its in a class and its dynamicaly created now im wanting to put my chess pieces onto the correct square on the board.
I was thinking I would have to create a movie clip of my pieces in the libary and attach them to the board somehow, can anyone help me which this problem?
Quote:
package{
import flash.display.MovieClip;
public class Board extends MovieClip{
// Variables
public var boardColor1:uint = 0x418382;
public var boardColor2:uint = 0xFFFF83;
public var squareSize:Number = 30;
//
public function Board(){
// This draws the board
var currColor:uint;
var squareX:int;
var squareY:int;
// loop through x and y coordinates of board
for (squareX = 0; squareX < 16; squareX++){
for (squareY = 0; squareY < 16; squareY++){
// this alternate colors
currColor = (squareX%2 != squareY%2) ? boardColor1 : boardColor2;
// this fills in the board
graphics.beginFill(currColor);
graphics.drawRect(squareX*squareSize, squareY*squareSize, squareSize, squareSize);
graphics.endFill();
}
}
}
}
}
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 10-23-2007, 04:36 PM
View Complete Forum Thread with Replies
Sponsored Links:
Help Accessing Dynamical Created Instances
Heya.
With my first words i want to say sorry for my bad english because i'm from germany, so i am a bit "handycapped" writing what i want to say.
My problem :
I have created instances of a Movieclip this way :
for (i=0; i<5; i++) {
duplicateMovieClip("test", "test"+i, i);
setProperty("test"+i, _y, i*25+25);
}
The Movieclip(s) own a Textfield that i want to access. But how?
Using the pointers (_root.test+i.Label.text = "Label1") don't work.
I hope you can help me.
Thanks
View Replies !
View Related
Targeting Dynaicly Created Clips In A Message Board
I have a message board that creates a new MC for each new message. The problem I am having is making the newly created clips scroll. Take a look at
http://www.skylab.ws/mb/messageboard.html
I got the FLA a ultrashock, and it works great but the FLA didn't have a scroll function.
I MADE THE CORECTION TO THE LINK
Thanks
Mason
[Edited by antigone on 11-30-2001 at 01:05 AM]
View Replies !
View Related
Adding User Names To Table/board
I'm making a game and I want to create a winner's board which the user adds their name to and the list updates.
I've been playing around with arrays/var but I'm completely stuck.
I need it to remember the new user's name when entered and then add it to a list of other winner's names on the board.
Please help me!!!
View Replies !
View Related
Adding Actions To An Mc Created In Actionscript
I just started with flash, and to test my knowledge, im making a space shooter game entirely in AC. Every graphic is made with the lineTo function. So I created the ship with lineTo and created an empty mc in which to put the ship. So my question, how do i add ActionScript to this "empty" mc. I tried Telltarget but that didnt work.
Was there something in the syntax?
tellTarget("ship") {
onClipEvent(load){
speed=10;
}
}
can someone help?
View Replies !
View Related
Adding Pictures To An Already Created Website
I'm using Flash 8 and I have run into a bit of a problem. I created a website for a buddy of mine to get his business off of the ground, but he has requested something that I may not be able to do. The website is already created, but he wants to be able to add pictures to his gallery without the knowledge of flash. I was wondering if there was an actionscript code or something to make it possible for him to browse through his computer and add images through his implemented website to add to his picture gallery. Obvously I would need to make administrative privelages somewhere on the site.
View Replies !
View Related
Adding Functions To Dynamically Created MC's
I am having trouble accomplishing the following:
Code:
var some_xml:XML = new XML();
some_xml.onLoad = function(success) {
if (success) {
var rootNode:Object = some_xml.firstChild;
for (n = 0; n < rootNode.childNodes.length; n++) {
_root.createEmptyMovieClip("new_mc" + n, n);
_root["new_mc" + n]._y = n * 20;
_root["new_mc" + n].createTextField("text_txt", 10, 0, 0, 100, 15);
_root["menu_mc" + n].onPress = function() {
//this is what I can't to work.
loadMovie(rootNode.childNodes[n].attributes.loc, _root.empty_mc);
};
}
}
};
some_xml.load("some.xml");
This works fine if I use a number, but as soon as I try to use "n" within the function it throws an error. Would eval do this for me? I haven't used eval before. Thanks.
View Replies !
View Related
Help: Adding On Actions To Dynamically Created Buttons
is there any way to do this?
I am loading a series of jpg images into a target MC. Then I am loading a series of invisible buttons to overlay them to make them interactive.
is there any way to set on(mouseaction) events to a button that is created dynamically?
thanks
.fe.
i may not have explained that well, but sometimes it is hard to..
View Replies !
View Related
Adding Elasticity To Dynamically Created MovieClip
hi,
I have a problem at the minute where i have the following code
Code:
for (i=1; i<9; i++) {
_root.createEmptyMovieClip("button"+i, 100+i);
_root["button"+i].lineStyle(1, 0x000000, 100);
_root["button"+i].beginFill(0x0066CC, 100);
_root["button"+i].moveTo(-95, -20);
_root["button"+i].lineTo(95, -20);
_root["button"+i].lineTo(95, 20);
_root["button"+i].lineTo(-95, 20);
_root["button"+i].endFill(-95, -20);
_root["button"+i]._x = i*95;
_root["button"+i]._y = 365;
}
// Give button actions
button1.onRelease = function() {
loadVariables("text1.txt", "_root");
};
button2.onRelease = function() {
loadVariables("text2.txt", "_root");
};
//.....actions for buttons 3,4,5,6,7 & 8
..which create my menu system fine. However i wish to add a nice little elasticity function to the menu system which i have found.
The code for the elasticity stuff is:
Code:
onClipEvent (load) {
this.elasticScale = function(tar, accel, convert) {
xScale = xScale * accel + (tar - this._xscale) * convert;
yScale = yScale * accel + (tar - this._yscale) * convert;
this._xscale += xScale;
this._yscale += yScale;
}
}
onClipEvent(enterFrame){
if(this.hitTest(_root._xmouse,_root._ymouse,true)){
this.elasticScale(125,0.7,0.4)
}else if (!this.hitTest(_root._xmouse,_root._ymouse,true)){
this.elasticScale(100,0.7,0.4)
}
}
However because clip events are only permitted for movie clip instances this is not going to work.
How can I recode the OnClipEvent portion of the code in a way that it applies to the menu system I have just created.
Any ideas would be welcome
View Replies !
View Related
Adding Script To Created Movie Clip
Hey Guys,
I need help.
for (var i=1;i<=10;i++) {
this.createEmptyMovieClip("mc"+i,i);
this["mc"+i].createEmptyMovieClip("jpg",0);
this["mc"+i].jpg.loadMovie("image"+i+".jpg");
}
Above is coding that creates a movie clip and loads a image into it. Now i need to add the bellow script to these clips. Im trying to have it load the image then turn it into a button by apply bellow script.
myMovieClip.onPress = function () {
trace ("onPress called");
};
Problem is how do attach this script to these dynamicly created movie clips.
Thanks,
N.D.
View Replies !
View Related
Adding Listeners To Dynamically Created Movieclips...
I have a problem with adding onRelease functions to mc's created dynamically by a for loop. Its a big program, with 10 classes and lots of functions...blah blah blah, but here is a segment with the problem:
************************************
************************************
************************************
function loadItems(O:Number)
{
tmpI = O;//code to load items
}
function reDrawOV(OV:OView)
{
for(var i = OV.firstO; i <= OV.lastO; i++)
{
OPTArrE[i] = attachMovie("OptionComp", "OptM" + i, i + 40);
OPTArrE[i].Oname = OV.getOption(i).getName();
OPTArrE[i].Sel = OV.getOption(i).getSel();//should link to the name of the item currently selected
OPTArrE[i]._x = OV.getX();
OPTArrE[i]._y = OV.getY() + (i * OV.getDisplace());
OPTArrE[i].itemTN.loadMovie(Path_TN + "RedTN.swf");
OPTArrE[i].onRelease = loadItems(i);
}
}
************************************
************************************
************************************
You can imagine, I am trying to attach the loadItems() function to the onRelease listener of every new mc with the "i" being the variable passed. The problem is, it is always coming out as the last i in the loop, because as the loop proceeds the i is incremented, and that is the last variable being called. So for all of the movie clips its calling loadItems with the last i in the loop.
Does anyone know how to get around this? thanks a lot for any help...
View Replies !
View Related
Adding Flash In Website Created In Photoshop
How do I add a Flash animation into a website layout created in Photoshop? The entire site, template, rollovers, etc. is created in PS/Image Ready and I need to integrate a couple Flash animations in specific areas....and a possible gallery or banner in certain areas. Any help?
View Replies !
View Related
Adding A Function To An Object Created By Loop
Well, I've been having quite a bit of trouble with this (atleast it looks easy) easy script.
My main goal is to first create a few thumbnails, one next to eachother from an XML document (thus, the numberOfSlides parameter) and to add to those thumbs, a rollOver function to...well, act like any other rollOver would.
Now the script that inside the enterFrame has been mostly butchered from my attempts...but from what I gathered, all that script would do was to either only have the rollOver work for the last object created or have the enterframe fail miserably and simply work the trace around 4 times (= to the numberOfSlides apparently).
Code:
function creerSlides(numberOfSlides)
{
var positionX:Number = -30;
for (var x=1; x<=numberOfSlides; x++)
{
_leMenu = _root.clipCible
_leMenu.attachMovie("menuThumbs", "menuThumb"+x, _leMenu.getNextHighestDepth());
_leMenu["menuThumb"+x]._x = positionX;
positionX += _leMenu["menuThumb"+x]._width + 10;
currentSlideNode = slides_xml.firstChild.firstChild.childNodes[x-1];
modifyThumbs(x, slideShowName , currentSlideNode)
//Calls a function which loads pictures into the thumbs...
_leMenu["menuThumb"+x].onEnterFrame = function()
{
trace(this);
/*if(_leMenu["menuThumb"+this.x].hitTest(_root._xmouse, _root._ymouse))
{
trace("Stuff!");
}*/
}
}
}
Could someone give me a hand? I'm at my wits end -.-
Edit: Silly me, calling it an object. It's more of Adding a function to a movieClip added by loop(it already existed in my library, which is why I don't use createEmptyMovieClip or anything like that)...
View Replies !
View Related
Adding Event Functions To Dynamically Created Mc's
I'm creating a set of movieclips based on input from a LoadVars object. The movieclips are created fine, but I can't apply any event handlers to the newly created mc's. Since I can't use addEventListener, I'm not sure how to approach this problem...
Here's the code I'm using:
ActionScript Code:
function picClick():Void {
trace("clicked");
}
function picOver():Void {
this._alpha = 100;
trace("over");
}
function getPics(dir:String, ary:Array):MovieClip {
var ext:String;
var sName:String;
var x:Number = 5;
var y:Number = 2;
var depth:Number = 100;
for (var i = 0; i<ary.length; i++) {
//trace(y);
sName = ary[i].substr(0, ary[i].indexOf("."));
ext = ary[i].substr(ary[i].indexOf("."), ary[i].length);
var thisMC = imgs_mc.createEmptyMovieClip(sName+"_mc", depth+i);
//trace(thisMC.getDepth());
var thisImg:MovieClip = thisMC.loadMovie(dir+ary[i]);
thisMC._x = x;
thisMC._y = y;
thisMC._alpha = 60;
y = y + (73);
}
return thisMC;
}
I'd like to apply the two functions at the top, picClick and picOver to the onRelease and onRollerOver events for each new movieclip, but nothing I try seems to work (ex. "thisMC.onRelease = picClick();")... I'm sure I'm missing some simple solution, but it's just not coming to me...
Can someone help me with this?
Thanks!
Eddie
View Replies !
View Related
Adding Attributes To A Dynamically Created XML File
Hey Everyone!
I used an example on these forums, a PHP script that creates an XML list that imports into flash.
Code:
<!--
Author: Adam Ehrheart
Site: http://adamehrheart.com
Blog: http://flashcamp.net
Date: 4.21.08
-->
<?php
# Use "." if the get_files.php file resides in the same directory as files being read
# Otherwise you can change the path to whatever you like
# eg:
# Same Directory:
# $path = ".";
#
# Other Directory
# $path = "products/images/"
$path = "fliphot/";
# Choosing what directory to read
if ($handle = opendir($path)) {
# Temporary array to hold image files
$imageFiles = array();
# Creating loop and assigning current file to $file temp variable
while (false !== ($file = readdir($handle)))
{
# Checking wheter or not the file is invisible and starts with a "."
$fileCheck = substr($file, 0, 1);
# Checking to make sure the files is either a (jpg, JPG, png, PNG)
$fileType = substr($file, -3);
# Making sure file is not invisible
if($fileCheck != ".")
{
# Making sure file is readable and dynamically loadable by Flash
if($fileType == "jpg" || $fileType == "JPG" || $fileType == "png" || $fileType == "PNG")
{
# Adding File to the image array
if($path != "."){
array_push($imageFiles, $path . $file);
}else{
array_push($imageFiles, $file);
}
}
# Sorting the files alphabetically
sort($imageFiles);
}
}
# Creating XML File output to be read by Flash
echo "<?xml version="1.0"?>
";
# Root Node
echo "<image_list>";
# Creating child nodes for each image
foreach($imageFiles as $value)
{
# Pulling the Width and Height values for each file and adding them as attributes for the image node
list($width, $height) = getimagesize($value);
# Creating the image node
echo "<image src="$value"" . " width="$width"" . " height="$height">" . "</image>";
}
echo "</image_list>";
# Closing the readdir function
closedir($handle);
}
?>
This is working perfectly, but i need to create other attributes that cannot be scrubbed from the files in the directory (ex. title, project, x-offset). This is for a content management system, and so i want to be able to edit all of this from within flash. I'm having trouble finding out how to do this (ive been searching through this forum for the last hour). Do i need to load in another file with the attributes? Do i need to create an "Add photo" script that writes and saves this to an XML file?
I'm lost! I'd appreciate any help
Thanks,
John
View Replies !
View Related
Adding Actions To MCs Created Using CreateEmptyMovieClip Doesn't Work - Pls Help
Hi all
I'm wondering something. I checked the help section for createEmptyMovieClip and there I found this code:
Code:
this.createEmptyMovieClip("logo_mc", this.getNextHighestDepth());
logo_mc.loadMovie("http://www.macromedia.com/images/shared/product_boxes/80x92/studio_flashpro.jpg");
If I just paste this in a new document it works fine. But I want to add a onRelease action to this new MC, but that doesn't work, so my question is:
Is it even possible to add actions to MCs created with createEmptyMovieClip?
Here's the code I tried:
Code:
this.createEmptyMovieClip("logo_mc", this.getNextHighestDepth());
logo_mc.loadMovie("http://www.macromedia.com/images/shared/product_boxes/80x92/studio_flashpro.jpg");
logo_mc.onRelease = function() {
getURL("http://www.flashkit.com", "_blank");
}
View Replies !
View Related
Adding Actions To Dynamically Created Movie Clips?
I have a Flash app that works as a search engine. The user puts in a keyword and presses search. The page then connects to a PHP page that searches through a database and returns the IDs of images that match the criteria being searched for. Those ID's are then stored in a global array in my Flash file. That all works fine. On my second frame I have this code:
Code:
addbuttons();
function addbuttons() {
// create thumbnails and display them on the screen
var yCount:Number = 1;
var yValue:Number = 0;
var xValue:Number = 0;
for(i=0;i<_global.howmany;i++){
this.createEmptyMovieClip("but"+i,this.getNextHighestDepth())
if (yCount < 6) {
this["but"+i]._x = xValue*100;
} else {
xValue = 0;
yCount = 0;
this["but"+i]._x = xValue*100;
yValue = 150;
}
loadMovie("http://artsmart.leap-prod.com/images/"+_global.thumbArray[i][1]+".jpg", "but"+i);
this["but"+i]._y = yValue;
this["but"+i]._xscale = 25;
this["but"+i]._yscale = 25;
yCount++;
xValue++;
}
}
}
_root["but"+i].onRelease = function(){
trace("clicked");
_root.gotoAndStop(3);
}
This code dynamically creates empty movie clips and displays thumbnails of all the images returned during the search. That works fine too. What doesn't work is this little piece of code:
Code:
_root["but"+i].onRelease = function(){
trace("clicked");
_root.gotoAndStop(3);
}
It doesn't trace anything or perform any of the actions. I have also tried doing this
Code:
this["but"+i].onRelease = function(){
trace("clicked");
_root.gotoAndStop(3);
}
and I've even tried just putting in a static variable this way
Code:
_root.but0.onRelease = function(){
trace(_root["but"+i]);
_root.gotoAndStop(3);
}
I just don't think I am targetting it correctly. Any ideas? Thanks in advance!
View Replies !
View Related
Adding Parameters To Dynamically Created Movie Clips?
Hey guys, I found this page that explains how to pass variables to dynamically created clips, but I need to know how to do i with AS3.0 using this:
ActionScript Code:
var entry1:tourDate = new tourDate();
addChild(entry1);
I need to pass the following variables to that entry1:
tourDate_str = "November 5, 2007"
tourTime_str = "8PM";
tourVenue_str = "Whatever";
Anyone?
Thank you!
View Replies !
View Related
Adding Event Listener To Dynamically Created Objects
In an earlier post I had asked how you can add dynamic components based on date read from an XML file (see this post).
After the item is added (and the code for how the object should behave when clicked), how to you register the listener? My understanding is that it would normally be:
myObjName.addEventListener("click", component);
but myObjName won't be known until the XML file is processed.
Can I create a component object (obj1), add an event listener for it (obj1.adEventListener) and then assign my dynamic component to obj1?
I'm not sure if there is a better way to structure this or not. I need to create a series of components structured around an XML source file where in some circumstances the value selected by the user is simply recorded and in others a new componet object will be created. Since I know that no more then 10 objects would be created for each type of component (listbox, check box, etc), it might be easier to just create them all and set the component properties as specified in the XML file.
View Replies !
View Related
Notice Board / Message Board / Guest Book
I am trying to create a message board in Flash, one that would pretty much work like a guest book. It would ideally work off a text file, writing and reading to it as people visited the site and left messages.
I don't want to use a database, i know that is the most common answer, i only want to use a text file or something which doesn't require a DB connection.
I have looked around to find something similar in the flash movie files but can;t seem to find anyting close. Maybe i am just looking for something which is known or called something totally different.
Any help or ideas on how to do something like this would be greatly Appreciated.
Thanks,
View Replies !
View Related
Make This Drawing Board Write Only On Board Area?
First of all sorry for the long post...
I need to make this drawing board (works good) to write ONLY
in a 450 x 300 px area. Actually if you select the pencil it draws
as long as you drag but anywhere else on the movie..
You can download the fla in
http://www.soccerschool.com.ar/f/drawingBroadmx.zip
This code is attached to frame 1 and the movie has other action
on the mclip of the board itself:
CODE of mclip:
onClipEvent (load) {
function setColors() {
C = new Color(_root.Panel.bgfc);
C.setRGB(_root.frontColor);
}
}
-----
CODE of frame 1:
_root.P = 0;
_root.level = 1000;
_root.tmpx = -1;
_root.tmpy = -1;
_root.count = 0;
_root.isMouseDown = false;
_root.frontColor = 0x000000;
//default tamaņo del pincel
_root.pt = 6;
_root.tool = "pen";
md = new Object();
mm = new Object();
mu = new Object();
actionList = new Array();
Number.prototype.HEXtoRGB = function() {
return {rb:this >> 16, gbthis >> 8) & 0xff, bb:this & 0xff};
};
Color.prototype.blendRGB = function(c1, c2, t) {
if (arguments.length == 2) {
t = c2;
c2 = this.getRGB();
}
if (t<-1) {
t = -1;
} else if (t>1) {
t = 1;
}
if (t<0) {
t = 1+t;
}
c1 = c1.HEXtoRGB();
c2 = c2.HEXtoRGB();
var ct = (c1.rb+(c2.rb-c1.rb)*t) << 16 | (c1.gb+(c2.gb-c1.gb)*t) << 8 | (c1.bb+(c2.bb-c1.bb)*t);
this.setRGB(ct);
return ct;
};
md.onMouseDown = function() {
if (_root.paintMode) {
a = new Object();
a.start = _root.P;
actionList.push(a);
_root.isMouseDown = true;
if (_root.tool == "del") {
for (i=0; i<_root.P; i++) {
if (eval("P"+i).hitTest(_root.cursor)) {
eval("P"+i).removeMovieClip();
break;
}
}
}
if (_root.tool == "sqr") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
}
if (_root.tool == "ova") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
}
if (_root.tool == "pen") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
eval("P"+_root.P).beginFill(_root.frontColor, 100);
eval("P"+_root.P).drawCircle((_root.pt/2), 0, 0);
this.endFill();
_root.P++;
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
if (_root.tool == "mak") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
eval("P"+_root.P).duplicateMovieClip(eval("P"+_roo t.P)._name+"shadow", _root.P+_root.level-500);
sn = eval("P"+_root.P)._name;
eval("P"+_root.P).onUnload = function() {
eval(this._name+"shadow").removeMovieClip();
};
eval(sn+"shadow").beginFill(_root.frontColor, 10);
eval(sn+"shadow").drawCircle((pt), 0, 0);
eval(sn+"shadow").endFill();
eval("P"+_root.P).beginFill(_root.frontColor*10, 5);
eval("P"+_root.P).drawCircle((_root.pt/2), 0, 0);
this.endFill();
_root.P++;
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
}
};
md.onMouseUp = function() {
if (_root.isMouseDown == true) {
_root.isMouseDown = false;
if (_root.tool == "sqr") {
_root.P++;
}
if (_root.tool == "ova") {
_root.P++;
}
actionList[actionList.length-1].end = _root.P;
}
_root.tmpx = -1;
_root.tmpy = -1;
_root.level += 1000;
_root.count = 0;
};
mm.onMouseMove = function() {
_root.paintMode = !(Panel.hitTest(_root._xmouse, _root._ymouse, true));
if (_root.paintMode) {
//Mouse.hide();
_root.cursor._visible = 1;
if (_root.tool == "del") {
for (i=0; i<_root.P && _root.isMouseDown; i++) {
if (eval("P"+i).hitTest(_root.cursor)) {
eval("P"+i).removeMovieClip();
}
}
}
if (_root.tool == "sqr") {
if (_root.isMouseDown) {
sqr = eval("P"+(_root.P));
sqr.clear();
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
sqr.globalToLocal(point);
toX = point.x;
toY = point.y;
sqr.beginFill(_root.frontColor, 100);
sqr.moveTo(0, 0);
sqr.lineTo(toX, 0);
sqr.lineTo(toX, toY);
sqr.lineTo(0, toY);
sqr.endFill();
}
}
if (_root.tool == "ova") {
if (_root.isMouseDown) {
ova = eval("P"+(_root.P));
ova.clear();
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
ova.globalToLocal(point);
toX = point.x;
toY = point.y;
v_far = Math.abs(0-toY);
h_far = Math.abs(0-toX);
far = Math.sqrt((v_far*v_far)+(h_far*h_far));
ova.beginFill(_root.frontColor, 100);
ova.drawCircle(far, 0, 0);
ova.endFill();
}
}
if (_root.tool == "pen") {
_root.count++;
if (_root.count%500 == 0) {
_root.level += 1000;
}
if (_root.isMouseDown && _root.count%4 == 0) {
if (_root.tmpx != -1 && _root.tmpy != -1) {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P).drawLine(_root._xmouse, _root._ymouse, _root.tmpx, _root.tmpy, _root.pt);
_root.P++;
}
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
}
if (_root.tool == "mak") {
_root.count++;
if (_root.count%500 == 0) {
_root.level += 1000;
}
if (_root.isMouseDown && _root.count%2 == 0) {
if (_root.tmpx != -1 && _root.tmpy != -1) {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P).drawNeonLine(_root._xmouse, _root._ymouse, _root.tmpx, _root.tmpy, _root.pt);
_root.P++;
}
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
}
} else {
Mouse.show();
_root.cursor._visible = 0;
}
};
Mouse.addListener(md);
Mouse.addListener(mm);
Mouse.addListener(mu);
//
MovieClip.prototype.drawCircle = function(r, x, y) {
this.moveTo(x+r, y);
a = Math.tan(22.5*Math.PI/180);
for (var angle = 45; angle<=360; angle += 45) {
// endpoint:
var endx = r*Math.cos(angle*Math.PI/180);
var endy = r*Math.sin(angle*Math.PI/180);
// control:
// (angle-90 is used to give the correct sign)
var cx = endx+r*a*Math.cos((angle-90)*Math.PI/180);
var cy = endy+r*a*Math.sin((angle-90)*Math.PI/180);
this.curveTo(cx+x, cy+y, endx+x, endy+y);
}
};
MovieClip.prototype.drawLine = function(fromX, fromY, toX, toY, pt) {
this._x = fromX;
this._y = fromY;
point = new Object();
point.x = toX;
point.y = toY;
this.globalToLocal(point);
// trace(point.x + " " + point.y);
toX = point.x;
toY = point.y;
// way cal
v_far = Math.abs(0-toY);
h_far = Math.abs(0-toX);
far = Math.sqrt((v_far*v_far)+(h_far*h_far));
adj = (toX-0);
Q = Math.acos(adj/far)/(Math.PI/180);
if (0>toY) {
rot = 90-Q;
} else {
rot = 90+Q;
}
if (rot>90) {
way = 360-Math.abs(rot-90);
} else {
way = Math.abs(rot-90);
}
for (i=0; i<far; i += 2) {
nx = int((i)*Math.cos((way)*(Math.PI/180)));
ny = -(int((i)*Math.sin((way)*(Math.PI/180))));
this.beginFill(_root.frontColor, 100);
this.drawCircle((pt/2), nx, ny);
this.endFill();
}
};
MovieClip.prototype.drawNeonLine = function(fromX, fromY, toX, toY, pt) {
this._x = fromX;
this._y = fromY;
point = new Object();
point.x = toX;
point.y = toY;
this.globalToLocal(point);
// trace(point.x + " " + point.y);
toX = point.x;
toY = point.y;
// way cal
v_far = Math.abs(0-toY);
h_far = Math.abs(0-toX);
far = Math.sqrt((v_far*v_far)+(h_far*h_far));
adj = (toX-0);
Q = Math.acos(adj/far)/(Math.PI/180);
if (0>toY) {
rot = 90-Q;
} else {
rot = 90+Q;
}
if (rot>90) {
way = 360-Math.abs(rot-90);
} else {
way = Math.abs(rot-90);
}
this.duplicateMovieClip(this._name+"shadow", _root.P+_root.level-500);
this.onUnload = function() {
eval(this._name+"shadow").removeMovieClip();
};
for (i=0; i<far; i += 2) {
nx = int((i)*Math.cos((way)*(Math.PI/180)));
ny = -(int((i)*Math.sin((way)*(Math.PI/180))));
eval(this._name+"shadow").beginFill(_root.frontCol or, 10);
eval(this._name+"shadow").drawCircle((pt), nx, ny);
eval(+this._name+"shadow").endFill();
}
for (i=0; i<far; i += 2) {
nx = int((i)*Math.cos((way)*(Math.PI/180)));
ny = -(int((i)*Math.sin((way)*(Math.PI/180))));
c = new Color(this);
c.setRGB(_root.frontColor);
c.blendRGB(0xffffff, .2);
this.beginFill(c.getRGB(), 100);
this.drawCircle((pt/2), nx, ny);
this.endFill();
}
};
function cursorReflesh() {
this.createEmptyMovieClip("cursor", 100001);
c = new Color(this.cursor);
c.setRGB(_root.frontColor);
if (_root.frontColor>(0xffffff/2)) {
c.blendRGB(0x000000, -0.3);
} else {
c.blendRGB(0xffffff, -0.5);
}
this.cursor.lineStyle(1, 0xffffff, 100);
this.cursor.drawCircle(pt/2, 0, 0);
this.cursor.startDrag(true);
}
function undo() {
if (actionList.length>0) {
a = actionList.pop();
if (a.start == undefined) {
C = new Color(this.Background);
C.setRGB(a);
C2 = new Color(this.Panel.bubg);
C2.setRGB(a);
} else {
for (i=a.start; i<=a.end; i++) {
eval("P"+i).removeMovieClip();
}
_root.P = a.start;
}
}
}
cursorReflesh();
View Replies !
View Related
Make This Drawing Board Write Only On Board Area?
First of all sorry for the long post...
I need to make this drawing board (works good) to write ONLY
in a 450 x 300 px area. Actually if you select the pencil it draws
as long as you drag but anywhere else on the movie..
You can download the fla in
http://www.soccerschool.com.ar/f/drawingBroadmx.zip
This code is attached to frame 1 and the movie has other action
on the mclip of the board itself:
CODE of mclip:
onClipEvent (load) {
function setColors() {
C = new Color(_root.Panel.bgfc);
C.setRGB(_root.frontColor);
}
}
-----
CODE of frame 1:
_root.P = 0;
_root.level = 1000;
_root.tmpx = -1;
_root.tmpy = -1;
_root.count = 0;
_root.isMouseDown = false;
_root.frontColor = 0x000000;
//default tamaņo del pincel
_root.pt = 6;
_root.tool = "pen";
md = new Object();
mm = new Object();
mu = new Object();
actionList = new Array();
Number.prototype.HEXtoRGB = function() {
return {rb:this >> 16, gbthis >> 8) & 0xff, bb:this & 0xff};
};
Color.prototype.blendRGB = function(c1, c2, t) {
if (arguments.length == 2) {
t = c2;
c2 = this.getRGB();
}
if (t<-1) {
t = -1;
} else if (t>1) {
t = 1;
}
if (t<0) {
t = 1+t;
}
c1 = c1.HEXtoRGB();
c2 = c2.HEXtoRGB();
var ct = (c1.rb+(c2.rb-c1.rb)*t) << 16 | (c1.gb+(c2.gb-c1.gb)*t) << 8 | (c1.bb+(c2.bb-c1.bb)*t);
this.setRGB(ct);
return ct;
};
md.onMouseDown = function() {
if (_root.paintMode) {
a = new Object();
a.start = _root.P;
actionList.push(a);
_root.isMouseDown = true;
if (_root.tool == "del") {
for (i=0; i<_root.P; i++) {
if (eval("P"+i).hitTest(_root.cursor)) {
eval("P"+i).removeMovieClip();
break;
}
}
}
if (_root.tool == "sqr") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
}
if (_root.tool == "ova") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
}
if (_root.tool == "pen") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
eval("P"+_root.P).beginFill(_root.frontColor, 100);
eval("P"+_root.P).drawCircle((_root.pt/2), 0, 0);
this.endFill();
_root.P++;
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
if (_root.tool == "mak") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
eval("P"+_root.P).duplicateMovieClip(eval("P"+_roo t.P)._name+"shadow", _root.P+_root.level-500);
sn = eval("P"+_root.P)._name;
eval("P"+_root.P).onUnload = function() {
eval(this._name+"shadow").removeMovieClip();
};
eval(sn+"shadow").beginFill(_root.frontColor, 10);
eval(sn+"shadow").drawCircle((pt), 0, 0);
eval(sn+"shadow").endFill();
eval("P"+_root.P).beginFill(_root.frontColor*10, 5);
eval("P"+_root.P).drawCircle((_root.pt/2), 0, 0);
this.endFill();
_root.P++;
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
}
};
md.onMouseUp = function() {
if (_root.isMouseDown == true) {
_root.isMouseDown = false;
if (_root.tool == "sqr") {
_root.P++;
}
if (_root.tool == "ova") {
_root.P++;
}
actionList[actionList.length-1].end = _root.P;
}
_root.tmpx = -1;
_root.tmpy = -1;
_root.level += 1000;
_root.count = 0;
};
mm.onMouseMove = function() {
_root.paintMode = !(Panel.hitTest(_root._xmouse, _root._ymouse, true));
if (_root.paintMode) {
//Mouse.hide();
_root.cursor._visible = 1;
if (_root.tool == "del") {
for (i=0; i<_root.P && _root.isMouseDown; i++) {
if (eval("P"+i).hitTest(_root.cursor)) {
eval("P"+i).removeMovieClip();
}
}
}
if (_root.tool == "sqr") {
if (_root.isMouseDown) {
sqr = eval("P"+(_root.P));
sqr.clear();
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
sqr.globalToLocal(point);
toX = point.x;
toY = point.y;
sqr.beginFill(_root.frontColor, 100);
sqr.moveTo(0, 0);
sqr.lineTo(toX, 0);
sqr.lineTo(toX, toY);
sqr.lineTo(0, toY);
sqr.endFill();
}
}
if (_root.tool == "ova") {
if (_root.isMouseDown) {
ova = eval("P"+(_root.P));
ova.clear();
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
ova.globalToLocal(point);
toX = point.x;
toY = point.y;
v_far = Math.abs(0-toY);
h_far = Math.abs(0-toX);
far = Math.sqrt((v_far*v_far)+(h_far*h_far));
ova.beginFill(_root.frontColor, 100);
ova.drawCircle(far, 0, 0);
ova.endFill();
}
}
if (_root.tool == "pen") {
_root.count++;
if (_root.count%500 == 0) {
_root.level += 1000;
}
if (_root.isMouseDown && _root.count%4 == 0) {
if (_root.tmpx != -1 && _root.tmpy != -1) {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P).drawLine(_root._xmouse, _root._ymouse, _root.tmpx, _root.tmpy, _root.pt);
_root.P++;
}
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
}
if (_root.tool == "mak") {
_root.count++;
if (_root.count%500 == 0) {
_root.level += 1000;
}
if (_root.isMouseDown && _root.count%2 == 0) {
if (_root.tmpx != -1 && _root.tmpy != -1) {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P).drawNeonLine(_root._xmouse, _root._ymouse, _root.tmpx, _root.tmpy, _root.pt);
_root.P++;
}
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
}
} else {
Mouse.show();
_root.cursor._visible = 0;
}
};
Mouse.addListener(md);
Mouse.addListener(mm);
Mouse.addListener(mu);
//
MovieClip.prototype.drawCircle = function(r, x, y) {
this.moveTo(x+r, y);
a = Math.tan(22.5*Math.PI/180);
for (var angle = 45; angle<=360; angle += 45) {
// endpoint:
var endx = r*Math.cos(angle*Math.PI/180);
var endy = r*Math.sin(angle*Math.PI/180);
// control:
// (angle-90 is used to give the correct sign)
var cx = endx+r*a*Math.cos((angle-90)*Math.PI/180);
var cy = endy+r*a*Math.sin((angle-90)*Math.PI/180);
this.curveTo(cx+x, cy+y, endx+x, endy+y);
}
};
MovieClip.prototype.drawLine = function(fromX, fromY, toX, toY, pt) {
this._x = fromX;
this._y = fromY;
point = new Object();
point.x = toX;
point.y = toY;
this.globalToLocal(point);
// trace(point.x + " " + point.y);
toX = point.x;
toY = point.y;
// way cal
v_far = Math.abs(0-toY);
h_far = Math.abs(0-toX);
far = Math.sqrt((v_far*v_far)+(h_far*h_far));
adj = (toX-0);
Q = Math.acos(adj/far)/(Math.PI/180);
if (0>toY) {
rot = 90-Q;
} else {
rot = 90+Q;
}
if (rot>90) {
way = 360-Math.abs(rot-90);
} else {
way = Math.abs(rot-90);
}
for (i=0; i<far; i += 2) {
nx = int((i)*Math.cos((way)*(Math.PI/180)));
ny = -(int((i)*Math.sin((way)*(Math.PI/180))));
this.beginFill(_root.frontColor, 100);
this.drawCircle((pt/2), nx, ny);
this.endFill();
}
};
MovieClip.prototype.drawNeonLine = function(fromX, fromY, toX, toY, pt) {
this._x = fromX;
this._y = fromY;
point = new Object();
point.x = toX;
point.y = toY;
this.globalToLocal(point);
// trace(point.x + " " + point.y);
toX = point.x;
toY = point.y;
// way cal
v_far = Math.abs(0-toY);
h_far = Math.abs(0-toX);
far = Math.sqrt((v_far*v_far)+(h_far*h_far));
adj = (toX-0);
Q = Math.acos(adj/far)/(Math.PI/180);
if (0>toY) {
rot = 90-Q;
} else {
rot = 90+Q;
}
if (rot>90) {
way = 360-Math.abs(rot-90);
} else {
way = Math.abs(rot-90);
}
this.duplicateMovieClip(this._name+"shadow", _root.P+_root.level-500);
this.onUnload = function() {
eval(this._name+"shadow").removeMovieClip();
};
for (i=0; i<far; i += 2) {
nx = int((i)*Math.cos((way)*(Math.PI/180)));
ny = -(int((i)*Math.sin((way)*(Math.PI/180))));
eval(this._name+"shadow").beginFill(_root.frontCol or, 10);
eval(this._name+"shadow").drawCircle((pt), nx, ny);
eval(+this._name+"shadow").endFill();
}
for (i=0; i<far; i += 2) {
nx = int((i)*Math.cos((way)*(Math.PI/180)));
ny = -(int((i)*Math.sin((way)*(Math.PI/180))));
c = new Color(this);
c.setRGB(_root.frontColor);
c.blendRGB(0xffffff, .2);
this.beginFill(c.getRGB(), 100);
this.drawCircle((pt/2), nx, ny);
this.endFill();
}
};
function cursorReflesh() {
this.createEmptyMovieClip("cursor", 100001);
c = new Color(this.cursor);
c.setRGB(_root.frontColor);
if (_root.frontColor>(0xffffff/2)) {
c.blendRGB(0x000000, -0.3);
} else {
c.blendRGB(0xffffff, -0.5);
}
this.cursor.lineStyle(1, 0xffffff, 100);
this.cursor.drawCircle(pt/2, 0, 0);
this.cursor.startDrag(true);
}
function undo() {
if (actionList.length>0) {
a = actionList.pop();
if (a.start == undefined) {
C = new Color(this.Background);
C.setRGB(a);
C2 = new Color(this.Panel.bubg);
C2.setRGB(a);
} else {
for (i=a.start; i<=a.end; i++) {
eval("P"+i).removeMovieClip();
}
_root.P = a.start;
}
}
}
cursorReflesh();
View Replies !
View Related
Dynamical Targettage
sheesh, been a while since i've been here ;^
what i'm trying to accomplish is simple, i'm sure i've done this before, but... things leave me fast. ok, i've got like a bagillion little squares, named s000 - sXXX. each contains "sq_ani" mc. all I want is to have s000 give s001 a gotoAndPlay(), and so forth. i'm keeping the count in a string a few levels under all the squares, it's targeted like
_parent._parent._parent:piece;
so each sXXX's sq_ani needs to increment the 'piece' var and then tell it to get a move on. i have no idea where to go from here. how to increment and keep leading zero's? beats me. i was trying
eval("_parent._parent.s" + piece + ".sq_ani.gotoAndPlay("run")");
but to no avail, i guess that's way off
i've kinda simplified the situation here, hope i made it easy to follow
thanks!
--Casey / afro
ps, when did squink get to be a mod? sheesh where have i been
View Replies !
View Related
Dynamical Txt Vs Movieclip
Hi folks.
I am having troubles using a Dynamical txt inside a
movieclip, it works perfectly in graph symbol, receving
the paramenter from the html line. But a i need to use it inside a movie clip, cause it has show/hide using mouse over in a buttom object, that calls it using the tell target command.
thans in a advance
View Replies !
View Related
Targeting Clips Dynamical V.MX
Does anyone know how to target movie clips dynamically? Here's my code that doesn't work:
var sectionArray = new Array("doorF", "doorH", "locks", "general", "rough", "power", "hand");
var section = sectionArray[sectionNum];
trace (_root.section._alpha);
_root.section._alpha = "100";
If you can't tell from the code, I'm reading in a variable that selects one of the array elements. Then I'm trying to run the command "_root.section._alpha = "100"; where section is a string that corresponds to one of 7 clips on the stage. These names are those in the array. The trace prints "undefined" since it thinks section is the actual name of a clip, which obviously isn't on the stage. Does anyone know how to get actionscript to recognize the value of section instead of the word section? I know I can accomplish this with a switch statement, but in the event that there are say 100 instead of 7 clips, that would be annoying.
View Replies !
View Related
Problem Loading Dynamical Vars
I load some variables from a cfm file, but sometimes my server gives an error on the output instead of the variables, on a refresh (or more) the output comes there.
So when debugging the thing i sometimes get immediately error loading http://xxxx/file.cfm . is there any possible way that flash can detect this at runtime and do a refresh through a loop?
I can't just make a loop with a var like.
(if (loaded == "yes") {play()} else {gotoAndPlay(1)} because the cfm files are sometimes quite large so that he does a refresh on the page even when it is loading but not yet complete.
An example of the cfm file here
View Replies !
View Related
Scrolling Dynamical. Loaded Images
hi there,
ok I am still using 5..
I want to load in imgages in dynamically and then scroll them....
I create empty movies and then have the action on the frame "load movie"..which all works fine...just to get them to scroll I dont have a clue...always just copied the code, without undertsanding it..
Is there a tutorial you can point me to?
thanx for the help...
s.
View Replies !
View Related
Dynamical Loading And Duplication Of Der Movieclips
I've been working with flash for about 6 months now and i've previously been using the basic library functionality of flash professional 8 to create symbols and then using attachMovie() to do the drawing. My last project ended up with a ridiculously huge library and one 10mb swf which i would like to avoid in the future.
Now im trying to learn all the dynamical loading using the moviecliploader class and i'm having trouble figuring out the most efficient way to load a movieclip. I would LIKE to be able to load an animation or picture or whatever once and then just duplicate it without having to download another copy. I've heard that duplicatemovieclip() actually re-downloads loaded movieclips and thus saves no bandwidth, which is crazy.
What would be optimal is to be able to dynamically load a set of symbols or an entire library from an external swf, and then just use attachMovie() to create instances. Is this possible?
View Replies !
View Related
Dynamical Stuffing A MovieClip With MovieClips
Ok, so the the problem is as follows:
the thing i need is to dynamicaly stuff some empty movieclip with some additional static movie clips. Let's pet'em samples. I have some set of samples. In the result I wanna get single movie clip, which will contain a certain number of samples. I wanna get the single movie clip, because my task is to drag it.
How can I perform it with the help if ActionScript 2.0
Maybe there is some other solution to drag a certain numbered group of samples not havin' put'em into a single movieclip.
Any help appriciated
View Replies !
View Related
Adding Colour To This "test" Movie Clip I Previous Created?
Hi,
I was wondering how do i add colour to a movie clip i previously created, or do i have to make it all over again?? I have attached a screenshot on the Movie clip that i drew with the circle and line tool as a test previously, i simply want to add a single colour to it but can not find the right tools in flash 8......
Can anybody tell me which tool will i need to use or do i need to create the entire picture and its animations again?? I thought i could just add the colour to each keyframe but the "fill" tool does not fill when i try it.
I can add colour to the circle on top, i just need to be able to add colour to the body, which is three lines, i was hoping the fill tool would work just as it does in many graphics manipulation applications....
Cheers for any help, in a rush to get this done and getting stuck on a little thing like this is so annoying!
Dan
View Replies !
View Related
Curious: Dynamical Textfield In A Masked Layer
Hello!
I have tried to put a movieclip with a dynamical textfield in a masked layer. The text will not be displayed in the textfield (textfield is a reference to a variable). The variable is defined in the same movieclip.
When I put the layer over the mask (e.g. in the first position) it works, and the text from the variable is displayed in the field.
Why is that so?
Best regards,
Daniel Daxl
View Replies !
View Related
How To Insert Strange Symbols In Dynamical Text?
I tried to insert strange symbols as "ë, ī, &" in my dynamical textfiels. I put them in the .txt, but that doesn't work. It can't read it in.
I tried also the html-equivalents (ë in the .txt, en have chosen 'render als html', but that doesn't work either.
Does anyone know a resolution?
bye!
Alices
View Replies !
View Related
Dynamical Text Link To Load Vars Within Flash?
A little dilema. I'd like to know if there is a way to do this.
Scenario:
I have a dynamic text field called menuText. menuText gets its menu items dynamically from a database and then displays it as HTML. So for example, the database would have a record called "home" and a url field with something like "<a href=?name=Home">. Doing this would mean that when flash loads the menuItems, and you click on the "Home" link in flash, it would then take you to ?name=Home, thus reloading the page.
But what i want to do, instead of reloading the page to get the variables, is load the content for that page right there while your still in the flash. So instead of the url being "<a href=?name=Home>" i would want it to function like a flash button like "on release { loadVariablesNum blablabla }".
Can i do that?
View Replies !
View Related
Puzzle Pieces
Hi,
I just made a jigsaw puzzle and am trying to get the pieces returned to exactly the same position if they are placed incorrectly. The problem is that they do return but usually go right off the stage so it is impossible to place them on the puzzle again. This is the code I used..
onClipEvent (mouseDown) {
mx = _root._xmouse;
my = _root._ymouse;
for (x=0; x<6; x++) {
for (y=0; y<4; y++) {
piece = _root[x+"-"+y];
if (piece.hitTest(mx, my) and (piece._alpha<100)) {
piece.startDrag();
x = 6;
y = 4;
break;
}
}
}
}
onClipEvent (mouseUp) {
stopDrag ();
dx = _root.outline._x-piece._x;
dy = _root.outline._y-piece._y;
dist = Math.sqrt(dx*dx+dy*dy);
if (dist<10) {
piece._x = _root.outline._x;
piece._y = _root.outline._y;
// set to full color
piece._alpha = 100;
else (dist>10)
piece._x = mx
piece._y = my
}
}
View Replies !
View Related
Time In Pieces
Hello,
I want to create a screensaver that indicates the time, but not with text but with graphics. For that I've already created a movie that checks which number a certain variable is, and then through linkage it changes the instance to another... .
Now my question is: How can I put the time in my variables?
I work with 6 variables: 2 for the hours, 2 for the minutes and 2 for the seconds. Everything is put on the first frame and I use flash MX.
A second question: I will be exporting this movie as a projector from out of Shockwave studio 8.5. Will it be able to be seen on every computer, because the linkage script is strictly MX... ?
greetings, Robin
Any better solutions are also welcome.
View Replies !
View Related
Puzzle Pieces
hey I'm making a puzzle game and i want the pieces to "lock" in the right place if they're near where it should be. It's a fairly big puzzle but i really need help with the script. right now i have it where they have to be exact and it isn't working out to good due to exact placement. Thanks for your help.
View Replies !
View Related
Puzzle Pieces
hey I'm making a puzzle game and i want the pieces to "lock" in the right place if they're near where it should be. It's a fairly big puzzle but i really need help with the script. right now i have it where they have to be exact and it isn't working out to good due to exact placement. Thanks for your help.
View Replies !
View Related
Puzzle Pieces
hey I'm making a puzzle game and i want the pieces to "lock" in the right place if they're near where it should be. It's a fairly big puzzle but i really need help with the script. right now i have it where they have to be exact and it isn't working out to good due to exact placement. Thanks for your help.
View Replies !
View Related
Puzzle Pieces
hey I'm making a puzzle game and i want the pieces to "lock" in the right place if they're near where it should be. It's a fairly big puzzle but i really need help with the script. right now i have it where they have to be exact and it isn't working out to good due to exact placement. Thanks for your help.
View Replies !
View Related
Puzzle Pieces
hey I'm making a puzzle game and i want the pieces to "lock" in the right place if they're near where it should be. It's a fairly big puzzle but i really need help with the script. right now i have it where they have to be exact and it isn't working out to good due to exact placement. Thanks for your help.
the .fla is located here...
http://www.geocities.com/allisan16/Puzzle.fla
View Replies !
View Related
|