Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread natalia Vikhtinskaya
Thank you your help. But I still can not get it works. Can anybody
give simple example how clip from a library with timeline animation
can get and set variables in root in any frame of this animation?
Thank you

2010/4/16 Henrik Andersson he...@henke37.cjb.net:
 natalia Vikhtinskaya wrote:

 In linkage properties class is clip_mc

 That is a typical instance name, not a class name. Also, I am talking about
 the class name for the document class.
 ___
 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] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Karl DeSaulniers
Can you set an include on the first frame of the added movie clip  
that adds the appropriate class to record the variables and then talk  
to the main timeline?
You could maybe set the include statement in an onEnterFrame or its  
AS3 equiv.? Then the include statement would only get added when that  
frame entered the playhead?
I am AS2 as well and am learning AS3 currently. Would like to know  
how this works as well.

Thanks,


Karl


On Apr 16, 2010, at 2:08 AM, natalia Vikhtinskaya wrote:


Thank you your help. But I still can not get it works. Can anybody
give simple example how clip from a library with timeline animation
can get and set variables in root in any frame of this animation?
Thank you

2010/4/16 Henrik Andersson he...@henke37.cjb.net:

natalia Vikhtinskaya wrote:


In linkage properties class is clip_mc

That is a typical instance name, not a class name. Also, I am  
talking about

the class name for the document class.
___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Henrik Andersson

Karl DeSaulniers wrote:

Can you set an include on the first frame of the added movie clip that
adds the appropriate class to record the variables and then talk to the
main timeline?


You don't include classes, you import them. It was the same deal in as 2.

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


Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Karl DeSaulniers

Oops, I meant import. :P
Been working in PHP a lot lately. :)

Karl


On Apr 16, 2010, at 3:23 AM, Henrik Andersson wrote:


Karl DeSaulniers wrote:
Can you set an include on the first frame of the added movie  
clip that
adds the appropriate class to record the variables and then talk  
to the

main timeline?


You don't include classes, you import them. It was the same deal in  
as 2.


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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Karl DeSaulniers

Hey Natalia,
I found this which may solve your immediate problem.
I have never used this before, but it looks promising.

http://www.jumpeyecomponents.com/Flash-Components/Various/ 
ActionScript-Bridge-91/


Might be worth a look-see.
HTH,

Karl


On Apr 16, 2010, at 2:08 AM, natalia Vikhtinskaya wrote:


Thank you your help. But I still can not get it works. Can anybody
give simple example how clip from a library with timeline animation
can get and set variables in root in any frame of this animation?
Thank you

2010/4/16 Henrik Andersson he...@henke37.cjb.net:

natalia Vikhtinskaya wrote:


In linkage properties class is clip_mc

That is a typical instance name, not a class name. Also, I am  
talking about

the class name for the document class.
___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread natalia Vikhtinskaya
I have two good books Loey Lott and Colin Moock but could not find
answer for this simple situation. Maybe this is not simple for AS3?

2010/4/16 Karl DeSaulniers k...@designdrumm.com:
 Oops, I meant import. :P
 Been working in PHP a lot lately. :)

 Karl


 On Apr 16, 2010, at 3:23 AM, Henrik Andersson wrote:

 Karl DeSaulniers wrote:

 Can you set an include on the first frame of the added movie clip that
 adds the appropriate class to record the variables and then talk to the
 main timeline?

 You don't include classes, you import them. It was the same deal in as 2.

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

 Karl DeSaulniers
 Design Drumm
 http://designdrumm.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] flash performance for 2d vector drawing into a scene graph

2010-04-16 Thread Henrik Andersson

Josh Saxe wrote:

Any advice?  Thanks in advance.



Use bitmap caching where appropriate.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Karl DeSaulniers
I think its not simple because you are scripting timeline wise. Got  
to pick. AS2 or AS3.
I believe what they were trying to say was if you have all the code  
in classes,
you can communicate between the root and the added movie clip because  
the classes
reference each other, not the timeline. Plus you will be referencing  
objects,
so communicating between the objects through the classes is how it's  
done in AS3.


Am I on the right track guys?

Karl


On Apr 16, 2010, at 3:52 AM, natalia Vikhtinskaya wrote:


I have two good books Loey Lott and Colin Moock but could not find
answer for this simple situation. Maybe this is not simple for AS3?

2010/4/16 Karl DeSaulniers k...@designdrumm.com:

Oops, I meant import. :P
Been working in PHP a lot lately. :)

Karl


On Apr 16, 2010, at 3:23 AM, Henrik Andersson wrote:


Karl DeSaulniers wrote:


Can you set an include on the first frame of the added movie  
clip that
adds the appropriate class to record the variables and then talk  
to the

main timeline?


You don't include classes, you import them. It was the same deal  
in as 2.


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


Karl DeSaulniers
Design Drumm
http://designdrumm.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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Henrik Andersson

natalia Vikhtinskaya wrote:

I have two good books Loey Lott and Colin Moock but could not find
answer for this simple situation. Maybe this is not simple for AS3?



Step by step:
1. Assign a class to the timeline.
2. Get a reference to the timeline using the parent or root properties.
3. Cast the reference from the basetype to the class that you used in 
step 1.

4. PROFIT!

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


Re: [Flashcoders] NetStream onMetaData does not get called

2010-04-16 Thread allandt bik-elliott (thefieldcomic.com)
just a thought - it's amazing how many times i wrack my brains trying to
find a solution to a problem that is just something i assumed was done that
wasn't

i got nothing apart from that

On 15 April 2010 20:15, Henrik Andersson he...@henke37.cjb.net wrote:

 allandt bik-elliott (thefieldcomic.com) wrote:

 those two functions have to be added as callbacks on a client object which
 is passed into netstream.client - have you done this?


 You get an error if they are called and you haven't. So, I am willing to
 bet that he has.

 ___
 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] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Henrik Andersson

Karl DeSaulniers wrote:

I think its not simple because you are scripting timeline wise. Got to
pick. AS2 or AS3.
I believe what they were trying to say was if you have all the code in
classes,
you can communicate between the root and the added movie clip because
the classes
reference each other, not the timeline. Plus you will be referencing
objects,
so communicating between the objects through the classes is how it's
done in AS3.

Am I on the right track guys?


You are not. You have gotten tangled up in the elitism spread by people 
who doesn't actually work with Flash.


There is no reason not to use the properties that you have to get the 
references. You just need to remember to cast them to the proper type.


The trick is to know when to apply the fancy rules and when not to.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] @#$% New iPhone Developer Agreement Bans the Use of Adobe¹s Flash-to-iPhone Compiler

2010-04-16 Thread Andrew Murphy
I think Apple may be doing this in an attempt to preserve the brand identity
of their mobile devices.  A flood of mobile devices with hardware and
interfaces that are as powerful and intuitive, or more so, than the iPhone
and iPad, has begun.

By requiring developers to jump through hoops to create content for their
devices, Apple makes it more likely that that content will only be available
on their devices, making it exclusive.  It seems to me that exclusivity is
part of their brand identity; Think different.


 --
Andrew Murphy
Interactive Media Developer
amur...@delvinia.com

Delvinia
370 King Street West, 5th Floor, Box 4 
Toronto Canada M5V 1J9
P (416) 364-1455 ext. 232
F (416) 364-9830  
W www.delvinia.com

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Dave Watts
Sent: April 15, 2010 22:32 pm
To: Flash Coders List
Subject: Re: [Flashcoders] @#$% New iPhone Developer Agreement Bans the Use
of Adobe¹s Flash-to-iPhone Compiler

 Why is it that their phone can embrace flash but Apple cant?

Purely because it's not in Apple's perceived business interest to do
so. That's the only reason. There are various technical-sounding
excuses given - poor performance, poor quality for cross-platform apps
- but that's all BS. Apple makes money from the App Store. Allowing
Flash detracts from the value of the App Store. Allowing developers to
use cross-platform tools detracts from the value of the App Store; if
I can build an app for Apple and Android simultaneously, the App Store
has less of an advantage over the Android Market.

 I think its time for Apple and Adobe to zip up the 'ol pants and get to
 making things work for the people who one program for their devices and
two
 for the customers to enjoy that variety.
 Just sayin..

Apple has no incentive to zip up their pants. This strategy makes it
likely they'll get (and keep) a big pile of money. Adobe would like to
pull their pants up, since Apple didn't even kiss them first, but
there's really nothing they can do short of a lawsuit, and I doubt
that'll be successful in any case. Apple can make up whatever
ridiculous rules they want, as they only have a small slice of the
mobile market. They're not a monopoly by a long shot.

 Heh, then you can pitch a HTML 5 version to them and maybe have a script
 that tells if its a iPhone and switches to the HTML5 preview.

There's only one problem, really. HTML 5 kind of sucks. And it's
certainly no replacement for native apps. Web apps don't have access
to most of the good stuff in the phone - contacts, etc.

 Anyone seen a market study on how many jailbroken iPhones there are? Be
 interesting to see.

No, but interestingly there is an alternative app store called Cydia
for jailbroken phones. But jailbreaking is not an alternative if you
really want to sell your apps. Hobbyists jailbreak their phones.
Typical users don't, and never will.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
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] @#$% New iPhone Developer Agreemen t Bans the Use of Adobe¹s Flash-to-iPhone Compiler

2010-04-16 Thread Mark Winterhalder
On Fri, Apr 16, 2010 at 2:22 PM, Andrew Murphy amur...@delvinia.com wrote:
 By requiring developers to jump through hoops to create content for their
 devices, Apple makes it more likely that that content will only be available
 on their devices, making it exclusive.

Yes, cross-platform development commoditizes hardware.

Apple doesn't give you many options. For example, with the new MBP's,
the 13 model is Core2Duo only and doesn't have the matte screen
option. If you want an i5, you must buy the 15 version. They all come
with a fancy GPU that I don't need and don't want to pay for. This is
even more extreme for mobile devices, which through size and battery
power have an inherent need to compromise at one end or the other.

So, if you can get the same apps on other devices, nothings stopping
you from getting the device that best fits your need -- screen size,
performance vs. battery life, LED flash or not, changeable
batteries... But iP*-only apps are a way to offer exclusive content
that requires special hardware to access.

Apple is a hardware manufacturer. They always were. All non-hardware
activity serves the sole purpose of selling their hardware.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re:drawrect: get the linestyle drawing inside

2010-04-16 Thread Ktu
So, I haven't quite figured it out, but I think I am getting closer. It is
possible, the math is just a bit beyond my normal skills so it may take some
more time.

Thanks for asking about this. I have always wanted to have inner strokes and
strokes that don't overlap. You asking just pushed me to work on it.

I hate the getBounds() when you have a shape with a stroke.

Best,
Ktu

On Tue, Apr 13, 2010 at 3:13 PM, Ktu ktu_fl...@cataclysmicrewind.comwrote:

 I think the static method would work if I were just doing rectangles, but
 with lineTo, curveTo I think it needs to be an object.

 A new thought that occurred to me: Have an object that will have a fill
 sprite and a stroke sprite, separate from each other. Then if you call
 lineStyle() with the inner:Boolean = true anytime you call a drawing command
 it would draw a stroke in the stroke Sprite but offset all the values so the
 stroke is inside. If you specify overlap:Boolean = false; then the object
 would compensate so that the stroke does not overlap the fill.

 It may work, but it would only really work if lineStyle pixelHinting =
 true, and better still, if I forced all values to be int. There's no reason
 for it not to be anyway.

 Does that make sense?

 Ktu

 On Tue, Apr 13, 2010 at 2:40 PM, Latcho spamtha...@gmail.com wrote:

 Thanks for thinking out loud :)
 Can do that too if I need it. But if you ever write something generic I'd
 love to use / see it because I don't have the time for this now.
 Personally I wouldn't extend directly on shape but create some static
 methods like
 GraphicsInnerStroke.drawRect(myDispObj.graphics, linestyleObject, method
 arguments );

 Cheers,
 Latcho


 atm the best thing I can come up with is an object that can recreate the
 draw methods, assuming that you want a stroke on it. If I am just going to
 stick with drawRect, drawRoundRect, and drawRoundRectComplex I can do that.
 Looking into 'drawing' an inner stroke when using lineTo curveTo etc and
 other draw commands will take a bit more work and time.

 I kind of feel like it might end up being InnerStroke extends Shape, and
 creating public methods that are 'override's of the graphics drawing api.
 Just thoughts out loud.

 Ktu

 On Tue, Apr 13, 2010 at 12:09 PM, Latcho spamtha...@gmail.com mailto:
 spamtha...@gmail.com wrote:



   Hi Ktu,
   Thanks for your supportive emails.
   I'm not a newbie but I thought I might have missed something on the
   API that wasn't apparent in the as3 docs.

   It sucks to have it confirmed it isn't supported :)
   The thing is I want to stay as close to the original api as possible
   preferably without wrappers (we're not only talking about rects but
   also curved shapes are possible you see...). Though I'd be happy to
   see what you're take on it looks like :)

   Thanks,
   Latcho


   On 13-04-10 16:59, Ktu wrote:

From my experience, there is no API support for it. It sucks I
   know. I deal with this problem all the time.

   For transparency, the beginFill(color:uint, alpha:Number); you
   can specify alpha. With the system I have shown you, the stroke
   would be transparent over top of the original color, so a red
   square with a semi transparent blue border would produce purple
   as your border.

   If you want the stroke to be unaffected by the inside square it
   wouldn't be that hard to write a class to handle that. In fact,
   I use this so often I think I will do that.

   I should be able to finish by Thursday at the latest and I'll
   share when I'm done. If you are eager for it, the idea would be
   to have build an object, that you would specify dimensions for,
   and fill color and alpha, and also the border fill and alpha,
   then when it draws the rectangle, it incorporates the stroke
   width into consideration so that there are no graphics behind it.

   Ktu

   On Tue, Apr 13, 2010 at 7:50 AM, spank man spamtha...@gmail.com
   mailto:spamtha...@gmail.com mailto:spamtha...@gmail.com

   mailto:spamtha...@gmail.com wrote:

   nice and simple sollution,
   but not so fine if you want the inner to be semi-transparent
   Other ideas ? So no API support on this ?


   On Tue, Apr 13, 2010 at 4:11 AM, Ktu
   ktu_fl...@cataclysmicrewind.com
   mailto:ktu_fl...@cataclysmicrewind.com
   mailto:ktu_fl...@cataclysmicrewind.com
   mailto:ktu_fl...@cataclysmicrewind.com wrote:

   When I want inside borders I do this:


   var spr:Sprite = new Sprite();
   addChild(spr);
   var g:Graphics = spr.graphics;
   g.beginFill(0xFF45A3);

   g.drawRect(0, 0, 100, 100);
   g.endFill();
   drawInsideStroke(g, 0, 0, 100, 100, 1, 0x32010B);

   function drawInsideStroke(graphics:Graphics, x:int, y:int,
   width:int, height:int, thickness:int = 1, color:uint =
   

Re: [Flashcoders] NetStream onMetaData does not get called

2010-04-16 Thread kennethkawam...@gmail.com
I have now working solutions, and here are few things may be
beneficial for someone in the future doing Red5 streaming:

- onMetaData does not get called, but to obtain the length of the
stream you can use NetConnection.call(getStreamLength, Responder,
stream)
- onXMPdata does get called but not all stream (non Adobe encoder
generated) has XMP data embedded
- resume() does not work on its own but it does if you
seek(pausedTime) immediately after
- seek() does not work but it does if you call it twice in succession
- I use 200ms in between

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread jonathan howe
So, my untested proposal is this:

Root timeline, don't instantiate your subclip with code. Just put it on the
stage with an instance name, and refer to it then.
In the subclip, you can then refer to parent.counter or whatever your
variable is, because you're guaranteed that you have a parent if you never
instantiate the subclip with code.

I think the problem was, you instantiated clip_mc before adding it to the
stage (of course), but then it's constructor you are asking for something in
its parent - but it doesn't have a parent yet.

Eventually learn classes and work it out that way, but we
shouldn't stonewall you from using timeline code for a simple animator's
task (this is one reason why Flash is so pervasive guys, because it was easy
for you to jump into with basic interactivity, right?).

-jonathan


,

On Fri, Apr 16, 2010 at 2:24 AM, Henrik Andersson he...@henke37.cjb.netwrote:

 Karl DeSaulniers wrote:

 I think its not simple because you are scripting timeline wise. Got to
 pick. AS2 or AS3.
 I believe what they were trying to say was if you have all the code in
 classes,
 you can communicate between the root and the added movie clip because
 the classes
 reference each other, not the timeline. Plus you will be referencing
 objects,
 so communicating between the objects through the classes is how it's
 done in AS3.

 Am I on the right track guys?


 You are not. You have gotten tangled up in the elitism spread by people who
 doesn't actually work with Flash.

 There is no reason not to use the properties that you have to get the
 references. You just need to remember to cast them to the proper type.

 The trick is to know when to apply the fancy rules and when not to.

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




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


Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread natalia Vikhtinskaya
Yes I expected that Flash and AS3 could be used for simple task
without creating classes. But as I see now it is not true.
If you I have clip with some animation and I want communicate with
main timeline at the end of animation I cannot do that. And I cannot
find any solution for that.

I have the same error if clip with animation is on stage or it is
added with code on main timeline.
trace(parent.countN) from the clip and result is

1119: Access of possibly undefined property countN through a reference
with static type flash.display:DisplayObjectContainer.

What can be more simple than this task? And that does not work.


2010/4/16 jonathan howe jonathangh...@gmail.com:
 So, my untested proposal is this:

 Root timeline, don't instantiate your subclip with code. Just put it on the
 stage with an instance name, and refer to it then.
 In the subclip, you can then refer to parent.counter or whatever your
 variable is, because you're guaranteed that you have a parent if you never
 instantiate the subclip with code.

 I think the problem was, you instantiated clip_mc before adding it to the
 stage (of course), but then it's constructor you are asking for something in
 its parent - but it doesn't have a parent yet.

 Eventually learn classes and work it out that way, but we
 shouldn't stonewall you from using timeline code for a simple animator's
 task (this is one reason why Flash is so pervasive guys, because it was easy
 for you to jump into with basic interactivity, right?).

 -jonathan


 ,

 On Fri, Apr 16, 2010 at 2:24 AM, Henrik Andersson 
 he...@henke37.cjb.netwrote:

 Karl DeSaulniers wrote:

 I think its not simple because you are scripting timeline wise. Got to
 pick. AS2 or AS3.
 I believe what they were trying to say was if you have all the code in
 classes,
 you can communicate between the root and the added movie clip because
 the classes
 reference each other, not the timeline. Plus you will be referencing
 objects,
 so communicating between the objects through the classes is how it's
 done in AS3.

 Am I on the right track guys?


 You are not. You have gotten tangled up in the elitism spread by people who
 doesn't actually work with Flash.

 There is no reason not to use the properties that you have to get the
 references. You just need to remember to cast them to the proper type.

 The trick is to know when to apply the fancy rules and when not to.

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




 --
 -jonathan howe
 ___
 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] Interaction between clips and main timeline in AS3.

2010-04-16 Thread tom rhodes
File  Publish Settings  Flash  Actionscript 3.0 Settings  Strict Mode
(uncheck it)

that's your easiest solution if you are having trouble. once you get more
into the AS3 side of things you won't need it any more...


On 16 April 2010 17:33, natalia Vikhtinskaya natavi.m...@gmail.com wrote:

 Yes I expected that Flash and AS3 could be used for simple task
 without creating classes. But as I see now it is not true.
 If you I have clip with some animation and I want communicate with
 main timeline at the end of animation I cannot do that. And I cannot
 find any solution for that.

 I have the same error if clip with animation is on stage or it is
 added with code on main timeline.
 trace(parent.countN) from the clip and result is

 1119: Access of possibly undefined property countN through a reference
 with static type flash.display:DisplayObjectContainer.

 What can be more simple than this task? And that does not work.


 2010/4/16 jonathan howe jonathangh...@gmail.com:
  So, my untested proposal is this:
 
  Root timeline, don't instantiate your subclip with code. Just put it on
 the
  stage with an instance name, and refer to it then.
  In the subclip, you can then refer to parent.counter or whatever your
  variable is, because you're guaranteed that you have a parent if you
 never
  instantiate the subclip with code.
 
  I think the problem was, you instantiated clip_mc before adding it to the
  stage (of course), but then it's constructor you are asking for something
 in
  its parent - but it doesn't have a parent yet.
 
  Eventually learn classes and work it out that way, but we
  shouldn't stonewall you from using timeline code for a simple animator's
  task (this is one reason why Flash is so pervasive guys, because it was
 easy
  for you to jump into with basic interactivity, right?).
 
  -jonathan
 
 
  ,
 
  On Fri, Apr 16, 2010 at 2:24 AM, Henrik Andersson he...@henke37.cjb.net
 wrote:
 
  Karl DeSaulniers wrote:
 
  I think its not simple because you are scripting timeline wise. Got to
  pick. AS2 or AS3.
  I believe what they were trying to say was if you have all the code in
  classes,
  you can communicate between the root and the added movie clip because
  the classes
  reference each other, not the timeline. Plus you will be referencing
  objects,
  so communicating between the objects through the classes is how it's
  done in AS3.
 
  Am I on the right track guys?
 
 
  You are not. You have gotten tangled up in the elitism spread by people
 who
  doesn't actually work with Flash.
 
  There is no reason not to use the properties that you have to get the
  references. You just need to remember to cast them to the proper type.
 
  The trick is to know when to apply the fancy rules and when not to.
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
  --
  -jonathan howe
  ___
  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] Interaction between clips and main timeline in AS3.

2010-04-16 Thread natalia Vikhtinskaya
THANK YOU

2010/4/16 tom rhodes tom.rho...@gmail.com:
 File  Publish Settings  Flash  Actionscript 3.0 Settings  Strict Mode
 (uncheck it)

 that's your easiest solution if you are having trouble. once you get more
 into the AS3 side of things you won't need it any more...


 On 16 April 2010 17:33, natalia Vikhtinskaya natavi.m...@gmail.com wrote:

 Yes I expected that Flash and AS3 could be used for simple task
 without creating classes. But as I see now it is not true.
 If you I have clip with some animation and I want communicate with
 main timeline at the end of animation I cannot do that. And I cannot
 find any solution for that.

 I have the same error if clip with animation is on stage or it is
 added with code on main timeline.
 trace(parent.countN) from the clip and result is

 1119: Access of possibly undefined property countN through a reference
 with static type flash.display:DisplayObjectContainer.

 What can be more simple than this task? And that does not work.


 2010/4/16 jonathan howe jonathangh...@gmail.com:
  So, my untested proposal is this:
 
  Root timeline, don't instantiate your subclip with code. Just put it on
 the
  stage with an instance name, and refer to it then.
  In the subclip, you can then refer to parent.counter or whatever your
  variable is, because you're guaranteed that you have a parent if you
 never
  instantiate the subclip with code.
 
  I think the problem was, you instantiated clip_mc before adding it to the
  stage (of course), but then it's constructor you are asking for something
 in
  its parent - but it doesn't have a parent yet.
 
  Eventually learn classes and work it out that way, but we
  shouldn't stonewall you from using timeline code for a simple animator's
  task (this is one reason why Flash is so pervasive guys, because it was
 easy
  for you to jump into with basic interactivity, right?).
 
  -jonathan
 
 
  ,
 
  On Fri, Apr 16, 2010 at 2:24 AM, Henrik Andersson he...@henke37.cjb.net
 wrote:
 
  Karl DeSaulniers wrote:
 
  I think its not simple because you are scripting timeline wise. Got to
  pick. AS2 or AS3.
  I believe what they were trying to say was if you have all the code in
  classes,
  you can communicate between the root and the added movie clip because
  the classes
  reference each other, not the timeline. Plus you will be referencing
  objects,
  so communicating between the objects through the classes is how it's
  done in AS3.
 
  Am I on the right track guys?
 
 
  You are not. You have gotten tangled up in the elitism spread by people
 who
  doesn't actually work with Flash.
 
  There is no reason not to use the properties that you have to get the
  references. You just need to remember to cast them to the proper type.
 
  The trick is to know when to apply the fancy rules and when not to.
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
  --
  -jonathan howe
  ___
  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

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


Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Henrik Andersson

natalia Vikhtinskaya wrote:

THANK YOU



Just remember that you just turned off all type safety and even the 
slightest typo will result in a runtime error instead of a compile time 
error.


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


Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Karl DeSaulniers

Darn, I thought I was close. :(
That last statement you said is what I have the hardest time figuring  
out about AS3.
When to use classes and how to use them and the fancy rules that goes  
with EVERYTHING about AS3.

I think I may just wait till AS4. lol.


Karl


On Apr 16, 2010, at 4:24 AM, Henrik Andersson wrote:


Karl DeSaulniers wrote:
I think its not simple because you are scripting timeline wise.  
Got to

pick. AS2 or AS3.
I believe what they were trying to say was if you have all the  
code in

classes,
you can communicate between the root and the added movie clip because
the classes
reference each other, not the timeline. Plus you will be referencing
objects,
so communicating between the objects through the classes is how it's
done in AS3.

Am I on the right track guys?


You are not. You have gotten tangled up in the elitism spread by  
people who doesn't actually work with Flash.


There is no reason not to use the properties that you have to get  
the references. You just need to remember to cast them to the  
proper type.


The trick is to know when to apply the fancy rules and when not to.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


RE: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread David Hunter

Hi,
Seems you may have solved this by turning off strict mode. An alternative way 
(depending on how flexible you can be with your program) would be to reverse 
your approach and listen to what frame the clip is on (myClip.currentFrame) and 
perform functions accordingly. As long as you know what frame you want to 
trigger a function, you can do all the programming on the timeline in one 
place. I have put an example on pastebin for you to try. MyClip is a 12 frame 
animated movieclip in the library. Here is the link: http://pastebin.org/153959
Hope it helps,
David

 Date: Fri, 16 Apr 2010 11:08:28 +0400
 Subject: Re: [Flashcoders] Interaction between clips and main timeline in AS3.
 From: natavi.m...@gmail.com
 To: flashcoders@chattyfig.figleaf.com
 
 Thank you your help. But I still can not get it works. Can anybody
 give simple example how clip from a library with timeline animation
 can get and set variables in root in any frame of this animation?
 Thank you
 
 2010/4/16 Henrik Andersson he...@henke37.cjb.net:
  natalia Vikhtinskaya wrote:
 
  In linkage properties class is clip_mc
 
  That is a typical instance name, not a class name. Also, I am talking about
  the class name for the document class.
  ___
  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
  
_
http://clk.atdmt.com/UKM/go/19780/direct/01/
Do you have a story that started on Hotmail? Tell us 
now___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] container w/ text

2010-04-16 Thread John Singleton
Hi;
I have this code:


function Text()
{
parent_container5 = new Sprite();
addChild(parent_container5);
//parent_container5.width = stage.stageWidth/2;
//parent_container5.height = stage.stageWidth/4;
parent_container5.x = 50;
parent_container5.y = 350;
var myText:TextField = new TextField();
var format:TextFormat = new TextFormat();
format.font = 'Arial';
format.size = 12;
myText.textColor = 0x00;
myText.autoSize = TextFieldAutoSize.LEFT;
myText.x = 0;
myText.y = 0;
myText.htmlText = Lorem ipsum dolor sit amet;
myText.setTextFormat(format);
parent_container5.addChild(myText);
}

All works well except when I uncomment the width and height lines. How do I set 
the width and height so that I can contain my text within it? Also, when I add 
br / or p.../p to my htmlText it doesn't have any effect.
TIA,
John



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


Re: [Flashcoders] Interaction between clips and main timeline in AS3.

2010-04-16 Thread Henrik Andersson

David Hunter wrote:


Hi,
Seems you may have solved this by turning off strict mode. An alternative way 
(depending on how flexible you can be with your program) would be to reverse 
your approach and listen to what frame the clip is on (myClip.currentFrame) and 
perform functions accordingly. As long as you know what frame you want to 
trigger a function, you can do all the programming on the timeline in one 
place. I have put an example on pastebin for you to try. MyClip is a 12 frame 
animated movieclip in the library. Here is the link: http://pastebin.org/153959
Hope it helps,
David

It's probably a bad idea to poll the currentFrame property each frame. 
Flash already has framescripts.

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


Re: [Flashcoders] container w/ text

2010-04-16 Thread Kenneth Kawamoto

multiline  wordWrap ?

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

John Singleton wrote:

Hi;
I have this code:


function Text()
{
parent_container5 = new Sprite();
addChild(parent_container5);
//parent_container5.width = stage.stageWidth/2;
//parent_container5.height = stage.stageWidth/4;
parent_container5.x = 50;
parent_container5.y = 350;
var myText:TextField = new TextField();
var format:TextFormat = new TextFormat();
format.font = 'Arial';
format.size = 12;
myText.textColor = 0x00;
myText.autoSize = TextFieldAutoSize.LEFT;
myText.x = 0;
myText.y = 0;
myText.htmlText = Lorem ipsum dolor sit amet;
myText.setTextFormat(format);
parent_container5.addChild(myText);
}

All works well except when I uncomment the width and height lines. How do I set the width and 
height so that I can contain my text within it? Also, when I add br / or 
p.../p to my htmlText it doesn't have any effect.
TIA,
John

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


Re: [Flashcoders] container w/ text

2010-04-16 Thread Matt Perkins
I think you need to set the width/height of the textfield not the 
sprite. Or add a mask the the sprite and size that - but you shouldn't 
be resizing the sprite to do what you're trying to do.





John Singleton wrote:

Hi;
I have this code:


function Text()
{
parent_container5 = new Sprite();
addChild(parent_container5);
//parent_container5.width = stage.stageWidth/2;
//parent_container5.height = stage.stageWidth/4;
parent_container5.x = 50;
parent_container5.y = 350;
var myText:TextField = new TextField();
var format:TextFormat = new TextFormat();
format.font = 'Arial';
format.size = 12;
myText.textColor = 0x00;
myText.autoSize = TextFieldAutoSize.LEFT;
myText.x = 0;
myText.y = 0;
myText.htmlText = Lorem ipsum dolor sit amet;
myText.setTextFormat(format);
parent_container5.addChild(myText);
}

All works well except when I uncomment the width and height lines. 
How do I set the width and height so that I can contain my text 
within it? Also, when I add br / or p.../p to my htmlText it 
doesn't have any effect.

TIA,
John

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



--
Matt Perkins

http://www.nudoru.com

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


[Flashcoders] CS5 doc online

2010-04-16 Thread mika
http://help.adobe.com/en_US/Flash/CS5/Using/index.html

just noticed

Let's dig :)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] reading a css from www?

2010-04-16 Thread sebastian

Hello coders,

Simple question I think...

I have a SWF file, but its location on my server is not fixed, so I am 
having to call and load files using full URL paths.


I'm having an issue with loading the CSS file based on whether the 
domain being loaded is typed with, or without the www in front of it.


How can I make it so that the CSS file is loaded from either domain name?

Cuase right now if I write in my FLA to load the CSS from 
http://www.mysite.com/cssfile.css


then it won't load it if the swf is currently playing from:

http://mysite.com/someunknownpath/thecallingfile.swf

Thanks!!

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


Re: [Flashcoders] reading a css from www?

2010-04-16 Thread Karl DeSaulniers

//check to see if testing locally, or deployed live
if ((this.loaderInfo.url.indexOf(http)0) ||  
(this.loaderInfo.url.indexOf(testserver)1) ||  
(this.loaderInfo.url.indexOf(localhost)1)) {

//live
test.foo = LoaderInfo 
(this.root.loaderInfo).parameters.foo;

}else{
//testing
test.foo = testing;
}

Karl


On Apr 16, 2010, at 9:54 PM, sebastian wrote:


Hello coders,

Simple question I think...

I have a SWF file, but its location on my server is not fixed, so I  
am having to call and load files using full URL paths.


I'm having an issue with loading the CSS file based on whether the  
domain being loaded is typed with, or without the www in front of  
it.


How can I make it so that the CSS file is loaded from either domain  
name?


Cuase right now if I write in my FLA to load the CSS from http:// 
www.mysite.com/cssfile.css


then it won't load it if the swf is currently playing from:

http://mysite.com/someunknownpath/thecallingfile.swf

Thanks!!

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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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