Re: [Flashcoders] Thought some one would like this online book

2011-02-27 Thread spyder spyders

Thanks Paul!  It is nice to be able to read it as a pdf.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Thought some one would like this online book

2011-02-26 Thread spyder spyders

ww.scribd.com/Flash-As3-Programming/d/19382007
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] My first code.

2010-12-20 Thread spyder spyders
Thank you both.  i can see where I know parts but not the big picture. 
Unfortunately, right now Im strapped for cash.  Here is how I made and used the 
class.  I didnt know to link it as a base class.  I linked it as a Class.  
But, it works as far as I can tell!!!  : )  It is going to need to do turn 
something on and off at some point, but I think you will get the general idea.

Thanks everyone!!  :D

I tried to mail it and it was too big.  0.89mb I think

http://rapidshare.com/files/438465414/firstToggleButton.zip
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] My first code.

2010-12-16 Thread spyder spyders
Thanks Paul and M.  I have been reading sites on the internet.  Here  
are a few.


http://active.tutsplus.com/
http://www.kirupa.com/developer/flash/index.htm
Plus there is youtube.
http://www.freebookcentre.net/graphics-design-books/flash-ebooks-download.html
http://www.gaiaflashframework.com/


I know
binary systems
hex
logic gates
arrays
strings
variables
I have been reading about OOP and how it is structured like zoology or  
biology.


Im good with electronics
To be honest I am a music producer that is interested in video game  
sound design.  I needed to make a webpage for myself and found out how  
Flash is in many ways like the music software I use. I love that I can  
learn coding.   It is kind of a hobby.  You guys are great! Very nice  
people, : )


Have a good day.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] My first code.

2010-12-15 Thread spyder spyders
  HELLO FlashCoders!

  I am trying to write a ToggleButton Class.I can get it to work as a 
document class and as as3 on timeline.  But how to I use it as a symbol class? 
Thx!
/

package 
{

import flash.display.MovieClip;
import flash.events.MouseEvent;


public class ToggleButton extends MovieClip
{
public var toggleButton:MovieClip;

public function ToggleButton()
{
// constructor code



//event listeners
toggleButton.addEventListener(MouseEvent.MOUSE_OVER, 
rolloverToggle);
toggleButton.addEventListener(MouseEvent.MOUSE_OUT, 
rolloutToggle);
toggleButton.addEventListener(MouseEvent.CLICK, 
toggleClick);
toggleButton.buttonState = off;


// Respond to mouse events
function rolloverToggle(event:MouseEvent)
{

toggleButton.gotoAndStop(toggleButton.buttonState+ over);

} //rollover f(x)

function rolloutToggle(event:MouseEvent)
{

toggleButton.gotoAndStop(toggleButton.buttonState);

} //rollout f(x)

function toggleClick(event:MouseEvent)
{
if (toggleButton.buttonState == on)
{
toggleButton.buttonState = off;
} //if
else
{
toggleButton.buttonState = on;
} //else

toggleButton.gotoAndStop(toggleButton.buttonState+ over);

} //toggle click f(x)

} //constructor f(x)

} //class

} //package


/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] My first code.

2010-12-15 Thread spyder spyders
Thank You So Much! :DI have been researching for over a 
month!!  I am guessing that the 'this'  is pointing to the symbol or _mc I 
attach the class to? 
I ended up doing away with all of the  this because I was receiving an error 
message saying  gotoAndStop is not a function.  Also I needed to declare the 
variable  buttonState

Here it is!!! My first Class! 
Thank you!



###

package
{

import flash.display.MovieClip;
import flash.events.MouseEvent;


public class ToggleButton extends MovieClip
{
//public var togglButton:MovieClip;
public var buttonState = MovieClip;

public function ToggleButton()
{
// constructor code



//event listeners
addEventListener(MouseEvent.MOUSE_OVER, rolloverToggle);
addEventListener(MouseEvent.MOUSE_OUT, rolloutToggle);
addEventListener(MouseEvent.CLICK, toggleClick);
buttonState = off;


// Respond to mouse events
function rolloverToggle(event:MouseEvent)
{
gotoAndStop(buttonState+ over);

} //rollover f(x)

function rolloutToggle(event:MouseEvent)
{
gotoAndStop(buttonState);

} //rollout f(x)

function toggleClick(event:MouseEvent)
{
if (buttonState == on)
{
buttonState = off;
} //if
else
{
buttonState = on;
} //else
gotoAndStop(buttonState+ over);

} //toggle click f(x)

} //constructor f(x)

} //class

} //package



#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders