int matrix[3][3];
for(i=0;i3;i++)
for(j=0;j3;j++)
matrix[i][j]=0;
You have to create the initial array and then create any sub array. Kinda
like:
matrix = [];
for(i=0;i3;i++) {
matrix[i] = [];
for(j=0;j3;j++) {
matrix[i][j] = 0;
}
}
What do you think about this? About modifying the MovieClip.as -it cant
be of good practice?
It isn't. Usually you shouldn't even think about it.
However, I believe both of these tweens work without major problems or
warnings under AS2. The only problem I know is mctween can't tween sound
http://www.fnordware.com/superpng/samples.html
I’m not really sure what the name of these type of gradients are, but they
are usually found in color selectors in graphics tools i.e. Photoshop. And
have four colors equally bended from each corner.
Could you give me a hint on how I could achieve
Hi All. I'm an advanced beginner, i know the basics, how the application
works, a bit of actionscript... Now I was wondering how did the
pro's/advanced users evolve from here?
Did you use a book(s) or just a lot of tutorials and experimenting? (What
book(s)?)
As someone said, most people
I am trying to apply a tween class to a textfield. Nothing I do to it
seems to
work. Ive tried using the class on the textfield itself as well as
placing it
in a movieclip first and applying the class to that. Is there something
im
missing?
It depends on the class. No one can tell you in
The only thing I really like on the surface of this merger is the fact
the Macromedia apps will get tabbed palettes back.
Doesn't Flash 8, Dreamweaver 8, etc. already have that? At least, they
do on my machine. Unless what you mean by a tabbed palette isn't what I
am thinking.
Not really.
Actually you can group panels together in Flash 8, and they'll have tabs.
Click the icon on the right in a tab header and select Group [PanelName]
with. Then choose the panel you want it to be grouped with. Once they
are grouped, they'll each have a tab.
There seems to be a bug: the first
My question is, I would like to know what kinds of things I could
utilize After Effects for (BESIDES nifty effects in digital video clips,
obviously), for my Flash work - just some ideas from those of you who
know it and use it for effects in their Flash projects.
Nothing. Nifty effects in
Nothing.
Zeh, I don't 100% believe you. :) I know After Effects is for motion
effects, and primarily for video, but I could have sworn people have
used it for image sequences for movie clip effects in Flash movies. For
example, there is a neat effect you can do with Photoshop where you
Is it easily possible to create images from binary data today in Flash8?
Or do we have to wait for 8.5? and What would the approach be in flash8?
You can do both - decode binary data to form an image, and encode binary
data from an image. However, you would need to code the image
I've noticed that text in files created in Flash 8 default to Anti-alias
for readability . What is the default setting of SWFs that were
published
in Flash 7 or earlier. In order to get the benefit of the best looking
font
would we need to republish these files from the Flash 8 IDE?
The
Would this be a correct use of parseInt?
parseInt (_root.first)
Yes, but it's usually a best idea to pass the number base as a parameter -
in this case, 10 for decimal
var xx = parseInt (_root.first, 10);
If you don't, it will still work, but if you have some number with trailing
zeros
Oh has anyone made the zigo engine class based sort of thing? rather
than extending the movieclass?
Yes, it's called Fuse, and it's based on the zigo engine:
http://www.mosessupposes.com/fuse/index.html
(Note that there are other clean tween engines out there)
And I would add that it's a
Just discovered this. I have a character moving across the screen at a
very slow rate. His complete journey should be around 20 minutes, making
every frame increment at 0.02565278. However, adding this to _x
isn't even registred, meaning adding 0.02565278 to 0 (as _x) means
_x
I would use zmc_tween:
http://hosted.zeh.com.br/mctween/using.html
#include zmc_tween.as
...
Of course I'm using his old stuff.
Just remember that, in this case, the filename would be mc_tween2.as, and
it's not so old. Just oldschool. :)
i want to create a tween that loops the _y value of
In 'back' easing: the fifth parameter means 'overshoot'. In words by Mr.
Penner himself, slightly edited:
a controls the amount of overshoot: higher a means greater overshoot
a has a default value of 1.70158, which produces an overshoot of 10
percent
a==0 produces cubic easing with no
i found a prototype on a website for easing. it works in their fla... i am
trying to get it work here. when i load the swf, nothing happens... the
object i am trying to ease is ball1 is the instance. the name in the
library
is test.
Regardless of the code you have in hand, you might want to
Thats very cool too - but I would like to dynamically affect the position
of
a MC, not using a tween engine where i tell it go from here to there. I
just
wanna be able to tell a mc to be:
a scale
an alpha
at this x, y
and when I move my mouse up/down, affect all three of those, while moving
it
I haven't dug very deeply into the tween class. Anyone know if it is
possible to do shape tweens with it (or has someone written a custom class
to do this)?
Well, short answer: you can't do it. It isn't a matter of building classes
for it; you can't just modify an existing drawing.
There
I'm wondering if AS2 offers any advantages to me, or if sticking with AS1
would be better. Is AS2 (and now 3) the natural progression of Flash
coding,
is there even a future for AS1, all the useful libraries seem to be AS2
only
these days too, perhaps that alone is a reason to switch. I'm
I agree with what's already been said - and just wanted to say that one
of the big advantages you may find with AS 2 is the debugging features
you get by typecasting, and also the re-usability of classes. Once you
really get into it and start creating your own libraries, your
efficiency level
I have a movieclip animating across the stage using a tween in the
timeline. Halfway through that tween I'm using AS to set the _alpha of the
clip to 50%. At the moment I do this, if forgets about the tween in the
timeline and stops moving. Why is this happenning? How do I tell Flash
that I
from blurred to clear. Am I missing something here that would make my
clip, main_image_mc, smoothly transition? Would you consider this the
best practice for doing a blurred image-clear image transition?
It seems to work as expected here.
However, I don't know if that's what you're
Another good article on something like that is this --
http://www.mactech.com/articles/mactech/Vol.12/12.08/GXRigidBodyDragging/index.html
It's done for some kind of Apple scripting language, but of course the
important part (trigonometry) still holds. That's what I used as a guide
when I
Another good article on something like that is this --
http://www.mactech.com/articles/mactech/Vol.12/12.08/
GXRigidBodyDragging/index.html
Here's one of my test SWFs by the way, so you can see what I'm talking
about:
http://hosted.zeh.com.br/misc/novo2.swf
looks great!
i thought that
There's something that I really can't understand in Flash 8
Before ('till Flash 7), if you made a 100 pixels object animation in 10
frames, flash knew how to display a 1/10 pixel and the animation was
quite smooth.
That was sometimes a problem because when we wanted a aliased display, we
i got problem with jpg image in flash, when publishing to 7 it looks
better (if scale is lower then 100) then when published to 8,
does anyone have the same experience?
It's because, when publishing to Flash 8, the flash player properly respects
the smoothing property of each image, instead
Maybe Microsoft took their own initiative, but it is still a reaction to
Eoals. If Eolas wasn't pushing their bogus patent,
Microsoft would not have done this. Its silly to say they did this to
hurt Adobe as it affects all active x objects
including Microsoft's own windows media player. The
actually, I'm not sure if localToGlobal does anything with the scaling.
I have the feeling it simply adds coordinates of parent movieclips to the
local
ones..
I'm not sure what you're doing and how, but it *does* take into
consideration the whole movieclip matrix info - rotation, scaling,
actually, I'm not sure if localToGlobal does anything with
the scaling.
I have the feeling it simply adds coordinates of parent
movieclips to
the local ones..
I'm not sure what you're doing and how, but it *does* take
into consideration the whole movieclip matrix info -
rotation, scaling,
When I found this out It confused the hell out of me as
localToGlobal had never worked like that before - I just
assumed I'd never used it with anything scaled by hand before
and wrote that off as the reason.
Now if what you're saying is true then it gets even more confusing.
One difference may
That is exactly what it does, eg 0x73 becomes 7558485, but that's not
what I need. I need it to stay hexadecimal, but to be recognised as a
number type. It shouldn't be converted, its type needs to be changed.
Well, a number is a number - 0xff *is* 255. If you need it to be hexadecimal
I'm using MC Tween on some navigation blocks. Three blocks on top of each
other, they start out equal in side, when you click on one, it opens up
and
the others close up.
This involves tweening the clip's height and y coord. It works great for
basic MCs(see the good link below), but when I
Im trying to find a way to duplicate one movie clip into a new movieclip
so
that it can take advantage of the new target MC's rotation, location etc.
It looks like duplicateMovieClip is what i want, but as far as i can tell
it
seems to only duplicate an MC within the same parent MC - is this
Interesting, a movie set at 30fps plays around 29/30 in the ide using the
below code, but does indeed return 23/24 fps in IE.
I knew flash ran better in the ide - but that is quite a difference.
From what I've learnt, that kind of stuff happens even when there's nothing
being processed - ie,
With Flash 8, is there a way to turn a bitmapped movieclip into a PNG or
compress it somehow to send it back to the server as a bitmap at runtime?
I
imagine you could send it as raw bitmap data, but it would be quite large.
This has been discussed a while ago, but briefly --
Yes, you have to
I probably have a really simple question.. I have a movieclip which
containts the menu items (each button is a movieclip), and know one
section has a white background so the white buttons become invisible. Now
I would like to invert/change the colours of the buttons. Only when I use
setRGB() of
Check setTransform on the help docs. But briefly, to invert a movieclip
(make it 'negative', you can do:
new Color(myMC).setTransform({ra:-100, rb:255, ga:-100, gb:255, ba:-100,
bb:255});
Yes, I found some similar code too, only doesn't seem to work. You can't
invert it again to get white
Hi,
I remember when Flash 8 player was released there was a tool that would
change
a swf to make it act like a Flash 8 one, but I can't find that now.
I just have a little app that loas images, and want to convert it to F8 so
it
can load pngs.
I've tried playing with mtasc but it's a pretty
does anyone know if you can load two flv's then put them together somehow.
I need to be able to play the two flv's as one and be able to scrub the
whole thing too.. Anyone have any ideas?
Well, IMO: you don't have to merge them - you can load them as two
different files and have a separate
If I have a swf that's embedded in an html page that lives on the root of
the site, does the xml file the swf is trying to load need to also exist
in
the root? I was thinking the path to the xml would be relative to the
swf's
location in the directory structure, but I'm thinking this isn't the
between. I have read about this in various place and what not. I just
wanted to hear from somebody else who also had experience with this
issue. the solution is just to export flv's at a high frame rate. so you
get way more keyframes. right?
after sayng and asking that. how does youtube seek?
I am having problems with a MC (instanceA) that has quite a few Zigo Tweens
(ver. 1.2) on it's children MCs, with delay parameters spanning over
approx. 90 seconds. InstanceA is one of 19 MC instances that sit on
consecutive frames in the parent MC. This parent swf is loaded into an
interface
tried to resolve it by changing the # of frames / seconds,
but this is somewhat tedious to match up between the 2 objects.
Can anyone offer a suggestion on how to resolve this issue so
that the 2 objects start tweening simultaneously? Any
suggestions on an alternate class?
I never user
of MovieClipB inside of it? In theory, I should be able to set the color
of MovieClipB, and thereby change the appearance of all instances of
MovieClipA? Doesn't work though -- it only changes the appearance of the
instance of MovieClipA in which I changed the color of MovieClipB.
It doesn't
So, the following script will cause a MC to fade in. What would I change
to make a MC fade out?
You could use the alphaTo property of the tween class. It's much easier.
Just to add: yes, use any other of the tweening extensions or classes
available (fuse kit, laco tween, mctween). It's
Hey guys gals
I am looking for a few examples of cool uses of the bitmapData api
Not only fancy but clever practical examples too
Any links would be greatly appreciated :)
The most 'practical' approach would be of storing loaded images as
BitmapData to allow reuse (and smooth bitmap use!) of
I recently hired an assistant and we need to share and simultaneously work
on .fla files over a local network.
There must be tools for this, but a search on google didn't yield anything
(must not be using the right terminology).
There isn't. Only one people can work on a .FLA at a time.
You
Makes sense. Thanks Zeh.
Maybe you can tell me if there if there is any way to ensure that
accessing fla files over the network is stable. I know in the past that
flas have disappeared on me when working off a network drive. I'm
guessing you'd say that I should duplicate whatever it is and
Did ya'll know it's possible to code AS 3.0 in Flash 8 IDE now too?
To coincide with the release of Flash Player 9
http://www.adobe.com/products/flashplayer/ and the underlying
ActionScript 3.0
http://www.adobe.com/devnet/actionscript/articles/actionscript3_overview.html
language, we are
This seems pretty clear to me...
This preview extends the
capabilities of Flash Professional 8 to include support for the new
ActionScript 3.0 language in Flash Player 9.
http://www.adobe.com/go/labs_flash9as3preview_downloads
Did you follow the wrong link
No, man, it's the same link. It takes
Well, I am unable to download it... the download isn't available on:
http://www.adobe.com/products/flex/?e=labs_flpro9_as3
Maybe I am blind? The link above is what I get when I press on the
download-button at fl9 labspage.
Try this link:
http://labs.adobe.com/technologies/flash9as3preview/
i have to get japanese characters into our application, but as i see it,
there is no solution for this :(
If you embed a Japanese font the file size will increase by 1.75MB or more
per font, so I would not embed Japanese fonts for on-line delivery. I
would use generic device fonts for
Thank you, Dave, for your response. While I realize that I am simulating
download, this does not produce the problem that I am speaking of. I still
get the same issue irrespective if I am under download simulation or not.
I can close the window, re-publish, and then select simulate download...
There is an issue with loading an extermal JPEGs form a remote server.
It seems to be a bug.
I am loading a JPG image to a movie clip and cloning it using
Bitmap.draw(input_mc).
(SWF is hosted on domain A, JPG hosted on domain B.)
In this case loaded JPEG behaves exactly as an SWF loaded from a
Wondering if someone here could provide or point me in the direction of
details on the inner workings of jpeg compression for png images in the
swf format? I am particularly interested in how the alpha channel in the
PNG is translated and stored.
When you import a PNG image with an alpha
Here is my problem, when loading the the .swfs into the main movie,
the first one naturally, is ok. But when I try loading another .swf
to replace the current on, the old .swf is gone but its interval is
still alive and kicking.
What, what?!
What is happening?
setIntervals continue to be
I am looking for a good Php host with decent customer support. Anyone
have recommendations?
I'd recommend www.dreamhost.net. I've been using them for a few years and
they kick ass - you can do almost everything through their control panel
with no hassle, but if you need human support, it's
I am looking for a good Php host with decent customer support. Anyone
have recommendations?
I'd recommend www.dreamhost.net. I've been using them for a few years and
do you mean http://www.dreamhost.com/?
Oops. Yes, I mean dreamhost.com. Sorry.
- Zeh
And if you're wondering why they seem to get good reviews in a lot of
places, it may be related to their policy of paying people to refer them.
I'm also pretty disappointed with most of the sites that review web
hosting, which are in many cases not impartial.
Thanks for letting us know of
Hi All,
I need some ideas how to workaround the following situation
I have na mc as an holder for some photoStrip this photoStrip has n
photos as mcs in it I want to produce some tween over each one BUT
the next tween should only begin after the previous has finished
João,
Your best bet
couldnt you just use 2 methods in your class to control the sequence of
tweens?
// Start a tween for a photo
private function tweenPhoto()
(...)
You see, that's what I'm totally against when writing code:
overcomplication. Going around and around and around to come back and do
something
Thanks very much for your response Martin but I don't understand it. I
don't
have three vars called R G and B. I just have a number which was retuned
from getPixel. Am I being stupid? I can't see how I should do what you
sugest. Pease explain a little further.
That number you're getting is a
5. How do I make a dynamically created input text box retain text
formatting?
Try using .setNewTextFormat(), as .setTextFormat() only sets the current
(existing) text.
- Zeh
___
Flashcoders@chattyfig.figleaf.com
To change your
So I really am in my own little universe. Far out, moon doggie!
I use p_ for parameters, _ for private properties, and $ for (almost)
everything temporary (ie, var functions). Like $tmc for a movieclip.
I think we're each other on our very own universe. :)
Zeh
Forgive me if there is already a thread about Flash 9 performance here on
the list. I don't keep up with this list as well as I should. I just
looked at this, however...
http://www.oddhammer.com/actionscriptperformance/set4/
...and I am astounded by those numbers. Is Flash 9 really that fast?
I have a listBox with 6 labels ( at the moment) and corresponding data.
The
labels are title of a image and the data is the URL of the image.
I'm not sure what the problem actually is since it wasn't stated on the
email, but if you mean that going to the next 'page' isn't working, it's
I have been on this list for years and have seen all the job postings and
have posted some myself. I am looking to hire 5 Flex 2.0 and 3 flash
developers. I have tried posting on dice and monster and have yet to get
resumes that come close to the qualifications that I need. So I have to
ask
where
Oooops, you are right, I meant 0x00
Nevertheless, you had said, 0xff00 (solid black) ??
It's because it has the alpha value on it (ARGB) with a opacity of 255 (100%
opaque, or 0% transparent).
0x00 (or just 0) *IS* solid black, but if you're painting on a bitmap
with an alpha
orry, I'm s rusty with math and hoping someone can push me in the
right
direction. Right now I'm trying to figure out the radius of the 'circle'
that is formed while rotating, but that isn't going anywhere (fast anway).
Just to kinda repeat what everybody has said --
You could easily
There will have to be ??
I propose a test what happens when launching 20 banners ads all fighting
for
fullscreen,
In windows are you able to alt+tab between fullscreen swf's?
Well, this is a huge can of worms.
Thankfully, there's this:
It seems to work but it kills my CPU making everyother thing in the site
not
working and making the video running slowlier. When I go back to fordward
playing everything goes back to normality.
Any clues? Do I have to look for some flaws in my code or is there
something
wrong with embbebed
hi everyone
i found the result is true when undefined = or = any value in
flash2004 and flash8.
that makes me wonder,the result was undefined in my sense as same as
undefined or any value.
i don't know flash player how get that,it really weird...orz
It's because instead of really comparing if
All works fine until I also try to move that mc horizontally using
actionscript and the ._x property, the timeline motion tween stops
working, the mc moves horizontally but not vertically.
Is this just Flash's normal behavior, that moving an object using
actionscript means that the timeline will
Preciso de programador actionscript/flash/php se tiver alguem na lista que
seja do Brasil e esteja disponivel para freela ..responda a este email.
The above email reads:
I need a actionscript/flash/php programmer if there's anyone on this list
that's from Brazil and is available for freelance
when crossdomain , BitmapData.draw Expiration,the swf in a.com,and the jpg
in b.com,have any Solution in this?
No, you can't do a BitmapData.draw from content from other domain,
regardless of crossdomain policy files or whatnot. Solutions are:
1. Use AS3 as this issue seem to have been
/2005-March/132835.html
(you might have to make the target url a parameter, and change the
contentType)
Zeh
i want to know the second method how to do,have any Data in this?
赵洪日
2006-11-09
发件人: Zeh Fernando
发送时间: 2006-11-08 19:44:33
收件人: Flashcoders mailing list
抄送:
主题: Re: [Flashcoders
So far I've only been able to achieve that in Illustrator and then saving
the perspectively squished vectors as a .swf What I'd love to do is to
get
that perspective squish done within Flash 8 using script.
I know about 3D program extensions for Flash like Sandy, but I find them
cryptic (at
Hi Coders,
I have a strange problem. When i try to use an Array prototype with a MC
Tween (http://hosted.zeh.com.br/mctween/) , the callback of the MC Tween
prototype do not work.
Berkay,
One problem might be the fact that you're adding a prototype but not
hiding it for..in loops. This can
Try doing this right after your prototype is created:
ASSetPropFlags(Array, in_array, 1, 0);
Oops, a little mistake - it's...
ASSetPropFlags(Array.prototype, in_array, 1, 0);
...instead since you're adding something to the prototype, not to the
'static' class.
Zeh
Interesting that San Francisco ranks at #34 together with São Paulo. Uh?
So, say if a senior Flash dev earns an average of US$ 80k, so should a
senior Flash dev in São Paulo, right? That'd be R$ 168k, or about R$ 13k
a month (13 salaries per year). I'm living in São Paulo, but i'm not
working
What is that 'Save and Compact' command? Doing so actually caused all of
those tweens to break in mine, so now I'll have to go through and open up
each and re-compile!
Save and compact is the same as saving the .fla with a different
filename - meaning it creates a new version of the .fla file
I'm trying to figure out which tool is best to 3d rotate an image on a
plane.
Something like this:
http://karmapop.com/content/cardFlip.swf
but with a dynamically loaded image on the front and another image
on the back with a font superimposed on it. this is going to be a
postcard.
this is
Mike Dunlop wrote:
function loadMyVars(url,type) {
(...)
}
This always returns false
You are creating events and expecting them to run at the same time; they
won't. They're just skipped and it goes straight to return false after
creating them.
When creating your onLoads, you're just
Ok so I'm having problems with the bitmap data class. I am creating a
marquee of images and duplicating them using the draw method. This works
fine locally, but when uploaded it does nothing. I figure it has something
to do with the fact the I have all my media on a separate server, but I
thought
Hi all,
I'm using the BitmapData.draw method, and I've bumped into a problem. I
need to copy all the pixels from a movie clip, including the pixels
which are on negative coordinates. I've only succeeded copying the ones
on positive coordinates. Has anyone experienced the same thing, and,
But they have. There are capital glyphs, and small capital glyphs
(smallcaps). They're not capital glyphs with a different size, mind you,
as there's change in shape size but not in weight.
http://en.wikipedia.org/wiki/Smallcaps
The more you learn...
Zeh
small capital letters? I didn't
I'm kind of disapointed :
trace (1.3-1) // traces:0.3
but :
trace (9.3-9) // traces: 0.301
trace (100.3-100) //traces: 0.297
...
is there a way that it can traces always 0.3 has it should be normal ?
Since player 8 is out, it seems to be impossible to make a fluent
animation if there are more frames than pixels, i.e a simple 100 pix
tween on _x in 50 frames
It's not really the player, but the compiler.
see example here, it's the same code, juste changed the export player
version, and
related
to textfield, as the problem remains the same with a shape or bitmap
inside a movieClip...
it seems that it's alaways moved on pixels...
++
PiR
Zeh Fernando a écrit :
Since player 8 is out, it seems to be impossible to make a fluent
animation if there are more frames than pixels
The following movie freezes up for no discernable reason, there's not even
any actionscript or tweening or anything. It's just shapes in keys:
http://www.mentalpicture.net/misc/test.html
The small web file (http://www.mentalpicture.net/misc/test.swf) runs fine
directly in the flash player,
I guess an algorithm could be conceived that would somehow infer sub-pixel
values, but this feels like it would be unnecessary faff, and very slow.
Anyone know of a quick-and-dirty way of smoothing a bitmap? I guess I could
render at a higher resolution than needed and scale down, to mimic
I have a project that creates comic strips, and the owner would like me
to make it so that users can download an image of the comics they
create. I have looked around, and found that this is possible to do in
Flash 8, but there are some performance considerations. I've seen it
mentioned a few
Just wondering if anyone else had this problem. I decided to migrate by
asteroids code to AS3, and found most of the commands I used were either
completely removed or redefined. It looks like I'm going to have to
rewrite the entire program rather thans simply change a few things.
Really, really
now the question is (even if it maight seen silly but i don't get the
concept yet), what is the difference between declaring the variables before
methods (after the class declaration) and declaring them inside the method
itself, or even in the method parameters???
In short, declaring them on
i want to create an add-in for flash. But i don't know if it is possible.
There are many add-in tools for software as, for example, PowerPoint.
Have you any ideas about how to add menu or options to Flash IDE? where
should i work?
Yes, there are, through javascript 'macros', and menu and dialog
Is this method bulletproof (it works in all browsers on all operating systems)?
Is this something that you would really rely on for big projects?
Has anyone ever used this method and had big problems with it or even minor
glitches?
It is bulletproof. There's no reason why it shouldn't work.
Anyone have a list of what is deprecated from AS2 when migrating to AS3 (or
even whats deprecated from AS1 to AS2).I'm currently skimming every single
class available in Flash AS2 and want to know what I can skip (i.e: what is no
longer relevant).There must be a list of something like this
Does ByteLoaded / bytesTotal work loading from CDROM ?
when I try, I get ByeLoaded = byteTotal since the beginning...
When loading local content, bytes loaded/total are either 0 or close
values, or the correct number of total bytes. There's no streaming
process involved as it happens
The problem with Chinese characters and a few other sets (japanese,
etc) is that there are too many of them for you to embed, so it either
becomes a case that you need 2mb+ of embedded fonts, or simply set the
textfield to use _sans or _serif as its font. It should work on
this case, because
1 - 100 of 252 matches
Mail list logo