I have tried out the strings panel and locale class. But here the problem is
I cant get the text assigned inside the movie Clip.
User can also change the language manually by clicking on the button. But
I run into a problem assigning the text inside a movieClip. Is there any
samples for assigning
You might want to check out the Strings panel and the Locale class,
available in Flash MX 2004, Flash 8, and Flash CS3. They were designed
to support multilingual content.
HTH,
Francis Cheng | Sr. Technical Writer | Adobe Systems Incorporated
-Original Message-
From: [EMAIL PROTECTED]
[m
Thanks for your information leandro
But I have some more doubts like how do you assign the text inside an
MovieClip? Whether we have to give the reference of the array in each text
inside the movieCLip...
Really I am much confused about that
Looking forward for more ideas
Thanks
Durai
www.expertb
For naming instances etc.. on stage, I suggest you read this:
http://www.adobe.com/devnet/flash/articles/as_bestpractices.html
regards,
Muzak
- Original Message -
From: "Hans Wichman" <[EMAIL PROTECTED]>
To:
Sent: Friday, May 11, 2007 12:15 AM
Subject: Re: [Flashcoders] looking for libr
Let's see some code. It sounds like you might be stuck in a loop where
you are waiting for the value of something to change before proceeding.
If it takes too long for that value to change and you continue to loop
you will timeout your script and get the alert. You might be better off
using
symbols with no linkage and no class attached:
mc:movieclip_name
btn:button_name
gf:graphic_name
Since the library defaults to sorting items by name, items of the same type are
then grouped.
Everything else (components) starts with an uppercase (and camelcase)
ComboBox
MyCoolComponent
Applicat
kill the WHILES ;)
Marc Hoffman wrote:
I have a complex web site that does some early xml loading as well as
loading another movie (an intro) in a higher level. On rare occasions,
I'm getting the alert about a slow-running script in Flash, which
freezes the movie. Clicking "yes" to abort the sc
Hi,
If a script takes more than 15 seconds to complete then you get that error.
AS3/Flash 9 player allows you to modify that value.
Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message -
From:
I have a complex web site that does some early xml loading as well as
loading another movie (an intro) in a higher level. On rare
occasions, I'm getting the alert about a slow-running script in
Flash, which freezes the movie. Clicking "yes" to abort the script,
then refreshing the page, solves
mc_A.setDepthAbove( mc_B );
mc_B.setDepthTo( DepthManager.kNotopmost );
This works-- that is, sets mc_A above mc_B-- in my stand-alone SWF,
but doesn't work when loaded... could be just how things shake out...
Upshot is that, given that these are triggered by bitmap loads (
If you are simply ticker taping the text consider using scrollRect, much
smoother and as it is just a bitmap copy quite fast too.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of pedr browne
Sent: 10 May 2007 07:44 PM
To: flashcoders@chattyfig.figleaf.com
S
Hi,
ok thanks, so let me get this right, a clip in the library can be called eg
MC_Foo and on stage its called MC_Foo as well, with caps?
And when you reference to this clip from a class or movieclip subclass, do
you create an additional field for it (eg myMC_Foo) and copy the reference,
or do yo
yes
had the same problem
hard to choose:
smooth animation or slick sharp fonts :)
Rákos Attila wrote:
pb> I have a seemingly simple situation which is causing me a real problem.
pb>
pb> I am moving a dynamic textfield along the x-axis and the text seems to
pb> vibrate, making it virtually unre
Hello all,
I just spent the last way too many hours tracking down an issue that
made a site that I built in Flash 8 not function correctly with
Player version 9.0.45. It worked fine with 9.0.28 and versions before.
It turned out that the new version of the player didn't like the old
cros
Hello!
Recently I've been looking into the (undocumented) behavior of the
garbage collector in the new Actionscript virtual machine (Flash
players 9 and up). What I've found is, there are probably two garbage
collectors, one of which handles variables generated by Actionscript,
while the
hi Dan,
i'm testing your code and this operates correctly:
//Flash
import mx.utils.Delegate;
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.load("site.xml");
xml.onLoad = Delegate.create(this, onLoadXML);
function onLoadXML(success:Boolean):Void {
if (success) {
var temp:String = this.xml.
if swf3 loads into level_1
then in your setup the swf3 will overwrite the swf2, eventhough that
swf2 has loaded the swf3
that is because they both load to _level1 and their is only one level1
in your flash projector
so only the content of root and swf3 will remain
hence their can be multiple _
The function invoked by asfunction should be in the parent movie clip
of the textfield.
Attila
DW> After my xml is generated I have a node:
DW>
para2>>
DW>
DW> I have a htmlEnabled text field which I populate with the above node, but I
DW> can't get the testing() function to fire using asfun
nc> If I load a swf into level 1 of my root time line, and then load
nc> something onto level 2 of the swf i just loaded, which level is it on
nc> in relation to the root? do the numbers add up, or do we start
nc> counting from each level again?
Levels are global in a Flash movie and independent
Disregard this question, I'm forgetting that my text field is wrapped in a
movieclip. Sorry.
-Dan
On 5/10/07 12:07 PM, "Dan Wade" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> After my xml is generated I have a node:
>
> para2>
>
> I have a htmlEnabled text field which I populate with the above no
function rgbToMatrix ( r, g, b, a )
{
var matrix:Array = new Array();
matrix = matrix.concat([r, 0, 0, 0, 0]); // red
matrix = matrix.concat([0, g, 0, 0, 0]); // green
matrix = matrix.concat([0, 0, b, 0, 0]); // blue
matrix = matrix.concat([0, 0, 0, a, 0]); // alpha
retur
upper_mc._visible=false
can work too
or you can also swap the depths of upper_mc and down_mc
MovieClip.swapDepths
*Availability*
Flash Player 5.
*Usage*
|myMovieClip| |.swapDepths(| |depth| |)|
|myMovieClip| |.swapDepths(| |target| |)|
*Parameters*
|target| The movie clip instance
just make sure the upper_mc clip hasn't got mouse events attached to it
like onPress and onRelease onRollover , ...
then the one underneath should be accessible even it is totally covered
by the upper_mc
make two layers and add in the higher one an mc called upper_mc
and in the lower one under_
Hello,
After my xml is generated I have a node:
para2>
I have a htmlEnabled text field which I populate with the above node, but I
can't get the testing() function to fire using asfunction.
Is the syntax correct here or am I missing something?
Tia,
Dan
A simple test shows DepthManager does work correctly in a loaded SWF...
sorry for the too-quick post-- I'll have to crawl thru my code to
figure out what's making it not work!
Thanks,
--Dave
I think using depth manager in a code where movie is loaded thru
loadmovie
don't cause any pro
If I load a swf into level 1 of my root time line, and then load
something onto level 2 of the swf i just loaded, which level is it on
in relation to the root? do the numbers add up, or do we start
counting from each level again?
so this is the set up again:
root loads
swf 2 into level 1, wh
yes, I am using AS2 (will be for a while I guess) ,
Thaks will look into all of these!
Nik
On 5/10/07, Leandro Amano <[EMAIL PROTECTED]> wrote:
Hi nik!
What ActionScript version are you using?
regards
Leandro Amano
On 5/10/07, nik crosina <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> Is there a way
I use the following naming conventions for both library and instance.
MC_Foo for movieclips
BTN_Foo for buttons or movieclips that behave as buttons
GR_Foo for Graphic Symbols
FONT_Foo for font symbols and their linkage IDs
VID_Foo for Video symbols, not for instances, though
I use the foll
In my original message I mentioned that ExternalInterface didn't work
with my custom javascript function call. It only worked with the
direct call (or execution) to window.open.
--
Paul Chang, Ph.D.
PCD.
On May 10, 2007, at 10:47 AM, Muzak wrote:
You're not "calling" javascript (as in: in
Nasty bug with Publish Profile XML importing.
I've got a publish profile that has my class path set up.
If I export that publish profile, the resulting XML has the class path
in it. See line 76.
74: 2
75: 1
76: ./classes
77:
When I import this publish profile xml file into the same Flash
pb> I have a seemingly simple situation which is causing me a real problem.
pb>
pb> I am moving a dynamic textfield along the x-axis and the text seems to
pb> vibrate, making it virtually unreadable.
pb>
pb> The textfield is multiline, autosizing and created dynamically, with
pb> embedFonts set
HPB> I´m not sure if it´s possible, and didn´t have time to try caus I´m in a
HPB> rush to finish the site.
HPB>
HPB> The site has an e-mail form, and I´d like to know when the user has typed
HPB> "enter" key, so that I can send the message body to php with "/n". First
HPB> idea on mind, sho
Anti-alias for animation (not readability)
--
eric e. dolecki
senior interactive engineer
http://www.ericd.net
On 5/10/07, pedr browne <[EMAIL PROTECTED]> wrote:
Hello,
I have a seemingly simple situation which is causing me a real problem.
I am moving a dynamic textfield along the x-axis an
On 5/10/07, Alen Balja <[EMAIL PROTECTED]> wrote:
I was assuming that AS3 might provide some options. I was only using it in
Flex though, and not the RTE. I will definitely check it, but your idea
seems a bit like an overkill :)
Oh, absolutely - I'm not suggesting it as a solution for your prob
You're not "calling" javascript (as in: invoking a Javascript function), you're
executing it directly.
Have you tried calling a jas function in the browser rather than executing js
directly?
regards,
Muzak
- Original Message -
From: "Paul Chang" <[EMAIL PROTECTED]>
To:
Sent: Thursday,
Hello,
I have a seemingly simple situation which is causing me a real problem.
I am moving a dynamic textfield along the x-axis and the text seems to
vibrate, making it virtually unreadable.
The textfield is multiline, autosizing and created dynamically, with
embedFonts set to true. It is style
I was assuming that AS3 might provide some options. I was only using it in
Flex though, and not the RTE. I will definitely check it, but your idea
seems a bit like an overkill :)
On 5/10/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:
I've done it in the past (although in the end I didn't use it)
Hi Danny, it would be multi line text and I don't know if it will be center
aligned. Maybe some parts will be. I didn't really get the technique you
described. Can you please try and describe it again? Or is it possible that
you share the code that you have? I can even compensate it somehow if it
Hi Durai,
One time I developed something seemed for Blue Tree Hotels.
I have create a package os classes named MultiLanguageTextField, that simply
it was registered in cadastre in one Array with various objects with id and
values (similar mx.lang.Locale built-in class).
When i need change language
Hi nik!
What ActionScript version are you using?
regards
Leandro Amano
On 5/10/07, nik crosina <[EMAIL PROTECTED]> wrote:
Hi
Is there a way I can make movie clips transparent, so that the mouse
reacts to buttons that are under them?
I have the problem of buttons switching on large areas of c
try ._visible = false on the mc buttons above
or check out event bubbling in AS3. I'm guessing you are doing AS2 though.
On 5/10/07, nik crosina <[EMAIL PROTECTED]> wrote:
Hi
Is there a way I can make movie clips transparent, so that the mouse
reacts to buttons that are under them?
I have the
Either set the clip's _visible=false
Or get rid of any event handlers/onRelease/onPress handlers on the clip e.g.
delete clip.onRelease
Ian
On 5/10/07, nik crosina <[EMAIL PROTECTED]> wrote:
Hi
Is there a way I can make movie clips transparent, so that the mouse
reacts to buttons that are und
my solution should work [see previous post]! have you tried it? or am i
wrong?
Brian Williams wrote:
I may be wrong, but I don't think you can do it just with a color matrix,
but you could try drawing the solid color you want to tint with, and use
the
greyscale image with the hardlight blendm
never mind, using colorTransform instead - much easier, but had to adapt
some other stuff. Would seem I can't have a single solution using
colorMatrix - nevermind.
Cheers
M
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or se
Does it need to be using ColorMatrixFilter ? I have a Tint utility class
that does exactly what you want but it's a simple color transform on a
MovieClip:
http://www.daroost.ca/download/Tint.as
It's in AS2 but I guess you could try and change it to work in AS3 ...
HTH
Alain
-Original Messa
Hi Jason,
[]'s = hug's, regards...
I finished to send another example with getPixel().
But I did not understand its email of reply, is an attack?
I'm sorry for some aggression badly understood...
bye
Leandro Amano
On 5/10/07, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>Please, test the code
Hi Lists
I need to implement multilingual content for my games. I have only
theoretical knowledge about the multi lingual content. I have not done any
things regarding this so far..
Could anyone suggest what would be the best way to implement? I would like
to implement in these versions
Hi
Is there a way I can make movie clips transparent, so that the mouse
reacts to buttons that are under them?
I have the problem of buttons switching on large areas of content,
that then cover (with their rectangle outline, buttons that shoulds
still be accessible below them which I can't then
I never had a problems width depth manager. =/
Please, you can show the actionscript code?
regards
Leandro Amano
On 5/10/07, David Cohn <[EMAIL PROTECTED]> wrote:
Hey all,
It seems the DepthManager doesn't work with SWFs that have been
loaded. At least, I have a project where the DepthManage
In AS2, variables and instance names they start with lowerCase characters or
_ or $
In AS3, names in library starts with upperCase, beacuse it's the class name.
Symbol name and linkage name tehy need are the same.
regards
Leandro Amano
On 5/10/07, Hans Wichman <[EMAIL PROTECTED]> wrote:
Hi,
I think when a certain % (fill in at will) of the project you are
developing contains 'user interface like' aspects (buttons, ddlb's,
etc.) it is probably better to switch to Flex. It will save you tons of
time. Where that line is, depends on too many other features of the
project. Hard to draw the
Here are a couple of button actions:
import flash.external.*;
mcEI.onRelease = function() {
if (ExternalInterface.available) {
ExternalInterface.call("window.open", "http://www.paulchang.com/";,
"win", "height=600,width=800,toolbar=no,scrollbars=yes");
}
}
mcGetURL.onReleas
Hi,
I´m not sure if it´s possible, and didn´t have time to try caus I´m in a
rush to finish the site.
The site has an e-mail form, and I´d like to know when the user has typed
"enter" key, so that I can send the message body to php with "/n". First
idea on mind, should be a listener that wo
>>Please, test the code below:
>>
>>import flash.geom.Transform;
>>import flash.geom.ColorTransform;
>>var transf:Transform = new Transform(mc); var
>>color:ColorTransform = new ColorTransform();
>>transf.colorTransform = color; color.rgb = 0x99;
>>trace(color.rgb); trace("0x"+color.rgb.toSt
get color through getPixel method:
import flash.display.BitmapData;
var mc:MovieClip = this.attachMovie("mc", "mc2", 1);
var bmp:BitmapData = new BitmapData(mc._width, mc._height, false);
bmp.draw(mc);
color = bmp.getPixel(mc._x, mc._y);
trace(color.toString(16));
[]'s
Leandro Amano
On 5/10/07,
you can test for colour by taking a bitmap data snapshot and using getPixel
or getPixel32 on it.
On 5/10/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:
> ...I am wanting to run a color of instance test. I am
> wondering if I can do this?
>
> attachMovie("shapes","shapes",num);
>
> if( shapes /*
Take a look at the BitmapData function:
getColorBoundsRect()
It might be handy. It can certainly tell you if a clip contains any
specific colour (if you take a BitmapData copy of the clip first).
If not, I guess getPixel() and getPixel32() might be of help.
Hope that's helpful,
Ian
On 5/10/
I think using depth manager in a code where movie is loaded thru loadmovie
don't cause any problem..
Can u mail the code so that we can rectify it...
Or you can try the same code with movieClipLoader class
The movieClipLoader class is much better for than loadMovie and we can
control those eve
Hi,
could someone point me to a clear set of library item naming conventions?
I know they must be out there, but cant seem to find any (that I like).
I tend to use the same conventions as in code, so for example I use
MyMovieClip for a library item and myMovieClip for an instance of that item
on
Please, test the code below:
import flash.geom.Transform;
import flash.geom.ColorTransform;
var transf:Transform = new Transform(mc);
var color:ColorTransform = new ColorTransform();
transf.colorTransform = color;
color.rgb = 0x99;
trace(color.rgb);
trace("0x"+color.rgb.toString(16));
if (par
I don't think u can check the color of the mc which is set at authoring time
When u set the color of the mc through a color object u can retrive the
color
Here is the code
var my_color:Color = new Color(mc);
my_color.setRGB(0xFF);
// my_mc turns red
trace(my_color.get
I will be out of the office starting 2007-05-10 and will not return until
2007-05-14.
I will respond to your message when I return.
Best regards Robert Jakobsson
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the ar
> ...I am wanting to run a color of instance test. I am
> wondering if I can do this?
>
> attachMovie("shapes","shapes",num);
>
> if( shapes /*color*/ == 0x33){
> // action(s)
> }
>
> // this is sudo code but basically I want to know if I can
> test for color.
A library symbol doesn
Hey all,
It seems the DepthManager doesn't work with SWFs that have been
loaded. At least, I have a project where the DepthManager is working
fine, but when I use loadMovie to load the SWF into a container
movie, none of the depths are being set...
Is this a known limitation? Or is ther
I may be wrong, but I don't think you can do it just with a color matrix,
but you could try drawing the solid color you want to tint with, and use the
greyscale image with the hardlight blendmode on top. I think that should
give you the desired effect.
check out http://www.simpelfilter.de/en/gru
I haven't done animations so I can't really help you there, but as for
your other question:
* what's better practice: creating an emptyclip on the parent outside the
class and pass the empty instance in to the constructor, or pass the parent
in and let the class create an empty clip if needed?
...I am wanting to run a color of instance test. I am wondering if I can do
this?
attachMovie("shapes","shapes",num);
if( shapes /*color*/ == 0x33){
// action(s)
}
// this is sudo code but basically I want to know if I can test for color.
Thanks,
Vdst.
_
Hi,
I've been trying to build a video player application (Flash 8) which is
configured via XML files, but am continuing to experience problems relating
to "metadataReceived" not getting fired off from the FLVPlayback component.
Seems it works fine from my hard drive all the time, but only 50% fro
Is it possible to change the timeout duration for sendAndLoad? I'm
using it to convert images with php, and it sometimes takes more than
30 seconds to get any data back from the server.
// Rickard
___
Flashcoders@chattyfig.figleaf.com
To change your sub
We have a download folder on our file servers which is where every
download goes. It gets backed up nightly. At the moment the folder is
10.6 GB and growing rapidly. Has saved us heartburn many times.
RT
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Be
> I assume, I'd always be able to download the file from Adobe as well.
I have had a few occassions where I've had to re-download an item. Adobe has
always been very good about it. The only time I had an issue was last month
when I borked my installation of Acro 6 Pro on the Mac and could not fi
So that comes down to
function(a:String, b:String, c:String, d:String):uint {
return a.charCodeAt(0) << 24 | b.charCodeAt(0) << 16 | c.charCodeAt(0)
<< 8 | d.charCodeAt(0);
}
thanks :)
And no not for DeluxePaint, I'm trying to read Sims 1 object files into
Flash, which are also encoded in IFF
Hi list,
when programming in AS2 i usually favor composition over inheritance, so eg
when i have a button i create a class for it passing in a parent container
and the class attaches all the objects it needs on the parent and wraps it.
However when i want to animate a number of these buttons wit
On 5/10/07, David Holroyd <[EMAIL PROTECTED]> wrote:
Are you porting DeluxePaint to Flash? ;)
I have to say - that crossed my mind, too. :-D
Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://
Hello,
I think I've found the first bug in flash CS3. To reproduce it,
open a new Actionscript File document and paste in this:
package {
public function distanceAbove(other:Item):Number {
return (myY + myHeight / 2.0) - (other.myY -
other.myHeight / 2.0);
}
}
Chec
> On 5/10/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:
> > I've done it in the past (although in the end I didn't use it) by
> > creating a function that homes in on the exact coordinates of the
> > insertion point by adding text into a hidden field and
> using textWidth
> > / textHeight (the
On Thu, May 10, 2007 at 10:06:27AM +0200, Frank Pepermans wrote:
> I'm trying to get AS3 to parse an IFF file, more specifically the EA IFF
> 85 file format, using the byteArray.
>
> For now the best documentation I've found is this link
> http://www.martinreddy.net/gfx/2d/IFF.txt and a C script c
On 5/10/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:
I've done it in the past (although in the end I didn't use it) by creating a
function that homes in on the exact coordinates of the insertion point by
adding text into a hidden field and using textWidth / textHeight (the tricky
part is finding
> Hi list, any tips on how to create a text highlighter? The
> perfect solution will be that I use the text cursor inside
> the textfield. Now, I was thinking of using drawing API on
> the invisible mc below the textfiled and when I would click
> in the textfield I would start drawing a rectan
not sure I made myself clear - given a desaturated greyscale image I need to
be able to tint it to an RGB value - so black stays black, white stays white
and rgb=128,128,228 (50% grey) is the actual colour - with all the shade in
between. I need to be able to do this by using code like this:
[as3
Hi,
I'm trying to get AS3 to parse an IFF file, more specifically the EA IFF
85 file format, using the byteArray.
For now the best documentation I've found is this link
http://www.martinreddy.net/gfx/2d/IFF.txt and a C script called
IFFDigest.
Now since I've never done anything in C, there
show us some code.
- Original Message -
From: "Paul Chang" <[EMAIL PROTECTED]>
To:
Sent: Thursday, May 10, 2007 6:07 AM
Subject: [Flashcoders] popup blockers and flash
> I've been experiencing some inconsistent behaviors using ExternalInterface
> (AS2) to call JavaScript to launch a
Thank's Leandro, but this is not my question..
I want to know if is necessari to unload the SWF before remove the MC, for
optimises the flash player.
Regards!
2007/5/9, Leandro Amano <[EMAIL PROTECTED]>:
removeMovieClip method clear the object create from createEmptyMovieClip
method in cache.
Awesome! Thanks, that worked perfectly. My problem was that I had
nothing on Stage (everything that I need was set to export), so the
MovieExplorer couldn't find anything. What I did to solve it was to
throw everything that was set to export onto the stage. Then it was just
a matter of typing the f
I think you can use the movieExplorer with the text selected to know which
texts were in the scenes. That would display the textfiled with the fonts
used and weight other things...I hope this would solve ur problem
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Beh
Hello! Does anyone know how I can find the exact assets that are using
dynamic textfields (embedding a specific font) in my fla?
When I generate a size report, it shows me what fonts (and characters)
are being embedded, but not where those fonts are being used. My FLA
file is really large, so i
86 matches
Mail list logo