[Flashcoders] Flash IME

2007-03-12 Thread tommek
Hello people,

I am trying to use System.IME.setConversionMode(System.IME.CHINESE); to
turn my IME to chinese. It set it and then use
System.IME.getConversionMode() to get the mode and i get UNKNOWN. When i
set the IME to CHINESE my self in the task bar it work fine and when i
trace it with System.IME.getConversionMode() i get CHINESE. I read that
note all windows system support these calls, but was wondering if any one
has come across this issue and if they have a fix or work around.

I am on a windows xp pro sp2.
Flash player 9
ActionScript 2.
The project is export to a exe not swf.

Thanks, tommek.

___
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] injecting System.security.allowDomain

2007-03-12 Thread jason vancleave
I am trying to use a bunch of image sequences that were exported out of 
ImageReady as swfs. This process has been working so they can tweak the timing 
of the image sequences without having flash.

The problem is that I would like to make these child swfs controllable 
crossdomain so I can put them into a parent swf on a different server. Right 
now when these are pulled crossdomain I can't control the playback of the 
children.

I would like to somehow inject System.security.allowDomain(this._parent._url) 
for all these, preferrably server-side so I can inject them when they are 
initally uploaded to the site. Anybody done anything like this before?

Thanks,
Jason



___
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] injecting System.security.allowDomain

2007-03-12 Thread R�kos Attila

MTASC will do that for you. Create a simple class with a static entry
method, place allowDomain() inside that, compile and inject it into
the existing SWFs with MTASC.

  Attila

jv I am trying to use a bunch of image sequences that were exported out of
jv ImageReady as swfs. This process has been working so they can tweak the 
timing 
jv of the image sequences without having flash.
jv 
jv The problem is that I would like to make these child swfs controllable 
jv crossdomain so I can put them into a parent swf on a different server. 
Right 
jv now when these are pulled crossdomain I can't control the playback of the 
jv children.
jv 
jv I would like to somehow inject 
System.security.allowDomain(this._parent._url) 
jv for all these, preferrably server-side so I can inject them when they are 
jv initally uploaded to the site. Anybody done anything like this before?


___
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] practical limits to size of XML files?

2007-03-12 Thread Zárate

I've done in the past something as Rakos says and i think it could be
a good choice. If you really have to go for the xml, i'd say:

- wherever possible, try to use attributes instead of nodes to avoid
unnecessary nesting.
- wherever possible, split the xml files so you can read exactly what
the user needs and not everything.

Good luck : )

On 3/12/07, Rákos Attila [EMAIL PROTECTED] wrote:


A while ago I had problems with parsing and processing a large XML. It
was too slow even after utilizing some tricks and optimizations, so I
decided to convert the XML into an ActionScript source file containing
constant arrays and objects. This AS file was then compiled into
swf, loaded into the main movie and it became much more faster, there
was no noticable processing time. Since on CD you will not need an
editable XML, maybe you can try such way, too.

  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




--
Juan Delgado - Zárate
http://zarate.tv
http://dandolachapa.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] Controlling flv

2007-03-12 Thread Adrian MacTaggart
Hi,
 
I'm working with Flash 8 and I've imported an flv to the stage and set
it as a progressive download, using a preset skin to control the video.
This has created a Flash Video component on the stage.
 
This works fine but the clip ends abruptly before returning to the
start.
I'd like to pause on the last frame of the video before fading to black
over a few seconds. It can then return to the start.
 
As the video is not on the timeline, is this possible? Can the video be
controlled with script to do this?
 
Thanks,

Adrian
 
 

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__
___
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] sharing a class with several movieclips, in AS3

2007-03-12 Thread Janis Radins

Create simgle clas definition which holds functionality of your selection
state and add several instances of same class to stage

2007/3/11, Andrei Thomaz [EMAIL PROTECTED]:


hello list,

With AS2, I could associate the same class with several movieclips. This
was
useful, for example, to create buttons for a menu, when all the buttons
were
associated with the same class (some kind of button, that implemented the
'selected' state, rollout and rollover animations, and so on).

Now, I am trying to migrate the code to AS3, and I am having problems to
share the same class with more than one movieclip. When I try to do this,
I
get this error: You must specify a unique classname to export this
symbol.

Can I make this, in some way? The only thing i can think is not very
elegant; it would be to create empty classes for each button, like that:

class MyButton extends MovieClip
{
// code here
}

class MyButton01 extends MyButton
{
// nothing
}

class MyButton02 extends MyButton
{
// nothing
}


thank you,
andrei
___
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] sharing a class with several movieclips, in AS3

2007-03-12 Thread Charles Parcell

Sounds like you are negating the whole purpose of classes.

How about a little reengineering of the buttons.

Build your single class and have multiple instances of the button on screen.
Part of the class would be to load in the proper animation MC for display.
Thus you have the single class that is applied to all buttons and each
button has an independent animation associated with it.

Or if you wanted, you could do as you listed in your first e-mail and extend
a single base class and make specialized classes for each button. But again,
that is sort of defeating the purpose of classes and OOP.

Charles P.


On 3/12/07, Andrei Thomaz [EMAIL PROTECTED] wrote:


hello Janis,

the problem is that I don't want several instances of same symbol in the
stage. Imagine a menu for the sections of a site: you have a button, with
some animations, for each section. So, I cann't use several instances of a
same symbol. What I want, and what it was done with AS 2, was to have a
symbol for each button, and associate the symbols with the same class,
what,
I am afraid, it is not possible in AS 3.

What I am doing is similar with the buttons in Gugga framework (you can
read
about the buttons in GuggaFF here, http://www.gugga.com/flashblog/)


[]'s
andrei



On 3/12/07, Janis Radins [EMAIL PROTECTED] wrote:

 Create simgle clas definition which holds functionality of your
selection
 state and add several instances of same class to stage

 2007/3/11, Andrei Thomaz [EMAIL PROTECTED]:
 
  hello list,
 
  With AS2, I could associate the same class with several movieclips.
This
  was
  useful, for example, to create buttons for a menu, when all the
buttons
  were
  associated with the same class (some kind of button, that implemented
 the
  'selected' state, rollout and rollover animations, and so on).
 
  Now, I am trying to migrate the code to AS3, and I am having problems
to
  share the same class with more than one movieclip. When I try to do
 this,
  I
  get this error: You must specify a unique classname to export this
  symbol.
 
  Can I make this, in some way? The only thing i can think is not very
  elegant; it would be to create empty classes for each button, like
that:
 
  class MyButton extends MovieClip
  {
  // code here
  }
 
  class MyButton01 extends MyButton
  {
  // nothing
  }
 
  class MyButton02 extends MyButton
  {
  // nothing
  }
 
 
  thank you,
  andrei
  ___
  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


___
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] Creative Suite 3 To Be Announced 3/27

2007-03-12 Thread Charles Parcell

Yeah here is the link.

http://www.adobe.com/products/photoshop/ps_psext_info.html

Charles P.


On 3/9/07, Ian Thomas [EMAIL PROTECTED] wrote:


On 3/9/07, Merrill, Jason [EMAIL PROTECTED] wrote:
 Hadn't seen it mentioned here yet.

 March 27th:

 http://www.adobe.com/products/creativesuite/launchevent/

 I wonder what to think in multiple dimensions meanscould it be?

Might be this (from the Photoshop CS3 Extended blurb linked off the home
page):
New to the Photoshop family, Adobe Photoshop CS3 Extended delivers
everything in Photoshop CS3 and more. Render and incorporate 3D images
into your 2D composites. Stop time with easy editing of motion
graphics on video layers. And probe your images with measurement,
analysis, and visualization tools.

Note the bit about rendering 3D.

Ian
___
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] practical limits to size of XML files?

2007-03-12 Thread Merrill, Jason
I agree with what's been said, and would add that if you cannot use
Flash 9 AS3 for your XML, then be wary of the third party XML parsers
when dealing with XML files of this size. I had been in love with
xfactorstudio's Xpath classes (which are mostly great by the way), until
I had to read in a large XML file and convert to objects in Flash (I had
to convert to objects in order to preprare the data for a webservice
transfer).  I ended up abandoning those classes and used the build-in
XML classes.  While very cumbersome to use, it was a huge improvement in
performance.  

Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


 
___
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] Rates of pay in Europe...

2007-03-12 Thread Trevor Burton
Hi list, this is totally OT - so would be great if you could reply
off-list...

My girlfriend and i are looking at getting out of the UK for a bit - and
moving to live and work in Europe.

I'm wondering if anyone working as a Flash Developer in Europe (France
or Spain in particular) or who knows could tell me what the going rate
is for Flash work is in those countries... Now i don't necessarily need
to know what YOU earn, just what i could expect to earn as a
middleweight Flash developer.

thanks. T

 

Trevor Burton

Flash Developer

 

Virtue Fusion Ltd

14-16 Betterton Street

Covent Garden

London

WC2H 9AH

 

Tel: +44 (0) 20 7420 6420

Fax: +44(0) 20 7420 6449

 

 

___
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] sharing a class with several movieclips, in AS3

2007-03-12 Thread Andrei Thomaz

hello Charles,

In respect to AS 3, I agree with you: create specialized classes is against
OOP, and the idea of having different movieclips being loaded for each
button is good.

The good thing of the old solution (the same used by gugga ff) is that
having all the animations of a button in a single timeline seems a bit
easier to visualize (for a designer) than to split the animations along
three of more movieclips. And all that I needed was a single class for all
the buttons.

thank you,
andrei


On 3/12/07, Charles Parcell [EMAIL PROTECTED] wrote:


Sounds like you are negating the whole purpose of classes.

How about a little reengineering of the buttons.

Build your single class and have multiple instances of the button on
screen.
Part of the class would be to load in the proper animation MC for display.
Thus you have the single class that is applied to all buttons and each
button has an independent animation associated with it.

Or if you wanted, you could do as you listed in your first e-mail and
extend
a single base class and make specialized classes for each button. But
again,
that is sort of defeating the purpose of classes and OOP.

Charles P.


On 3/12/07, Andrei Thomaz [EMAIL PROTECTED] wrote:

 hello Janis,

 the problem is that I don't want several instances of same symbol in the
 stage. Imagine a menu for the sections of a site: you have a button,
with
 some animations, for each section. So, I cann't use several instances of
a
 same symbol. What I want, and what it was done with AS 2, was to have a
 symbol for each button, and associate the symbols with the same class,
 what,
 I am afraid, it is not possible in AS 3.

 What I am doing is similar with the buttons in Gugga framework (you can
 read
 about the buttons in GuggaFF here, http://www.gugga.com/flashblog/)


 []'s
 andrei


___
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] Rates of pay in Europe...

2007-03-12 Thread Merrill, Jason
My girlfriend and i are looking at getting out of the UK for 
a bit - and moving to live and work in Europe.

Darn those French, do they still consider the UK to be not part of
Europe?  ;) 

Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


 
___
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] Rates of pay in Europe...

2007-03-12 Thread Sam Thorne
Actually it's more us Brits.
'Europe' or 'The continent' is the name we use for the big landmass the
other side of the channel...


On 12/3/07 14:26, Merrill, Jason [EMAIL PROTECTED] wrote:

 My girlfriend and i are looking at getting out of the UK for
 a bit - and moving to live and work in Europe.
 
 Darn those French, do they still consider the UK to be not part of
 Europe?  ;) 
 
 Jason Merrill
 Bank of America  
 Global Technology  Operations
 Learning  Leadership Development
 eTools  Multimedia Team
 
 
  
 ___
 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] Rates of pay in Europe...

2007-03-12 Thread dr.ache

it totally depends, but one friend of mine, working for
a well known company, earns 30-40 € per our as a
flasher worker.

greez

Trevor Burton schrieb:

Hi list, this is totally OT - so would be great if you could reply
off-list...

My girlfriend and i are looking at getting out of the UK for a bit - and
moving to live and work in Europe.

I'm wondering if anyone working as a Flash Developer in Europe (France
or Spain in particular) or who knows could tell me what the going rate
is for Flash work is in those countries... Now i don't necessarily need
to know what YOU earn, just what i could expect to earn as a
middleweight Flash developer.

thanks. T

 


Trevor Burton

Flash Developer

 


Virtue Fusion Ltd

14-16 Betterton Street

Covent Garden

London

WC2H 9AH

 


Tel: +44 (0) 20 7420 6420

Fax: +44(0) 20 7420 6449

 

 


___
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] Extending buttons interface

2007-03-12 Thread Jason Rayles

Why is using prototypes bad practice?

- Original Message - 
From: Janis Radins [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Monday, March 12, 2007 8:35 AM
Subject: Re: [Flashcoders] Extending buttons interface



also you should know that using prototypes is bad practice
better create seperate class for button that needs that extra 
functionality



___
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] Rates of pay in Europe...

2007-03-12 Thread Blumenthal, Peter

Just a thought Trevor, but I had some friends (more designer than developer, 
but same rules apply),  who spent the summers working Hossegor and the winters 
in Chamonix. They contracted for UK based companies, while living on European 
rates (rent and food both being considerably cheaper). This required the 
occasional journey back to London, but if you situate yourself sensibly close 
to an airport, not a big problem or expense (except in planetary terms I 
guess...).

At the time I was insanely jealous of their lifestyles, as they would work the 
morning, take a couple of hours off mid-afternoon to surf or snowboard, have a 
nice barbeque for dinner (provided it was surfing weather of course;), do a 
couple more hours of work, drink some good, cheap wine...repeat until bored...


Pete



This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
This email was sent by a company within the corporate group owned
by Pearson plc, registered office at 80 Strand, London WC2R 0RL,
registered in England and Wales with company number 53723 and
VAT number GB 278 5371 21.
___
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] Q:input textfield woes setting maximum lines

2007-03-12 Thread Sam Thorne
That's generally how I deal with text fields that have to be centered with
localisable text.

Attach a dummy textfield, enter the text, see how big it is then apply the
positioning information to the real field and remove the dummy one.

Adding/removing a field and getting the values out within 3 lines is quick
enough that you don't see it drawing.

It's a bit awkward, but it works!

On 11/3/07 14:56, Latcho [EMAIL PROTECTED] wrote:

 anoyher fix might be overlaying the displaying field, you don't want to
 have overflowed your max lines with
 an input field that has _alpha 100, and has an embed font. Use the later
 as input, ans if maxscroll  2 after onKeyup,
 feed it to the underlaying visible textfield. Otherwise ,restore its
 content with the previous buffered text and don't feed it to the visible
 field.
 Dirty but worling I guess.
 
 Latcho.

___
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] practical limits to size of XML files?

2007-03-12 Thread Ron Wheeler

We do the same thing.
Once you get the hang of the XML classes it is not too bad and you can 
really tune your access.


If you are doing your own tree climbing it gets easier to deal with a 
multi-file XML structure that can help reduce the amount of XML that you 
have to parse in any given operation. You can break the tree from the 
root or from the leaves to optimize the apparent latency to the user.


Ron

Merrill, Jason wrote:

I agree with what's been said, and would add that if you cannot use
Flash 9 AS3 for your XML, then be wary of the third party XML parsers
when dealing with XML files of this size. I had been in love with
xfactorstudio's Xpath classes (which are mostly great by the way), until
I had to read in a large XML file and convert to objects in Flash (I had
to convert to objects in order to preprare the data for a webservice
transfer).  I ended up abandoning those classes and used the build-in
XML classes.  While very cumbersome to use, it was a huge improvement in
performance.  


Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team



 
___

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] Extending buttons interface

2007-03-12 Thread Merrill, Jason
Why is using prototypes bad practice?

Prototype has been depreciated.  

Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


 
___
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] deleting a progress bar after loading

2007-03-12 Thread Gustavo Duenas
Hi, I'm trying to delete a progress bar component I have placed in  
the stage, and once this load the swf or the loader,
I'd like this to be deleted, but so far I don't have any success  
doing it.


This is the code I'm using.
is a simple one. I hope you could help me out.

var myloadListen = this.myloader
mypb.source= myLoader;
myloadListen.complete = function(evt_obj:Object){
delete _root.loaders.mypb;
}
myloader.addEventListener(complete,myloadListen);



regards


gustavo Duenas



___
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] Extending buttons interface

2007-03-12 Thread Gustavo Duenas

and  now what are they using?

gustavo
On Mar 12, 2007, at 12:08 PM, Merrill, Jason wrote:


Why is using prototypes bad practice?


Prototype has been depreciated.

Jason Merrill
Bank of America
Global Technology  Operations
Learning  Leadership Development
eTools  Multimedia Team



___
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] fauxpenGL library for AS2

2007-03-12 Thread Max Kaufmann
I've been tooling around with mimicking openGL in AS2.  Here's a demo:

http://www.mentalpicture.net/misc/

 

Currently implemented:

3D Transformation Matrix Stack

OBJ File Loader

Wireframe renderer

 

Are there similar projects out there?

 

Max Kaufmann

Flash Developer

SilverTree Media

http://www.silvertreemedia.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] Extending buttons interface

2007-03-12 Thread Jason Rayles

Prototype has been depreciated.


What are you talking about? This is straight from AS 2.0 Language Reference:
prototype (Object.prototype property)
public static prototype : Object

A reference to the superclass of a class or function object. The prototype 
property is automatically created and attached to any class or function 
object you create. This property is static in that it is specific to the 
class or function you create. For example, if you create a custom class, the 
value of the prototype property is shared by all instances of the class, and 
is accessible only as a class property. Instances of your custom class 
cannot directly access the prototype property, but can access it through the 
__proto__ property.


Availability: ActionScript 1.0; Flash Player 6


___
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] Extending buttons interface

2007-03-12 Thread Merrill, Jason
Inheritance. Well, I guess prototype may not exactly depreciated per se,
but inheritance is prefered - prototype is an alternative, supporting
previous versions of actionscript.

http://livedocs.adobe.com/labs/as3preview/langref/Object.html

Note: In ActionScript 3.0, prototype inheritance is not the primary
mechanism for inheritance. Class inheritance, which drives the
inheritance of fixed properties in class definitions, is the primary
inheritance mechanism in ActionScript 3.0.


Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Gustavo Duenas
Sent: Monday, March 12, 2007 12:19 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Extending buttons interface

and  now what are they using?

gustavo
On Mar 12, 2007, at 12:08 PM, Merrill, Jason wrote:

 Why is using prototypes bad practice?

 Prototype has been depreciated.

 Jason Merrill
 Bank of America
 Global Technology  Operations
 Learning  Leadership Development
 eTools  Multimedia Team



 ___
 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] Rates of pay in Europe...

2007-03-12 Thread Zárate

repeat until bored

Can you get bored of that? : )

In cities like Madrid and Barcelona a Flash developer (i mean,
programmer) should be between 22-30k (-~20% tax), depending on skills.
And believe me, you're not going to get rich with that salary.

Your best bet is working for UK companies and live abroad, but that
requieres some travels back to the UK, a good DSL and a very good
relationship with the client. A similar approach is working for
companies in Madrid/Barcelona and living in smaller cities.

Good luck : )

On 3/12/07, Blumenthal, Peter [EMAIL PROTECTED] wrote:


Just a thought Trevor, but I had some friends (more designer than developer, 
but same rules apply),  who spent the summers working Hossegor and the winters 
in Chamonix. They contracted for UK based companies, while living on European 
rates (rent and food both being considerably cheaper). This required the 
occasional journey back to London, but if you situate yourself sensibly close 
to an airport, not a big problem or expense (except in planetary terms I 
guess...).

At the time I was insanely jealous of their lifestyles, as they would work the 
morning, take a couple of hours off mid-afternoon to surf or snowboard, have a 
nice barbeque for dinner (provided it was surfing weather of course;), do a 
couple more hours of work, drink some good, cheap wine...repeat until bored...


Pete



This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
This email was sent by a company within the corporate group owned
by Pearson plc, registered office at 80 Strand, London WC2R 0RL,
registered in England and Wales with company number 53723 and
VAT number GB 278 5371 21.
___
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




--
Juan Delgado - Zárate
http://zarate.tv
http://dandolachapa.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] Extending buttons interface

2007-03-12 Thread Merrill, Jason
What are you talking about? This is straight from AS 2.0 
Language Reference:

News Flash - the current version of Actionscript is 3.0, not 2.0. :)

Also, see my follow-up e-mail.

Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


___
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] Extending buttons interface

2007-03-12 Thread Jason Rayles
Eeermmm.. the question was about flash 6, and someone said that using 
prototype is bad practice.



On 3/9/07, strk [EMAIL PROTECTED] wrote:

Is there a way to attach a method to all existing button instances ?
It seems that button instances are NOT instaceof Button ...
At least NOT for SWF6 .

--strk;



Inheritance. Well, I guess prototype may not exactly depreciated per se,
but inheritance is prefered - prototype is an alternative, supporting
previous versions of actionscript.

http://livedocs.adobe.com/labs/as3preview/langref/Object.html

Note: In ActionScript 3.0, prototype inheritance is not the primary
mechanism for inheritance. Class inheritance, which drives the
inheritance of fixed properties in class definitions, is the primary
inheritance mechanism in ActionScript 3.0.


___
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] deleting a progress bar after loading

2007-03-12 Thread Steven Sacks | BLITZ
You can't tell an object to delete itself from within its own thread.

When you delete an object outside of its own thread, you need to first
delete any functions assigned to that object and remove it from any
event listeners of other objects or you will end up with memory waste.
___
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] Extending buttons interface

2007-03-12 Thread Merrill, Jason
Eeermmm.. the question was about flash 6, and someone said 
that using prototype is bad practice.

I was responding to the blanket statement about prototypes - I didn't
know the thread was still focusing on Flash 6...

even still, I have never found much value in using prototypes - I
wouldn't say it's been bad practice, but I have always found some other
way to do it with composition and/or inheritance.

Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


 
___
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] Extending buttons interface

2007-03-12 Thread T. Michael Keesey

On 3/12/07, Merrill, Jason [EMAIL PROTECTED] wrote:

What are you talking about? This is straight from AS 2.0
Language Reference:

News Flash - the current version of Actionscript is 3.0, not 2.0. :)


Depends on whether you're using Flex or Flash. Flash 9 hasn't been
released, after all, even if the player and Flex Builder 2 have.

Regardless, though, using prototype even in AS2.0 is generally not a
great idea. I just recently had a conflict between a package that used
an ad hoc field on MovieClip.prototype and a class extending MovieClip
which used a private variable of the same name. If that package had
used proper class conventions, I could have saved myself about 40
minutes spent tracking down the conflict.

--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
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] fauxpenGL library for AS2

2007-03-12 Thread Michael Trim
Are there similar projects out there?

Papervision?

http://www.unitzeroone.com/blog/flash_examples/another_pv3d_material_dem
o_fla_1.html

(Watch the link wrapping)
___
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] deleting a progress bar after loading

2007-03-12 Thread Gustavo Duenas
any about doing this good I'd like to don't see the progress bar once  
the loader has finished.

regards


gustavo duenas


On Mar 12, 2007, at 1:19 PM, Steven Sacks | BLITZ wrote:


You can't tell an object to delete itself from within its own thread.

When you delete an object outside of its own thread, you need to first
delete any functions assigned to that object and remove it from any
event listeners of other objects or you will end up with memory waste.
___
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] Extending buttons interface

2007-03-12 Thread Merrill, Jason
Depends on whether you're using Flex or Flash. Flash 9 hasn't 
been released, after all, even if the player and Flex Builder 2 have.

No it doesn't, any owner of Flash 8 can use the Flash 9 AS3 preview to
compile projects - not just test projects, real projects which are
legal, and target the Flash 9 player.  You're right in that Flash 9 has
not been released yet, but the Flash 9 AS3 Preview has, so the current
version of AS is indeed 3.0 as any owner of Flash 8 can download F9
Preview and write content in AS 3 and compile their projects. 

Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


 
___
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] deleting a progress bar after loading

2007-03-12 Thread Gustavo Duenas
actually I'm trying to set the _visible of the progress bar to false  
in the same place where I was trying to use the other instructions.


like this.

var myloadListen = this.myloader
mypb.source= myLoader;
myloadListen.complete = function(evt_obj:Object){
mypb._visible= false;
}
myloader.addEventListener(complete,myloadListen);


but so far...the same bad result...nothing.


regards

Gustavo Duenas


On Mar 12, 2007, at 1:19 PM, Steven Sacks | BLITZ wrote:


You can't tell an object to delete itself from within its own thread.

When you delete an object outside of its own thread, you need to first
delete any functions assigned to that object and remove it from any
event listeners of other objects or you will end up with memory waste.
___
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] Extending buttons interface

2007-03-12 Thread Nick Weekes
I disagree.  'Current' infers 'final release', not preview beta's.  

For me (and many of my peers) Current AS version is 2 for Flash.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 12 March 2007 17:41
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Extending buttons interface

Depends on whether you're using Flex or Flash. Flash 9 hasn't been 
released, after all, even if the player and Flex Builder 2 have.

No it doesn't, any owner of Flash 8 can use the Flash 9 AS3 preview to
compile projects - not just test projects, real projects which are legal,
and target the Flash 9 player.  You're right in that Flash 9 has not been
released yet, but the Flash 9 AS3 Preview has, so the current version of AS
is indeed 3.0 as any owner of Flash 8 can download F9 Preview and write
content in AS 3 and compile their projects. 

Jason Merrill
Bank of America
Global Technology  Operations
Learning  Leadership Development
eTools  Multimedia Team


 
___
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] Extending buttons interface

2007-03-12 Thread T. Michael Keesey

On 3/12/07, Merrill, Jason [EMAIL PROTECTED] wrote:


No it doesn't, any owner of Flash 8 can use the Flash 9 AS3 preview to
compile projects - not just test projects, real projects which are
legal, and target the Flash 9 player.  You're right in that Flash 9 has
not been released yet, but the Flash 9 AS3 Preview has, so the current
version of AS is indeed 3.0 as any owner of Flash 8 can download F9
Preview and write content in AS 3 and compile their projects.


Semantics. I wouldn't call something current unless it had been
released. It certainly is current as far as the player and Flex
Builder go, though.
--
Mike Keesey
___
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] Extending buttons interface

2007-03-12 Thread Merrill, Jason
I disagree.  'Current' infers 'final release', not preview beta's.  

For me (and many of my peers) Current AS version is 2 for Flash.

Well, I still disagree.  You're talking about the authoring tool, not
the language, which is what I thought we were talking about.  There is
no beta or preview AS3 - only Flash 9 beta/preview which allows you
create projects in AS3.  Flex 2 is also a tool (that is not in beta btw)
which uses AS 3.0. So I guess it's just perspective, but to me the
current version of Actionscript is 3.0, no matter what beta tool I use
to compile it.

Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


 
___
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] correct way to set onRease of an arbitrary button

2007-03-12 Thread Andrew Sinning
(Putting aside whether or not this is best practice design, as I'm just 
trying to get my head around this.)


I've put three buttons in _root.questionInterface called button_1, 
button_2, etc.  Elsewhere I have defined a class Question.  When an 
instance of Question is displayed, it needs to modify the onRelease of 
the three buttons so that the Question gets notified when each button 
gets released.


Within the Display method of the Question, I want to do something like

for (var aNum=1; aNum=5; aNum++) {

   var answerButton = _root.questionInterface[button_+aNum];
   // pseudo code:
   make the onRelease of answerButton make a call to the function 
AnswerSelected(aNum) inside of this

   //

   // I have tried the following, but it's not right
   answerButton.onRelease = function() { this.GiveAnswer(aNum);};

   
}



Any help greatly appreciated.  Thanks!


___
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] trig? calculus? put me out my misery

2007-03-12 Thread Kurt Dommermuth

Hi all,

I have what I initially thought was simple problem, but I've been racking 
my brains, searching the web and I just don't get it.


I have a movieclip that the user can rotate .

When they click the movieclip shoots off in the direction it's pointing.

It's goes off the stage and simply stops.

the speed is fixed.  there is no gravity.

How do I determine the _x and _y value somewhere off stage?

I'd appreciate any help.  even if someone could let me know what to search for.

thank you!

Kurt

___
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] trig? calculus? put me out my misery

2007-03-12 Thread Steve Abaffy
If I understand this correctly the movie clip will point in some direction
and when it is clicked the clip moves off in that direction. If this is
correct there are several ways to handle this. First I will assume you want
the clip to move off in a straight line, curves can be done as well but
require a bit more calculations. The easiest way is to pick several off
screen points that the clip will move to. Say the clip can point in 8
different directions then select the end points of each of those directions
and use the following formula to calculate intermediate points

_y - yendpoint = (_ystartpoint - _yendpoint)/(_xstartpoint - _xendpoint)(_x
- _xendpoint)
Where you simply loop through a for loop that starts at _xstartpoint and
ends at _xendpoint.

If I knew what you were using to rotate the clip I could suggest alternate
methods that would use the current position of the clip to calculate the
motion in question.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kurt
Dommermuth
Sent: Monday, March 12, 2007 1:30 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] trig? calculus? put me out my misery

Hi all,

I have what I initially thought was simple problem, but I've been racking 
my brains, searching the web and I just don't get it.

I have a movieclip that the user can rotate .

When they click the movieclip shoots off in the direction it's pointing.

It's goes off the stage and simply stops.

the speed is fixed.  there is no gravity.

How do I determine the _x and _y value somewhere off stage?

I'd appreciate any help.  even if someone could let me know what to search
for.

thank you!

Kurt

___
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] trig? calculus? put me out my misery

2007-03-12 Thread ben gomez farrell

Its trig, no calculus.
Basically you want a point off stage that the clip would pass through 
because it's pointing in that direction right?


Are you using the tween classes?  If so you'll probably need a X,Y 
coordinate.  If not, you could simply move your MC at the correct angle 
and use the X, Y values to test if its offstage.


So, launching it at the right angle.
If you think of things as a right-angled triangle, the flat bottom part 
of the triangle would be your X axis, while the straight side would be 
the Y axis.  What you want is to find how much X would be given Y, or 
vice versa.


In trig, the tangent of an angle is the opposite side of the angle 
divided by the adjacent side of the angle.

Or..
Math.tan(myAngle) = myclip._y / myclip._x;

So if you knew you wanted to move it 2 pixels in the X axis each time 
then you'd replace with this


Math.tan(myAngle) = myclip._y / 2

Then get the unknown quantity of y on one side so we can solve for it:

Math.tan(myAngle) * 2  = myclip._y;

The tricky part is if your angle is in degree or radians.  To use sine, 
cosine, or tangent, it must be in radiansso you gotta convert

If I remember correctly your angle in radians is myangle * Math.PI / 180.

So on every enter frame you could saymy speed horizontal speed is 
2 so myclip._x  +=2;
My vertical speed is determined by trig, so myclip._y += 
Math.tan(myangle * Math.PI / 180) * 2;


That's the gist.  I didn't check ANY of this.  So it might be wrong, but 
it's one of the ways to solve the problem.


Kurt Dommermuth wrote:

Hi all,

I have what I initially thought was simple problem, but I've been 
racking my brains, searching the web and I just don't get it.


I have a movieclip that the user can rotate .

When they click the movieclip shoots off in the direction it's pointing.

It's goes off the stage and simply stops.

the speed is fixed.  there is no gravity.

How do I determine the _x and _y value somewhere off stage?

I'd appreciate any help.  even if someone could let me know what to 
search for.


thank you!

Kurt

___
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] trig? calculus? put me out my misery

2007-03-12 Thread Kurt Dommermuth

Thank you all.

My assistant actually pointed out a very simple way to accomplish what I 
wanted to do.


He suggested just adding another mc called targ off the stage.  targ 
rotates with the projectile I'm firing.  when the user clicks I just tell 
the projectile to go to the target mc.


It works really well.

Thank you for your explanation on how this all works.  I feel like I can 
sort out most anything in AS, but when math is involved it's humbling.


Take care everyone,
Kurt





At 04:07 PM 03/12/07, you wrote:


Its trig, no calculus.
Basically you want a point off stage that the clip would pass through 
because it's pointing in that direction right?


Are you using the tween classes?  If so you'll probably need a X,Y 
coordinate.  If not, you could simply move your MC at the correct angle 
and use the X, Y values to test if its offstage.


So, launching it at the right angle.
If you think of things as a right-angled triangle, the flat bottom part of 
the triangle would be your X axis, while the straight side would be the Y 
axis.  What you want is to find how much X would be given Y, or vice versa.


In trig, the tangent of an angle is the opposite side of the angle divided 
by the adjacent side of the angle.

Or..
Math.tan(myAngle) = myclip._y / myclip._x;

So if you knew you wanted to move it 2 pixels in the X axis each time then 
you'd replace with this


Math.tan(myAngle) = myclip._y / 2

Then get the unknown quantity of y on one side so we can solve for it:

Math.tan(myAngle) * 2  = myclip._y;

The tricky part is if your angle is in degree or radians.  To use sine, 
cosine, or tangent, it must be in radiansso you gotta convert

If I remember correctly your angle in radians is myangle * Math.PI / 180.

So on every enter frame you could saymy speed horizontal speed is 
2 so myclip._x  +=2;
My vertical speed is determined by trig, so myclip._y += Math.tan(myangle 
* Math.PI / 180) * 2;


That's the gist.  I didn't check ANY of this.  So it might be wrong, but 
it's one of the ways to solve the problem.


Kurt Dommermuth wrote:

Hi all,

I have what I initially thought was simple problem, but I've been racking 
my brains, searching the web and I just don't get it.


I have a movieclip that the user can rotate .

When they click the movieclip shoots off in the direction it's pointing.

It's goes off the stage and simply stops.

the speed is fixed.  there is no gravity.

How do I determine the _x and _y value somewhere off stage?

I'd appreciate any help.  even if someone could let me know what to 
search for.


thank you!

Kurt

___
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] trig? calculus? put me out my misery

2007-03-12 Thread Charles Parcell

Some simple Trig actually.

As an example, name a movieClip myClip and rotate it. Then add this code
to the frame.

this.onEnterFrame = function(){
   rads = myClip._rotation * (Math.PI/180);
   myClip._x += Math.sin(rads);
   myClip._y -= Math.cos(rads);
}

That should get you started.

By the way, Danny K's book on Math for Programmers is a good buy.

Charles P.



On 3/12/07, Kurt Dommermuth [EMAIL PROTECTED] wrote:


Hi all,

I have what I initially thought was simple problem, but I've been racking
my brains, searching the web and I just don't get it.

I have a movieclip that the user can rotate .

When they click the movieclip shoots off in the direction it's pointing.

It's goes off the stage and simply stops.

the speed is fixed.  there is no gravity.

How do I determine the _x and _y value somewhere off stage?

I'd appreciate any help.  even if someone could let me know what to search
for.

thank you!

Kurt

___
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] class files have stopped compiling?

2007-03-12 Thread Andrew Sinning
I was working along editing my class files in TextEdit and everything 
was working just fine, then I read that I could open my class files in 
Flash.  So I closed out TextEdit and opened up my class files.  These 
are in a folder classes in the folder containing my fla.  I've defined 
classes/ in my class path.


Weird thing is that now my classes don't seem to be recompiled.  I've 
even quit out of Flash.  I can't even get them to give up an error at 
compile time.


Is this a known quirk?  I've seen this with component definitions, but 
this is just a regular class.


Other funny thing is that I can't get the compiler to put up an error if 
I misspell my call to the class as in


   var obj = new MysSpeltClas;

Thanks!
___
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] asunit and a class that loads XML

2007-03-12 Thread Matthew Ganz
hi.

i have a question on using asunit to test a class that loads XML. 

i have a class that accepts a string in its constructor and i want to test if 
it'll accept not just an http://myFileLocation.xml but also a file location 
such as /data/config.xml. 

my question is how can i write my test with a handler for when the xml is 
finished loading? 

this is what i have right now: 

class com.testsource.util.ConfigParserTest extends 
com.asunit.framework.TestCase {
 private var className:String = com.testsource.util.ConfigParserTest;
 private var configParser:ConfigParser;

 public function setUp():Void {
trace(setUp:  + setUp());  
configParser = new ConfigParser(data/config.xml);
  configParser.addEventListener(loadSuccess, 
Delegate.create(this,testLoadFileLocation));
 }

 public function tearDown():Void {
trace(tearDown());  
delete configParser;
  }
 
 public function testLoadFileLocation():Void{
  var size:Number = configParser.getLayerSetSize(); // this should return the 
number 2.
  trace(size:  + size);
  assertEquals(example test, size, 2);
 }
}

the problem here is that my test is run and testLoadFileLocation() is run 
before my XML successfully loads. and by the time it does load, the 
'configParser object has been deleted by the tearDown() method. 

so my traces come out looking like this:
setUp()
size: 0
tearDown()
size: undefined

any tips are greatly appreciated. 

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


Re: [Flashcoders] trig? calculus? put me out my misery

2007-03-12 Thread Joshua Sera
Here's the vector math solution:

Get the vector from the mouse to the MC:

var vToMouse:flash.geom.Point = new
flash.geom.Point();
vToMouse.x = MC._parent._xmouse - MC._x;
vToMouse.y = MC._parent._ymouse - MC._y;

Normalize the vector. This means you set the length of
the vector to 1.

var vectorLength:Number =
Math.sqrt(Math.pow(vToMouse.x, 2),
Math.pow(vToMouse.y, 2));
vToMouse.x /= vectorLength;
vToMouse.y /= vectorLength;

Now, since multiplying a vector by a number means that
you're multiplying the length of that vector by that
number, you can multiply our vector by enough distance
to send it off-screen. Let's say 400 pixels.

vToMouse.x *= 400;
vToMouse.y *= 400;

Lastly, add the vector back to the position of the MC
to the the offscreen position

var vOffScreen:flash.geom.Point = new
flash.geom.Point();

vOffScreen.x = MC._x + vToMouse.x;
vOffScreen.y = MC._y + vToMouse.y;

Now you can use a tween class, or whatever to send the
MC off screen.


--- Kurt Dommermuth [EMAIL PROTECTED] wrote:

 Hi all,
 
 I have what I initially thought was simple problem,
 but I've been racking 
 my brains, searching the web and I just don't get
 it.
 
 I have a movieclip that the user can rotate .
 
 When they click the movieclip shoots off in the
 direction it's pointing.
 
 It's goes off the stage and simply stops.
 
 the speed is fixed.  there is no gravity.
 
 How do I determine the _x and _y value somewhere off
 stage?
 
 I'd appreciate any help.  even if someone could let
 me know what to search for.
 
 thank you!
 
 Kurt
 
 ___
 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
 



 

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
___
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] Accessing an Associative Array

2007-03-12 Thread Bill Abel

How do you access an associate array using a variable?

Inside my function popup[text]; won't access the array. I can't  
find any information in the books I have Actionsript Cookbook and  
Actionscript for Flash MX.


Anyone dealt with this before?

// Define the text and titles for the popups
var myarray = { text: Lorem ipsum dolor sit amet ... };

// Testing - this works!
trace(myarray[text]);

// Show the popup
function showPopup(popup) {
mainMap[popup].gotoAndPlay(on);
mainMap[popup].label_title.text = popup[text];  // This doesn't work.
trace(popup[text]);
};

showPopup(myarray);
___
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] Extending buttons interface

2007-03-12 Thread T. Michael Keesey

On 3/12/07, Merrill, Jason [EMAIL PROTECTED] wrote:


Well, I still disagree.  You're talking about the authoring tool, not
the language, which is what I thought we were talking about.  There is
no beta or preview AS3 - only Flash 9 beta/preview which allows you
create projects in AS3.  Flex 2 is also a tool (that is not in beta btw)
which uses AS 3.0. So I guess it's just perspective, but to me the
current version of Actionscript is 3.0, no matter what beta tool I use
to compile it.


That is actually a good point. Once the new IDE does come out, the
language isn't going to change, so in that sense it is current.
Still, for *practical* purposes, AS2 is still the current version
for many of us (sad to say).
--
Mike Keesey
___
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] fauxpenGL library for AS2

2007-03-12 Thread Mike Mountain
As Michael said - there's Papervision - may I suggest you join the mailing list 
and try and integrate your OBJ loader - it would be very useful.
 
Cheers
 
M



From: [EMAIL PROTECTED] on behalf of Max Kaufmann
Sent: Mon 12/03/2007 16:25
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] fauxpenGL library for AS2



I've been tooling around with mimicking openGL in AS2.  Here's a demo:

http://www.mentalpicture.net/misc/



Currently implemented:

3D Transformation Matrix Stack

OBJ File Loader

Wireframe renderer



Are there similar projects out there?



Max Kaufmann

Flash Developer

SilverTree Media

http://www.silvertreemedia.com http://www.silvertreemedia.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://www.figleaf.com/ 
http://training.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] class files have stopped compiling?

2007-03-12 Thread Merrill, Jason
have you tried Control  Delete ASO files ?

Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Andrew Sinning
Sent: Monday, March 12, 2007 3:40 PM
To: Flash Coders
Subject: [Flashcoders] class files have stopped compiling?

I was working along editing my class files in TextEdit and 
everything was working just fine, then I read that I could 
open my class files in Flash.  So I closed out TextEdit and 
opened up my class files.  These are in a folder classes in 
the folder containing my fla.  I've defined classes/ in my 
class path.

Weird thing is that now my classes don't seem to be 
recompiled.  I've even quit out of Flash.  I can't even get 
them to give up an error at compile time.

Is this a known quirk?  I've seen this with component 
definitions, but this is just a regular class.

Other funny thing is that I can't get the compiler to put up 
an error if I misspell my call to the class as in

var obj = new MysSpeltClas;

Thanks!
___
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] Is it possible to referene a flashvars object in Flash

2007-03-12 Thread John laPlante
I use flashvars to pass initialization parameters. These are 
automagically converted to root variables. Does anyone know of a way to 
reference a object that holds all the flashvars. I would like to loop 
over such an object to ensure completeness.  I'm passing most of the 
values back to another server. I do know what I am sending but I'd like 
to make this more automatic.


I found a blog post which provides a round-about way to do it, by using 
LoadVars to split a ampersand separated list.  But this approach is 
impractical for me because independent folks are producing the flashvars 
and already have their routine set.

http://www.helpqlodhelp.com/blog/archives/000110.html


___
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] Accessing an Associative Array

2007-03-12 Thread Merrill, Jason
arr = new Array()
myVar = elem2
arr[elem1] = hello
arr[elem2] = hi
trace(arr[myVar])

Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Bill Abel
Sent: Monday, March 12, 2007 3:42 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Accessing an Associative Array

How do you access an associate array using a variable?

Inside my function popup[text]; won't access the array. I 
can't find any information in the books I have Actionsript 
Cookbook and Actionscript for Flash MX.

Anyone dealt with this before?

// Define the text and titles for the popups var myarray = { 
text: Lorem ipsum dolor sit amet ... };

// Testing - this works!
trace(myarray[text]);

// Show the popup
function showPopup(popup) {
  mainMap[popup].gotoAndPlay(on);
  mainMap[popup].label_title.text = popup[text];  // 
This doesn't work.
  trace(popup[text]);
};

showPopup(myarray);
___
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] Accessing an Associative Array

2007-03-12 Thread R�kos Attila

Variable identifiers are not string constants, so:

showPopup(myarray);

However mainMap[popup].gotoAndPlay(on); has no sense in this case,
since the array notation excepts a string and not an object. Ans also
you don't need to use array notation here at all, the simple dot
syntax is enough: myarray.text and popup.text

  Attila

BA How do you access an associate array using a variable?
BA 
BA Inside my function popup[text]; won't access the array. I can't  
BA find any information in the books I have Actionsript Cookbook and  
BA Actionscript for Flash MX.
BA 
BA Anyone dealt with this before?
BA 
BA // Define the text and titles for the popups
BA var myarray = { text: Lorem ipsum dolor sit amet ... };
BA 
BA // Testing - this works!
BA trace(myarray[text]);
BA 
BA // Show the popup
BA function showPopup(popup) {
BA mainMap[popup].gotoAndPlay(on);
BA mainMap[popup].label_title.text = popup[text];  // This doesn't work.
BA trace(popup[text]);
BA };
BA 
BA showPopup(myarray);


___
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] Accessing an Associative Array

2007-03-12 Thread Andy Herrman

I think this is your problem:

showPopup(myarray);

You're passing showPopup a string with the value myarray, not the
array.  Remove the quotes and you should be good.

 -Andy

On 3/12/07, Bill Abel [EMAIL PROTECTED] wrote:

How do you access an associate array using a variable?

Inside my function popup[text]; won't access the array. I can't
find any information in the books I have Actionsript Cookbook and
Actionscript for Flash MX.

Anyone dealt with this before?

// Define the text and titles for the popups
var myarray = { text: Lorem ipsum dolor sit amet ... };

// Testing - this works!
trace(myarray[text]);

// Show the popup
function showPopup(popup) {
mainMap[popup].gotoAndPlay(on);
mainMap[popup].label_title.text = popup[text];  // This doesn't work.
trace(popup[text]);
};

showPopup(myarray);
___
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] class files have stopped compiling?

2007-03-12 Thread Andrew Sinning

Merrill, Jason wrote:


have you tried Control  Delete ASO files ?


I'm running MX04 Professonal.  I don't see this command.  Must be in F8.
___
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] correct way to set onRease of an arbitrary button

2007-03-12 Thread R�kos Attila

Well, there are several ways to achieve your goal but I think that the
best and most elegant solution is creating a class for your buttons
which implements an event dispatching mechanism (e.g. Macromedia's
EventDispatcher) and dispatches a click event when the button was
pressed by the user. In your Question class simply add listeners to
the click events of the button instances (and use a delegation
implementation, e.g. mx.utils.Delegate).

  Attila

AS (Putting aside whether or not this is best practice design, as I'm just
AS trying to get my head around this.)
AS 
AS I've put three buttons in _root.questionInterface called button_1, 
AS button_2, etc.  Elsewhere I have defined a class Question.  When an 
AS instance of Question is displayed, it needs to modify the onRelease of 
AS the three buttons so that the Question gets notified when each button 
AS gets released.
AS 
AS Within the Display method of the Question, I want to do something like
AS 
AS for (var aNum=1; aNum=5; aNum++) {
AS 
AS var answerButton = _root.questionInterface[button_+aNum];
AS // pseudo code:
AS make the onRelease of answerButton make a call to the function 
AS AnswerSelected(aNum) inside of this
AS //
AS 
AS // I have tried the following, but it's not right
AS answerButton.onRelease = function() { this.GiveAnswer(aNum);};
AS 
AS 
AS }
AS 
AS 
AS Any help greatly appreciated.  Thanks!


___
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] deleting a progress bar after loading

2007-03-12 Thread Jim Duber
I'm on digest, so you may have already heard this a hundred times. In 
case not, try instead:


mypb.visible = false;

Like many (most, all?) of the V2 components, there should be no 
underscore in the 'visible' property.


Best,
Jim


Date: Mon, 12 Mar 2007 13:54:07 -0400
From: Gustavo Duenas [EMAIL PROTECTED]
Subject: Re: [Flashcoders] deleting a progress bar after loading
To: flashcoders@chattyfig.figleaf.com

actually I'm trying to set the _visible of the progress bar to false
in the same place where I was trying to use the other instructions.

like this.

var myloadListen = this.myloader
mypb.source= myLoader;
myloadListen.complete = function(evt_obj:Object){
mypb._visible= false;
}
myloader.addEventListener(complete,myloadListen);


but so far...the same bad result...nothing.


regards

Gustavo Duenas




__
Jim Duber[EMAIL PROTECTED]
duber dot com http://www.duber.com

  Interactive Media Development, Training and Consulting

7466 Terrace Drive,  El Cerrito,  California,  94530,  USA
(voice) 510.525.5122(fax) 510.525.5193
__

___
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] Accessing an Associative Array

2007-03-12 Thread Bill Abel
How do you do it where myVar is the array? Is this possible? Or do  
you always have to specify the array?


arr = new Array()
arr[elem1] = hello
arr[elem2] = hi

function testArray(myVar) {
trace(myVar[elem2]);
};
testArray(arr);



On Mar 12, 2007, at 3:17 PM, Merrill, Jason wrote:


arr = new Array()
myVar = elem2
arr[elem1] = hello
arr[elem2] = hi
trace(arr[myVar])


___
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] What's wrong with my dispatchEvent call? Listener not working

2007-03-12 Thread Marlon Harrison

I'm sure this isn't the most elegant code as it's my first time using
classes. My problem is that my my custom 'change' event is not being
dispatched from place but not the other. If anyone has a suggestion on a
more modular way of writing this I'd also appreciate it. Basically, my
sendChange function is being called, and the data is being passed through
dispatch event, but my listener does not trigger. It never get to the event
trigger in my fla, which for the moment is just a trace.  Any  ideas?

import mx.events.EventDispatcher;

class myComboBox {
//
private var dispatchEvent:Function;
private var dispatchQueue:Function;
public var addEventListener:Function;
public var removeEventListener:Function;

public function myComboBox(m:MovieClip, d:XML, c:Number) {
//(m)movieclip reference, (d)xml data to fill combobox, (c)default category
id to show
mx.events.EventDispatcher.initialize(this);

_cb = m;
_xml = d;
_cat = c;

//Loop through data and make combobox entries
   for (var i:Number = 0; i_xml.firstChild.childNodes.length; i++) {
   var xn:XMLNode = _xml.firstChild.childNodes[i];

   var id:Number = xn.attributes.id;
   //defaulting action dispatches change if an id exists that's equal
to the one passed
   if (_cat == id) {
   trace(matched on +i+ +_cat+ +id);
   sendChange(id);
   }
}


private function sendChange(id:Number) {
   trace(sendChange);
   dispatchEvent({target:this, type:change, parameters:id});
}

}

//Code from fla:
var combo:Object = {};
function init() {
   my_cmb = new myComboBox(cmb, _xml, 40);
   my_cmb.addEventListener(open, combo);
   my_cmb.addEventListener(close, combo);
   my_cmb.addEventListener(change, combo);
}
combo.change = function(evt:Object) {
   trace(changed! idx= +evt.parameters.idx);
}
___
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] class files have stopped compiling?

2007-03-12 Thread Merrill, Jason
I'm running MX04 Professonal.  I don't see this command.  
Must be in F8.

It is. But you can do it manually by locating the ASO files on your hard
drive and deleting them - I think an extension was published on the
Adobe Exchange which did it also for MX 2004.

Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


 
___
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] OT: LiveDocs creation

2007-03-12 Thread Josh Johnston
Hi all,

I made the mistake of showing off LiveDocs to some upper management folks 
and now I'm tasked with creating a clone in ASP.Net. So I figured before diving 
in head first I'd ask if anyone else has done something similar and are willing 
to share some code, or point to useful websites to make this easier to get done.

Thanks,
Josh Johnston




 

Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/
___
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] MovieClip Instance _x and _y

2007-03-12 Thread Jason Lutes
Is there a way determine clip position that doesn't presume the location of
the registration point relative to clip content, or doesn't care where
nested clip content is positioned relative to the registration point? For
example, if I need to programmatically position a clip along the left edge
of the stage, without a guarantee that all items nested within the clip are
registered at positive x and y coordinates, I need to be able to identify
the top and leftmost edges of the clip.

Apparently, I've taken positioning for granted for a while now, since I
always register clip content at 0,0 for the upper left corner. I have a
situation now that violates my convention.

Thanks.


-
Jason


___
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] Accessing an Associative Array

2007-03-12 Thread Merrill, Jason
How do you do it where myVar is the array? Is this possible? 
Or do you always have to specify the array?

Easy, just keep using the array access operator to evaluate:

myVar = myArray2

myArray1 = new Array()
myArray1[elem1] = hello
myArray1[elem2] = hi

myArray2 = new Array()
myArray2[elem1] = wassup
myArray2[elem2] = yo

trace(this[myVar][elem1]) //traces wassup

Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Bill Abel
Sent: Monday, March 12, 2007 5:02 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Accessing an Associative Array

How do you do it where myVar is the array? Is this possible? 
Or do you always have to specify the array?

arr = new Array()
arr[elem1] = hello
arr[elem2] = hi

function testArray(myVar) {
trace(myVar[elem2]);
};
testArray(arr);



On Mar 12, 2007, at 3:17 PM, Merrill, Jason wrote:

 arr = new Array()
 myVar = elem2
 arr[elem1] = hello
 arr[elem2] = hi
 trace(arr[myVar])

___
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] Accessing an Associative Array

2007-03-12 Thread Bill Abel

Your right. I am passing a string.

But I'm trying to use that string to access an array by the same name.

someArray = { label: my text };
showPopup(someArray); // send a string which is the name of my array

in the function:

myDynamicText.text = myArray[label]; // try to use the passed  
string to access the array.



This won't access some array. How do I convert that string over to  
something that will work?


-b




On Mar 12, 2007, at 3:46 PM, Andy Herrman wrote:


I think this is your problem:

showPopup(myarray);

You're passing showPopup a string with the value myarray, not the
array.  Remove the quotes and you should be good.

 -Andy

On 3/12/07, Bill Abel [EMAIL PROTECTED] wrote:

How do you access an associate array using a variable?

Inside my function popup[text]; won't access the array. I can't
find any information in the books I have Actionsript Cookbook and
Actionscript for Flash MX.

Anyone dealt with this before?

// Define the text and titles for the popups
var myarray = { text: Lorem ipsum dolor sit amet ... };

// Testing - this works!
trace(myarray[text]);

// Show the popup
function showPopup(popup) {
mainMap[popup].gotoAndPlay(on);
mainMap[popup].label_title.text = popup[text];  // This  
doesn't work.

trace(popup[text]);
};

showPopup(myarray);
___
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] Accessing an Associative Array

2007-03-12 Thread Bill Abel

Cool. That's it. Thanks so much!

Needed to use the syntax;

this[myStringVariableAndArrayName][myLabelInMyAssociativeArray];


My final code:

// Show the popup
function showPopup(popup) {
trace(popup);
mainMap[popup].gotoAndPlay(on);
mainMap[popup].label_title.text = this[popup][labelText];
trace(this[popup][labelText]);
};



On Mar 12, 2007, at 4:45 PM, Merrill, Jason wrote:


How do you do it where myVar is the array? Is this possible?
Or do you always have to specify the array?


Easy, just keep using the array access operator to evaluate:

myVar = myArray2

myArray1 = new Array()
myArray1[elem1] = hello
myArray1[elem2] = hi

myArray2 = new Array()
myArray2[elem1] = wassup
myArray2[elem2] = yo

trace(this[myVar][elem1]) //traces wassup

Jason Merrill
Bank of America
Global Technology  Operations
Learning  Leadership Development
eTools  Multimedia Team





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Bill Abel
Sent: Monday, March 12, 2007 5:02 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Accessing an Associative Array

How do you do it where myVar is the array? Is this possible?
Or do you always have to specify the array?

arr = new Array()
arr[elem1] = hello
arr[elem2] = hi

function testArray(myVar) {
trace(myVar[elem2]);
};
testArray(arr);



On Mar 12, 2007, at 3:17 PM, Merrill, Jason wrote:


arr = new Array()
myVar = elem2
arr[elem1] = hello
arr[elem2] = hi
trace(arr[myVar])


___
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] MovieClip Instance _x and _y

2007-03-12 Thread R�kos Attila

MovieClip.getBounds()


  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] AMFPHP and sessions

2007-03-12 Thread Patrick Lemiuex

Hello:

I did some digging looking at how to append sessions in AMFPHP... I  
understand I have to load the sessionID into a flashvars inside my  
flash.  After that, what's next, how do I append my session from my  
current one without starting a new one.


I'm starting my session outside AMFPHP that's all.

Thanks,
Patrick
___
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] MovieClip Instance _x and _y

2007-03-12 Thread Pedro Taranto

you can build the absolute position adding the _parent nested positions

--Pedro Taranto


Jason Lutes escreveu:

Is there a way determine clip position that doesn't presume the location of
the registration point relative to clip content, or doesn't care where
nested clip content is positioned relative to the registration point? For
example, if I need to programmatically position a clip along the left edge
of the stage, without a guarantee that all items nested within the clip are
registered at positive x and y coordinates, I need to be able to identify
the top and leftmost edges of the clip.

Apparently, I've taken positioning for granted for a while now, since I
always register clip content at 0,0 for the upper left corner. I have a
situation now that violates my convention.

Thanks.


-
Jason


___
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] class files have stopped compiling?

2007-03-12 Thread Jah

i think an extenstion was published ... for MX 2004
this is what he speaks of:
http://www.adobe.com/cfusion/exchange/index.cfm?extid=1016963view=sn111


On 3/12/07, Merrill, Jason [EMAIL PROTECTED] wrote:

I'm running MX04 Professonal.  I don't see this command.
Must be in F8.

It is. But you can do it manually by locating the ASO files on your hard
drive and deleting them - I think an extension was published on the
Adobe Exchange which did it also for MX 2004.

Jason Merrill
Bank of America
Global Technology  Operations
Learning  Leadership Development
eTools  Multimedia Team



___
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] is flash still alive?

2007-03-12 Thread ottocid

This may sound a stupid question.

But I've been away from flash developing for one year. And I need to 
know if there is still the same request of flash actionscript 
programmers of last year of flash is becoming obsolete, in favour 
of Flex or simply in favour of classical html/serverside 
applications, that are google friendly / accessible etc...


In next months I will leave italy to go in London searching for a 
job, and I need to know if being a STRONG actionscript developer is 
still a good reference.


Thanks in advance

___
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] is flash still alive?

2007-03-12 Thread Patrick Lemiuex

You're joking right?


On Mar 12, 2007, at 3:51 PM, ottocid wrote:


This may sound a stupid question.

But I've been away from flash developing for one year. And I need  
to know if there is still the same request of flash actionscript  
programmers of last year of flash is becoming obsolete, in favour  
of Flex or simply in favour of classical html/serverside  
applications, that are google friendly / accessible etc...


In next months I will leave italy to go in London searching for a  
job, and I need to know if being a STRONG actionscript developer is  
still a good reference.


Thanks in advance

___
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] is flash still alive?

2007-03-12 Thread Snepo - Arse
Absolutely. I can't speak for other markets but I do know that there  
is a huge demand for ActionScript skills in Australia. I run a small  
Flash agency and we have plenty of work to keep us busy and struggle  
to find enough quality resources. It's even to the point where our  
developers are booked up for a couple of months in advanced. There  
seems to be a fair amount of novice developers claiming to be skilled  
which can cause problems... so anyone with STRONG AS skills is highly  
sought after.


Flex 2 and Flash Lite work is much less common though still required  
enough to warrant internal developer training and research.


Regards,

Arse
www.snepo.com
www.arseiam.com

On 13/03/2007, at 9:51 AM, ottocid wrote:


This may sound a stupid question.

But I've been away from flash developing for one year. And I need  
to know if there is still the same request of flash actionscript  
programmers of last year of flash is becoming obsolete, in favour  
of Flex or simply in favour of classical html/serverside  
applications, that are google friendly / accessible etc...


In next months I will leave italy to go in London searching for a  
job, and I need to know if being a STRONG actionscript developer is  
still a good reference.


Thanks in advance

___
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] is flash still alive?

2007-03-12 Thread Dave Watts
 But I've been away from flash developing for one year. And I 
 need to know if there is still the same request of flash 
 actionscript programmers of last year of flash is becoming 
 obsolete, in favour of Flex or simply in favour of 
 classical html/serverside applications, that are google 
 friendly / accessible etc...
 
 In next months I will leave italy to go in London searching 
 for a job, and I need to know if being a STRONG actionscript 
 developer is still a good reference.

Since Flex relies heavily on ActionScript, I would expect that knowing
ActionScript is more important than ever.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net

___
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] is flash still alive?

2007-03-12 Thread sean
I've just left contracting in London to take a senior role in New York and
I still get loads of calls from London based agencies looking for good AS
developers and I can't find enough good AS devs in New York for all the
work we have. You'll be in high demand mate. Actionscript is the future.
Get used to it.

 This may sound a stupid question.

 But I've been away from flash developing for one year. And I need to
 know if there is still the same request of flash actionscript
 programmers of last year of flash is becoming obsolete, in favour
 of Flex or simply in favour of classical html/serverside
 applications, that are google friendly / accessible etc...

 In next months I will leave italy to go in London searching for a
 job, and I need to know if being a STRONG actionscript developer is
 still a good reference.

 Thanks in advance

 ___
 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] unchosen ComboBox

2007-03-12 Thread David Cohn

Hey all,

I'm trying to get a ComboBox to start out unchosen (e.g. shows  
choose one), but not allow the user to select that initial value.


It basically works if I set :
my_cb.dataProvider = { data:1, label:A, data:2, label:B, ... };
my_cb.text = choose one;
my_cb.selectedIndex = null;

The only snag I'm running into with this solution is that keyboard  
navigation is off by one letter (e.g. pressing the B key will select  
A), and only on the first time the component is used.


Is there a better solution for this?

Thanks in advance,
--Dave


___
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] is flash still alive?

2007-03-12 Thread Jim Cheng

ottocid wrote:

But I've been away from flash developing for one year. And I need to 
know if there is still the same request of flash actionscript 
programmers of last year of flash is becoming obsolete, in favour of 
Flex or simply in favour of classical html/serverside applications, 
that are google friendly / accessible etc...


I can't speak for London, but at least locally here in Denver (Colorado, 
USAmerica), business is booming here--so much so that we have yet to 
stop interviewing and hiring strong ActionScript developers.  If the 
market there is similar and you have some mad skills, I don't think 
you'll be hurting for work.


Speaking to the type of candidate that my company looks for (as a shop 
specializing in bespoke software development of the RIA flavor), I would 
suggest learning ActionScript 3 and mastering the nuances of the new 
Flex Framework if you haven't already, especially if you are planning on 
getting in on RIA development work.


That being said though, there's no lack of work in the rich media end of 
the Flash spectrum either, there's quite a few openings at some of the 
local design agencies around town, and they're looking for competent 
ActionScript developers too--there's quite a bit of demand for top 
talent--these days, you can pretty much choose what kind of Flash 
platform work you want to do.  Taken in summary, I'd venture to say that 
the market for ActionScript is better now than it has ever been.


Jim Cheng
effectiveUI
___
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] I have small doubt

2007-03-12 Thread sirajudeen kamarul jaman

hi toeverybody,

this is first time to joining the team.i have  small doubt. i have one xml 
file that file containing
two fields,student name and question.how to update the xml file from flash. 
Is it possible to update the xml node?


thanks for ur advacne replay

_
Voice your questions and our experts will answer them 
http://content.msn.co.in/Lifestyle/AskExpert/Default01.htm


___
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] is flash still alive?

2007-03-12 Thread Ramon Miguel M. Tayag

It sucks though that in a place like the Philippines (where I am),
people aren't into this technology so much yet.  They almost always
think that Flash is for fast computers and high bandwidth.  Most
likely, even if a team feels they are quite skilled, their skills are
not tested or pushed to the limit.

To answer your questions, yes it's quite active.  Even here, there is
some advancement, however small, in embracing the technology, thanks
to site like YouTube.

--
Ramon Miguel M. Tayag
___
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] deleting a progress bar after loading

2007-03-12 Thread Omar Fouad

try setting its alpha to 0 as in
myPb._alpha=0;


hope it helps


On 3/13/07, Gustavo Duenas [EMAIL PROTECTED] wrote:


i did and nothing happens...so far I'm clueless.
the component is in the stage. I'm just trying to get of rid of it
onece the entire movie in the loader component has been loaded.
any ideas
this  is the whole codemaybe I just did something wronghelp!


gustavo



code:



stop();
   import mx.controls.Loader;
   import mx.controls.ProgressBar;

var myLoader: Loader = createClassObject(Loader, loader,
nextHighestDepht)
myLoader.contentPath=profiles.swf;
myLoader.setSize(content._width, content._height);
myloader._y=-10;


//comienza el movimiento de la x

//funcion Retirada

_root.logoX._x-=5;
//revisamos la posicion
if(_root.logoX._x=_root.logoX._x-270){
   _root.logoX=0;
   _root.menu._x-=275;
_root.button1._x-=180;
}

var myloadListen = this.myloader
mypb.source= myLoader;
myloadListen.complete = function(evt_obj:Object){
   mypb.visible = false;
}
myloader.addEventListener(complete,myloadListen);


On Mar 12, 2007, at 4:57 PM, Jim Duber wrote:

 I'm on digest, so you may have already heard this a hundred times.
 In case not, try instead:

   mypb.visible = false;

 Like many (most, all?) of the V2 components, there should be no
 underscore in the 'visible' property.

 Best,
 Jim

 Date: Mon, 12 Mar 2007 13:54:07 -0400
 From: Gustavo Duenas [EMAIL PROTECTED]
 Subject: Re: [Flashcoders] deleting a progress bar after loading
 To: flashcoders@chattyfig.figleaf.com

 actually I'm trying to set the _visible of the progress bar to false
 in the same place where I was trying to use the other instructions.

 like this.

 var myloadListen = this.myloader
 mypb.source= myLoader;
 myloadListen.complete = function(evt_obj:Object){
 mypb._visible= false;
 }
 myloader.addEventListener(complete,myloadListen);


 but so far...the same bad result...nothing.


 regards

 Gustavo Duenas



 __
 Jim Duber[EMAIL PROTECTED]
 duber dot com http://www.duber.com

   Interactive Media Development, Training and Consulting

 7466 Terrace Drive,  El Cerrito,  California,  94530,  USA
 (voice) 510.525.5122(fax) 510.525.5193
 __

 ___
 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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
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] deleting a progress bar after loading

2007-03-12 Thread Marc Hoffman
Sorry I just caught this thread, but I notice something that seems 
wrong in your code. You have:

if(_root.logoX._x=_root.logoX._x-270)...

Now, why would a value ever be equal to less than itself? If this is 
an important part of your code, you need to create another variable 
to remember the initial value, and then compare the current value to 
it. Something like:


_root.logoX._x=5;
_root.logoXInitX = _root.logoX;
if(_root.logoX._x=_root.logoXInitX-270){
   _root.logoX=0;
   _root.menu._x-=275;
_root.button1._x-=180;
}

All this is said without figuring out what your code is actually 
supposed to do.


- Marc

At 10:23 PM 3/12/2007, you wrote:


_root.logoX._x-=5;
//revisamos la posicion
if(_root.logoX._x=_root.logoX._x-270){
   _root.logoX=0;
   _root.menu._x-=275;
_root.button1._x-=180;
}



___
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] Adjust height of UIScrollBar?

2007-03-12 Thread Marc Hoffman
I want to set the UIScrollbar height independent of the height of the 
textfield being scrolled. I used to be able to do this easily. Is it 
just me, or did Flash8 do away with that? Now the scrollbar snaps to 
the height of the textfield no matter what I do. Anyone know how to 
fix this? I want the scrollbar to fill a vertical space but I want 
the textfield shorter so it maintains top and bottom margins. Anyone 
know how to do this?


thanks,
Marc


___
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