[Flashcoders] multi-touch through JS in Safari on Mac?

2010-06-12 Thread Anthony Pace
I know 10.1 does not have access to the touch API through safari on the 
Mac; yet, as I don't have a Macbook, or a muti-touch mouse, I was 
wondering, does the browser, on a Mac, give JS access to the touch API 
like it does for the iphone?  If so, it would be easy to take advantage 
of it through JS and pass the needed data to as3.



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


[Flashcoders] masking issues

2010-06-12 Thread Paul Freedman
I don't know if I can attach documents here, but I'm trying it, because my 
question involves a fla with a masked textfield on it and a MovieClip in its 
library. If attachments don't work, look here:  
http://www.freedmania.com/test/MaskIssue/ The scripts are listed below. 

There's two ActionScripts here, one launching the other, to simulate my 
eventual problem. The symbol in the library, myBox_mc, is linked to class 
MyBoxx, which places it on the stage. Traces show that, by the time it's there, 
it's parent is the BaseTimeLine. The mask, drawn in the authoring application, 
is positioned over a textfield and is precisely the textfield's dimensions. The 
rest of the stage is unmasked.

Click on the blue-green thingy (myBox_mc) and drag it around. You'll see that 
it's actually under the mask. 

I  need it on top. What do I need to do?

Any help will be deeply appreciated.

Thanks,
- Paul

These are the scripts. If you reply, please delete them.
AS --- MYOBJECK
package
{
import flash.display.MovieClip;
 import MyBoxx;
 
 public class MyObjeck extends MovieClip
 {
  public var myBoxx:myBox_mc
  
  public function MyObjeck(m:MovieClip)
  {
   myBoxx = new myBox_mc();
   m.addChild(myBoxx);
   
   myBoxx.x=150;
   myBoxx.y=150;
   trace(17 myBoxx.parent  +myBoxx.parent);
   for(var i=0;i20;i++){
m.text_mc.textTxt.text += Here's the text you ordered, Sir.;
   }
  }
 }
}

AS --- MYBOXX
package
{
 import flash.display.MovieClip;
 import flash.events.*;
 
 public class MyBoxx extends MovieClip
 {
  public function MyBoxx()
  {
   trace(09myBoxx);
   init();
  }
  
  private function dwnn(Event:MouseEvent){
   trace(DOWN this +this+ parent +this.parent);
   this.startDrag();
  }
  private function upp(Event:MouseEvent){
   trace(UP);
   this.stopDrag();
  }
  private function over(Event:MouseEvent){
   trace(over);
  }
  private function out(Event:MouseEvent){
   trace(OUT);
  }
 
  public function init(){
   this.addEventListener(MouseEvent.MOUSE_DOWN,dwnn);
   this.addEventListener(MouseEvent.MOUSE_UP,upp);
   this.addEventListener(MouseEvent.ROLL_OVER,over);
   this.addEventListener(MouseEvent.ROLL_OUT,out);  
  }
 }
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] masking issues

2010-06-12 Thread Nathan Mynarcik
Whatever is added to the stage last by using addChild method, will be at the 
top. 

What is masking what? No where in your code do you have anything setup to be a 
mask. 


-Original Message-
From: Paul Freedman p...@freedmania.com
Date: Sat, 12 Jun 2010 18:55:14 
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] masking issues

I don't know if I can attach documents here, but I'm trying it, because my 
question involves a fla with a masked textfield on it and a MovieClip in its 
library. If attachments don't work, look here:  
http://www.freedmania.com/test/MaskIssue/ The scripts are listed below. 

There's two ActionScripts here, one launching the other, to simulate my 
eventual problem. The symbol in the library, myBox_mc, is linked to class 
MyBoxx, which places it on the stage. Traces show that, by the time it's there, 
it's parent is the BaseTimeLine. The mask, drawn in the authoring application, 
is positioned over a textfield and is precisely the textfield's dimensions. The 
rest of the stage is unmasked.

Click on the blue-green thingy (myBox_mc) and drag it around. You'll see that 
it's actually under the mask. 

I  need it on top. What do I need to do?

Any help will be deeply appreciated.

Thanks,
- Paul

These are the scripts. If you reply, please delete them.
AS --- MYOBJECK
package
{
import flash.display.MovieClip;
 import MyBoxx;
 
 public class MyObjeck extends MovieClip
 {
  public var myBoxx:myBox_mc
  
  public function MyObjeck(m:MovieClip)
  {
   myBoxx = new myBox_mc();
   m.addChild(myBoxx);
   
   myBoxx.x=150;
   myBoxx.y=150;
   trace(17 myBoxx.parent  +myBoxx.parent);
   for(var i=0;i20;i++){
m.text_mc.textTxt.text += Here's the text you ordered, Sir.;
   }
  }
 }
}

AS --- MYBOXX
package
{
 import flash.display.MovieClip;
 import flash.events.*;
 
 public class MyBoxx extends MovieClip
 {
  public function MyBoxx()
  {
   trace(09myBoxx);
   init();
  }
  
  private function dwnn(Event:MouseEvent){
   trace(DOWN this +this+ parent +this.parent);
   this.startDrag();
  }
  private function upp(Event:MouseEvent){
   trace(UP);
   this.stopDrag();
  }
  private function over(Event:MouseEvent){
   trace(over);
  }
  private function out(Event:MouseEvent){
   trace(OUT);
  }
 
  public function init(){
   this.addEventListener(MouseEvent.MOUSE_DOWN,dwnn);
   this.addEventListener(MouseEvent.MOUSE_UP,upp);
   this.addEventListener(MouseEvent.ROLL_OVER,over);
   this.addEventListener(MouseEvent.ROLL_OUT,out);  
  }
 }
}


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


Re: [Flashcoders] masking issues

2010-06-12 Thread Paul Freedman
Masking is done in the Flash authoring environment, in my case = CS3. So 
it's in the timeline. I'd expected that would put it at the bottom. It did 
in AS2. I'll be working with graphics that artists have laid out. If I can 
use it rather than replace it, so much the better.


- Original Message - 
From: Nathan Mynarcik nat...@mynarcik.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Saturday, June 12, 2010 8:34 PM
Subject: Re: [Flashcoders] masking issues


Whatever is added to the stage last by using addChild method, will be at 
the top.


What is masking what? No where in your code do you have anything setup to 
be a mask.



-Original Message-
From: Paul Freedman p...@freedmania.com
Date: Sat, 12 Jun 2010 18:55:14
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] masking issues

I don't know if I can attach documents here, but I'm trying it, because my 
question involves a fla with a masked textfield on it and a MovieClip in 
its library. If attachments don't work, look here: 
http://www.freedmania.com/test/MaskIssue/ The scripts are listed below.


There's two ActionScripts here, one launching the other, to simulate my 
eventual problem. The symbol in the library, myBox_mc, is linked to class 
MyBoxx, which places it on the stage. Traces show that, by the time it's 
there, it's parent is the BaseTimeLine. The mask, drawn in the authoring 
application, is positioned over a textfield and is precisely the 
textfield's dimensions. The rest of the stage is unmasked.


Click on the blue-green thingy (myBox_mc) and drag it around. You'll see 
that it's actually under the mask.


I  need it on top. What do I need to do?

Any help will be deeply appreciated.

Thanks,
- Paul

These are the scripts. If you reply, please delete them.
AS --- MYOBJECK
package
{
   import flash.display.MovieClip;
import MyBoxx;

public class MyObjeck extends MovieClip
{
 public var myBoxx:myBox_mc

 public function MyObjeck(m:MovieClip)
 {
  myBoxx = new myBox_mc();
  m.addChild(myBoxx);

  myBoxx.x=150;
  myBoxx.y=150;
  trace(17 myBoxx.parent  +myBoxx.parent);
  for(var i=0;i20;i++){
   m.text_mc.textTxt.text += Here's the text you ordered, Sir.;
  }
 }
}
}

AS --- MYBOXX
package
{
import flash.display.MovieClip;
import flash.events.*;

public class MyBoxx extends MovieClip
{
 public function MyBoxx()
 {
  trace(09myBoxx);
  init();
 }

 private function dwnn(Event:MouseEvent){
  trace(DOWN this +this+ parent +this.parent);
  this.startDrag();
 }
 private function upp(Event:MouseEvent){
  trace(UP);
  this.stopDrag();
 }
 private function over(Event:MouseEvent){
  trace(over);
 }
 private function out(Event:MouseEvent){
  trace(OUT);
 }

 public function init(){
  this.addEventListener(MouseEvent.MOUSE_DOWN,dwnn);
  this.addEventListener(MouseEvent.MOUSE_UP,upp);
  this.addEventListener(MouseEvent.ROLL_OVER,over);
  this.addEventListener(MouseEvent.ROLL_OUT,out);
 }
}
}


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



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