Re: [Flashcoders] OT: PHP books

2009-11-24 Thread Henrik Andersson

Julio Protzek wrote:

As a teacher I can assure you that teach OO to person that is still learning
what is a loop, is totally useless.


I fully understand that you should teach things in order. My issue is 
that they wasted time dealing with the wrong things. A good php book 
should teach OO, not waste time with stuff that's nobody is actually 
going to use.

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


Re: [Flashcoders] OT: PHP books

2009-11-24 Thread Julio Protzek
As a teacher I can assure you that teach OO to person that is still learning
what is a loop, is totally useless.
If you want OO read Head First Analisis & Design and Head First Design
Patterns.
But again, this books are not intended to people that don't know what is a
function or a select.

2009/11/24 Henrik Andersson 

> Julio Protzek wrote:
>
>> Now if you need to deep into this field I would recommend Head First PHP&
>> MySQL as a good start.
>>
>>
> While that is a fun book, I don't think that they succeeded in explaining
> the important parts, they kinda got sidetracked with the latest tech trend
> (tm). They should have put more effort into OO and things like proper data
> convertion instead of things like using youtube.
>
> ___
> 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] Still Infinitely Looping

2009-11-24 Thread Eric E. Dolecki
http://www.adobe.com/devnet/actionscript/getting_started.html

http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7fca.html

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


Re: [Flashcoders] fullscreen security issue?

2009-11-24 Thread Ian Thomas
Hi Michael,
   No, FULL_SCREEN doesn't prevent mouse clicks; it just prevents most
keypresses (but still allows cursor keys, space, enter etc.).

HTH,
   Ian

On Tue, Nov 24, 2009 at 8:56 PM, Mendelsohn, Michael
 wrote:
> Hi list...
>
> I'm trying to set my swf (in a web page) to StageDisplayState.FULL_SCREEN and 
> StageScaleMode.SHOW_ALL.  It works, but oddly, the clickable items are still 
> clickable.  I thought in full screen mode, mouse and keyboard events are 
> supposed to be prevented, right?  And, when I click these still clickable 
> items, the entire screen goes black.  Anyone know how to solve this?
>
> Thanks!
> - Michael M.
>
>
> ___
> 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] fullscreen security issue?

2009-11-24 Thread Mendelsohn, Michael
Hi list...

I'm trying to set my swf (in a web page) to StageDisplayState.FULL_SCREEN and 
StageScaleMode.SHOW_ALL.  It works, but oddly, the clickable items are still 
clickable.  I thought in full screen mode, mouse and keyboard events are 
supposed to be prevented, right?  And, when I click these still clickable 
items, the entire screen goes black.  Anyone know how to solve this?

Thanks!
- Michael M.


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


Re: [Flashcoders] Still Infinitely Looping

2009-11-24 Thread Henrik Andersson

beno - wrote:

leftHand.addEventListener(event.ENTER_FRAME, leftHand);



Bad idea, leftHand is either a MovieClip or a Function, not both at the 
same time. You need unique names.

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


RE: [Flashcoders] Still Infinitely Looping

2009-11-24 Thread Merrill, Jason
>> Is the above syntax correct?

http://tinyurl.com/yj5tlrm



Jason Merrill 

 Bank of  America  Global Learning 
Learning & Performance Soluions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)


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


Re: [Flashcoders] Still Infinitely Looping

2009-11-24 Thread beno -
On Tue, Nov 24, 2009 at 3:46 PM, Greg Ligierko  wrote:

> Paul,
> You are right. I thought we want to stop initially...
>
> In case of simple frame based animations I would add one method to the
> Main class, triggered on ENTER_FRAME events, that would be checking
> all single animations progress (their currentFrame) and then could
> stop() at desired frame.
>

That's more versatile. So, something like:
leftHand.addEventListener(event.ENTER_FRAME, leftHand);

But where would I put this? In the function itself? In the init()? Is the
above syntax correct? To what should I attach the addEventListener? I can't
very well attach it to the function that I am calling.

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


Re: [Flashcoders] Font Inside Library

2009-11-24 Thread Matt S.
Beno, you might want to get a book like Learning Actionscript 3.0
(http://www.amazon.com/gp/product/059652787X?ie=UTF8&tag=fma&linkCode=as2&camp=1789&creative=9325&creativeASIN=059652787X)
and going through it from front to back. I think people are often
tempted to just learn specific code and tricks as they go and as they
need it (I'm guilty of that too), but sometimes a systematic, chapter
by chapter approach is the best way to learn what you dont know, and
even learn alot of stuff that wasnt even on your radar.

For example, in relation this question, page 205-206 specifically
discusses the basics of embedding fonts.

.m

On Tue, Nov 24, 2009 at 2:28 PM, beno -  wrote:

> I know. I must be the world's biggest idiot. I search this stuff all through
> google and never find it. It's not that I don't do the work. I do. Maybe you
> don't believe me, but what can I do about that? You who know all this stuff
> look at me as if I'm not doing the homework. But when I don't know the
> questions to ask, when I don't know the terminology, when I do my research
> and try really hard and wait days, and still don't come up with answers,
> then I ask the list and get beat up for doing so. That's life. Sorry. I'm
> trying.
>
>>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] how clearInterval in AS2 when swf unloaded from parent

2009-11-24 Thread Andrew Sinning
I have a movie that is loaded into another movie.  The child-movie uses 
an interval to periodically update itself.  My problem is that this 
continues to get triggered even after the child-movie is unloaded from 
it's parent. 

I've tried using an onUnload event in the _root of the child-movie 
(_lockRoot is true), but it's doesn't seem to get triggered when the 
child-movie is unloaded.


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


Re: [Flashcoders] Still Infinitely Looping

2009-11-24 Thread Greg Ligierko
Paul,
You are right. I thought we want to stop initially...

In case of simple frame based animations I would add one method to the
Main class, triggered on ENTER_FRAME events, that would be checking
all single animations progress (their currentFrame) and then could
stop() at desired frame.

In such case mcHandInstance should be a Main class property. Probably
all other animated clips too, so all could be controlled easily from
one AS file.

Example:

package
{
 import flash.events.*;

 //...

 public class Main extends MovieClip
 {

   private var mcHandInstance1:mcHand; // <-- the hand instance as Main class 
property

   public function Main():void
   {
  addEventListener(Event.ENTER_FRAME, progress);
   }

   // the controlling method...
   private function progress(evt:Event):void
   {
   if(mcHandInstance1.currentFrame == 20) mcHandInstance1.stop();

   // other animations could be controlled as well here around
   }

   //
   
   public function rightHand():void
   {
mcHandInstance1 = new mcHand();  //<- removed declaration and type
addChild(mcHandInstance1);
mcHandInstance1.x = 400;
mcHandInstance1.y = 200;
  }

  //
  }
}

I understand Beno is starting his way. This code is just an example
and there are many other solutions to control animations. Adding
stop() to timeline is one of them and it is completely fine for me,
unless there are too many animations to control...

g



Tuesday, November 24, 2009 (8:03:39 PM) Paul Andrews wrote:

> Greg Ligierko wrote:
>> I am not much into this topic, but ...
>> you do not have to drag Library instance to the stage to get into its
>> timeline. If you mark the item (e.g. mcHand) in the library and press
>> right mouse button, there is "Edit" (the same if you doubleclick the
>> item). 
>>
>> As soon as you are in the "edit mode" of the library item, then the
>> only timeline you can see is an "internal" timeline of this item (it
>> is not the main timeline). You can select the first frame, press F9
>> (or actions) and add this.stop().
>>
>> But... I don't think adding code to timeline is a good idea. I would
>> rather try to stop the looping tween here:
>>
>>public function rightHand():void
>>{
>>   var mcHandInstance1:mcHand = new mcHand();
>>   addChild(mcHandInstance1);
>>   mcHandInstance1.x = 400;
>>   mcHandInstance1.y = 200;
>>
>>   mcHandInstance1.stop(); // <--- here
>>}
>>   
> I understand where you are coming from, but, if my understanding of the
> problem is correct, this won't solve benos problem.

> He needs the stop() at frame 20 of the mcHand timeline - your suggested
> code does not achieve this.

> Generally I try and put code where it is appropriate. Where I have 
> MovieClips with animation on the timeline, stop() actions are required
> to get the timeline to behave as required - in this case not to loop.

> Paul.


>> As I mentioned, I not into this topic, so I may be completely wrong.
>>
>> g
>>
>>

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


Re: [Flashcoders] Still Infinitely Looping

2009-11-24 Thread Paul Andrews

beno - wrote:

On Tue, Nov 24, 2009 at 2:35 PM, Paul Andrews  wrote:

  

beno - wrote:



only to discover that there
__is_no_timeline_to_edit__ for mcHand. Such a timeline only exists, I
believe, if one drags an instance of it onto the stage.

  

WRONG. Whatever gave you that idea?

mcHand will have a timeline. Double click the symbol in the library.




I didn't think to double-click. Thank you. Yes, now it stops! Thanks again.
beno
  

Thank goodness for that. A thousand flashcoders breathe a sigh of relief!

Paul

___
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] Still Infinitely Looping

2009-11-24 Thread beno -
On Tue, Nov 24, 2009 at 2:35 PM, Paul Andrews  wrote:

> beno - wrote:
>
>> only to discover that there
>> __is_no_timeline_to_edit__ for mcHand. Such a timeline only exists, I
>> believe, if one drags an instance of it onto the stage.
>>
> WRONG. Whatever gave you that idea?
>
> mcHand will have a timeline. Double click the symbol in the library.
>

I didn't think to double-click. Thank you. Yes, now it stops! Thanks again.
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Font Inside Library

2009-11-24 Thread beno -
On Tue, Nov 24, 2009 at 3:10 PM, Glen Pike wrote:

> Mr Sacks, do you have the stake & garlic, I feel my life force being
> drained...
>
> C'mon Beno, we ain't doing all your homework for you, do some yourself.


I know. I must be the world's biggest idiot. I search this stuff all through
google and never find it. It's not that I don't do the work. I do. Maybe you
don't believe me, but what can I do about that? You who know all this stuff
look at me as if I'm not doing the homework. But when I don't know the
questions to ask, when I don't know the terminology, when I do my research
and try really hard and wait days, and still don't come up with answers,
then I ask the list and get beat up for doing so. That's life. Sorry. I'm
trying.

>
>
> jared stanley wrote:
>
>> here's a tutorial
>>
>> http://theolagendijk.wordpress.com/2006/08/12/embedding-fonts-in-flash/
>>
>
Thank you.
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Font Inside Library

2009-11-24 Thread David Hunter

yeah that tutorials about right, but if you're using the font dynamically, 
purely through code in AS3, after adding the font (by selecting "new font" from 
either the drop down menu or by ctrl-clicking and then creating the font 
symbol) you need to give that font in your library panel a class name by 
clicking linkage and ticking 'export for actionscript' box and then filling in 
the class field. i think in the example i sent you my class name was sent to 
"Fonty".
i use Flash CS3 and i don't think CS4 is any different.
here is an article from the adobe site with screenshots of the 
process:http://www.adobe.com/devnet/flash/quickstart/embedding_fonts/#section1
hope that helps.
> Date: Tue, 24 Nov 2009 10:29:01 -0800
> Subject: Re: [Flashcoders] Font Inside Library
> From: jared.stan...@gmail.com
> To: flashcoders@chattyfig.figleaf.com
> 
> here's a tutorial
> 
> http://theolagendijk.wordpress.com/2006/08/12/embedding-fonts-in-flash/
> 
> 
> 
> On Tue, Nov 24, 2009 at 10:17 AM, beno -  wrote:
> > Hi;
> > David Hunter was nice enough to supply me with some corrected code, but it
> > doesn't work for me because I can't figure out how he was able to give a
> > class name to a font in his library.  How does one do that?
> > TIA,
> > beno
> > ___
> > 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
  
_
Have more than one Hotmail account? Link them together to easily access both
 
http://clk.atdmt.com/UKM/go/186394591/direct/01/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Font Inside Library

2009-11-24 Thread Glen Pike
Mr Sacks, do you have the stake & garlic, I feel my life force being 
drained...


C'mon Beno, we ain't doing all your homework for you, do some yourself.

jared stanley wrote:

here's a tutorial

http://theolagendijk.wordpress.com/2006/08/12/embedding-fonts-in-flash/



On Tue, Nov 24, 2009 at 10:17 AM, beno -  wrote:
  

Hi;
David Hunter was nice enough to supply me with some corrected code, but it
doesn't work for me because I can't figure out how he was able to give a
class name to a font in his library.  How does one do that?
TIA,
beno
___
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

  


--

Glen Pike
01326 218440
www.glenpike.co.uk 

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


Re: [Flashcoders] Still Infinitely Looping

2009-11-24 Thread Paul Andrews

Greg Ligierko wrote:

I am not much into this topic, but ...
you do not have to drag Library instance to the stage to get into its
timeline. If you mark the item (e.g. mcHand) in the library and press
right mouse button, there is "Edit" (the same if you doubleclick the
item). 


As soon as you are in the "edit mode" of the library item, then the
only timeline you can see is an "internal" timeline of this item (it
is not the main timeline). You can select the first frame, press F9
(or actions) and add this.stop().

But... I don't think adding code to timeline is a good idea. I would
rather try to stop the looping tween here:

   public function rightHand():void
   {
  var mcHandInstance1:mcHand = new mcHand();
  addChild(mcHandInstance1);
  mcHandInstance1.x = 400;
  mcHandInstance1.y = 200;

  mcHandInstance1.stop(); // <--- here
   }
  
I understand where you are coming from, but, if my understanding of the 
problem is correct, this won't solve benos problem.


He needs the stop() at frame 20 of the mcHand timeline - your suggested 
code does not achieve this.


Generally I try and put code where it is appropriate. Where I have 
MovieClips with animation on the timeline, stop() actions are required 
to get the timeline to behave as required - in this case not to loop.


Paul.



As I mentioned, I not into this topic, so I may be completely wrong.

g


  


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


Re: [Flashcoders] Still Infinitely Looping

2009-11-24 Thread Paul Andrews

beno - wrote:

snip



only to discover that there
__is_no_timeline_to_edit__ for mcHand. Such a timeline only exists, I
believe, if one drags an instance of it onto the stage.

Wrong.

I am trying to do
all of this programmatically. There *is* no instance of mcHand on the stage.
Furthermore, when I drag one on to the stage and double-click it, I see all
the tweens that I made of it, all in 20 frames.
Exactly. But all you need to do is double click the symbol in the 
library - no need to drag it onto the stage.

Nonetheless, it
__continues_to_loop_infinitely! Ag. 
That's because you still haven't put a stop() action at Frame 20. How 
many times have you been told this?


Beno, you need to spend some time on online tutorials so that you can 
grasp the very basics of Flash before you move on.


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


Re: [Flashcoders] Still Infinitely Looping

2009-11-24 Thread Greg Ligierko
I am not much into this topic, but ...
you do not have to drag Library instance to the stage to get into its
timeline. If you mark the item (e.g. mcHand) in the library and press
right mouse button, there is "Edit" (the same if you doubleclick the
item). 

As soon as you are in the "edit mode" of the library item, then the
only timeline you can see is an "internal" timeline of this item (it
is not the main timeline). You can select the first frame, press F9
(or actions) and add this.stop().

But... I don't think adding code to timeline is a good idea. I would
rather try to stop the looping tween here:

   public function rightHand():void
   {
  var mcHandInstance1:mcHand = new mcHand();
  addChild(mcHandInstance1);
  mcHandInstance1.x = 400;
  mcHandInstance1.y = 200;

  mcHandInstance1.stop(); // <--- here
   }

As I mentioned, I not into this topic, so I may be completely wrong.

g


Tuesday, November 24, 2009 (7:09:56 PM) napisano:

> On Tue, Nov 24, 2009 at 8:15 AM, Paul Andrews  wrote:

>> beno - wrote:
>>
>>> On Sun, Nov 22, 2009 at 1:58 PM, Paul Andrews  wrote:
>>>
>>>
>>>
 Tell me about mcHand. I am expecting you to tell me that mcHand is a
 MovieClip symbol in your library. If you edit that symbol you'll find
 there
 is a timeline just for mcHand. That is the timeline I have been referring
 to, not the main timeline.



>>>
>>> Well, now, that's what I didn't understand! I'm not at my computer with
>>> Flash installed. I'll try this later. Thank you!
>>> beno
>>>
>>>
>> Would I be right in thinking that your problem is now solved?


> No. It would be right to think that the computer I borrowed while I
> desperately try to re-establish myself after losing all my material
> possessions in the Dominican Republic and moving back to the US Virgin
> Islands broke down, and I just now have been able to get on a computer on
> which I've installed a trial version of Flash, only to discover that there
> __is_no_timeline_to_edit__ for mcHand. Such a timeline only exists, I
> believe, if one drags an instance of it onto the stage. I am trying to do
> all of this programmatically. There *is* no instance of mcHand on the stage.
> Furthermore, when I drag one on to the stage and double-click it, I see all
> the tweens that I made of it, all in 20 frames. Nonetheless, it
> __continues_to_loop_infinitely! Ag. Here's the code again:

> This on the timeline, first frame, only layer:

> var main:Main = new Main();
> addChild(main);
> main.init();
> stop();

> This in Main.as:

> package
> {
>  import flash.display.MovieClip;
>  import com.greensock.*;
>  import com.greensock.plugins.*;
>  import com.greensock.easing.*;
>  public class Main extends MovieClip
>   {
>   public function Main():void
> {
>   }
>   public function init():void {
> hatAndFace();
> eyeball1();
> eyeball2();
> rightHand();
> leftHand();
>   }
>   public function hatAndFace():void
> {
> var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();
> TweenPlugin.activate([AutoAlphaPlugin]);
> addChild(mcHatAndFaceInstance);
> mcHatAndFaceInstance.x = 350;
> mcHatAndFaceInstance.y = 100;
> mcHatAndFaceInstance.alpha = 0;
> TweenLite.to(mcHatAndFaceInstance, 2, {autoAlpha:1});
>   }
>   public function eyeball1():void
> {
> var mcEyeballInstance1:mcEyeball = new mcEyeball();
> TweenPlugin.activate([AutoAlphaPlugin]);
> addChild(mcEyeballInstance1);
> mcEyeballInstance1.x = 380;
> mcEyeballInstance1.y = 115;
> mcEyeballInstance1.alpha = 0;
> TweenLite.to(mcEyeballInstance1, 2, {autoAlpha:1});
>   }
>   public function eyeball2():void
> {
> var mcEyeballInstance2:mcEyeball = new mcEyeball();
> TweenPlugin.activate([AutoAlphaPlugin]);
> addChild(mcEyeballInstance2);
> mcEyeballInstance2.x = 315;
> mcEyeballInstance2.y = 115;
> mcEyeballInstance2.alpha = 0;
> TweenLite.to(mcEyeballInstance2, 2, {autoAlpha:1});
>   }
>   public function rightHand():void
> {
> var mcHandInstance1:mcHand = new mcHand();
> addChild(mcHandInstance1);
> mcHandInstance1.x = 400;
> mcHandInstance1.y = 200;
>   }
>   public function leftHand():void
> {
> var mcHandInstance2:mcHand = new mcHand();
> addChild(mcHandInstance2);
> mcHandInstance2.x = 800;
> mcHandInstance2.y = 200;
>   }
>  }
> }

> Please help. Sinking fast. No money for food. Happy Thanksgiving.
> beno
> ___
> 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] Still Infinitely Looping

2009-11-24 Thread Matt S.
Beno, can you put the files up somewhere where people on the list
could grab them and look at the actual source files/FLA's? Maybe with
any client-sensitive material stripped out?

.m

On Tue, Nov 24, 2009 at 1:09 PM, beno -  wrote:
> Please help. Sinking fast. No money for food. Happy Thanksgiving.
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Still Infinitely Looping

2009-11-24 Thread Paul Andrews

beno - wrote:

only to discover that there
__is_no_timeline_to_edit__ for mcHand. Such a timeline only exists, I
believe, if one drags an instance of it onto the stage.

WRONG. Whatever gave you that idea?

mcHand will have a timeline. Double click the symbol in the library.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Font Inside Library

2009-11-24 Thread jared stanley
here's a tutorial

http://theolagendijk.wordpress.com/2006/08/12/embedding-fonts-in-flash/



On Tue, Nov 24, 2009 at 10:17 AM, beno -  wrote:
> Hi;
> David Hunter was nice enough to supply me with some corrected code, but it
> doesn't work for me because I can't figure out how he was able to give a
> class name to a font in his library.  How does one do that?
> TIA,
> beno
> ___
> 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] Font Inside Library

2009-11-24 Thread beno -
Hi;
David Hunter was nice enough to supply me with some corrected code, but it
doesn't work for me because I can't figure out how he was able to give a
class name to a font in his library.  How does one do that?
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Still Infinitely Looping

2009-11-24 Thread beno -
On Tue, Nov 24, 2009 at 8:15 AM, Paul Andrews  wrote:

> beno - wrote:
>
>> On Sun, Nov 22, 2009 at 1:58 PM, Paul Andrews  wrote:
>>
>>
>>
>>> Tell me about mcHand. I am expecting you to tell me that mcHand is a
>>> MovieClip symbol in your library. If you edit that symbol you'll find
>>> there
>>> is a timeline just for mcHand. That is the timeline I have been referring
>>> to, not the main timeline.
>>>
>>>
>>>
>>
>> Well, now, that's what I didn't understand! I'm not at my computer with
>> Flash installed. I'll try this later. Thank you!
>> beno
>>
>>
> Would I be right in thinking that your problem is now solved?


No. It would be right to think that the computer I borrowed while I
desperately try to re-establish myself after losing all my material
possessions in the Dominican Republic and moving back to the US Virgin
Islands broke down, and I just now have been able to get on a computer on
which I've installed a trial version of Flash, only to discover that there
__is_no_timeline_to_edit__ for mcHand. Such a timeline only exists, I
believe, if one drags an instance of it onto the stage. I am trying to do
all of this programmatically. There *is* no instance of mcHand on the stage.
Furthermore, when I drag one on to the stage and double-click it, I see all
the tweens that I made of it, all in 20 frames. Nonetheless, it
__continues_to_loop_infinitely! Ag. Here's the code again:

This on the timeline, first frame, only layer:

var main:Main = new Main();
addChild(main);
main.init();
stop();

This in Main.as:

package
{
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.plugins.*;
 import com.greensock.easing.*;
 public class Main extends MovieClip
  {
  public function Main():void
{
  }
  public function init():void {
hatAndFace();
eyeball1();
eyeball2();
rightHand();
leftHand();
  }
  public function hatAndFace():void
{
var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();
TweenPlugin.activate([AutoAlphaPlugin]);
addChild(mcHatAndFaceInstance);
mcHatAndFaceInstance.x = 350;
mcHatAndFaceInstance.y = 100;
mcHatAndFaceInstance.alpha = 0;
TweenLite.to(mcHatAndFaceInstance, 2, {autoAlpha:1});
  }
  public function eyeball1():void
{
var mcEyeballInstance1:mcEyeball = new mcEyeball();
TweenPlugin.activate([AutoAlphaPlugin]);
addChild(mcEyeballInstance1);
mcEyeballInstance1.x = 380;
mcEyeballInstance1.y = 115;
mcEyeballInstance1.alpha = 0;
TweenLite.to(mcEyeballInstance1, 2, {autoAlpha:1});
  }
  public function eyeball2():void
{
var mcEyeballInstance2:mcEyeball = new mcEyeball();
TweenPlugin.activate([AutoAlphaPlugin]);
addChild(mcEyeballInstance2);
mcEyeballInstance2.x = 315;
mcEyeballInstance2.y = 115;
mcEyeballInstance2.alpha = 0;
TweenLite.to(mcEyeballInstance2, 2, {autoAlpha:1});
  }
  public function rightHand():void
{
var mcHandInstance1:mcHand = new mcHand();
addChild(mcHandInstance1);
mcHandInstance1.x = 400;
mcHandInstance1.y = 200;
  }
  public function leftHand():void
{
var mcHandInstance2:mcHand = new mcHand();
addChild(mcHandInstance2);
mcHandInstance2.x = 800;
mcHandInstance2.y = 200;
  }
 }
}

Please help. Sinking fast. No money for food. Happy Thanksgiving.
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash, XML and Domino

2009-11-24 Thread Glen Pike

Henrik Andersson wrote:

Glen Pike wrote:

If your flash is served from "https" you might be suffering from
cross-domain restrictions...



Correction: "is not served from https". Flash only allows secure 
content to access secure content.

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


Yep, that was a typo - I should have said "not served", but I understand 
that this can still be overridden in the cross-domain policy file by 
using the "secure=false" attribute so it is a cross domain issue.


http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html#allow-access-from-secure

https://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Flash, XML and Domino

2009-11-24 Thread Lehr, Theodore
great - that may very well be it... thanks


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson 
[he...@henke37.cjb.net]
Sent: Tuesday, November 24, 2009 9:55 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Flash, XML and Domino

Glen Pike wrote:
> If your flash is served from "https" you might be suffering from
> cross-domain restrictions...
>

Correction: "is not served from https". Flash only allows secure content
to access secure content.
___
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] Flash, XML and Domino

2009-11-24 Thread Henrik Andersson

Glen Pike wrote:

If your flash is served from "https" you might be suffering from
cross-domain restrictions...



Correction: "is not served from https". Flash only allows secure content 
to access secure content.

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


Re: [Flashcoders] Flash, XML and Domino

2009-11-24 Thread Glen Pike
If your flash is served from "https" you might be suffering from 
cross-domain restrictions...


Lehr, Theodore wrote:

ok - so I am trying to ingest some xml create by a view in Domino. When viewed in a 
browser, the xml looks fine and when I put the xml into a page such as 
"temp.xml" it works fine... it is when I try:


x.load("https://stuff.stuff/stuff.nsf/view?ReadViewEntries";);


that I am registering nothing

anyone have experience with such a thing as this?

___
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] Flash, XML and Domino

2009-11-24 Thread Lehr, Theodore
ok - so I am trying to ingest some xml create by a view in Domino. When viewed 
in a browser, the xml looks fine and when I put the xml into a page such as 
"temp.xml" it works fine... it is when I try:


x.load("https://stuff.stuff/stuff.nsf/view?ReadViewEntries";);


that I am registering nothing

anyone have experience with such a thing as this?

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


Re: [Flashcoders] OT: PHP books

2009-11-24 Thread Henrik Andersson

Julio Protzek wrote:

Now if you need to deep into this field I would recommend Head First PHP&
MySQL as a good start.



While that is a fun book, I don't think that they succeeded in 
explaining the important parts, they kinda got sidetracked with the 
latest tech trend (tm). They should have put more effort into OO and 
things like proper data convertion instead of things like using youtube.

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


Re: [Flashcoders] OT: PHP books

2009-11-24 Thread Julio Protzek
Now if you need to deep into this field I would recommend Head First PHP &
MySQL as a good start.

2009/11/23 Zeh Fernando 

> If you just want to use it for a few things (as opposed to building a huge
> system), some online tutorials is all you need. If you know any sort of
> programming language, PHP is really simple to use and the documentation in
> php.net is extremely helpful - you look for a method or function and the
> comments in its page will always contain examples of all kinds of uses of
> it, often doing the very specific thing you need.
>
> Zeh
>
> On Mon, Nov 23, 2009 at 1:05 PM, Mendelsohn, Michael <
> michael.mendels...@fmglobal.com> wrote:
>
> > Hi list...
> >
> > If all I know in php is echo, what's the best book to learn this
> language,
> > as well as MySQL?
> >
> > Thanks,
> > - Michael M.
> >
> >
> > ___
> > 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] Who uses Adobe Flex?

2009-11-24 Thread Leandro Ferreira
You can also get Flex 3 for free if you are a student or unemployed:
https://freeriatools.adobe.com/



  Leandro Ferreira
Sent from Brasília, Brazilian Federal District, Brazil

On Mon, Nov 23, 2009 at 16:32, kinda...@gmail.com wrote:

> And if you buy it in europe, it costs aproximatly 799 € + VAT... or 799 £ +
> VAT...
>
> Last time i checked Adobe prices, it was cheaper to get a round-trip plane
> to NY, spend there the weekend, with hotel and all... but the retail
> package, and back...
>
> And you would even get it cheaper!
>
> [it was a master collection CS3 at the time]
>
> ;)
>
>
> On 19-11-2009 12:51, Henrik Andersson wrote:
>
>> Sid Ferreira wrote:
>>
>>> And Adobe Flash?
>>>
>>>
>> 799 USD for one standalone normal license. 299 USD for the upgrade deal.
>> There are packages and student discounts available.
>> ___
>> 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] addChild and Array problem

2009-11-24 Thread Greg Ligierko
I have no answer to the problem, but maybe recreating the shuffled
array manually could help. I mean creating a new array and filling its
items with a for loop + one extra item.

This is not directly related but I experienced onece wrong sorting
when using sortOn() method. I do not trust completely on array class
methods. 

g



Tuesday, November 24, 2009 (7:35:50 AM) Sajid Saiyed wrote:

> Hi,
> Not sure if this is what is causing my problem.

> I have an array called "__viewsArray"
> Then I created 3 new movieclips which I added to the Array.

> Like this:

> __viewsArray = new Array();
> __view1MC = new MovieClip();
> __view2MC = new MovieClip();
> __view3MC = new MovieClip();
> addChild(__view1MC);
> addChild(__view2MC);
> addChild(__view3MC);

> __viewsArray.push(__view1MC);
> __viewsArray.push(__view2MC);
> __viewsArray.push(__view3MC);

> Now, I create new instances of Loader and add them to the three viewMC's.
> .
> myLoader = new Loader();
> myLoader.name = "MC";
> myLoader.load(fileRequest);
> ...
> // I am removing the code of the loader listener, but u can be
> sure that I am checking for the load event to complete here...
> ...
> __viewsArray[i].addChild(myLoader);
> .

> So far so good.
> When I loop through the "__viewsArray", I can do the :

>  __viewsArray[j].getChildByName("MC");

> no errors.

> Now, I decide to shuffle the array.

> So I did:

> var tempArray = __viewsArray.pop();
> __viewsArray.unshift(tempArray);

> Now when I loop through the array, I get a null object reference.

> Is it because I am shuffling the array or is it due to something else?
> Cant figure this one out :(

> Thanks for any help.
> ___
> 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] Loaded SWF and Events in AS3

2009-11-24 Thread Kenny Smith
I am creating a GUI/container that will include a number of SWF's loaded 
at runtime, but I am having problems passing events between them.


I've created a very simple example for testing.  I have a GUI.fla and 
its associated class (BaseClass.as) which simply has a Loader component 
that loads SubClass.swf.  The SubClass.fla contains a single Button 
component, that when clicked triggers a SubclassEvent.  The BaseClass 
reacts to the SubclassEvent.PRESSED event and then triggers its own 
BaseclassEvent.UPDATE event with the new label text. I now want to 
Subclass to react to the BaseclassEvent and then change the button label.


I can get the BaseClass to handle the SubclassEvent (i.e. button 
clicked), but I cannot get the SubClass to recognise that the 
BaseclassEvent has been triggered.  Any suggestions?


BaseClass.as

package {
import flash.events.Event;
  import flash.events.MouseEvent;
  import flash.display.Sprite;
  import SubclassEvent;
public class BaseClass extends Sprite {
  public function BaseClass ():void {
  ldr.addEventListener(Event.COMPLETE, onLoaded);
  }
private function onLoaded (e:Event):void {
  //trace(e.target + "  " + e.currentTarget);
  e.target.content.addEventListener(SubclassEvent.PRESSED, 
onSubclassEvent);

  }
private function onSubclassEvent (e:SubclassEvent):void {
  //trace(e.target + " " + e.currentTarget + " " + e._button);

  var updateEvent:BaseclassEvent = new BaseclassEvent("B+");
  dispatchEvent(updateEvent);
  }
  }
}

SubClass.as

package {
import flash.display.Sprite;
  import BaseclassEvent;
public class SubClass extends Sprite {
  public function SubClass ():void {
  this.addEventListener(BaseclassEvent.UPDATE, onBaseUpdated);
  }
private function onBaseUpdated (e:BaseclassEvent):void {
  //trace("SubClass::onBaseUpdated: Base updated");
  btn.label = e.buttonLabel;
  }
  }
}

BaseclassEvent.as

package {

import flash.events.Event;
public class BaseclassEvent extends Event
  {
  public static const UPDATE:String = "update";
  public var buttonLabel:String;
public function BaseclassEvent(buttonLabel:String = "unknown")
  {
  super(UPDATE);
  this.buttonLabel = buttonLabel;
  }
  public override function clone():Event
  {
  return new BaseclassEvent(buttonLabel);
  }
public override function toString():String
  {
  return formatToString("SubclassEvent", "type", "bubbles", 
"cancelable", "eventPhase", "buttonLabel");

  }
  }
}

Thanks

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


Re: [Flashcoders] A variable "nodemapid=" makes gone (IE and FF)

2009-11-24 Thread Greg Ligierko
Solved... (teddy bear helped gain)

The case that made me post to the list is such a coincidence, that was
hard to reproduce on other computers.

I use freeware MacAfee for virus protection. One of its services -
McAfee Redirector Service is capable of changing HTML contents (others
than localhost). But of course not for all cases and in fact this was
the first occurrence I noticed.

So far I found that it fights out any string in 
containing &nodemapid= variable. It strips out the whole  tag
producing something like:

  

After turning off the McAfee Red. Serv., page sources in FF and IE
(Win/Pc) look as expected; no stripping, i.e.:




There might be other variable names that are blocked by McAfee, so
in case of strange behavior in HTML sources, specifically related to
embedding objects, controls etc. I would suggest checking virus
scanners and related software (nothing new in this, but it is easy to
forget this direction).

Best,

Greg




Monday, November 23, 2009 (10:24:37 PM):

> Continuing... I tested my two links with Mac version of FF. Both work
> fine - no stripping , so the issue is probably only PC IE/FF
> related (assuming it is not my PC and only my PC).

> g


> Monday, November 23, 2009 (8:59:58 PM) Greg Ligierko wrote:

>> Thanks,
>> Yes I am aware of the swfObject.

>> We are working on an Flash application that can be embedded from
>> external hosts, by any user, and we do not like to force users to
>> store additional JS, like swfObject at their hosts. Instead we prefer
>> to relay on the official nested  thing. I am aware of
>> weakness of this solution, but this is still not the point of my mail.

>> I just discovered that on my PC (both FF and IE) any page that uses
>>  ends up with
>> stripped off  tag.

>> Of course I can  change the variable nodemapid name to something else.
>> But I just would like to inspect if it is really possible, that a
>> variable "nodemapid" can cause different behavior (i.e. stripping out
>>  under some browsers) than any other variable name.

>> The small HTMLs I linked in my first mail are not meant to embed
>> anything real, but just to test the "nodemapid" variable, which is
>> driving me crazy. And possibly this is only my local computer
>> behavior. I did not found anything related on google. In fact
>> "nodemapid" gives less than 300 results ;)

>> Greg



>> Monday, November 23, 2009 (8:44:57 PM) Nathan Mynarcik wrote:

>>> Hopefully I am understanding what you are trying to do. Have you
>>> thought of using swfobject for your flash files? I think this would
>>> be the best way to handle what you are trying to do. You can then
>>> add your "nomapid" to the parameters of your flash movie and should work 
>>> with all browsers.

>>> code.google.com/p/swfobject

>>> --Original Message--
>>> From: Greg Ligierko
>>> Sender: flashcoders-boun...@chattyfig.figleaf.com
>>> To: Flash Coders List
>>> ReplyTo: Flashcoders
>>> ReplyTo: Flash Coders List
>>> Subject: [Flashcoders] A variable "nodemapid=" makes  gone (IE and 
>>> FF)
>>> Sent: Nov 23, 2009 1:29 PM

>>> I have a strange issue with a http variable in  tag and I would
>>> appreciate much if you test two links with short HTML code.

>>> I prepared two ultra-thin HTMLs.

>>> http://www.l-d5.com/sn/embed8.htm
>>> its source code is:
>>> 

>>> http://www.l-d5.com/sn/embed9.htm
>>> its source code is:
>>>   (note the "q" character)

>>> Now... for embed8.htm, IE7 and FF(3.5.5) show source ("view page source"):
>>>(removed )

>>> While for embed9.htm, both browsers show the expected source:
>>> 

>>> Safari shows full code for both files.

>>> Can you see this too ? Or perhaps this is some local issue of my PC ?

>>> Thanks,

>>> Greg


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


>>> Nathan Mynarcik
>>> Interactive Web Developer
>>> nat...@mynarcik.com
>>> 254.749.2525
>>> www.mynarcik.com




>> ___
>> 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] Still Infinitely Looping

2009-11-24 Thread Paul Andrews

beno - wrote:

On Sun, Nov 22, 2009 at 1:58 PM, Paul Andrews  wrote:

  

Tell me about mcHand. I am expecting you to tell me that mcHand is a
MovieClip symbol in your library. If you edit that symbol you'll find there
is a timeline just for mcHand. That is the timeline I have been referring
to, not the main timeline.




Well, now, that's what I didn't understand! I'm not at my computer with
Flash installed. I'll try this later. Thank you!
beno
  

Would I be right in thinking that your problem is now solved?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders