Re: [Flashcoders] Moving groups of objects

2008-07-22 Thread Gabino Travassos
I think you'll have to provide some code. It's hard to tell why you've 
orphaned your text. Maybe your targeting the wrong clip. It can be 
pretty convoluted.


Luck


- Original Message - 
From: "J.C. Berry" <[EMAIL PROTECTED]>

To: "Flash Coders List" 
Sent: Tuesday, July 22, 2008 10:27 PM
Subject: Re: [Flashcoders] Moving groups of objects


Thanks Gabino for the quick answer. However, I do not know what I have 
done
incorrectly. As per my second email, I have an empty mc on the root 
and I

have created a text field in there, also load in mcs in there, and
attachMovie some buttons. But when I move the mc in root only the 
images

which are loaded in move when I move it?

On Tue, Jul 22, 2008 at 9:12 PM, Gabino Travassos <
[EMAIL PROTECTED]> wrote:


Hi Jonathan,

How about creating a root movieclip and then making your objects as
children of that clip, so something (pseudocode) like:
create movieclip f1 // root button
create movieclip f1.button1 // button clip
create text field f1.button1.text1 // text
create movieclip f1.button1.rect1 // rectangle

and then you can move f1._x+=10 or f1._visible=0

Gabino

- Original Message - From: "J.C. Berry" 
<[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Tuesday, July 22, 2008 8:51 PM
Subject: [Flashcoders] Moving groups of objects


 Hi all, I hope this is not too basic, but are there any tutorials 
and/or
hints on how to move multiple objects as a group with AS (preferably 
AS2)?
Whenever you could throw me a line I would appreciate it! Thanks so 
much.


--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
"I think the real reason the Extropy Institute closed is because Ayn 
Rand

rose from her cryo-sleep" -digibrill

( @ o )
/ | | | | \ Chumby.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 
18

U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only 
for
the use of the individual or entity named above. If the reader of 
this
message is not the intended recipient, you are hereby notified that 
any
dissemination, distribution or copying of this communication is 
strictly

prohibited.

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





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





--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
"I think the real reason the Extropy Institute closed is because Ayn 
Rand

rose from her cryo-sleep" -digibrill

( @ o )
/ | | | | \ Chumby.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 
18

U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that 
any
dissemination, distribution or copying of this communication is 
strictly

prohibited.

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





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


Re: [Flashcoders] Moving groups of objects

2008-07-22 Thread J.C. Berry
Thanks Gabino for the quick answer. However, I do not know what I have done
incorrectly. As per my second email, I have an empty mc on the root and I
have created a text field in there, also load in mcs in there, and
attachMovie some buttons. But when I move the mc in root only the images
which are loaded in move when I move it?

On Tue, Jul 22, 2008 at 9:12 PM, Gabino Travassos <
[EMAIL PROTECTED]> wrote:

> Hi Jonathan,
>
> How about creating a root movieclip and then making your objects as
> children of that clip, so something (pseudocode) like:
> create movieclip f1 // root button
> create movieclip f1.button1 // button clip
> create text field f1.button1.text1 // text
> create movieclip f1.button1.rect1 // rectangle
>
> and then you can move f1._x+=10 or f1._visible=0
>
> Gabino
>
> - Original Message - From: "J.C. Berry" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Tuesday, July 22, 2008 8:51 PM
> Subject: [Flashcoders] Moving groups of objects
>
>
>  Hi all, I hope this is not too basic, but are there any tutorials and/or
>> hints on how to move multiple objects as a group with AS (preferably AS2)?
>> Whenever you could throw me a line I would appreciate it! Thanks so much.
>>
>> --
>> Jonathan Berry, M.A.
>> IT Consultant
>> 619.306.1712(m)
>> [EMAIL PROTECTED]
>> "I think the real reason the Extropy Institute closed is because Ayn Rand
>> rose from her cryo-sleep" -digibrill
>> 
>> ( @ o )
>> / | | | | \ Chumby.com
>>
>> ---
>>
>> This E-mail is covered by the Electronic Communications Privacy Act, 18
>> U.S.C. ?? 2510-2521 and is legally privileged.
>> This information is confidential information and is intended only for
>> the use of the individual or entity named above. If the reader of this
>> message is not the intended recipient, you are hereby notified that any
>> dissemination, distribution or copying of this communication is strictly
>> prohibited.
>>
>> ---
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
"I think the real reason the Extropy Institute closed is because Ayn Rand
rose from her cryo-sleep" -digibrill

( @ o )
/ | | | | \ Chumby.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

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


Re: [Flashcoders] Re: Moving groups of objects

2008-07-22 Thread Helmut Granda
Hi berry.. do you also need help into attaching the elements to the empty
movieclip? If you have already attached all the necessary elements to the
movieclip on the stage then it is just a matter of moving the movieclip
where you loaded all the data into. Say you named that movieclip container
all you have to do is the following:
conatiner._x = 200;
container._y = 300'

and all the elements that have been included into the "container" MC will
move with it.

Does that makes sense?

On Tue, Jul 22, 2008 at 10:00 PM, J.C. Berry <[EMAIL PROTECTED]>
wrote:

> Oh, as to specifically what I am trying to move: I have an empty movieclip
> on the stage I am using to load in different images, also dynamically
> attach
> button symbols, and dynamically create a textfield. I would like to move
> all
> these things one item. Thanks so much!
>
>
> --
> Jonathan Berry, M.A.
> IT Consultant
> 619.306.1712(m)
> [EMAIL PROTECTED]
> "I think the real reason the Extropy Institute closed is because Ayn Rand
> rose from her cryo-sleep" -digibrill
> 
> ( @ o )
> / | | | | \ Chumby.com
>
> ---
>
> This E-mail is covered by the Electronic Communications Privacy Act, 18
> U.S.C. ?? 2510-2521 and is legally privileged.
> This information is confidential information and is intended only for
> the use of the individual or entity named above. If the reader of this
> message is not the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited.
>
> ---
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



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


Re: [Flashcoders] Moving groups of objects

2008-07-22 Thread Gabino Travassos

Hi Jonathan,

How about creating a root movieclip and then making your objects as 
children of that clip, so something (pseudocode) like:

create movieclip f1 // root button
create movieclip f1.button1 // button clip
create text field f1.button1.text1 // text
create movieclip f1.button1.rect1 // rectangle

and then you can move f1._x+=10 or f1._visible=0

Gabino

- Original Message - 
From: "J.C. Berry" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Tuesday, July 22, 2008 8:51 PM
Subject: [Flashcoders] Moving groups of objects


Hi all, I hope this is not too basic, but are there any tutorials 
and/or
hints on how to move multiple objects as a group with AS (preferably 
AS2)?
Whenever you could throw me a line I would appreciate it! Thanks so 
much.


--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
"I think the real reason the Extropy Institute closed is because Ayn 
Rand

rose from her cryo-sleep" -digibrill

( @ o )
/ | | | | \ Chumby.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 
18

U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that 
any
dissemination, distribution or copying of this communication is 
strictly

prohibited.

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





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


[Flashcoders] Re: Moving groups of objects

2008-07-22 Thread J.C. Berry
Oh, as to specifically what I am trying to move: I have an empty movieclip
on the stage I am using to load in different images, also dynamically attach
button symbols, and dynamically create a textfield. I would like to move all
these things one item. Thanks so much!


-- 
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
"I think the real reason the Extropy Institute closed is because Ayn Rand
rose from her cryo-sleep" -digibrill

( @ o )
/ | | | | \ Chumby.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

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


[Flashcoders] Moving groups of objects

2008-07-22 Thread J.C. Berry
Hi all, I hope this is not too basic, but are there any tutorials and/or
hints on how to move multiple objects as a group with AS (preferably AS2)?
Whenever you could throw me a line I would appreciate it! Thanks so much.

-- 
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
"I think the real reason the Extropy Institute closed is because Ayn Rand
rose from her cryo-sleep" -digibrill

( @ o )
/ | | | | \ Chumby.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

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


Re: [Flashcoders] removing all listeners from a dpo

2008-07-22 Thread Juan Pablo Califano
No worries.

Personally, I think in most cases using this approach would not save you
much work (in case it works in the first place).

But I agree that it would be useful that the EventDispatcher class exposed a
method to remove all listeners and probably a method to query any
EventDispatcher object about all its registered listeners (maybe returning
an array of some read only value objects / data structures, to prevent
accidental inconsistencies). You have the hasEventListener method, but you
have to know what events to look for before hand, so in this scenario it's
not of much help, I guess.

Cheers
Juan Pablo Califano


2008/7/21, Fabio Pinatti <[EMAIL PROTECTED]>:
>
> On Sun, Jul 20, 2008 at 7:40 PM, Juan Pablo Califano <
> [EMAIL PROTECTED]> wrote:
>
> > PD2:
> >
> > this line should be removed from the unregisterEventListener()
> >
> > _dispatcher.removeEventListener(type, listener, useCapture);
> >
> > since it will cause an infinite loop and the eventListener has already
> been
> > removed in the caller anyway.
> >
> > So, to sum up:
> >
> >  public function unregisterEventListener(type:String, listener:Function,
> > useCapture:Boolean):void {
> >
> >var i:int = _eventsList.length - 1;
> >
> >   var cur:EventListenerData;
> >
> >   while (i >= 0) {
> > cur = _eventsList[i] as EventListenerData;
> >if (cur.type == type && cur.listener == listener && cur.useCapture ==
> > useCapture) {
> >// _dispatcher.removeEventListener(type, listener, useCapture);
> >  _eventsList.splice(i, 1);
> >}
> >i--;
> >}
> >  }
> >
> >
> > Cheers
> > Juan Pablo Califano
> >
> >
> > 2008/7/20, Juan Pablo Califano <[EMAIL PROTECTED]>:
> > >
> > > PD:
> > >
> > > I forgot to actually remove the eventListenerData from the list in the
> > > unregisterEventListener method of the Bookkeeper class. Looping
> backwards
> > > and adding _eventsList.splice(i, 1); should do it.
> > >
> > >
> > > Cheers
> > > Juan Pablo Califano
> > >
> > >
> > >
> > > 2008/7/20, Juan Pablo Califano <[EMAIL PROTECTED]>:
> > >>
> > >> Hi,
> > >>
> > >> You could try to do your own bookkeeping, so you know what listeners
> are
> > >> registered to an EventDispatcher object. You can have one class to
> hold
> > that
> > >> info in a list and write a method that loops through that list and
> > remove
> > >> all registered listeners. You'd still have to override the
> > addEventListener
> > >> and removeEventListener methods in the dispatcher object, to intercept
> > those
> > >> calls from external code and keep your bookkeeper in sync.
> > >>
> > >> Some code to illustrate it (keep mind that even though it compiles,
> this
> > >> is untested and may be not the best idea).
> > >>
> > >> package
> > >> {
> > >>  import flash.display.Sprite;
> > >>
> > >>  public class Main extends Sprite
> > >>  {
> > >>   private var _evtBookKeeper:EventBookkeeper;
> > >>
> > >>   public function Main():void
> > >>   {
> > >>_evtBookKeeper = new EventBookkeeper(this);
> > >>   }
> > >>
> > >>   override public function addEventListener(type:String,
> > >> listener:Function, useCapture:Boolean = false, priority:int = 0,
> > >> useWeakReference:Boolean = false):void
> > >>   {
> > >>super.addEventListener(type, listener, useCapture, priority,
> > >> useWeakReference);
> > >>_evtBookKeeper.registerEventListener(type, listener, useCapture);
> > >>   }
> > >>
> > >>   override public function removeEventListener(type:String,
> > >> listener:Function, useCapture:Boolean = false):void
> > >>   {
> > >>super.removeEventListener(type, listener, useCapture);
> > >>_evtBookKeeper.unregisterEventListener(type, listener, useCapture);
> > >>   }
> > >>
> > >>   public function removeAllListeners():void {
> > >>_evtBookKeeper.unregisterAndRemoveAll();
> > >>   }
> > >>
> > >>  }
> > >> }
> > >>
> > >> //
> > >> //
> > >> //
> > >>
> > >> package
> > >> {
> > >>  import flash.events.IEventDispatcher;
> > >>  import flash.utils.Dictionary;
> > >>
> > >>  public class EventBookkeeper
> > >>  {
> > >>
> > >>   private var _eventsList:Array;
> > >>   private var _dispatcher:IEventDispatcher;
> > >>
> > >>   public function EventBookkeeper(dispatcher:IEventDispatcher) {
> > >>_eventsList = [];
> > >>   }
> > >>
> > >>   public function registerEventListener(type:String,
> listener:Function,
> > >> useCapture:Boolean):void {
> > >>_eventsList.push(new EventListenerData(type,listener,useCapture));
> > >>   }
> > >>
> > >>   public function unregisterEventListener(type:String,
> > listener:Function,
> > >> useCapture:Boolean):void {
> > >>var len:int = _eventsList.length;
> > >>var i:int = 0;
> > >>
> > >>var cur:EventListenerData;
> > >>
> > >>while (i < len) {
> > >> cur = _eventsList[i] as EventListenerData;
> > >> if (cur.type == type && cur.listener == listener && cur.useCapture
> > ==
> > >> useCapture) {
> > >>  _dispatcher.removeEventListener(type, listener, useCapture);
> > >> }
> > >> i

Re: [Flashcoders] DART & external SWFs/.as?

2008-07-22 Thread tim shaya
Thanks for getting back to me on this, Manuel. That was reassuring.


On Tue, Jul 22, 2008 at 1:02 PM, Manuel Ponce de Leon <
[EMAIL PROTECTED]> wrote:

> Hi Tim,
>
> I just happen to work for DoubleClick/Google :)...
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] E4X filtering strange behaviour

2008-07-22 Thread Kenneth Kawamoto
I could be wrong but that (user input validation) should be done prior 
to RegExp construction.


Kenneth Kawamoto
http://www.materiaprima.co.uk/

Merrill, Jason wrote:

That was it, it works now, thanks.  Funny, I didn't notice that, I had
it in my code before, but somewhere along the line of messing with
things, it just switched back over to .toString() and I hadn't noticed.
Thanks everyone! 


One more question if I may - how can I exclude certain things like blank
spaces?  I mean, I could check the textfield, but it would seem there is
an easier way.  If I put a blank space (or nothing for that matter) in
the input text field and search for that, it returns all nodes.  I could
check the input text field, but I'd rather do it with a regular
expression (both for elegance and to learn).  The help docs are skimpy,
so excuse so many questions here.  It's also such a huge subject, it's
very hard to Google exactly what you need.


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


Re: [Flashcoders] Detecting Stage width and height after refresh

2008-07-22 Thread Helmut Granda
yeah, I am tracing the stage size and that is how I am finding out that the
values go back to 0. thanks for the suggestions...

On Tue, Jul 22, 2008 at 12:45 PM, Kenneth Kawamoto <
[EMAIL PROTECTED]> wrote:

> If you output stageWidth/stageHeight to a TextField I think you can verify
> they are not zero.
>
> Kenneth Kawamoto
> http://www.materiaprima.co.uk/
>
> Helmut Granda wrote:
>
>> Yeah, that is the first setting in my Document's class constructor,
>> specially since i need that info through out the application.
>>
>> Thanks for the help. I will keep debugging...
>>
>> On Tue, Jul 22, 2008 at 12:06 PM, Kenneth Kawamoto <
>> [EMAIL PROTECTED] > wrote:
>>
>>If you monitor stageWidth/stageHeight in your Document Class
>>constructor it should tell you the stage size every time you refresh
>>your browser.
>>
>>
>>Kenneth Kawamoto
>>http://www.materiaprima.co.uk/
>>
>>Helmut Granda wrote:
>>
>>   DATA = Data.instance;// Holds Data information
>>for the app
>>   DATA.stageWidth = stage.stageWidth;
>>   DATA.stageHeight = stage.stageHeight;
>>
>>On Tue, Jul 22, 2008 at 11:33 AM, Kenneth Kawamoto
>><[EMAIL PROTECTED] 
>>>>> wrote:
>>
>>   It works fine for me every time. What is your code look like?
>>
>>   Kenneth Kawamoto
>>   http://www.materiaprima.co.uk/
>>
>>
>>   Helmut Granda wrote:
>>
>>   Hello all,
>>
>>   I have a small dilema, my application is working properly
>>and I
>>   am relying
>>   on Stage width and height to position some elements. FOr
>> some
>>   odd reason
>>   when I refresh my movie the stage width and height render
>>0. Is
>>   there any
>>   specific reason why this usually happens? OSX FF
>>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



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


Re: [Flashcoders] Detecting Stage width and height after refresh

2008-07-22 Thread Kenneth Kawamoto
If you output stageWidth/stageHeight to a TextField I think you can 
verify they are not zero.


Kenneth Kawamoto
http://www.materiaprima.co.uk/

Helmut Granda wrote:
Yeah, that is the first setting in my Document's class constructor, 
specially since i need that info through out the application.


Thanks for the help. I will keep debugging...

On Tue, Jul 22, 2008 at 12:06 PM, Kenneth Kawamoto 
<[EMAIL PROTECTED] > wrote:


If you monitor stageWidth/stageHeight in your Document Class
constructor it should tell you the stage size every time you refresh
your browser.


Kenneth Kawamoto
http://www.materiaprima.co.uk/

Helmut Granda wrote:

   DATA = Data.instance;// Holds Data information
for the app
   DATA.stageWidth = stage.stageWidth;
   DATA.stageHeight = stage.stageHeight;

On Tue, Jul 22, 2008 at 11:33 AM, Kenneth Kawamoto
<[EMAIL PROTECTED] 
>> wrote:

   It works fine for me every time. What is your code look like?

   Kenneth Kawamoto
   http://www.materiaprima.co.uk/


   Helmut Granda wrote:

   Hello all,

   I have a small dilema, my application is working properly
and I
   am relying
   on Stage width and height to position some elements. FOr some
   odd reason
   when I refresh my movie the stage width and height render
0. Is
   there any
   specific reason why this usually happens? OSX FF

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


Re: [Flashcoders] Resizing Images

2008-07-22 Thread eric e. dolecki
Do you even need to cast as Bitmap? can't you just do
container.forceSmoothing = true; ? Oops - that might be AS2.

On Tue, Jul 22, 2008 at 12:59 PM, Matt S. <[EMAIL PROTECTED]> wrote:

> smoothing. Cast the image as a Bitmap and apply smoothing, and you'll
> be able to resize without image degradation.
>
> function loadTheImage(iMG):void {
>url = "uploads/"+iMG+".jpg";
>var request:URLRequest = new URLRequest(url);
>var loader:Loader = new Loader();
>loader.load(request);
>loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
> onThumbLoad);
>loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
> preLoader);
>
> }
>
> function onThumbLoad(e:Event):void {
>//"cast" the loaded content as Bitmap
>var b:Bitmap;
>b = e.target.content as Bitmap;
>b.smoothing = true;
>
>this.img_mc.addChild(b);
> }
>
> .m
>
>
> On Tue, Jul 22, 2008 at 12:40 PM, Lehr, Theodore M (N-SGIS)
> <[EMAIL PROTECTED]> wrote:
> > I have a small movie where I am importing images and dynamically
> > resizing them - the problem is that when it is shrunken - it gets really
> > pixellated - I am using jpegs - is there a way to make it so they look
> > better - maybe import a different type of image ?
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Detecting Stage width and height after refresh

2008-07-22 Thread Helmut Granda
Yeah, I found a similar post from some one else and they had a similar error
in IE6 or 7, but FF was ok. Strange...

On Tue, Jul 22, 2008 at 12:09 PM, Paul Evans <
[EMAIL PROTECTED]> wrote:

> On 22 Jul 2008, at 17:17, Helmut Granda wrote:
>
>>  FOr some odd reason
>> when I refresh my movie the stage width and height render 0. Is there any
>> specific reason why this usually happens? OSX FF
>>
>
> I had similar problem a while back on a pure AS3 project, but it only
> manifested in IE 6 to my knowledge. Essentially you need to listen for and
> act upon resize events if the issue is the same as mine. I posted fix code
> to the comments...
>
>
> http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/
>
> --
> Paul Evans
> http://www.creative-cognition.co.uk/
> http://blog.creacog.co.uk/
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



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


Re: [Flashcoders] Shared fonts

2008-07-22 Thread strk
On Tue, Jul 22, 2008 at 06:07:18PM +0100, allandt bik-elliott 
(thefieldcomic.com) wrote:
> mate it's definitely a weakness of flash but i wouldn't quite call it a bug
> 
> Adobe needs to look at it tho, coz having a common font library is tough
> (although one of the guys i worked with said it was possible by copying the
> format from the loaded swf)

The only reason I can think of for not using a single library is the case
in which loading a movie would override a previously defined font.
It would explain why a loaded movie can use fonts from loader but
not the other way around (a kind of visibility graph).

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


Re: [Flashcoders] Detecting Stage width and height after refresh

2008-07-22 Thread Paul Evans

On 22 Jul 2008, at 17:17, Helmut Granda wrote:

 FOr some odd reason
when I refresh my movie the stage width and height render 0. Is  
there any

specific reason why this usually happens? OSX FF


I had similar problem a while back on a pure AS3 project, but it only  
manifested in IE 6 to my knowledge. Essentially you need to listen for  
and act upon resize events if the issue is the same as mine. I posted  
fix code to the comments...


http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/

--
Paul Evans
http://www.creative-cognition.co.uk/
http://blog.creacog.co.uk/

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


Re: [Flashcoders] Shared fonts

2008-07-22 Thread allandt bik-elliott (thefieldcomic.com)
mate it's definitely a weakness of flash but i wouldn't quite call it a bug

Adobe needs to look at it tho, coz having a common font library is tough
(although one of the guys i worked with said it was possible by copying the
format from the loaded swf)

i found this online that looks like it might help
http://www.mokisystems.com/blog/flash-as3-loading-fonts/

On Tue, Jul 22, 2008 at 5:45 PM, strk <[EMAIL PROTECTED]> wrote:

> I'm trying to figure wheter the overcomplex solutions for shared fonts
> are due to bugs in the proprietary player or design choices.
>
> In particular, why shouldn't a loader movie be allowed to use
> fonts defined in a *loaded* movie while the other way around should
> be possible ?
>
> Or, why not maintaining a single shared font library for a whole run ?
>
>
> --strk;
>
>  ()   ASCII Ribbon Campaign
>  /\   Keep it simple!
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DART & external SWFs/.as?

2008-07-22 Thread Manuel Ponce de Leon

Hi Tim,

I just happen to work for DoubleClick/Google :)

That is totally inaccurate, if you are using the Motif AdKit, you can 
add any external file as a child asset as you've done before. goes 
without saying, as long as that file type is supported by Flash (SWF, 
XML, JPG, MP3, text).


If the SWF files need to be hosted in an external server, these can be 
loaded into the main asset just as well, regular Flash Player 
cross-domain policies applying, for those cases the child files are 
calling methods on the parent file or vice-versa. These are Flash Player 
policies and as such they apply to any Flash content on the web, no 
matter the vendor (this is, it's not a constraint one vendor will have 
while other don't - Flash is the same for everyone, which is part of its 
beauty)


Feel free to contact me directly if you have any further questions.

.:Manuel

[EMAIL PROTECTED] wrote:
Hi guys, Has anyone created Flash banners using Double Click's DART 
where the SWF uses code from external .as class files? A vendor is 
telling me this: "DART can't accommodate files being uploaded to the 
same directory or folder and communication amongst them. Can you upload 
those additional files somewhere on your end and have the parent flash 
file reference the child flash files accordingly, externally." And yet, 
I've done Motif banners that use external SWFs, external XML files, 
external JPEGs, etc. Is he making this up? Have you heard anything 
similar? Tim

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


--
Manuel Ponce de Leon :: Rich Media Customer Solutions Consultant :: 
Google :: [EMAIL PROTECTED] ::

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


Re: [Flashcoders] Resizing Images

2008-07-22 Thread Matt S.
smoothing. Cast the image as a Bitmap and apply smoothing, and you'll
be able to resize without image degradation.

function loadTheImage(iMG):void {
url = "uploads/"+iMG+".jpg";
var request:URLRequest = new URLRequest(url);
var loader:Loader = new Loader();
loader.load(request);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onThumbLoad);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, 
preLoader);

}

function onThumbLoad(e:Event):void {
//"cast" the loaded content as Bitmap
var b:Bitmap;
b = e.target.content as Bitmap;
b.smoothing = true;

this.img_mc.addChild(b);
}

.m


On Tue, Jul 22, 2008 at 12:40 PM, Lehr, Theodore M (N-SGIS)
<[EMAIL PROTECTED]> wrote:
> I have a small movie where I am importing images and dynamically
> resizing them - the problem is that when it is shrunken - it gets really
> pixellated - I am using jpegs - is there a way to make it so they look
> better - maybe import a different type of image ?
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Detecting Stage width and height after refresh

2008-07-22 Thread Helmut Granda
DATA = Data.instance;// Holds Data information for the app
DATA.stageWidth = stage.stageWidth;
DATA.stageHeight = stage.stageHeight;

On Tue, Jul 22, 2008 at 11:33 AM, Kenneth Kawamoto <
[EMAIL PROTECTED]> wrote:

> It works fine for me every time. What is your code look like?
>
> Kenneth Kawamoto
> http://www.materiaprima.co.uk/
>
>
> Helmut Granda wrote:
>
>> Hello all,
>>
>> I have a small dilema, my application is working properly and I am relying
>> on Stage width and height to position some elements. FOr some odd reason
>> when I refresh my movie the stage width and height render 0. Is there any
>> specific reason why this usually happens? OSX FF
>>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



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


Re: [Flashcoders] Resizing Images

2008-07-22 Thread Ian Thomas
Hi Theodore,

   (I'm assuming this is AS2...)

   Are these images in the library?

   If so, go to Properties and make sure "Smoothing" is ticked.

   If you're loading external images, there is a bug in AS2 which
stops smoothing from working properly.

There's a workaround for it detailed here:
http://code.awenmedia.com/node/27

That should get rid of the pixellation.

Hope that helps,
   Ian

On Tue, Jul 22, 2008 at 5:40 PM, Lehr, Theodore M (N-SGIS)
<[EMAIL PROTECTED]> wrote:
> I have a small movie where I am importing images and dynamically
> resizing them - the problem is that when it is shrunken - it gets really
> pixellated - I am using jpegs - is there a way to make it so they look
> better - maybe import a different type of image ?
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Shared fonts

2008-07-22 Thread strk
I'm trying to figure wheter the overcomplex solutions for shared fonts
are due to bugs in the proprietary player or design choices.

In particular, why shouldn't a loader movie be allowed to use
fonts defined in a *loaded* movie while the other way around should
be possible ?

Or, why not maintaining a single shared font library for a whole run ?


--strk;

 ()   ASCII Ribbon Campaign
 /\   Keep it simple! 

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


[Flashcoders] Resizing Images

2008-07-22 Thread Lehr, Theodore M (N-SGIS)
I have a small movie where I am importing images and dynamically
resizing them - the problem is that when it is shrunken - it gets really
pixellated - I am using jpegs - is there a way to make it so they look
better - maybe import a different type of image ?

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


[Flashcoders] DART & external SWFs/.as?

2008-07-22 Thread timshaya
Hi guys, Has anyone created Flash banners using Double Click's DART 
where the SWF uses code from external .as class files? A vendor is 
telling me this: "DART can't accommodate files being uploaded to the 
same directory or folder and communication amongst them. Can you upload 
those additional files somewhere on your end and have the parent flash 
file reference the child flash files accordingly, externally." And yet, 
I've done Motif banners that use external SWFs, external XML files, 
external JPEGs, etc. Is he making this up? Have you heard anything 
similar? Tim

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


Re: [Flashcoders] Detecting Stage width and height after refresh

2008-07-22 Thread Kenneth Kawamoto

It works fine for me every time. What is your code look like?

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Helmut Granda wrote:

Hello all,

I have a small dilema, my application is working properly and I am relying
on Stage width and height to position some elements. FOr some odd reason
when I refresh my movie the stage width and height render 0. Is there any
specific reason why this usually happens? OSX FF

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


[Flashcoders] Detecting Stage width and height after refresh

2008-07-22 Thread Helmut Granda
Hello all,

I have a small dilema, my application is working properly and I am relying
on Stage width and height to position some elements. FOr some odd reason
when I refresh my movie the stage width and height render 0. Is there any
specific reason why this usually happens? OSX FF
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] E4X filtering strange behaviour

2008-07-22 Thread Merrill, Jason
That was it, it works now, thanks.  Funny, I didn't notice that, I had
it in my code before, but somewhere along the line of messing with
things, it just switched back over to .toString() and I hadn't noticed.
Thanks everyone! 

One more question if I may - how can I exclude certain things like blank
spaces?  I mean, I could check the textfield, but it would seem there is
an easier way.  If I put a blank space (or nothing for that matter) in
the input text field and search for that, it returns all nodes.  I could
check the input text field, but I'd rather do it with a regular
expression (both for elegance and to learn).  The help docs are skimpy,
so excuse so many questions here.  It's also such a huge subject, it's
very hard to Google exactly what you need.

Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

 

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


[Flashcoders] AS3 shop

2008-07-22 Thread Romuald Quantin
Hi everyone,

 

Do you know some solid flash cart / flash shop in AS3?

 

Even classes to manage a cart, I wouldn't like to build everything. I found
some but unfortunately in AS2.

 

Thanks

 

Romu

www.soundstep.com  

 

 

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