I copy pasted that into CS4 stock and I could not reproduce the error. I
tried it on the timeline and in a class file with no luck.
Could there be any updates you've done to your version of flash that could
cause this?
Ktu
On Tue, Nov 17, 2009 at 2:02 AM, Karl DeSaulniers
Nope. Just CS3
Karl
On Nov 17, 2009, at 2:03 AM, Ktu wrote:
I copy pasted that into CS4 stock and I could not reproduce the
error. I
tried it on the timeline and in a class file with no luck.
Could there be any updates you've done to your version of flash
that could
cause this?
Ktu
On Mon, Nov 16, 2009 at 5:00 PM, Barry Hannah ba...@shift.co.nz wrote:
OK, I'm lost.
Me too :)
You need a function mcHatAndFace so you can call an asset from the
library?
Does
var myHatAndFaceInstance:mcHatAndFace = new mcHatAndFace();
not work?
I exported mcHatAndFace from the
Hi,
Could you try the following ? (you were doing addChild on
'mcHatAndFace' class, but I know you want the instance to be added to
the display list, not its class)
Main.as:
package
{
import flash.display.MovieClip;
import com.greensock.*;
import com.greensock.plugins.*;
import
Beno,
It's difficult knowing exactly what you have done. I don't know any AS2,
just AS3. To help sort out the scenario let's say:
You have a program called program.fla
You have clicked the stage and in 'properties' you have named the class
as Main - without the as.
So the code that drives
On Tue, Nov 17, 2009 at 5:14 AM, Cedric Muller flashco...@benga.li wrote:
Hi,
Could you try the following ? (you were doing addChild on 'mcHatAndFace'
class, but I know you want the instance to be added to the display list, not
its class)
Main.as:
This is what came back from the code,
beno - wrote:
Error: Error #2136: The SWF filefile contains invalid data at
Main/frame1()
The flash player does not like you creating a new instance of a class
that is the document class for a swf.
___
Flashcoders mailing list
I noticed a difference in how Flash CS3 and simple HTML page parses
b and i tags.
For example:
var test2 = A B C D B E F G I H I J K /B L M N O /I P Q R S T;
txt.htmlText = test2;
Flash produces: A B C D - regular font
E F G - bold
H I J K - bold+italic
intersection is not correct HTML, right?
On Tue, Nov 17, 2009 at 10:03 AM, Greg Ligierko gre...@l-d5.com wrote:
I noticed a difference in how Flash CS3 and simple HTML page parses
b and i tags.
For example:
var test2 = A B C D B E F G I H I J K /B L M N O /I P Q R S T;
txt.htmlText =
On Tue, Nov 17, 2009 at 6:21 AM, Henrik Andersson he...@henke37.cjb.netwrote:
beno - wrote:
Error: Error #2136: The SWF filefile contains invalid data at
Main/frame1()
The flash player does not like you creating a new instance of a class that
is the document class for a swf.
How is
1) Just open your FLA in Flash IDE
2) In the PUBLISH panel, you have a textfield input named Class:
--- this is the document class, just leave it blank
3) retest with the revised code
hth,
Cedric
On Tue, Nov 17, 2009 at 6:21 AM, Henrik Andersson
he...@henke37.cjb.netwrote:
beno -
Should be like this..
var test2 = A B C D B E F G I H I J K /i/B iL M N O /
I P Q R S T;
if you want these results.
A B C D - regular font
E F G - bold
H I J K - bold+italic
L M N O - italic
P Q R S T -
Yeah, intersecting if you will, is improper HTML coding. I can't even think
of a reason why you would want to do that...
--Original Message--
From: Karl DeSaulniers
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: Re:
On Tue, Nov 17, 2009 at 8:36 AM, Cedric Muller flashco...@benga.li wrote:
1) Just open your FLA in Flash IDE
2) In the PUBLISH panel, you have a textfield input named Class: ---
this is the document class, just leave it blank
3) retest with the revised code
YAHOO
hth,
Ya, mon!
:)
Now, the best is to try out different ways to launch your application
and truely understand the differences between Classes, methods,
properties, symbols, etc ... :)
Moreover, now that you've got your Main class working, please read
Adobe tutorials and senocular's excellent information,
Hi;
Okay, I have this as code in the first frame of a timeline:
var main:Main = new Main();
addChild(main);
main.init();
main.another();
I have this code in Main.as:
package
{
import flash.display.MovieClip;
import com.greensock.*;
import com.greensock.plugins.*;
import
On Tue, Nov 17, 2009 at 10:49 AM, Cedric Muller flashco...@benga.li wrote:
:)
Now, the best is to try out different ways to launch your application and
truely understand the differences between Classes, methods, properties,
symbols, etc ... :)
I've put up a new post (Baby Step #2). Already
beno - wrote:
public function another():void
{
var mcHandInstance:mcHand = new mcHand();
addChild(mcHandInstance);
mcHand.x = 400;
mcHand.y = 400;
}
Compare line 3 and 4 with line 5 and 6 and note the difference, you are
using the wrong variable name.
You
Well done Cedric!
beno,
Later on, have a look at:
Using the Document Class
on:
http://www.gotoandlearn.com/
John
Cedric Muller wrote:
:)
Now, the best is to try out different ways to launch your application
and truely understand the differences between Classes, methods,
properties,
who's the Instance who's the Class symbol ?
mcHand --- Class symbol
mcHandInstance --- instance
when you want to change x and y on **any** instance, who do you
target ? the Class or the instance ?
:)
var mcHandInstance:mcHand = new mcHand();
addChild(mcHandInstance);
mcHand.x =
On Tue, Nov 17, 2009 at 11:41 AM, Cedric Muller flashco...@benga.li wrote:
who's the Instance who's the Class symbol ?
mcHand --- Class symbol
mcHandInstance --- instance
when you want to change x and y on **any** instance, who do you target ?
the Class or the instance ?
I apologize for
this looks like you have not set the linkage in your symbol
properties panel, have you ? (ie: is 'mcHand' really defined
somewhere ? somehow ?)
hth,
Cedric
On Tue, Nov 17, 2009 at 11:41 AM, Cedric Muller
flashco...@benga.li wrote:
who's the Instance who's the Class symbol ?
mcHand ---
Build State of the Art Flash Video and Media Players.
Targeting worldwide specialists who develop and deploy Flash Video and Media
Players, a new online-only, public user group is launching this Thursday
11/19 @ 10:00 AM PST. All are welcome. Please forward notice about this
meeting to all who
On Tue, Nov 17, 2009 at 12:13 PM, Cedric Muller flashco...@benga.li wrote:
this looks like you have not set the linkage in your symbol properties
panel, have you ? (ie: is 'mcHand' really defined somewhere ? somehow ?)
That was it :-)
I'm currently studying the Adobe online docs...really good
to be honest ... I don't know :(
- senocular is key for me: it is not long and so informative ...
- the Adobe documentation is hard at first glance, but it prooves
itself to be very useful. The hardest part is to first take time to
read 200-300 pages from the base doc' ...
otherwise (if
You are all right. Mixing styles this way breaks HTML/XML hierarchy
and it's not a good idea. I am writing a piece of code that converts
[b]..[/b] and [i]..[/i] to HTML bold and italic tags. I was trying to
figure out if I should allow intersecting styles. For some reason,
browsers support this
If you're mixing XML and HTML, you should just enclose the HTML inside
of CDATA tags, then it's not an issue as any proper XML parser will
ignore it as XML structure and treat it as a string.
Jason Merrill
Bank of America Global Learning
Learning Performance Soluions
Join the Bank of
Hi list...
I have a singleton (let's say it's class a) which contains instances of two
different classes, b and c. Class B and C both extend Event Dispatcher.
var b:B = new B();
var c:C = new C();
In c's constructor, a custom event is dispatched. I want b to listen for it,
but this
On Tue, Nov 17, 2009 at 12:42 PM, Cedric Muller flashco...@benga.li wrote:
- the Adobe documentation is hard at first glance, but it prooves itself to
be very useful. The hardest part is to first take time to read 200-300 pages
from the base doc' ...
I'm reading it ;) I've done enough
Hi Michael,
When you do b.addEventListener - you're listening for events in b, not
in c. You should not, architecturally speaking, have b listen to
c at all - that's called tight coupling, which is bad. You should
instead do loose coupling, which would have your singleton class a
listen for
Thanks Jason. I wasn't sure if a listening for c and calling a function in
b as a result qualifies as tight coupling also between the three classes. In
any case, that was the other plan I had intended on going with. Thanks for the
great answer!
- MM
Merrill, Jason wrote:
Hi Michael,
When you do b.addEventListener - you're listening for events in b, not
in c. You should not, architecturally speaking, have b listen to
c at all - that's called tight coupling, which is bad.
So better to do the loose coupling thing I outlined
above.
Tight
Tight coupling is not as bad as people make it out to be.
Yes it is.
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
Merrill, Jason wrote:
Tight coupling is not as bad as people make it out to be.
Yes it is.
No, it is not. Btw, thanks for your very stimulating response. Meh, I
get to argue for my point first then.
Tight coupling can be an issue, if the coupled components shouldn't be
coupled. It is not
It is not an issue at all if they more or less couldn't work
without something doing the job of the other and few if any
replacement
options.
That's a strange point of view, I would love to see a good example of
that. If you've got a system designed that way, then you've got bigger
problems.
On Tue, Nov 17, 2009 at 8:06 PM, Henrik Andersson he...@henke37.cjb.net wrote:
Tight coupling can be an issue, if the coupled components shouldn't be
coupled. It is not an issue at all if they more or less couldn't work
without something doing the job of the other and few if any replacement
Ian Thomas wrote:
In which case they're actually one component, conceptually - if the
dependencies are really that inextricable. :o)
Two sub modules in a webbrowser is a http client and an image parser.
Yet, they need to cooperate for images to download while being displayed.
When do you
*blink*
But those two components should not be tightly coupled.
Bad example, I think.
The HTTP client doesn't depend on the image parser; it's used to
provide HTTP services to a number of different components of a
browser. You could use the HTTP client code in complete isolation from
knowing
Alright, since I asked the question, I'm piping in. I just finished a project
that became immensely complicated precisely because I eventually had everything
tightly coupled. Had I used custom events and done some other things from the
get go, I'm nearly certain it would have been easier to
Ian Thomas wrote:
stuff
My point is that things that can seem unrelated can have a direct
relationship anyway. The image parser can run alone, yes. But it needs
to cooperate with the http client module if you want to show the image
while it is still loading. That was my point of the
Sorry, we're way off topic here. :-D I'll shut up.
Ian
On Tue, Nov 17, 2009 at 9:05 PM, Mendelsohn, Michael
michael.mendels...@fmglobal.com wrote:
Alright, since I asked the question, I'm piping in. I just finished a
project that became immensely complicated precisely because I eventually
I completely agree with this as I've been in exactly the same
situation with a largish scale project. The sort of projects I tend to
do are small scale games for which the totally tightly coupled
solution is overkill. However, I've eaten my words on that point as
well...
On 17 Nov
Hi,
I'm using JSFL to modify a bunch of FLAs created by a designer.
I need to change the antialiasing on a large number of textfields from
'bitmap' to 'antialias for animation' but the only parameters I can see
are 'standard', 'device', 'bitmap', 'advanced' and
'customThicknessSharpness'.
hmm good question - i don't know if that's accessible from jsfl.
you could probably just loop through everything on the stage, and if
it's a text field then select it - that dropdown will affect all
selected textfields.
not exactly what you're looking for though, maybe someone else has a
better
Did a quick test.
I think Stanley is wright: not possible.
My ASV swf decompiler creates JSFL to reconstuct a FLA. I created a
bunch of different textfields, compiled to swf and decompiled with ASV.
Got ASV creating JSFL rebuild script for recreating a FLA.
For antialias for readability fields
Thanks guys, that's confirmed my suspicions.
Much appreciated,
C:
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Latcho
Sent: Wednesday, 18 November 2009 10:47 AM
To: Flash Coders List
Subject: Re:
If like you said, --totally tightly coupled solution is overkill.--
,than I can agree with you :P
But alright, to plug in on this matter. As I found out it's not hard to
lose the tight coupling.
The hard part is to find a system that works fast and intuitive for you.
Once you found or
As found in http://www.scribd.com/doc/3939992/Flash-Javascript-API
My best guess is that to represent antialias for animation you would
use
text.fontRenderingMode - standard
text.fontRenderingMode - static
Latcho
Chris Foster wrote:
Hi,
I'm using JSFL to modify a bunch of FLAs created by
I have not seen this surface in the group yet. I want to take this
opportunity to again invite all Flash/Flex developers interested in Adobe
AIR to going the AIR-Tight Google Group.
AIR-Tight Links
-
You can join in one of two ways.
1. Send e-mail to
I agree that Colin's book Essential ActionScript
3.0http://books.google.com/books?id=gUHX2fcLKxYClpg=PP1dq=actionscript%203.0%20design%20patterns%20object%20oriented%20programming%20techniquespg=PP14#v=onepageq=f=falseis
a must have for any AS3 programmer.
If you are looking to get deeper into
50 matches
Mail list logo