Hi! Happy first post to me!
I have been trying to figure out what the new exit frame event is for.
The manual is not helpful at all here.
I have done some experiments on how the different events are timed. (See
attached file) They show that for the first frame, the exit frame event
happens
Cor wrote:
Your switch always triggers enter_frame and not another choice possibility
I tried without that, but the only effect was that all differences was
zero (or 1 due to random timing differences). The position in the enter
frame case is very intentional and is in fact needed to get any
John R. Sweeney Jr wrote:
Howdy List,
My client wants a touchscreen application. I've done several on 50 plasma
screens before for them using a Flash projector on a PC, but the kink in
this one is the client wants to be able to view the corporate website in the
Flash app. They don't want a
Kerry Thompson wrote:
I don't know of a way to compile a swf from C, or any machine-language
compiler. I'm not quite sure about iPhone apps developed in Flash--they may
compile to native code, but there isn't a way to compile a swf to machine
language that I know of.
You must have missed the
Ian Thomas wrote:
If you want to colour the individual segments of the shirt separately,
you need to split the image apart into different clips/layers first,
then use one of the two method above.
Do note that layers are not separately controllable, you really need
separate movieclips for
As I am new, I wonder what the etiquette is on this list for dealing
with people who screws up the metadata by hitting reply instead of
writing a new message.
This annoys me, since my email client is smart enough to break the
conversations down Usenet style, making it easy to keep track of
Kevin Newman wrote:
What I'm really interested in is are there any other language
improvements/additions coming with the update (private constructors,
inline functions, structural typing, let keyword, etc.)? Or is is the
same version of Actionscrtip 3.0?
Other than new api stuff for the new
Anthony Pace wrote:
I am not sure how to distinguish at what range or threshold a colour
becomes too visibly similar to the eye to detect a difference, and I am
really hoping there is a formula out there that I can be directed to.
It depends on the context. If they are right next to each other
Ktu wrote:
So I've noticed that Facebook will automatically detect which Camera object
to use on your computer.
It seems on most if not all macs there are at least three (3) Camera objects
always available.
So, I've made a class that will automatically detect which webcam is active
and running.
Mendelsohn, Michael wrote:
I want the *entire* text in the text box to be considered, not just a matched
substring. Is this possible?
Use ^ to lock to the begining of the string and $ to lock to the end of
the string, use both and it will not be allowed anything other than the
expression.
Ktu wrote:
When the code below is run, the eventListener still fires. I was under the
impression that it would not because the eventListener uses a weak
reference, and thus get garbage collected.
var sp:Sprite = new Sprite ();
sp.addEventListener (Event.ENTER_FRAME, function (e:Event):void {
Ktu wrote:
That is true, however, this eventListener fires indefinitely. Garbage
collection should pick it up after 30 seconds right?
I have tried this on the main timeline, and in a document class, but GC
never cleans up the object. Why?
There is no set time when it will run. It runs when
romain DR wrote:
Hi there,
first message here!
I m currently working on some dropdown. Get just a quick question!
how do I can close a dropdown with a click outside of the sprite?
I was thinking about adding a listener on holder_spr.stage but in that case the
listener fire even if I click on
Davide Di Blasi wrote:
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
I think you forgot the message.
___
Flashcoders mailing list
Davide Di Blasi wrote:
Thanks Henrik, I didn't notice...
Hello List,
I was wondering if a loaded swf can have a different frame rate from its
parent, as i have the main swf that runs at 30 fps and the animation i
load that runs at 24 fps.
Simple No. There is only one framerate in the player.
Karl DeSaulniers wrote:
Yes. You can do it with code.
Google multi frame rate in flash
I know there is a code out there somewhere. I found it a while ago.
That would be more like a hack to move the playhead manually. That is
not going to work out for things syncing to the real framerate,
TS wrote:
Hello,
Can someone help me with this. I need to send a url request with the spaces
intact and not urlencoded.
Is there a way to do this?
No http client can do this, the http RFC requires the resource name to
not contain any spaces. The encoding is required.
Andrew Sinning wrote:
The data changes very quickly over time.
Either move on to a Socket or a FMS connection, those allows for pushed
content and not just pulled content.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
TS wrote:
Then why does this work when I put it in my url?
http://twitter.com/home?status=My Bikini Design http://www.chynnadolls.com/
If you by my url really mean Address bar in my browser, then it is
because your webbrowser did the escaping for you.
Pardon the short reply, but my gut response is simply:
Old.
People who can upload stuff to sites could just as easily upload html or
something similar. Given that Flash is an executable format, it is
impossible to filter out bad things. It is the same issue as when
people are allowed to use
Andrew Sinning wrote:
I'm finding to problems with the flick feed that I'm trying to load.
In the root tag there are name-space attributes:
xmlns:dc=http://purl.org/dc/elements/1.1/; xmlns:flickr=urn:flickr:
xmlns:media=http://search.yahoo.com/mrss/;
Flash has support for those, but I don't
beno - wrote:
when I tried to enter Main, as is in the script below (and what is the
class associated in the Properties tab for the whole Flash movie) Flash
complains that I must use a unique name.
Don't give more than one symbol the same class, because it doesn't work.
Use subclasses as
beno - wrote:
So I've tried this, but still no cigar:
public function Main():void
{
function mcHatAndFace():void
{
That is not a subclass, that is a sure fire sign that you don't know
what you are doing. Nested functions is something only mad people and
John R. Sweeney Jr wrote:
I don't know if it was your intent, but he asked for help and you really
jumped down his throat telling him he doesn't know what he's doing and he is
not respecting the proper way.
Sorry then, I do have issues with being rude sometimes. I never said
that he didn't
Paul Steven wrote:
My main question is do I need some special software on the server side or is
this something that can be done using the flash player alone? I have no
restrictions on the version of Flash to create this with/for.
It could be done with the new fp 10.1 that is in beta, but it
Paul Steven wrote:
Can you explain what job the FMS would do please? Is this required for the
recording side of things or the playback?
FMS is short for Flash Media Server. It is what it sounds like, a server
application that takes care of media distribution. It handles media
storage and
beno - wrote:
Here is my code to the moment.
Pardon me for being blunt about this, but did you even pay attention
when I said that functions inside functions are a no no?
And if we count out that, you got some infinite recursion going on
there. If you make a new instance of the class
Steve Klein wrote:
The problem is, every time the loop runs, my resource monitor shows a
creep of about 12-15mb in the size of RAM used by the kiosk (deployed as
a Projector exe).
If I remove the above loader, the problem doesn't show up. Each loop is
roughly 10-12 images at 150kb each.
Does
Karl DeSaulniers wrote:
Hello Flash minds,
Wrap your head around this one.
I have this piece of code that every time I use auto format, flash moves
it outside the brackets it was originally at.
I can not reproduce with this limited sample. It just results in a
syntax error due to too many
Karl DeSaulniers wrote:
On Nov 17, 2009, at 12:15 AM, Henrik Andersson wrote:
I can not reproduce with this limited sample. It just results in a
syntax error due to too many ending }, fixing that does not reproduce
the bug.
Hey Henrik,
Kind of long code, thought twice about posting.
I
Karl DeSaulniers wrote:
Hey Henrik,
Kind of long code, thought twice about posting.
I shortened it and it still does it with this much code.
Let me know if you experience the same.
Darn, I slipped and replied without saying anything. Anyway, I can now
reproduce the bug.
Karl DeSaulniers wrote:
So it is a bug?
Karl
To be blunt, yes, yes it is. I filed a bug report, maybe it will be
fixed in CS 5.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
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
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
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
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
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
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
Giro wrote:
I do website with flex, flex builder is a best IDE thant Flash IDE. And
using flex is more easy to do somethings, and one good thing for me it is
less code lines.
I find the opposite to be true. The swf format has a lot of neat
features that you are just throwing away when using
Giro wrote:
You can use vector graphics on flex. You can create this on flash and export
to flex as symbol inside a swf.
On flex you can scale and don't lose quality.
Using Flash to create graphics for flex kinda defeats the point of flex,
doesn't it?
Paul Andrews wrote:
Stuff
Allow me to summarize your post:
You think that Flash is good for graphical projects, such as animations.
You also think that Flex builder is better for creating software.
You like the Flex components and how they are data driven.
You acknowledge that Flex projects
Dave Watts wrote:
Allow me to summarize your post:
That never works out very well, does it? Because it seems to me that
your summary missed a lot of Paul's points.
When summarizing, you have to remove details. I just focused on what I
felt was the core message.
But if you just see Flex
Ian Thomas wrote:
Stuff
You seem to ignore the components that Flash does ship with. We can
fight about whose components are the best, but I am not interested in that.
I also never claimed that they where rivals, I see them as different
tools designed for different tasks.
You seem to
Paul Steven wrote:
I just wanted to double check this is correct before duplicating a few thousand
CDROM sleeves.
If it is important enough to print on the box, hire a company to do the
testing for you and find out the real numbers.
___
Merrill, Jason wrote:
If that makes it so there would be too much code in one
class and the tasks so different, then they should be in separate
classes with events dispatched and listened to.
So you are basically saying that every single time you want to use
something in another class, you
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
Dispatch an event when the data is ready and have the main code listen
for the event.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
99 % of the time when Event.target is wrong, it is due to it being a
Shape instance instead of the containing MovieClips as wrongly expected.
It's due to authoring time content being added as separate Shape
instances instead of being drawn on the Movieclip itself.
Whenever I need to work with a reference to a leaf node, I run a loop
like this:
for(var obj=target;obj!=stage;obj=obj.parent) {
if(target is Type) {
yay();
break;
}
}
___
Flashcoders mailing list
Ian Thomas wrote:
Henrik,
Setting mouseChildren=false on an InteractiveObject/Sprite is much
easier. The children no longer react to or originate mouse events.
Agreed, it is easier. But the loop always works. I don't use it for
simple cases. The right tool for the right job.
Chris wrote:
If you expect your child to always be parented, you might want to yell
loudly about it:
if(child.parent){
child.parent.removeChild(child);
}else{
throw new Error(This child doesn't currently have a parent.);
}
You mean like flash does for you?
Karl DeSaulniers wrote:
Can we get a radio button selection in the properties pane for any MC to
smooth its contents or not?
First you have to define how to smooth vector graphics. Smoothing is
only for bitmaps and it's supported there already.
___
The playhead vs actionscript situation is a mess in Flash since as 3
first came out. This is the end result of flex being the only tool to
test with. But enough ranting about that.
First make sure that your swf is published for FP 10, if it is, the
situation is better.
If this is not enough
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
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
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
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,
Paul Andrews wrote:
Barry Hannah wrote:
Whomever told you to use enterframe to have something happen on frame 20
made a mistake. It's a valid way to get it working, I personally think
an enterframe loop is a waste of resource for that case and, more
importantly, I just don't think you're there
Barry Hannah wrote:
Bingo - use this.
Just remember that addFrameScript is unstable. Look at it wrong and the
player goes into an infinite loop and/or crashes. Try using it in
another framescript, I dare you.
It is safe for use, if you only use it in the constructor.
David Hunter wrote:
hi all,
there has been talk of CS5 before on this group in reference to iPhone apps,
but does anyone know when it will be released to buy?
Not even I know when it will be released. And I already have it ;)
___
Flashcoders
Craig Bowman wrote:
It's NOT a bug. A bitmap can't be assigned the attributes you want directly
and never has. It must be wrapped inside a symbol, like a MovieClip.
Not true, there is a fully working Bitmap symbol type just for this.
___
Flashcoders
Glen Pike wrote:
Please can we kill this thread - my screen is not wide enough to display
the whole lot any more ;)
This is one reason why people should not click reply when they want to
start a new discussion.
___
Flashcoders mailing list
Buttons are meant to be pressed like that. You are using the wrong
object for the job.
Here is my take on it: you have a game where there are button instances
in the gui. I would add the keyboard listener to the stage as usual.
However, in the listener, I would add a condition to ignore
Paul Steven wrote:
Thanks for the replies.
When you say buttons are meant to be pressed like that - do you mean that
it is standard practice to use the tab key to move between buttons and then
use the SPACE key to click it?
It wasn't implemented just to screw with people. It is how disabled
Bob Wohl wrote:
You may want to listen for Netstream.play.start and then start a timer
on a status method. When the video is complete, pause the timer. If
there's a playlist type functionality, listen to the same events to
start/stop the timer.
I suspect that this might not account for
al...@cyberiantiger.biz wrote:
use a debugger
like Monster Debugger or X-Ray.
Monster is not using the real debugging protocol, so that does not count.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
al...@cyberiantiger.biz wrote:
Henrik Andersson wrote:
Monster is not using the real debugging protocol, so that does not count.
snip
It's not a true debugger in the sense that you and I mean, but it is a
valuable debugging tool. That does count.
For the purpose of actually needing
beno - wrote:
Disagree. If someone tells you, Hey, I'm going to help you. Just give me a
couple of days and I'll take a personal look at your code and walk you
through it. and you believe him and he strings you along and wastes 10 of
your precious days, you mean to tell me that's all good? You
Steven Sacks wrote:
The player team has confirmed the documentation is wrong. Data gets sent
the instant you write it to the socket. flush() has no purpose.
Then why was it added in the first place?
___
Flashcoders mailing list
Steven Sacks wrote:
Henrik Andersson wrote:
Then why was it added in the first place?
Great question. Ask Adobe.
You are the one who said that it was confirmed pointless. You know
better how to ask the question.
___
Flashcoders mailing list
Eric E. Dolecki wrote:
So we'd all feel better activating the toilet handle I guess. I always feel
better after a flush().
I am more of the opinion that it is an accident that no data is buffered.
___
Flashcoders mailing list
Sumeet Kumar wrote:
Hi All,
Is there any way by which i can publish the image in as3?
Check out the as3corelib library, it is from Adobe, open source and has
some imageformat encoders. It has jpeg encoding and png encoding among
other formats. I am not sure about gif, but png is better
David Hunter wrote:
Henrik, good shout mentioning that library. i've used it before but does it
produce an _actual_ image or just a byte array that then requires some other
script to write that as a file to a server or for download etc? forgive me,
i've only played with the library once.
ktt wrote:
Hello,
I have .fla file with numerous .swf elements in library and I would like to
switch to Flex/Flash builder. Shoul I convert all elements to swc manualy or
there is other possible solution?
If you are not in a hurry and can wait for it, there is CS 5 that will
have much
David Hunter wrote:
hi Hendrik, are you on CS4? i'm still on CS3. the FileReference.download()
method allows for URLRequests not bytearrays. in CS4 there is a save() method
which allows you to pass bytearrays. is that what you mean or am i missing a
trick with download() and URLRequest? it
Nathan Mynarcik wrote:
Have you tried pngs?
Great idea, now you have another way of getting the colors wrong. How
nice of the png standard to include an ability to embed the color
correction profile, isn't it? Now you have twice the chance for the
wrong profile being applied and in one of
It is called the samplerate, flash uses 44200 sample pairs per second.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Jim Lafser wrote:
I'm trying to figure out what are some good tools to use for developing flash
apps and could use some recommendations. Thanks.
If you ask me, Flash cs 5 all the way, it is the closest that you can
get to the swf format itself while still being easy to use.
Bring out a http debuging proxy (I use MS Fiddler) and see what the
issued request really is.
My hunch is that it is POST, but using the variable encoding usually
attached with GET requests.
___
Flashcoders mailing list
Long story short, it must be public or else the Flash player can not set
it for you. In practice isn't not a big deal. It's just something that
people who cares about keeping things tidy and neat worry about.
I am not saying that it is a bad thing, but I don't think too much about it.
Fumio Nonaka wrote:
A variable declaration is processed before statements. Therefore, it
does not matter if it is inside or outside a loop.
Except for your case where it has an assignment.
___
Flashcoders mailing list
Piers Cowburn wrote:
Hi Steve,
I thought it'd be useful to have some actual figures, so I put together a quick
test. Test code was as follows:
I don't see any tests for the for .. in and for each .. in loops there.
They, in combination with Array, Vector, Object or Dictionary are also a
Paul Andrews wrote:
Piers Cowburn wrote:
I think the compiler is still seeing the typed Vector as Vector, not
typed vectors. Consequently a lookup is still involved. The
Vector.Someclass declaration seems more of a syntactic convenience
rather than anything else.
That's just guesswork on my
You did not account for relative urls. The swf url is relative to the
embeding html page. And that is not in the right folder. In conclusion,
fix the url.
I recommend the base element, it let's just override what the urls are
relative to. Other options include using an absolute url.
Cor wrote:
Hi Henrik,
Thanks for replying.
I don't completely understand what you are writing.
The swf is at the same location as the 404.html.
And I don't know what the base element is?
Kind regards
Cor van Dooren
Basic list etiquette: reply only to the Reply-to: address.
You are
Cor wrote:
You are assuming that the location has 404.html in it, that is not
correct. The location is the location that you entered in the browser,
the location that did not exist.
This doesn't make sence to me.
When I enter a wrong address, the .htaccess reroutes me to the 404.html
Steven Loe wrote:
Is there a preferred and easy to deal with method to encrypt credit card data
being sent to a server in AS3? Is there a good open source class out there for
this?
Try http over ssl, it's what normal browsers use. If it's good enough
for internet banking, it's good enough
ktt wrote:
Hello,
What is the best method to iterate through MovieClip children, check if they
have listeners and if they have - remove them?
It is not possible to get a list of the listeners. This means that you
can not remove them. You can however detect if there is any at all for a
given
Event listeners will be destroyed along with the object the listeners
belong to. But they will keep on firing until the garbage collector
feels like running.
Do note that a listener does hold a reference to the listener function
from the event source. This means that if the object has a
Glen Pike wrote:
sandbox? Am guessing direct memory access maybe disallowed because
people could try to exploit buffer overflows...
You think that they honestly allows unbounded random memory access? They
don't. It is restricted to the reservated memory area.
John McCormack wrote:
It looks as if the memory is protected anyway, according to:
http://ncannasse.fr/blog/adobe_alchemy ...
As a reminder, the Alchemy pipeline is the following : .c file *-*
LLVM intermediate bytecode *-* AVM2 bytecode
However, in general, doing so reduces a lot the
Alexander Farber wrote:
For example you call ns.publish(XXX)/ns.play(YYY), but with which arguments?
I would just let the FMS side take of figuring that out. The movie can
then just use whatever the FMS side tells it to use.
___
Flashcoders
There is a property for it, I read the source myself.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Steven Loe wrote:
I could load everything over https but it's ~7mb of swf and audio. It's going
to be slower over https.
I do not believe that it will be too noticeable. The transfer is done
with a symetric encryption, it is very rare that those changes the data
size at all (excluding some
Nathan Mynarcik wrote:
I know you can export a frame of a movie clip to an image, but can flash export
a movie clip to a video file (.mov)?
Do note that said video will miss several features, most importantly any
actionscript used.
Use some 3rd party converter instead, the built in
Cor wrote:
Hi Jason,
I hope you don't mind me addressing you of list.
If you do, please ignore this message and I apologize to you!
I am trying to grasp the MVC pattern, but it is very hard for me.
I am looking for a very simple example which explains the way it works.
If you can help me with
Uhm, the swfobject javascript class?
If you want details, please elaborate. Even better, ask whoever made the
site.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Dave Watts wrote:
No one needs to learn framework mumbo-jumbo, but if that's how you
see frameworks, you're missing the point. The point of using a
framework is to be able to spend less time thinking about how you
organize things. Frameworks are for lazy people like me. I'd rather be
watching TV
Put the tween in a graphics symbol.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
beno - wrote:
Same problem. And how will it tween if it's a graphics symbol? Do graphic
symbols tween?
Graphic symbols has frames and as such can have shapetweens. But you
apparently still need to use the special cut and paste menu. Use both
solutions.
1 - 100 of 508 matches
Mail list logo