RE: [Flashcoders] pause an onEnterFrame?

2007-05-08 Thread Durai Raj
You can set a toggle variable to pause and resume the event

Code snippets

//Toggle variable

Var bToggleEvent:Boolean=true

Somemc.onEnterFrame=function():Void
{
If(bToggleEvent)
{
//Execute the code here
}
}


Somemc.onRollover=function()
{

bToggleEvent=false
}
Somemc.onRollout=function()
{

bToggleEvent=true

}


Hope this would solve your problem

Durai

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Count
Schemula
Sent: Tuesday, May 08, 2007 10:22 AM
To: flashcoders list
Subject: [Flashcoders] pause an onEnterFrame?

Is there anyway to pause an onEnterFrame event?

Right now I delete the onEnterFrame when an onRollOver event occurs,
and reinitialize it when an onRollOut event occurs, but that causes
all of my motion variables to get re-initiated, and thus makes the
motion go through a huge jump.

Is there a way to pause, and resume an onEnterFrame?

Thanks.

-- 
count_schemula
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



DISCLAIMER:
This communication may be confidential and privileged and the views expressed 
herein may be personal and are not necessarily the views of ReDIM.
It is for the exclusive use of the intended recipient. If you are not the 
intended recipient, please note that any distribution,
copying or use of this communication or the  information in it is strictly 
prohibited.If you have received this communication 
in error, please notify us by email ([EMAIL PROTECTED]) and then delete the 
email and any copies of it.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] pause an onEnterFrame?

2007-05-08 Thread iashido

http://proto.layer51.com/d.aspx?f=821







itseveryday.ro
iashido.com



On May 8, 2007, at 8:53 AM, Durai Raj wrote:


You can set a toggle variable to pause and resume the event

Code snippets

//Toggle variable

Var bToggleEvent:Boolean=true

Somemc.onEnterFrame=function():Void
{
If(bToggleEvent)
{
//Execute the code here
}
}


Somemc.onRollover=function()
{

bToggleEvent=false
}
Somemc.onRollout=function()
{

bToggleEvent=true

}


Hope this would solve your problem

Durai

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Count
Schemula
Sent: Tuesday, May 08, 2007 10:22 AM
To: flashcoders list
Subject: [Flashcoders] pause an onEnterFrame?

Is there anyway to pause an onEnterFrame event?

Right now I delete the onEnterFrame when an onRollOver event occurs,
and reinitialize it when an onRollOut event occurs, but that causes
all of my motion variables to get re-initiated, and thus makes the
motion go through a huge jump.

Is there a way to pause, and resume an onEnterFrame?

Thanks.

--  
count_schemula

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



DISCLAIMER:
This communication may be confidential and privileged and the views  
expressed herein may be personal and are not necessarily the views  
of ReDIM.
It is for the exclusive use of the intended recipient. If you are  
not the intended recipient, please note that any distribution,
copying or use of this communication or the  information in it is  
strictly prohibited.If you have received this communication
in error, please notify us by email ([EMAIL PROTECTED]) and then  
delete the email and any copies of it.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Save swf file to jpg

2007-05-08 Thread Berkay Unal

Hi Coder,

I want a server side way to save an swf file( some image in the background
and some drag and drop mc's) to a jpg file.

Is there any tutorial or way that you can advice?

Best
B.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Dynamic buttons not showing

2007-05-08 Thread John Trentini

Hi Attila,

I get your point but,even if i change the code to read

_root.attachMovie(butt_btn, butt+i, this.getNextHighestDepth());
will not produce the result of having the buttons placed ontop of the labels 
where i want them.

You say that I only produce an array reference to the butt+i. But I use the 
same code to produce a number of textFields using the same code and I get the 
results I want,why is this not working with my buttons?

If I want to use the array to give me the appropriate iterations and create the relevant buttons then, how would I go about it? 



Thanks
JohnT


PS
With the last line of code I was attempting at creating interaction with the 
various butt[i]



Rákos Attila wrote:


You are using square brackets a little bit confusing and in chaotic
manner :)

JT _root.createTextField(mytext+[i], this.getNextHighestDepth(), myX, 0, 
100, 30);

Why do you refer to i as [i]? Well, accidentally the actual result
will be mytext0, mytext1, mytext2, etc. but a simple mytext + i
gives the same result. If you type mytext + [i], then with your
square brackets first you create an array with single element of i,
and since the first operand of + operator is a string, this array will
be converted to string (which actually results i as a string), and
appended to mytext. So you rely on a side effect of the array to
string conversion.

JT myId = _root[mytext+[i]];

the same

JT _root.attachMovie(butt_btn, butt+[i], this.getNextHighestDepth());

and here too

JT btn = [butt+[i]];

and this line is causing troubles, probably you wanted to write
btn = _root[butt + i];
Your original code doesn't refer to the button instance, but creates
an array (square brackets!) with a single element of a string which
consists of a string literal butt and a string representation of an
array (square brackets again!) having i as its single element. So
after all btn refers to an Array instance (not the button) and you set
_x, _y properties of this array (well, there are no such built-in
properties, but you create them).

 Attila


 



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Challenge: open YouTube FLV in your own SWF

2007-05-08 Thread Stan Vassilev | FM
I've been desparately trying to figure out a way to do so, you can't do it 
since YouTube's crossdomain XML features *.google.com and *.youtube.com. I 
want to experiment with a mashup which requires direct access to the FLV.


So I started looking at the various Google services, in the hope one of them 
serves from a *.google.com domain.


Google Pages? Maybe pages.google.com ? Nope, googlepages.com
Google Widgets? Maybe widgets.google.com? Nope, gmodules.com
Google Code Projects? googlecode.com...

There's nothing on YouTube about uploading direct files I found, so my 
little experiment is doomed to fail.. unless I'm missing something? Does 
anyone of you know a service/idea/trick/API to open a streaming FLV somehow 
from YouTube?


The only thing I could think of is, of course, screen scraping the FLV url 
(keepvid.com style) and downloading it to my server to play. But that's not 
really what I wanted...


Regards, Stan Vassilev 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flv playback from DVD

2007-05-08 Thread nik crosina

Thanks for your ideas - I might jst a few frames of colour matte in
the beginning fading up so that this is not an issue anymore.

I also think that it's not a Zinc issue, as it even happens when I
just play it out of Flash (Ctrl+Enter).

We also have since discovered that the audio and video file from which
the flv was taken are not exactly the same length in the original, so
this may have an impact on this probhlem as well another problme I am
having with this which is the stop event not firing properly (but
that is another topic on this list ...


NIk C

On 5/7/07, Lists [EMAIL PROTECTED] wrote:

Nik, I think this is on topic. I have not personally had this happen to me,
and I have created many, many such apps because of the client-specified need
to show the FBI warning at the immediate start of the app. Without looking
at your app code, to see if there¹s anything obvious (and I doubt there is),
the only thing I can think of is environmental.

1. I use mProjector rather than Zinc. Not sure if that has any impact.
2. Based on your explanation, my theory is heavily leaning toward DVD
spin-up or access time. Spin-up may not be an issue since the drive has to
spin to launch the app and, presumably, is at full speed.

Maybe you could map your DVD burn to put the video closer to the file?
Probably not responsible, but it's an idea. What about adding a bit of a
delay on the user experience side to allow the FLV to preload? Does
increasing the buffer time help?

Rich


On 5/7/07 6:12 AM, nik crosina [EMAIL PROTECTED] wrote:

 Going a bit off topic, but have you ever had a kind of hick up every
 time an flv starts playback.

 I am having my Zinc created exe start with playing a intro video clip
 and it always starts with a little stutter or hick up. I guess this is
 some loading issue, but don't know what to do to solve it...



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Nik C
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] AS2: local events [fuse] to boradcast between classes?

2007-05-08 Thread sebastian chedal

Hey yawl,

I have a question, I'm using FUSE to do tweens and I need an event to be
sent when it is done.

I'm using the following syntax:

import mx.utils.Delegate;
import com.mosesSupposes.fuse.*;

class com.blabla.PostView extends MovieClip  {
private var myID:Number;
private var mainPanel:String;

//ommited code more properties...

 public function PostView () {
   ZigoEngine.register(FuseItem, PennerEasing);
 }

//ommited code: this function is inside an 'init' panel funciton called at
runtime =
 this.signPost.expandBT.onRelease = function() {
   var f:Fuse = new Fuse();
   f.label = swoopyIntro;
   f.target = this._parent.zoomBox;
   f.push({x:0, y:0, start_scale:140, start_tint: 0xff,
start_alpha:100, scale:100,ease:easeInOutCubic, seconds:0.01, tint:
0x2E2E2E, alpha:0});
   f.addEventListener('onComplete', this._parent._parent);
   f.start(true);
 }

 private function handleEvent(o:Object):Void {
   if (o.type=='onComplete') {
   trace (panel action done);
   //myBroadcaster is another AS2 file dealing with dispatching
events to subscribers:
   myBroadcaster.dispatchEvent
(panelState,{myID:myID,mainPannel:mainPannel});
   }
 }
//ommited code, more stuff...

}

My {quick} questions are:

1. Am I doing this right? Do I have to send a local event [
f.addEventListener('onComplete', this._parent._parent);] before I can
broadcast an event between [all] classes? Ideally I'd like other AS2 classes
to hear the f.addEventListener('onComplete', this._parent._parent);
directly... [without hardcoding pointers to a specific class file]

2. Is there anyway to pass the 'handleEvent' function a parameter so that I
can broadcast it? Namely I want to broadcast not only that it was done, but
which function was the originator [in this case: expandBT.onRelease or a
string like ExpandAnimationDone] - can I get around that?

Thanks for your time,

Sebastian.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Font Symbol, with cyrillic export characters?

2007-05-08 Thread Martin Klasson


Hello Flashcoders,

we are using Font Symbols in our project, and it works really well.
but now I want to be able to have the Font Symbol to contain cyrillic 
characters.


And what I can see, there are support for cyrillic characters in the 
font, but

flash only exports the western characters.

Do I have to change settings on windows xp to be able to push out a 
Cyrillic Font Symbol?


Martin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Dynamic buttons not showing

2007-05-08 Thread Lists
John,

(FYI, there's something wrong with your reply to that caused this to bounce
last night with a 501 Bad address syntax error. It looks like your own
address and FlashCoders have been combined into one. I'm not sure if that
error is from you, the list, or one of the gateways along the way, but you
might want to look into it, as I have only had this problem with replying to
your post. Here's the body of the email I sent last night.)

I've made a lot of assumptions about what you're trying to do, but it looks
like you have a lot of odd syntax in your script. Avoid using _root whenever
possible, use brackets only for array indices, etc. You can also assign the
create and attach returns to a variable immediately, instead of after the
fact.

As for how you can reference the code for the relevant functions, you can
reference them either by their newly created instance name, by their
inclusion in your arrays, or you can add a function during creation.

This script addresses most of these issues and works:

//
//create missing mc lable_mc. rotated 90-degrees? (vertical label)
//
this.createEmptyMovieClip(lable_mc,this.getNextHighestDepth());
//
//Init variables
//
var myTxt:Array = new Array(branding, news, about us, print,
marks, contact);
var subMenuArray:Array = new Array();
var myBtnArray:Array = new Array();
var myX:Number = 430;
var ySpacing:Number = 190;
var myId:TextField;
var myformat:TextFormat;
var btn:Button;
//
//create a movieClip to hold the vertical label
//
lable_mc.createTextField(myName, this.getNextHighestDepth(), 484, 200,
140, 408);
var myNformat:TextFormat = new TextFormat();
myNformat.font = Verdana;
myNformat.size = 70;
myNformat.bold = true;
myNformat.color = 0xEE;
myNformat.align = center;
lable_mc.myName.text = contact;
lable_mc.myName.setTextFormat(myNformat);
//
//create the textFields for the subMenuItems
//
for (var i:Number = 0; i  myTxt.length; i++) {
myId = this.createTextField(mytext + i, this.getNextHighestDepth(),
myX, 0, 100, 20);
myId._y = ySpacing;
ySpacing += 20;
myId.text = myTxt[i];
//Format the text of the subMenuItems
myId.border = false;
myformat = new TextFormat();
myformat.font = Verdana;
myformat.size = 13;
myformat.bold = true;
myformat.color = 0x55;
myformat.align = right;
myId.selectable = false;
myId.setTextFormat(myformat);
//
//array with submenuItems for button control
//
subMenuArray.push(myId.text);
//
//attach a button (on top of) to each textFields
//
btn = this.attachMovie(butt_btn, butt + i,
this.getNextHighestDepth());
btn._x = myX;
btn._y = myId._y;
btn.onRelease = function () {
trace(this._name);
}
//
//create an array to use later to control the buttons
//
myBtnArray.push(btn);
}

Rich Shupe


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] flv playback from DVD

2007-05-08 Thread Sainz de la Maza Ruben
I had some problems with big videos on DVDs and Flash.
On local videos, Flash don´t stream, and preloads don´t works.
Then, the clients see an black screen after Flash loads a total video to play.
My solution was take a Zinc, and work video width MediaPlayer6.
The problem is that don´t support flv.

I realy need to work with local streaming in Flash, but think this not happen!


Ruben

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de nik crosina
Enviado el: Martes, 08 de Mayo de 2007 08:16
Para: flashcoders@chattyfig.figleaf.com
Asunto: Re: [Flashcoders] flv playback from DVD

Thanks for your ideas - I might jst a few frames of colour matte in
the beginning fading up so that this is not an issue anymore.

I also think that it's not a Zinc issue, as it even happens when I
just play it out of Flash (Ctrl+Enter).

We also have since discovered that the audio and video file from which
the flv was taken are not exactly the same length in the original, so
this may have an impact on this probhlem as well another problme I am
having with this which is the stop event not firing properly (but
that is another topic on this list ...


NIk C

On 5/7/07, Lists [EMAIL PROTECTED] wrote:
 Nik, I think this is on topic. I have not personally had this happen to me,
 and I have created many, many such apps because of the client-specified need
 to show the FBI warning at the immediate start of the app. Without looking
 at your app code, to see if there¹s anything obvious (and I doubt there is),
 the only thing I can think of is environmental.

 1. I use mProjector rather than Zinc. Not sure if that has any impact.
 2. Based on your explanation, my theory is heavily leaning toward DVD
 spin-up or access time. Spin-up may not be an issue since the drive has to
 spin to launch the app and, presumably, is at full speed.

 Maybe you could map your DVD burn to put the video closer to the file?
 Probably not responsible, but it's an idea. What about adding a bit of a
 delay on the user experience side to allow the FLV to preload? Does
 increasing the buffer time help?

 Rich


 On 5/7/07 6:12 AM, nik crosina [EMAIL PROTECTED] wrote:

  Going a bit off topic, but have you ever had a kind of hick up every
  time an flv starts playback.
 
  I am having my Zinc created exe start with playing a intro video clip
  and it always starts with a little stutter or hick up. I guess this is
  some loading issue, but don't know what to do to solve it...



 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



-- 
Nik C
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] toronto flash developer

2007-05-08 Thread Tim Arney
Dashboard is seeking a fulltime flash developer to join our growing team
 
For details - 
 
http://www.dashboard.ca/?section=jobs 
 
http://www.youtube.com/watch?v=BuS3jHZN4SI
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Question on removing Proxied Functions and EventListeners

2007-05-08 Thread Jiri Heitlager | dadata.org


Hello List,

I was wondering if I am doing something correctly when adding listeners
to objects. My question is, if I remove the listener is the code below
then the right way. Do I use the Proxy class (or mx.utils.Delegate) also
when I remove the listener??

//adding a listener
this.currentDisplayObject.addEventListener('onContentCleared' ,
utils.Proxy.create(this ,  onBlockContentDestoyed , 'text ' , url))

//removing it
this.currentDisplayObject.removeEventListener('onContentCleared' ,
utils.Proxy.create(this ,  onBlockContentDestoyed))

Thank you

Jiri
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Question on removing Proxied Functions and EventListeners

2007-05-08 Thread T. Michael Keesey

On 5/8/07, Jiri Heitlager | dadata.org [EMAIL PROTECTED] wrote:


Hello List,

I was wondering if I am doing something correctly when adding listeners
to objects. My question is, if I remove the listener is the code below
then the right way. Do I use the Proxy class (or mx.utils.Delegate) also
when I remove the listener??

//adding a listener
this.currentDisplayObject.addEventListener('onContentCleared' ,
utils.Proxy.create(this ,  onBlockContentDestoyed , 'text ' , url))

//removing it
this.currentDisplayObject.removeEventListener('onContentCleared' ,
utils.Proxy.create(this ,  onBlockContentDestoyed))


This won't work unless your Proxy class ensures that all instances
with the same parameters are identical. (It probably doesn't--I've
tried that route and it's a processor hog--you build up dozens of
instances and have to search through them all whener you call the
create() method.) Your last line will just create a new Proxy function
instance and, when it attempts to remove it from the event dispatcher,
it won't do anything, since that new Proxy function instance was never
added.

What you have to do is create a reference to the Proxy function:

import utils.Proxy;
// Among the field declarations:
   private var $onBlockContentDestroyed:Function;
// In constructor:
   $onBlockContentDestroyed = Proxy.create(this,
onBlockContentDestroyed, 'text', url);
// Adding the listener:
   currentDisplayObject.addEventListener(onContentCleared,
$onBlockContentDestroyed );
// Removing the listener:
   currentDisplayObject.removeEventListener(onContentCleared,
$onBlockContentDestroyed );

Also, in general I would suggest using Delegate rather than Proxy. The
relevant information ('text', url) can be gleaned from the dispatched
event's target or by using a custom type of event. This approach
allows for stronger type-checking (and hence more errors caught at
compile-time rather than at run-time) and is more consistent with how
things are done in AS3. (Where, praise Odin, you don't need delegates
at all, since each function instance has a reference to its scope.)

--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Bitmap draw and transparency

2007-05-08 Thread David Cohn

Hey all,

I must be missing something straight-forward here...

I'm loading a PNG file with a transparent background, and then I want  
to extract the Bitmap, preserving its transparency.  The loaded clip  
shows up with the transparent background, but after the .draw(), the  
bitmap seems to lose its transparency.  (the trace statement, of  
course, shows the .transparent property to be true)


Can anyone spot the error?

Thanks,
--Dave


loaderObj.onLoadInit = function( target_mc:MovieClip ) {

// tried with and without setting fillColor
	var m_cBitmap = new BitmapData( target_mc._width, target_mc._height,  
true, 0xFF99 );


	// tried with and without setting pMatrix, pColorTransform, and  
various blendModes

var pMatrix = new Matrix();
var pColorTransform = new ColorTransform();
m_cBitmap.draw( target_mc, pMatrix, pColorTransform, normal );

	var bitmap_mc = _root.createEmptyMovieClip( transparency_test,  
_root.getNextHighestDepth() );

bitmap_mc.attachBitmap(m_cBitmap, 2, auto, true);

trace(onLoadInit: transparency=+m_cBitmap.transparent);
};





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Question on removeEventListener and Delegate callback

2007-05-08 Thread Jiri Heitlager | dadata.org

Hello List,

I was wondering if I am doing something correctly when adding listeners
to objects. My question is, if I remove the listener is the code below
then the right way. Do I use the Proxy class (or mx.utils.Delegate) also
when I remove the listener??

//adding a listener
this.currentDisplayObject.addEventListener('onContentCleared' ,
utils.Proxy.create(this ,  onBlockContentDestoyed , 'text ' , url))

//removing it
this.currentDisplayObject.removeEventListener('onContentCleared' ,
utils.Proxy.create(this ,  onBlockContentDestoyed))

Thank you

Jiri


John Trentini wrote:

Hi guys,


I want to create as many text fields (which eventually I would like to 
turn into buttons) as the length of an array. I also want to use the 
content of the array to populate the text of the fields created 
dynamically. I have tried everything I know but all I seem to get is 
one filed with the lasat item in the array, sheesh!


I've gone absolutely mad on this one (newish to actionScript, I am!) but 
can anyone tell me what  I am doing wrong here? I could do with a 
helping hand or seven =:-)




var myTxt:Array = new Array(branding, news, about us, print, 
marks, contact);

var myX = 430;
var menuArray:Array = new Array();
var ySpacing:Number = 90;
//

/*create  textFields**/
//
//

for(i=0; imyTxt.length; i++) {
   _root.createTextField(mytext+[i], 1, myX, 0, 100, 30);
   myId = _root[mytext+[i]];
   myId._y = ySpacing;
   ySpacing += 40;
   //  trace(myTxt[i]);//the trace works, it list 
all tyhe lements in the array but
   myId.text = myTxt[i];  // this one in not producing the appropriate 
results

   //
   myId.border = false;
   myformat = new TextFormat();
   myformat.font = Verdana;
   myformat.size = 14;
   myformat.bold = true;
   myformat.color = 0x55;
   myformat.align = right;
   //
   myId.selectable = false;
   myId.setTextFormat(myformat);
   //myId.text = myTxt[i];  //tried putting it at the end but no dah!
   //
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Question on removeEventListener and Delegate callback

2007-05-08 Thread Jiri Heitlager | dadata.org

I was wondering if I am doing something correctly when adding listeners
to objects. My question is, if I remove the listener is the code below
then the right way. Do I use the Proxy class (or mx.utils.Delegate) also
when I remove the listener??

//adding a listener
this.currentDisplayObject.addEventListener('onContentCleared' ,
utils.Proxy.create(this ,  onBlockContentDestoyed , 'text ' , url))

//removing it
this.currentDisplayObject.removeEventListener('onContentCleared' ,
utils.Proxy.create(this ,  onBlockContentDestoyed))

Thank you

Jiri

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re[2]: [Flashcoders] Dynamic buttons not showing

2007-05-08 Thread R�kos Attila

Accidentally I sent this reply to your address instead of the list, so
I send it again there:

JT _root.attachMovie(butt_btn, butt+i, this.getNextHighestDepth());
JT will not produce the result of having the buttons placed ontop of
JT the labels where i want them.

This naming is correct (and it leads to the same result as your
original butt + [i], but without unnecessary array creations and
conversions), the main problem however is caused by this line (as I
wrote):

btn = [butt+[i]];

This doesn't refer to the button instance, so thus btn._y in the next
lines doesn't refer to the button's _y property. Probably you need
something like this:

btn = _root[butt + i];

JT You say that I only produce an array reference to the butt+i. But
JT I use the same code to produce a number of textFields using the
JT same code and I get the results I want,why is this not working
JT with my buttons?

No, you did not the same, you wrote this line at the text fields:

myId = _root[mytext+[i]];

Do you see the difference? Square brackets can be used to refer to a
property of a particular object by the property's name, if you put an
object reference before the square brackets (you did it with text
fields, but didn't with buttons). If you use square brackets alone,
then it is a shorthand for creating an array, e.g.:

var a1: Array = new Array(1, 2, 3, 4, 5);
var a2: Array = new Array();

is the same as

var a1: Array = [1, 2, 3, 4, 5];
var a2: Array = [];

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Question on removeEventListener and Delegate callback

2007-05-08 Thread R�kos Attila

Why do you post the same question 4 times and with two different
subjects? I (and others) already answered your question yesterday.

  Attila


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Dynamic buttons not showing

2007-05-08 Thread John Trentini

Thanks Attila,
Now I understand... (I think ;))

I have made the changes,

That lineof code was an attempt at addressing each of the buttons and I 
wrote it to see what output I would get; I know that it is not right.


I think I will approach the whole thing in an alltogether different 
manner  though: attach movieClips that contain a button and a lable, 
that way I may be able to control the content and look of the lable as  
well as the navigation.


Cheers
JohnT

Rákos Attila wrote:


Accidentally I sent this reply to your address instead of the list, so
I send it again there:

JT _root.attachMovie(butt_btn, butt+i, this.getNextHighestDepth());
JT will not produce the result of having the buttons placed ontop of
JT the labels where i want them.

This naming is correct (and it leads to the same result as your
original butt + [i], but without unnecessary array creations and
conversions), the main problem however is caused by this line (as I
wrote):

btn = [butt+[i]];

This doesn't refer to the button instance, so thus btn._y in the next
lines doesn't refer to the button's _y property. Probably you need
something like this:

btn = _root[butt + i];

JT You say that I only produce an array reference to the butt+i. But
JT I use the same code to produce a number of textFields using the
JT same code and I get the results I want,why is this not working
JT with my buttons?

No, you did not the same, you wrote this line at the text fields:

myId = _root[mytext+[i]];

Do you see the difference? Square brackets can be used to refer to a
property of a particular object by the property's name, if you put an
object reference before the square brackets (you did it with text
fields, but didn't with buttons). If you use square brackets alone,
then it is a shorthand for creating an array, e.g.:

var a1: Array = new Array(1, 2, 3, 4, 5);
var a2: Array = new Array();

is the same as

var a1: Array = [1, 2, 3, 4, 5];
var a2: Array = [];

 Attila


 



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] ショートヘアー特集 !

2007-05-08 Thread あせらずじっくりと探してね!

なにしろ、ぜーんぶ無料だから、
納得いくまでじっくりと素敵な娘探してね!

静江 27歳
海が大好な岸和田っ子です。
一緒にお酒飲んだり、
楽しい時間をすごしましょ♪ 
まずは、メールしませんか? 
よろしくお願いします。
http://m2mroom.com/OS/


聡美 30歳
既婚者ですが心から大切に思える人との出会いを求めています。
お洒落が大好きです。私と話をしてくれますか? 
http://m2mroom.com/OS/


多佳子 21歳
今、彼氏とうまくいってません。 
こうゆうサイトに登録していいのかまよったのですが・・・。
しちゃいました。美少年はもちろん面白い人大募集!
http://m2mroom.com/OS/

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Dynamic buttons not showing

2007-05-08 Thread John Trentini

Thanks Rich,

Not sure what caused the bounce but I find that is I just reply to a 
post,  it goes to the private email address rather than the list; I need 
to remeber to 'reply to all' all the times, a real pain .


Quite a few little tips in your code, and i am learning, much 
appreciated; it all goes to better practices.


Unfortunately your code (unchanged) does not work for me, while the 
following does :)


//  Init properties and variables _
//
var myTxt:Array = new Array(branding, news, about us, print, 
marks, contact);

var subMenuArray:Array = new Array();
var myBtnArray:Array = new Array();
var myX = 430;
var ySpacing:Number = 190;

var btn:Button;
//
//
//_create a movieClip to hold the vertical 
label_

//
_root.lable_mc.createTextField(myName, this.getNextHighestDepth(), 
484, 200, 140, 408);

myNformat = new TextFormat();
myNformat.font = Verdana;
myNformat.size = 70;
myNformat.bold = true;
myNformat.color = 0xEE;
myNformat.selectable = false;
//0xF6F6F6;
myNformat.align = center;
_root.lable_mc.myName.text = contact;
_root.lable_mc.myName.setTextFormat(myNformat);
//
//
//create the textFields for the 
subMenuItems___

//
for (i=0; imyTxt.length; i++) {
   _root.createTextField(mytext+i, this.getNextHighestDepth(), myX, 
0, 100, 30);

   myId = _root[mytext+[i]];
   myId._y = ySpacing;
   ySpacing += 20;
   //   
   //trace(myTxt[i]);

   myId.text = myTxt[i];
   //
   //Format the text of the subMenuItems_
   //
   myId.border = false;
   myformat = new TextFormat();
   myformat.font = Verdana;
   myformat.size = 13;
   myformat.bold = true;
   myformat.color = 0x55;
   myformat.align = right;
   //
   myId.selectable = false;
   myId.setTextFormat(myformat);
   //
   //__create an Array with the submenuItems to be used in the buttons 
control function__

   //
   subMenuArray.push(myId.text);
   //
   //attach a button (on top of) to each textFields__
   //_use myTxt[i] to create the buttons names to manage the 
navigation later_

   //
   btn = this.attachMovie(butt_btn, myTxt[i], 
this.getNextHighestDepth());

   btn._alpha = 0;
   btn._x = myX;
   btn._y = myId._y;
   //
   btn.onRelease = function() {
   trace(this._name);
   };
   //_create an array to use later to control the 
buttons_

   //
   myBtnArray.push(btn);
   //trace(The y for +myBtnArray[i]+ is: +btn._y+ and its x is: 
+btn._x);
   //   
}




Lists wrote:


John,

(FYI, there's something wrong with your reply to that caused this to bounce
last night with a 501 Bad address syntax error. It looks like your own
address and FlashCoders have been combined into one. I'm not sure if that
error is from you, the list, or one of the gateways along the way, but you
might want to look into it, as I have only had this problem with replying to
your post. Here's the body of the email I sent last night.)

I've made a lot of assumptions about what you're trying to do, but it looks
like you have a lot of odd syntax in your script. Avoid using _root whenever
possible, use brackets only for array indices, etc. You can also assign the
create and attach returns to a variable immediately, instead of after the
fact.

As for how you can reference the code for the relevant functions, you can
reference them either by their newly created instance name, by their
inclusion in your arrays, or you can add a function during creation.

This script addresses most of these issues and works:

//
//create missing mc lable_mc. rotated 90-degrees? (vertical label)
//
this.createEmptyMovieClip(lable_mc,this.getNextHighestDepth());
//
//Init variables
//
var myTxt:Array = new Array(branding, news, about us, print,
marks, contact);
var subMenuArray:Array = new Array();
var myBtnArray:Array = new Array();
var myX:Number = 430;
var ySpacing:Number = 190;
var myId:TextField;
var myformat:TextFormat;
var btn:Button;
//
//create a movieClip to hold the vertical label
//
lable_mc.createTextField(myName, this.getNextHighestDepth(), 484, 200,
140, 408);
var myNformat:TextFormat = new TextFormat();
myNformat.font = Verdana;
myNformat.size = 70;
myNformat.bold = true;
myNformat.color = 0xEE;
myNformat.align = center;
lable_mc.myName.text = contact;
lable_mc.myName.setTextFormat(myNformat);
//
//create the textFields for the subMenuItems
//
for (var i:Number = 0; i  myTxt.length; i++) {
   myId = this.createTextField(mytext + i, this.getNextHighestDepth(),
myX, 0, 100, 20);
   myId._y = ySpacing;
   ySpacing += 20;
   myId.text = myTxt[i];
   //Format the text of the subMenuItems
   myId.border = false;
   myformat = new TextFormat();
   myformat.font = Verdana;
   myformat.size = 13;
   myformat.bold = true;
   myformat.color = 0x55;
   myformat.align = right;
   myId.selectable = false;
   myId.setTextFormat(myformat);
   //
   //array with submenuItems 

RE: [Flashcoders] London flash developer

2007-05-08 Thread Karim Beyrouti
Ooops... 

that’s what you get when you hit reply to post a new email. we are looking
for London based developers... details below...


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Karim
Beyrouti
Sent: 08 May 2007 16:37
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] toronto flash developer

Hi All - 

We are looking for London based freelance flash developers, who are
comfortable with AS2 advanced action scripting, and integrating sites with
web services. 

Please send CV's / samples of your work to: freelancers[at]2020london.co.uk






No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.6.5/792 - Release Date: 06/05/2007
21:01
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.6.5/792 - Release Date: 06/05/2007
21:01
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.6.5/792 - Release Date: 06/05/2007
21:01
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Zombie symbol - can't get rid of some text

2007-05-08 Thread Michael King

Hey all,

I know this is more of  a flash question than an actionscript question, but
it's sorta related.

Anyway, at one time (a few versions back), I had some static text across
the top of the scene, in its own layer.

I moved it off the stage to test dynamically displaying the text (the movie
ended up becoming multi-purpose, so instead of re-inventing the wheel, I
came up with a solution using query variables)

And now, the text is there when I publish it, even though I've deleted the
text object, a symbol version of it AND the layer it was on.  I had
understood anything off of the stage wouldn't be displayed, but I'm sure
that's a checkbox I'm missing.

In any event, with or without hiding the off stage area, how come I can't
get rid of this text? It shows up about where I originally moved it to for
the testing, way above the scene, but it's not in the FLA that I can see.

Is there something else I'm missing?  Maybe some extraneous object files
that I should delete?  I can't find anything other than the SWF, FLA and
HTML files in my publishing folder and it's frustrating me to no end.

Help?

Thanks,

Michael King
CSIRT - Developer
Security Incident Response Group
Humana Inc.
E-mail: [EMAIL PROTECTED]
STANDS: Some Theoretical Acronym Not Described Sufficiently

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain CONFIDENTIAL material.  If you receive this 
material/information in error, please contact the sender and delete or destroy 
the material/information.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Zombie symbol - can't get rid of some text

2007-05-08 Thread Bob Wohl

Hey Michael,

You may want to add a mask that only displays the stage(it's quick, easy,
and will not leave you stumped for hours =P )


B.


On 5/8/07, Michael King [EMAIL PROTECTED] wrote:



Hey all,

I know this is more of  a flash question than an actionscript question,
but
it's sorta related.

Anyway, at one time (a few versions back), I had some static text across
the top of the scene, in its own layer.

I moved it off the stage to test dynamically displaying the text (the
movie
ended up becoming multi-purpose, so instead of re-inventing the wheel, I
came up with a solution using query variables)

And now, the text is there when I publish it, even though I've deleted the
text object, a symbol version of it AND the layer it was on.  I had
understood anything off of the stage wouldn't be displayed, but I'm sure
that's a checkbox I'm missing.

In any event, with or without hiding the off stage area, how come I
can't
get rid of this text? It shows up about where I originally moved it to for
the testing, way above the scene, but it's not in the FLA that I can see.

Is there something else I'm missing?  Maybe some extraneous object files
that I should delete?  I can't find anything other than the SWF, FLA and
HTML files in my publishing folder and it's frustrating me to no end.

Help?

Thanks,

Michael King
CSIRT - Developer
Security Incident Response Group
Humana Inc.
E-mail: [EMAIL PROTECTED]
STANDS: Some Theoretical Acronym Not Described Sufficiently

The information transmitted is intended only for the person or entity to
which it is addressed and may contain CONFIDENTIAL material.  If you receive
this material/information in error, please contact the sender and delete or
destroy the material/information.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Zombie symbol - can't get rid of some text

2007-05-08 Thread Hershell Bryant
Have you looked in the project's library pane to see if there's an instance
of it there? You might still have linkage that's embedding it into your
compiled project.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Wohl
Sent: Tuesday, May 08, 2007 10:41 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Zombie symbol - can't get rid of some text

Hey Michael,

You may want to add a mask that only displays the stage(it's quick, easy,
and will not leave you stumped for hours =P )


B.


On 5/8/07, Michael King [EMAIL PROTECTED] wrote:


 Hey all,

 I know this is more of  a flash question than an actionscript question,
 but
 it's sorta related.

 Anyway, at one time (a few versions back), I had some static text across
 the top of the scene, in its own layer.

 I moved it off the stage to test dynamically displaying the text (the
 movie
 ended up becoming multi-purpose, so instead of re-inventing the wheel, I
 came up with a solution using query variables)

 And now, the text is there when I publish it, even though I've deleted the
 text object, a symbol version of it AND the layer it was on.  I had
 understood anything off of the stage wouldn't be displayed, but I'm sure
 that's a checkbox I'm missing.

 In any event, with or without hiding the off stage area, how come I
 can't
 get rid of this text? It shows up about where I originally moved it to for
 the testing, way above the scene, but it's not in the FLA that I can see.

 Is there something else I'm missing?  Maybe some extraneous object files
 that I should delete?  I can't find anything other than the SWF, FLA and
 HTML files in my publishing folder and it's frustrating me to no end.

 Help?

 Thanks,

 Michael King
 CSIRT - Developer
 Security Incident Response Group
 Humana Inc.
 E-mail: [EMAIL PROTECTED]
 STANDS: Some Theoretical Acronym Not Described Sufficiently

 The information transmitted is intended only for the person or entity to
 which it is addressed and may contain CONFIDENTIAL material.  If you
receive
 this material/information in error, please contact the sender and delete
or
 destroy the material/information.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] pause an onEnterFrame?

2007-05-08 Thread Leandro Amano

Don't use onEnterFrame event in mc instances, example:

var o:Object = new Object();
o.onEnterFrame = function() {
trace(true);
};
var mc:MovieClip = this.attachMovie(a, b, 1, o);

[]'s
Leandro Amano

On 5/8/07, Durai Raj [EMAIL PROTECTED] wrote:


You can set a toggle variable to pause and resume the event

Code snippets

//Toggle variable

Var bToggleEvent:Boolean=true

Somemc.onEnterFrame=function():Void
{
If(bToggleEvent)
{
//Execute the code here
}
}


Somemc.onRollover=function()
{

bToggleEvent=false
}
Somemc.onRollout=function()
{

bToggleEvent=true

}


Hope this would solve your problem

Durai

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Count
Schemula
Sent: Tuesday, May 08, 2007 10:22 AM
To: flashcoders list
Subject: [Flashcoders] pause an onEnterFrame?

Is there anyway to pause an onEnterFrame event?

Right now I delete the onEnterFrame when an onRollOver event occurs,
and reinitialize it when an onRollOut event occurs, but that causes
all of my motion variables to get re-initiated, and thus makes the
motion go through a huge jump.

Is there a way to pause, and resume an onEnterFrame?

Thanks.

--
count_schemula
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



DISCLAIMER:
This communication may be confidential and privileged and the views
expressed herein may be personal and are not necessarily the views of ReDIM.
It is for the exclusive use of the intended recipient. If you are not the
intended recipient, please note that any distribution,
copying or use of this communication or the  information in it is strictly
prohibited.If you have received this communication
in error, please notify us by email ([EMAIL PROTECTED]) and then delete the
email and any copies of it.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Full-time Pure ActionScript Position Available (No Websites)

2007-05-08 Thread Mark Lapasa

[Position Summary]
The Flash Developer will be responsible for integrating unique solutions 
within our Flash Gaming Suites. The position strongly emphasizes 
ActionScript programming, from core libraries to interface development. 
The position will be part of a team of 2-5 flash developers and 2-3 
graphic designers of varying experience.



[Key Responsibilities]
- Assist in the creation and maintenance of Parlay’s suite of Flash games
- Integrate solutions within Parlay’s Gaming Suites
- Flash skill requirement is largely ActionScript and interfacing with 
Java and Web components



[Required Skills and Competencies]
- Competency in the use of all Flash IDE’s from Flash MX 2004 onward
- Extensive Flash ActionScript experience with AS1 and AS2 with a 
workable understanding of AS3.
- Familiarity with OO concepts, design patterns and is comfortable with 
implementing them for Flash applications

- Familiarity with HTML
- Must be flexible and able to work with AS1, AS2, and AS3 scripts
- Formal training in programming is a requirement
- 2-3 years related experience
- Strong written and oral communication skills


[Definite Assets]
- Proficiency in Photoshop, Illustrator, Sound and Video Editing Software
- Understanding of Java, XML, HTML, and other web technologies
- Gaming experience
- A College Diploma or University Degree in a technology field



So if you are interested or you know someone who might be, please send 
me your resume/CSV at mlapasa [at] parlaygroup [dot] com. The role is 
focused on client-side application development and not website design. 
For more information about the company, please visit 
http://www.parlaygroup.com.





Mark Lapasa
Flash Developer
Parlay Entertainment
Where the World Plays Bingo.
mlapasa [at] parlaygroup [dot] com
www.parlaygroup.com
2305 Wyecroft Road, Second Floor,
Oakville, ON, Canada L6L 6R2

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] ASO files, file times, and classes, oh my

2007-05-08 Thread Matt Samet
Thanks - however I don't think it's a cross reference issue with various
classes.  I'm not referring to any other code in other classes.  I'm
thinking it's related to file times and a bug with Flash.

Cool compiler class though, may come in handy.

-=matt

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stephen
Downs
Sent: Monday, May 07, 2007 1:02 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] ASO files, file times, and classes, oh my

I've seen this before, but can't clearly understand the root cause.  
Most likely it is the cross-referencing bytecode compile bug that  
plagues Flash 8. Deleting ASO files does not work in many cases.

I solve it by using my devilishly simple Compile class, as pointed  
out in the recent Flash 8 OSX - Classpath woes thread. Here again  
is the class, with usage help in the comments:


// -

/**
* Compiler class
*
* This is a simple class to aid in compiling other self-referential  
classes that stubbornly refuse to compile. This frequently occurs  
when a class (A) refers to another class (B) which then refers back  
to the first class (A), giving the following compile error: The name  
of this class, 'x', conflicts with the name of another class that was  
loaded, 'x'. To address this issue, just change the import reference  
in this class to refer to the problem class, and check syntax on this  
class.
*
* The logic behind this fix is explained here: http:// 
ericlin2.tripod.com/as2/conflict.html
*
* @author Stephen Downs [EMAIL PROTECTED]
* @version 1.0
* @langversion ActionScript 2.0
* @playerversion Flash 8
*/
// Change this reference to target the stubborn class.
import com.plasticbrain.dir.MyStubbornClass;
//
class com.plasticbrain.tools.Compiler  { }

// -




On 2007-05-07, at 10:57 AM, Matt Samet wrote:

 Hi,



 I have a project I'm working on that contains multiple class files.
 Every now and then someone is working on these files who is located  
 in a
 different time zone.  They check in their changes, I get them, and all
 hell breaks loose with Flash.



 It's always the same error:



 **Error** C:\Users\Matt\AppData\Local\Macromedia\Flash
 8\en\Configuration\Classes\FP8\System\capabilities.as: Line 7: The  
 name
 of this class, 'System.capabilities', conflicts with the name of  
 another
 class that was loaded, 'System'.



 ... where the actual class name in the error depends on what's being
 compiled at the time.



 Also, I don't even have to touch anything - go to the main .fla file,
 select Delete ASO files, and I get that particular error again (the  
 one
 about System.capabilities).  I haven't even modified the
 System.capabilities class!   (but I use system.capabilities in the  
 code
 in various places)

 This happens when I try to publish the SWF.



 Try to publish it again, and it magically works!  WTF!



 I've tried to work around this issue by changing my system date to  
 a few
 days in the future.  This seems to temporarily work, but then  
 sometimes
 it gets all weird again.



 For a few classes that are being worked on, it's gotten to the point
 where I can't even modify the class and see the changes when I reload
 the browser without deleting the class's ASO file (at which point,  
 I get
 the conflicts with the name of another class that was loaded error -
 2nd publish attempt works fine).



 Anyone know what's going on?  Macrodobe, please fix this in CS3 if  
 it's
 not already!!!



 Thanks,

 -=matt

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] pause an onEnterFrame?

2007-05-08 Thread Durai Raj
Yes it would be better that we did that on the object. But I guess Schemula
specified for a movieClip?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Leandro
Amano
Sent: Tuesday, 8 May, 2007 23:36
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] pause an onEnterFrame?

Don't use onEnterFrame event in mc instances, example:

var o:Object = new Object();
o.onEnterFrame = function() {
 trace(true);
};
var mc:MovieClip = this.attachMovie(a, b, 1, o);

[]'s
Leandro Amano

On 5/8/07, Durai Raj [EMAIL PROTECTED] wrote:

 You can set a toggle variable to pause and resume the event

 Code snippets

 //Toggle variable

 Var bToggleEvent:Boolean=true

 Somemc.onEnterFrame=function():Void
 {
 If(bToggleEvent)
 {
 //Execute the code here
 }
 }


 Somemc.onRollover=function()
 {

 bToggleEvent=false
 }
 Somemc.onRollout=function()
 {

 bToggleEvent=true

 }


 Hope this would solve your problem

 Durai

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Count
 Schemula
 Sent: Tuesday, May 08, 2007 10:22 AM
 To: flashcoders list
 Subject: [Flashcoders] pause an onEnterFrame?

 Is there anyway to pause an onEnterFrame event?

 Right now I delete the onEnterFrame when an onRollOver event occurs,
 and reinitialize it when an onRollOut event occurs, but that causes
 all of my motion variables to get re-initiated, and thus makes the
 motion go through a huge jump.

 Is there a way to pause, and resume an onEnterFrame?

 Thanks.

 --
 count_schemula
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



 DISCLAIMER:
 This communication may be confidential and privileged and the views
 expressed herein may be personal and are not necessarily the views of
ReDIM.
 It is for the exclusive use of the intended recipient. If you are not the
 intended recipient, please note that any distribution,
 copying or use of this communication or the  information in it is strictly
 prohibited.If you have received this communication
 in error, please notify us by email ([EMAIL PROTECTED]) and then delete the
 email and any copies of it.


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



DISCLAIMER:
This communication may be confidential and privileged and the views expressed 
herein may be personal and are not necessarily the views of ReDIM.
It is for the exclusive use of the intended recipient. If you are not the 
intended recipient, please note that any distribution,
copying or use of this communication or the  information in it is strictly 
prohibited.If you have received this communication 
in error, please notify us by email ([EMAIL PROTECTED]) and then delete the 
email and any copies of it.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders][OT] is the Flash9/CS3 delivered to anyone yet?

2007-05-08 Thread Cortlandt Winters

I know this is OT so I'm marking it so, but I DO want to offer the advice to
anyone interested

You may want to buy the boxed version.

I only mention it because with MM and their site I got into the habit of
purchasing the download version  and later on, checking the also send a cd
checkbox for reinstalls. But the Adobe site,

a) doesn't have this option, which you don't find out until the end of the
process because the MM option was at the end of the process.

b) the cs3 web premium version is 2+gigabytes and is 1 monolithic rather
than seperate downloads - so download errors are still possible even in
todays broadband world and backup will require dvdr rather than cdr

c) I can't remember c, but think there may have been one.

I would also like to add, as long as I'm already spamming folk with OT that
1) The price for CS3 for studio 8 owners is way more reasonable than I
expected and has engendered some good emotions on my part towards adobe,
(especially since Corel has completed it's ruination of both Painter and
PSP)
2) I'm  amazed how similar photoshop cs3 seems to whatever version I had
last which was, like, 1997.
3) Fireworks CS3 Is really nice. Glad they kept it and did something with
it.
4) We really need to create some open source liquid layout components for
Flash 9.

Do well,

Sorry for the OT

Out.

-Cort

On 5/7/07, Hairy Dog Digital [EMAIL PROTECTED] wrote:


Can't speak for the unbundled version, but the CS3 version bundled with
the CS3 Suites is out and shipping. I received my Web Premium bundle just
over a week ago.

...Rob

-Original Message-
From: dave matthews [mailto:[EMAIL PROTECTED]
Sent: Monday, May 07, 2007 1:15 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] is the Flash9/CS3 delivered to anyone yet?

hi all,
  Noticed Flash9/CS3 is offered as a separate download and/or
upgrade($199)
is on the Adobe site now.

  Has anyone purchased and received it yet, or is this just a preorder
deal?

thanks,
Dave_Matthews


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] pause an onEnterFrame?

2007-05-08 Thread Count Schemula

Thanks everyone.

The onEnterFrame is not attached to any clip, but, I have a bunch of
balls bouncing around a screen, and I just wanted to pause them when
interacting with one of them.

I never really figured out how to pause the onEnterFrame. What I did
was, pull the setting of the variables for direction and velocity into
an init function that is only run once. The variables are not
destroyed when I delete the onEnterFrame, and when I want motion to
resume, I go to the same frame, basically refiring the onEnterFrame.

On 5/8/07, Durai Raj [EMAIL PROTECTED] wrote:

Yes it would be better that we did that on the object. But I guess Schemula
specified for a movieClip?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Leandro
Amano
Sent: Tuesday, 8 May, 2007 23:36
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] pause an onEnterFrame?

Don't use onEnterFrame event in mc instances, example:

var o:Object = new Object();
o.onEnterFrame = function() {
 trace(true);
};
var mc:MovieClip = this.attachMovie(a, b, 1, o);

[]'s
Leandro Amano

On 5/8/07, Durai Raj [EMAIL PROTECTED] wrote:

 You can set a toggle variable to pause and resume the event

 Code snippets

 //Toggle variable

 Var bToggleEvent:Boolean=true

 Somemc.onEnterFrame=function():Void
 {
 If(bToggleEvent)
 {
 //Execute the code here
 }
 }


 Somemc.onRollover=function()
 {

 bToggleEvent=false
 }
 Somemc.onRollout=function()
 {

 bToggleEvent=true

 }


 Hope this would solve your problem

 Durai

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Count
 Schemula
 Sent: Tuesday, May 08, 2007 10:22 AM
 To: flashcoders list
 Subject: [Flashcoders] pause an onEnterFrame?

 Is there anyway to pause an onEnterFrame event?

 Right now I delete the onEnterFrame when an onRollOver event occurs,
 and reinitialize it when an onRollOut event occurs, but that causes
 all of my motion variables to get re-initiated, and thus makes the
 motion go through a huge jump.

 Is there a way to pause, and resume an onEnterFrame?

 Thanks.

 --
 count_schemula
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



 DISCLAIMER:
 This communication may be confidential and privileged and the views
 expressed herein may be personal and are not necessarily the views of
ReDIM.
 It is for the exclusive use of the intended recipient. If you are not the
 intended recipient, please note that any distribution,
 copying or use of this communication or the  information in it is strictly
 prohibited.If you have received this communication
 in error, please notify us by email ([EMAIL PROTECTED]) and then delete the
 email and any copies of it.


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



DISCLAIMER:
This communication may be confidential and privileged and the views expressed 
herein may be personal and are not necessarily the views of ReDIM.
It is for the exclusive use of the intended recipient. If you are not the 
intended recipient, please note that any distribution,
copying or use of this communication or the  information in it is strictly 
prohibited.If you have received this communication
in error, please notify us by email ([EMAIL PROTECTED]) and then delete the 
email and any copies of it.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
count_schemula
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training

Re: [Flashcoders] Bitmap draw and transparency

2007-05-08 Thread Brian Williams

did you try filling with 0?  You're setting the background color to an
opaque color, and then drawing the transparent bitmap on top of it.

var m_cBitmap = new BitmapData( target_mc._width, target_mc._height,
true, 0x0 );

if you don't specify the color, it might be using 0xff00 (black with an
alpha of 255).

--Brian

On 5/8/07, David Cohn [EMAIL PROTECTED] wrote:


Hey all,

I must be missing something straight-forward here...

I'm loading a PNG file with a transparent background, and then I want
to extract the Bitmap, preserving its transparency.  The loaded clip
shows up with the transparent background, but after the .draw(), the
bitmap seems to lose its transparency.  (the trace statement, of
course, shows the .transparent property to be true)

Can anyone spot the error?

Thanks,
--Dave


loaderObj.onLoadInit = function( target_mc:MovieClip ) {

// tried with and without setting fillColor
var m_cBitmap = new BitmapData( target_mc._width,
target_mc._height,
true, 0xFF99 );

// tried with and without setting pMatrix, pColorTransform, and
various blendModes
var pMatrix = new Matrix();
var pColorTransform = new ColorTransform();
m_cBitmap.draw( target_mc, pMatrix, pColorTransform, normal );

var bitmap_mc = _root.createEmptyMovieClip( transparency_test,
_root.getNextHighestDepth() );
bitmap_mc.attachBitmap(m_cBitmap, 2, auto, true);

trace(onLoadInit: transparency=+m_cBitmap.transparent);
};





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com