The rumors of Flash dying are overblown. The Flash and AIR runtimes are
still great at what they do.
Apple pulled a stunt to shame Flash, but the truth is that they just
wanted to protect their appstore. They didn't want to kill Flash. They
wanted to kill Flash apps in the browser. They have
The problem here is developers not stating what runtime they use for
their apps. What can be done is checking existing apps for obvious signs
of the runtime. Shouldn't take long for someone to crawl the appstore
and check all the apps for the fingerprint of the runtime.
John McCormack skriver:
Ever wanted to play with classics like ReadProcessMemory in
Actionscript? Now you can!
I have written an ANE that exposes the Windows debugging API for use in
ActionScript. It comes with a asdoc reference manual for easy API learning.
It allows access to everything you'd expect from a basic
This assumes that all mobile devices are incapable of Flash. That's
patently false. It also ignores the issue of non-mobile devices that
doesn't support Flash.
natalia Vikhtinskaya skriver:
Here is the code that I use (thank you Karl) and it works. Maybe it will be
useful for somebody. I try
You got the priorities wrong. He wants to use Flash if possible, with
the video as the fallback.
Karl DeSaulniers skriver:
Hi Natalia,
Looks like this is your best solution and doesn't involve any javascript.
video width=100% height=100% controls
source src=jack_giant.mp4 type=video/mp4
John R. Sweeney Jr. skriver:
Hi all,
I need to center a Flash projector on both MAC and PC. Not center the stage,
but literally, when you double click the app or exe, it opens in the center
of the monitor.
Which monitor? Believe it or not, but there are people who have more
than one.
natalia Vikhtinskaya skriver:
This is code in app
var appDirectory:File =
File.applicationDirectory;//File.applicationStorageDirectory
var fileString:String = appDirectory.nativePath;
var appFile:File = File.documentsDirectory;
var
natalia Vikhtinskaya skriver:
Hi to all.
I solved all problems with xml editor in flash. I created AIR app that
loads and saves xml after editing. I created Windows installer app. It
works well on XP and Win 8. But when the user installs it on his pc (I
think he has no AIR program on it) app
Just use File.separator, it will get you the correct one if you care.
Jim Hayes skriver:
Or use a / which I think works both on PC and the mac (which \ will not,
that will only work on windows)
Forgive me if I'm wrong on that one.
From:
There is no such thing as calling a constant. And static properties are
only initialized once.
Your approach only serves to delay the construction of the instance to
the moment it is first accessed, as opposed to when the runtime decides
to initialize the constant.
What OP needs is a singleton
Kerry Thompson skriver:
Take it easy, Oren. There is no spam I've seen. It looks like something got
corrupted in my reply, but that's hardly spam. I'm posting from a Caribbean
island, and there might be some transmission problems-- this is a small,
less-visited island.
Isn't TCP supposed to
Hans Wichman skriver:
That said, AS3 is much more about (strong) typing than AS2 was.
In that line of thinking, you need to specify exactly what types of
parameters go into a method/function and what it returns, even if that
what is nothing.
The type of Nothing is this respect is void.
They would offer the flash runtime as a linkable library if they were
serious about being middleware.
Have you seen the ANE stuff? Complete rubbish compared to real native
classes! They don't trust people to actually have access to all the
useful stuff the runtime has. And it's not a matter of
Liu, Peter skriver:
Why can't Adobe make HTML5 as one of the publishing options, then we can
continue to use Flash without the need to learn another program?
Because HTML5 doesn't do a good job at vector animation. The Flash
runtime is quite powerful. And it is difficult to replicate so much
Windows will show it as an unrecognized file type and present the usual
shall we go to a website and fail to find anything useful? question.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
Glen Pike skriver:
We built an AIR shell loader so we could run the App in browser etc.
Tell me more. I have not heard how to do this.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
natalia Vikhtinskaya skriver:
Thank you Karl
Some more questions:
1.What Flash function can pull in basic html to flash?
2.And what Flash function can get access to the database?
I suppose that can not be done directly from flash. And how to
manage that dynamically with new url
I know that this is a bit late, but since noone else has posted it I
guess I will.
http://www.bytearray.org/?p=4858
You can now register and instantly get access to the Monocle profiling tool.
___
Flashcoders mailing list
Karl DeSaulniers skriver:
Thank you Cor!
The buttons are MCs placed on the stage. At first they were Buttons, but
when they wouldn't change even the states within the Button, so I
converted them to MCs.
Also, what does the
, false, 0, true);
do? Does it have to do with removing the
Karl DeSaulniers skriver:
Thanks Henrik,
Well for this, there are two buttons on stage.
When you hover over one it makes a message appear, if the other another
message appears.
So if I dont use those, your saying that when I roll out, the listener
is removed automatically?
I am saying
Tom Gooding skriver:
thanks - had seen Machinarium - will take a look at Wonderputt, thing that
worries us specifically with AIR is the networking stack; running robust /
low-latency socket connections for multiplayer games (which we do fine in
browser flash).
I say that AIR is even more
John McCormack skriver:
One thing that Apple issue seemed to miss was that any significant
download of pixels, no matter what the delivery language, is going to
use a similar amount of battery life. So it really had little to do with
Flash. More to do with control of the market.
I beg to
Jon Bradley skriver:
Of static art and of limiting complexity. The moment complex vectors are
used, the data requirements balloon and once motion is taken into
consideration (data for per-control point manipulation) the argument is far
out the window.
Either way, it's a moot argument.
Ross P. Sclafani skriver:
http://www.adobe.com/devnet/flash/articles/optimizing-mobile-performance.html
That discusses runtime performance, not how big the data is. And it does
not provide any concrete research results. Just unscientific individual
observations.
I want concrete numbers that
Paul Andrews skriver:
Adobe has said for years that mobile platforms should use bitmaps to
conserve processor utilisation. The other real problem with flash is
that some developers use inefficient processing loops that eat up
processing power - I can often see it on my laptop when the fan
Eric E. Dolecki skriver:
I have some hardware that sends serial data over USB. Any good proxy app to
use with Sockets to read that data in an AS3 app?
Have you tried an AIR native extension?
___
Flashcoders mailing list
The idea is obviously to let your server be the one who asks the
Facebook servers for the data, meaning that the only possible attack
points are the server itself and the connection. If your server is
compromised then you have fail security. If the connection is
compromised then SSL failed. SSL is
Bob Schmitt skriver:
It is now:
http://www.w3schools.com/html5/html5_new_elements.asp
embed Defines a container for an external application or interactive
content (a plug-in)
HTML 5 is not a standard. It has yet to be finalized.
___
Kerry Thompson skriver:
That's one way of doing it, but the embed tag has been deprecated. Well,
maybe not officially deprecated, but it's considered obsolete.
Well, you can't deprecate something that has never been in the standard
to begin with.
Steven Loe skriver:
I'm confused... I would like to control the flash apps on ~1000 machines by
sending occasional server messages to them. If I use remoting, seems I need
1000 persistent tcp connections from server to clients. That seems like a lot
of connections. Would remoting be less
David Hunter skriver:
Hi All,
Anyone have any advice on making screensavers from Flash? I have seen some
decent looking software
http://www.screentime.com/software/flash-screensaverto convert an swf
into a screensaver but it is quite pricey, I didn't have
any luck with a mac open source
David Hunter skriver:
That doesn't seem to work on my mac. System Preferences Desktop Screen
Saver not picking up my renamed projector file. Is it Windows only?
Thanks Henrik.
Yup, windows only.
___
Flashcoders mailing list
Steven Loe skriver:
I have a flash project that polls a php server every 10
seconds to check for commands. I have 1200 machines running this on a
local network.
You want push, not pull.
And http can't provide push. You need a different protocol.
Terry Riney skriver:
Would like to pass a score/time/damage to client will stick with
score/damage right now:
package observer{
import observer.Observer;
/**
* A Java-style Observable class used to represent the subject
* of the Observer design pattern. Observers must
Ross Sclafani skriver:
An MVC Example
FLVPlayback is an interesting MVC component:
it holds a NetStream as a model of the video
it holds a Video as a view of the Video
It acts as controller to set the model in motion by connecting it to a stream
the ui is also a view of the video:
John McCormack skriver:
Kevin mentions...
...need to transform the format to fit the view, you would do that in
the controller
Henrik mentions...
The data changing should be done in an adapter that the controller puts
in between the model and the view.
So the problems arise because the
Please don't tell us what the error is.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Kevin Newman skriver:
On 2/25/2012 8:00 PM, Paul Andrews wrote:
Who is then?
The model - but it depends on what you really mean by manipulate - if
you are storing it (such as in a database) to be retrieved by the model
at a later time, the model should do it. If you are channeling the data
James Merrill skriver:
http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html
A new version of AS3 will be nice, it's just too bad no one wants Flash
anymore. Flash player is basically dead in the water, with its future usage
being hardcore gaming. How many of you guys/gals are
Henrik Andersson skriver:
James Merrill skriver:
http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html
A new version of AS3 will be nice, it's just too bad no one wants Flash
anymore. Flash player is basically dead in the water, with its future usage
being hardcore gaming. How
Matt S. skriver:
On Wed, Feb 22, 2012 at 3:37 PM, Henrik Andersson
he...@henke37.cjb.netwrote:
If you ask me, Adobe needs to get the animation part back on track
before the competition runs past them.
Everything Adobe is doing suggests that they think that particular horse
has already
Karl DeSaulniers skriver:
If I had anything to say about the future of flash, it would be, sell it
back to Macromedia if you can't fill the position.
Adobe didn't buy Flash. They bought Macromedia.
___
Flashcoders mailing list
Karl DeSaulniers skriver:
Ok, then sell it/give it back to the guys who started Macromedia.
It seems like they already have positions in the top Adobe management.
http://www.adobe.com/aboutadobe/pressroom/executivebios/davidwadhwani.html
Mattheis, Erik (MIN-WSW) skriver:
I'm not understanding something here - in the following excerpted and
simplified example, I'm trying to send a ByteArray of length 170 and there
seem to be 173 bytes received. Where are the extra bytes coming from and
and is that the reason readObject
Mattheis, Erik (MIN-WSW) skriver:
On 2/16/12 4:20 PM, Henrik Andersson he...@henke37.cjb.net wrote:
It is highly possible that multiple writes was stuffed into one read,
even if you don't flush between the writes.
The three left over bytes could be the first three bytes of the length
Ross Sclafani skriver:
Henke!
Have we met on IRC ? I operate there as butter. Used to hit up actionscript
and papervison3d on freenode but it's been a while.
Quite likely, since I do hang on ##actionscript@Freenode all the time.
It must indeed have been quite a while, since I am afraid I
Basic TCP rules says that you are sending an octet stream.
All socket APIs are optimized for bulk access to avoid silly performance
issues due to lots of function calls (and possible mode switches).
This means that you MAY get more than one object in one go and that you
MAY get only a part of
Mattheis, Erik (MIN-WSW) skriver:
If I have to do this without looking at functional examples, how would one
transmit a terminator byte or byte size while using Socket.writeObject()?
Write the object to a ByteArray, measure the size of that and send the
size of that before the contents of the
Ktu skriver:
Hey List,
I'm building a swf, and i want to set the stage.scaleMode and align ONLY IF
my swf is the top level swf, and was not loaded by another swf.
anyone know how to find out if a swf was loaded by another swf?
need more info?
thanks
You can't know in the general
Ktu skriver:
sorry now, what if the loader is already in a display list when it runs
that first frame?
is it still not aware of the stage?
If a movie is loaded by a Loader that is on the display tree of the
stage the loaded movie DOES NOT have access to the stage.
Karl DeSaulniers skriver:
Is there no reference in AS3 like AS2 where you can look with _level0
for the top level MC?
The equivalent to levels would be the display list of the stage itself.
___
Flashcoders mailing list
You sure that you need javascript to access the server? Flash is
perfectly capable of making http requests on it's own.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
You could just read up on the pdf file format specification.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
I can only point at the normal design guidelines. They still apply no
matter who the target audience is.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Right now.
You need the correct playerglobals.swc file and a simple xml file to
tell Flash about the new player.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Flash has bitmap smoothing that will blur the image so that the scaling
artifacts are less visible. Try it out.
At least it is better than making things look pixelated.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
As 2 might not be able to do it.
As 3 on the other hand can open any file, as long as you write the
needed code to parse the file.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
You won't get much luck overlaying anything on top of a flash player.
Not even another flash player.
I think that the correct solution here is to use just one flash player
that loads both movies.
___
Flashcoders mailing list
The issue here is that the compiler does not know that they will remain
unused and can not assume they will.
Why? Because if another swf file accesses the first file at runtime then
the second file may need the features.
___
Flashcoders mailing list
Timers doesn't run while their listeners run. This gradually skews their
position.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
I say, store no pints what so ever. Store the formula needed to compute
each point. Then you can just compute the point when actually needed.
This way you can plot the graph at any zoom level without sacrificing
any quality.
___
Flashcoders mailing
Use a reasonable amount of points. Don't draw more points than the graph
is wide.
Consider using curveTo to get smoother lines.
Consider using the bulk drawing to reduce the cost of telling flash each
point. One method call vs one per point can make a difference.
You can't unless you assume that the maximum rotation speed is less than
180 degrees per update. This is due to the aliasing problem.
This is, assuming that you don't actually know the rotation speed and
are calculating the angular difference between two positions.
There is still no eval function.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
ActionScript 3 is a compiled language. There is no such thing as an eval
function in as 3.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
It is a very common problem. You need to embed the font in a different
way that is not automatically dealt with.
Just find the textfield on the stage, select it and click on the embed
button in the properties inspector panel to add the correct symbol for
the font.
Flash will then
While you have the right spirit I think that it would be a better idea
to check the length of the array instead. That way you won't
accidentally step out of bounds there.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
It depends on the set scaling mode of the stage.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Glen Pike skriver:
Hi,
Unless you can use /usr/sbin/diskutil as your File name and pass the
other elements of the command line as separate arguments, then you
might have to be more creative with your approach.
1. Write a shell script that encapsulates this command and call that.
2. Capture
Sounds like the classical mask not being in a display list issue, but
in a new variation.
Ensure that both the mask and the maskee is in the container passed to
the draw call.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
flash.net.SecureSocket
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Cor skriver:
OK, so when I change the output line in my PHP from:
print $response;
to
print returnString=$response;
So flash expects a key-value pair!!!
Now the real question is, why is Flash expecting that format to begin
with? You shouldn't change your php code. You should change the
Cor skriver:
Thank you.
I have:
var myXML:XML = XML(e.target.data.returnString);
You should have XML(loader.data).
Use the URLLoaderDataFormat.TEXT mode, not the
URLLoaderDataFormat.VARIABLES mode.
As for the ordering, did you request any specific order at any time in
the chain? You did
Your php code is broken then.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Did you even look at the code he posted? The code already does that!
As for the code itself, while I do not aprove of using string
concatenation to build xml, that seems to be ok.
You seem to have some sort of dodgey filter running somewhere later in
the chain. I recommend using a http
Karl DeSaulniers skriver:
Hi Cor,
I think you will want to put htmlspecialchars() around what comes out of
the database.
More like using a proper XML generating library. I recommend the DOM php
extension.
___
Flashcoders mailing list
Embed the flash player in your own native application. Then add stuff to
the api using high level magic and there you go, new stuff for
actionscript to use.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
First of all, there is no protection in the current design. And you can
never make one that will do squat.
Second, there are libraries to work with zip files. I have used one
myself, not too hard.
___
Flashcoders mailing list
Set the embeding code to use a dynamic size, such as 100 %. Then use the
Stage.stageWidth and Stage.stageHeight properties to do your layout.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
Kevin Newman skriver:
On 6/30/11 4:40 PM, Eric E. Dolecki wrote:
document.getElementById(divName).style.height =valPassedByFlash
You can even do that completely from within flash:
function onResizeHandler(event:Event):void {
if (ExternalInterface.available)
CDATA is just an encoding trick to force the parser to not parse the
data as containing tags.
It represents plain old text so treat it like plain old text.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
Merrill, Jason skriver:
var kids = xmlData.children(); // gets me the CDATA content without the![CDATA[
or ]]
var kidscdata:String = kids[0].toString();
That seems unnecessary unless I don't understand your question. Wouldn't var
kids:String = theXMLNode.text() work?
The text method
John R. Sweeney Jr skriver:
Everything I've found on the web about stage video is Flex examples. Has
anyone used this new class with Flash? If so, any links to examples of usage
would be greatly appreciated. I've searched my drive and don't appear to
have the class files for things like
John R. Sweeney Jr skriver:
I have the 10.3 plugin and Flash CS5. I haven't installed CS5.5 yet, but a
friend has it and he doesn't have the playerglobals.swc file either.
He isn't looking hard enough then. All versions of flash comes with
several playerglobals.swc files, one for each player
Glen Pike skriver:
Hi,
Can you measure the vector distance between the centre of the polygon
and the centre of the ball? If that is 0,0, and the diameter of the
circle is less than the smallest of width / height of the box, then you
are inside.
Glen
Not in all cases:
I think that this is likely due to the quoted requirements. It can not
be scaled, rotated, filtered, color transformed or anything of that fun
stuff. Somehow the root had something on that list.
Mendelsohn, Michael skriver:
OK, after two days of total stress, I figured I'd document the
B Shankar PEDANA skriver:
Hi,
Is it possible to show a movieclip before all its frames(say 100 frames) or
when its first frame is loaded?
That is the default, flash will start rendering a swf file as soon as it
can, only pausing if it gets ahead of itself.
The Event.INIT event will tell
My gut instinct says that something is messing with the delay rendering
system that the components are using.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Karl DeSaulniers skriver:
Hello all,
Has anyone here heard of the PrivateEncriptedDatak keychain that Adobe
has?
That's not even spelled correctly. I don't buy it.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
Since nobody else has done this, I might as well do it. It's old news by
now, but it doesn't hurt to tell people about it.
The flash player incubator have updated and added new features.
http://labs.adobe.com/technologies/flashplatformruntimes/incubator/
Here is the feature list for those who
Isn't the playerglobals.swc file part of the player definition? As such,
it is referenced by an xml file in the
$flashroot/common/configuration/players folder.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
Roland López skriver:
hello everyone im having some trouble meaking a php contact form the error
that returns me is this :
TypeError: Error #1034: Type Coercion failed: cannot convert
fl.controls::Button@2e35f0b1 to flash.display.MovieClip.
at flash.display::Sprite/constructChildren()
Anthony Pace skriver:
Hello list,
I have been doing some experiments, but although my stuff is working, it
isn't optimized at all, and I would to try a reliable lib that uses zero
crossings for analysis, if one exists.
Any suggestions?
I am really just interested in pitch analysis with very
Start by throwing away the XMLList wrapper, what you really have is a
single XML element, stop trying to pretend otherwise.
Once you have the XML instance, just call the namespace method with the
prefix to get the correct Namespace instance to use.
Or even simpler, create the Namespace
The test player in the IDE is too old. f4v support was added to the
player after CS 3 was released.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Steve Abaffy skriver:
what is going on here???
Each DisplayObject can only be on one display list. Trying to add it to
another one when already on a list will automatically remove it from the
first one before it is added to the second one.
___
Steve Abaffy skriver:
Great then how do I use the same image in two different spots??
In general it is impossible.
But bitmaps are an exception. You see, by using the same BitmapData
instance with multiple Bitmap instances you can save a lot of memory by
showing the same data as many times
Micky Hulse skriver:
Basically, I needed a way to test if my class was assigned to the FLA
as a Document Class, or, if it was assigned to movieclip/sprite in
library (export for actionscript) and added to stage manually.
You are missing two cases:
The first one is if it was never added to
Micky Hulse skriver:
After I posted my code, I changed this line:
public class Test extends Sprite {
... to this:
public class Test extends MovieClip {
I assume that is how I would account for a timeline instance?
Nope. Timeline instances can, but doesn't have to, be Sprites too. And
the
Mattheis, Erik (MIN-WSW) skriver:
1. The SQLConnection is asynchronous. Is there a possibility the function variable
sql would get garbage collected before the event handler fires?
It is a local variable. Yes, it is up for garbage collection the instant
the function returns. So if the
1 - 100 of 508 matches
Mail list logo