Search:
Type: Posts; User: gobbles
Search:
Search took 0.08 seconds.
-
Hi
I assume the pictures are in an array, so something like this:
pseudo code:
on click
// move everything left
for( var i = 0 i < pics.length; i++)
{
pics[i].x -= pics[i].width;
-
Hi
My bad, it is the PHP tag that works best in here:)
It seems strange, if I press the label button the program generates a new label and I can move it around no problem, no strange jumps. But...
-
You are doing it correctly, must be a misspelling or the likes.
Try listening for onError events and exceptions to get more info, but trust me, you are doing it correctly .. :/
In your example...
-
The easiest thing to do is to make two date objects with Flash's date type and them subtract them from each other. The alternative is to subtract the hours, subtract the minutes check for a remainder...
-
Hi
I don't think it is the complementary color always, but you surely always get a color that is in the opposite end of the spectrum.
If you color is FF4466, split in into the red, green and...
-
Generate all the final positions in a loop, you could use Points, put these points into an array or vector.
Place all the nodes randomly around the screen and afterwards use the Array/vector points...
-
if currentPicture == lastPicture;
start over...?
Is that what you mean?
-
Hi
There is a code tag in the flashkit editor, the little hashmark# please use that to format your code, if you don't, it is difficult to
see what your code does?
Describe your problem in more...
-
Ahh that is AIR specific for the stage I think, sorry :)
I just looked at some mouse up/down drag code I did a few months back. I have only a mouse over listener, then when rolling over I remove...
-
-
also going ... means that c is an array of parameters, so event if there is only one it is still num = c[0];
-
Try
xml = new XML(loader.data)
The way you are doing it, I think only works for DataEvents.
-
You're welcome
ok, in the onPress method, or what you changed it's name to:) try tracing like this.
public function onPress(evt:MouseEvent):void {
if (evt.currentTarget == daCircle ||...
-
Ok these are ok.
daCircle = new daCircle() should be daCircle = new Sprite() //I think I actually wrote that, sorry. This is because we dont have a type called daCircle, but daCircle is a Sprite....
-
Sorry I don't have Flash IDE installed, Eclipse only, so can't see the .fla. What are the errors that are left?
Oh, and what is the "presser" is that a Class you wrote or a button you made or...
-
Ok, I copy pasted the code into Eclipse and made a bunch of changes, method and variables names should be "camel case" (look this one up at wikipedia or the like).
Only Class names starts with an...
-
You have not instantiated "dacircle", that is why it is not ready or "undefined property".
are you trying to add dacircle to dacircle?
The "Access of undefined property" error is in 99% of the...
-
-
When you are "outside" of the app I don't think there is any way of doing that :/
There are only app shortcuts and global OS shortcuts, an app can sometimes set up global shortcuts upon...
-
Hi all the sprites are not instantiated.. you need to go "var sprite1:Sprite = new Sprite()" for each Sprite you use, you need this for all the objects you wish to address.
The Pointer Class...
-
setup an eventlistener for each enter frame:
addEventListener(Event.ENTER_FRAME, update, false, 0, true);
private function update()
{
if(getTimer % 5000) step to next label:
}
however, it...
-
maybe you put the ++ on a specific frame and not on and enterframe event?
-
need to select "Project" - > "Release build" ... if you are in Eclipse or Flex Builder .. but you don't say ;)
-
Hi John
You should write a getter/setter for these values in a <mx:Script> tag.
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"...
-
removeChild(mc);
When it is removed from the displayList and you have "left" the function, it will be marked for garbage collection unless you have other references to it.
Problem is, you don't...
|
Click Here to Expand Forum to Full Width
|