Hi Marijan,
it might depend on what your constants are. For example imagine you had an
interface Shape, with a method setLineType. You could have setLineType
(type:String) (eg dashed), or setLineType (type:Number) (eg 0, 2 ,5). With
public constants you could have the Shape interface declare vars
Hi,
I'm trying to pass a sting variable (var teamName:String) to a dynamic
text field nested inside a couple of layers of MCs. The path is correct
because the text field is being changed by the variable, but the string
itself is corrupted or something because the variable's contents seems
to be
Sounds like restrict is not null.
Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Chris, thanks for your speedy reply (I guess that if I was going to get
a reply at 8.30 in the morning UK time it would have been from Australia!)
Like I said in my initial post, I'm completely new to Actionscript (and
all of Flash, really)
and so your response, whilst I am sure it is the correct
One possibility might be that you're using an embedded font, but
haven't embedded all the characters in that font.
HTH,
Ian
On 7/5/06, Rick Lecoat [EMAIL PROTECTED] wrote:
Hi,
I'm trying to pass a sting variable (var teamName:String) to a dynamic
text field nested inside a couple of layers
This sounds to me like what happens if you embed a certain set of characters
in the field but then pass it a String including characters you haven't
explicitly embedded. I'm guessing you may have pasted a string into the
Include these characters: field in the Character Embedding window? If
so,
There's an attibute on TextField called restrict. It takes a regular
expression of all the characters that are allowed to be entered into
the field. Try setting it to null.
Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
textfield has a retrict value that acts as a filter. Chris is saying
that it may have a value in there already, probably something with the
following letters: M J O E as the Executive is being filtered down
to only e's as the other letters are not in the filter.
btw, what is output when you
Hi, List!
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
Hi,
I want to develop a CD-Based course which requires that I open some word
docs kept in a folder on the CD.
Every time I click the button to open the file a security dialog pops up
asking if I want to Open/Save/Cancel the file.
I don't want this to pop-up on my user's machine and default it to
Ian and Adrian;
You hit the nail on the head; it was indeed a lack of embedded
characters and my own stupid fault because whilst I *had* embedded the
characters for the intended usage (uppercase only) I neglected to stick
to those when I was running my trouble shooting tests, and included
Chris: Thanks for elaborating on the restrict issue. Looks like I won't
need to explore it just yet, but it's good to know about. (Since I'm
very new to the Flash/Actionscript thing and am learning 'on the job'
with a project deadline looming I'm being pragmatic and just learning
the bits of
Danny Kodicek schrieb:
Chris: Thanks for elaborating on the restrict issue. Looks like I won't
need to explore it just yet, but it's good to know about. (Since I'm
very new to the Flash/Actionscript thing and am learning 'on the job'
with a project deadline looming I'm being pragmatic and just
Glad to be of help Rick.
On the font embedding thing v. the font being installed on your machine, I'm
pretty sure that if you specify a font but don't embed any characters then
Flash will use the installed font but if you embed then Flash will only look
to the embedded characters for display and
I'm not sure if it's entirely impossible to assign one class to multiple
movieclips, but if that's true than the easiest way to overcome that problem
is make a baseclass 'Country' and have Brazil extends Country.
You still have the silly task of assigning all your countries to a
different class,
Hi Hans,
as I see it, I am not interested into dashed stuff of a shape,
only thing I am interested in is what can I do with it...
so, I could paint my shape with a brush or draw a line,
up to me to decide and shouldn't be exposed by my interface..
for example:
interface Shape
{
void
I´ve been trying to find the holy grail of Shared Fonts but with no success.
I then decided I just wanted it to work.
I´ve have done this way:
- Packing all the fonts I´m using in my application in a separate SWF,
setting them to Export For Runtime Sharing and also to Export for AS.
- Loading
You got the point. But this silly task wasn´t needed on flash 8.
That´s the point.
Should it be on flash 9? I don´t think so.
Isn´t this the time to ask Adobe to include this feature? But I need
help from others developers to show that this feature is essential.
On 7/5/06, Meinte van't Kruis
But wouldn´t be easier to have composition over extension ?
if you have one generic class that has the country movieclip like an
property of this class
class Country
{
var mcCountry: MovieClip;
var nameCountry:String;
function Country( mc: MovieClip, name:String)
{
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14280
- Original Message -
From: Aasim Momin [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, July 05, 2006 11:20 AM
Subject: [Flashcoders] Bypassing File Download Dialog
Hi,
I'm not sure this is really a 'feature' that is missing since the problem
really boils down to OOP theory. For example, it could be argued that it is
incorrect for the country class to extend MovieClip since a country *is not*
a MovieClip but, rather, *uses* a MovieClip for display. By this
Hello Marcelo,
http://www.sharedfonts.com/eng/faq.html#include
--
Ivan Dembicki
[EMAIL PROTECTED] ||
http://www.design.ru
___
Look at this flash
http://adi.idr.org.br/tpl/adi/mapa.tpl.php
Did you see that every movieClips have different shapes, but the same behavior.
Your suggestion is to drag a Country MovieClip inside each Country and
use it to take control of the parent clip?
On 7/5/06, jcarlos [EMAIL PROTECTED]
Hello Marcelo,
- you need to separate problems.
in first step don't use sharing.
when your app will work fine you can
start sharing your fonts.
MdMS In sum, I╢ve been through a hard time trying to get this shared font thing
MdMS to work with TextFields. With v2 components I got it to work
Back again.
Well, I *thought* it was working...
What do you guys make of a situation where a movie works in Test Movie
but not from the web server? Here's the deal:
variable1:String populates textField1 (initial value = )
variable2:String populates textField2 (initial value = )
Hi list...
The embedFonts line seems to prevent the setTextFormat line from
working. What am I missing? The font univ is in the library, and its
linkage is univ.
Thanks,
- Michael M.
private function createSlideWatcher():Void {
var tf:TextFormat = new TextFormat();
Fonts and Flash on the Mac I am going nuts. Troublesome.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Flash 8 Proffesional...
This is strange, I have an #include init.as, and I get an
**Error** Scene=loading, layer=script, frame=2:Error opening include file
init.as: File not found.
init.as IS in the same folder as the FLA, and I am all confused.?... Any
ideas?...
Thanks... Karim...
Hello!
I have a movieclip which I attach in a container movieclip when I change
the htmlText-property of this movieclip. I would like to know why I
would need to change the textfield in the movieclip to the fontstyle
bold, and italic to be able to use the i-tag. I have embedded the font
in
Try using setNewTextFormat() instead..
Mendelsohn, Michael a écrit :
Hi list...
The embedFonts line seems to prevent the setTextFormat line from
working. What am I missing? The font univ is in the library, and its
linkage is univ.
Thanks,
- Michael M.
private function
Call off the hounds, I've solved it.
it turns out that when the a nested movie clip called the variables it
called them from one nesting level up, and I'd coded that as
_root.variable. Flash was fine with that in testing, but the browser
plugin didn't like it. Once I'd changed the path to
Try setting your textFormat after you apply the text.
Also, I try to make sure the linkage name of the font is the same as the
actual font for the purpose that its easier to read and self descriptive.
Order of operation does matter for this kinda thing, you have to embed fonts
before setting
How are the variables being generated and set?
Are you getting those values from external source such as xml or text file?
I haven't followed the thread... sorry.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rick Lecoat
Sent: Wednesday, July 05, 2006
I also would love to know why textfield work nicely when you test the
movie inside the Flash IDE via Ctrl-Enter/Apple-Enter
but when you check the movie inside a browser such as Firefox the
textfield is blank or only show parts of the defined text.
I am using the htmlText mode of the textfield
Order of operation does matter for this kinda thing, you have to embed
fonts
before setting the text and set the textFormat after, I believe. For
example, I know this works:
Hmmm... Maybe that´s the reason why I´m having inconsistencies... oh Flash
programming and it´s little hidden
Hi all,
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.
Thanks!
Nick
Flash 8 Proffesional...
This is strange, I have an #include init.as, and I get an
**Error** Scene=loading, layer=script, frame=2:Error opening include file
init.as: File not found.
init.as IS in the same folder as the FLA, and I am all confused.?... Any
ideas?...
Is your movie set
Thanks for the article Iv. I guess the way I´m doing is right as I don´t
need this kind of control over what characters I would need to embbed. I´ll
test when I get home, but I guess this issue is happening becouse I´m not
setting the embedFonts property in the right place.
On 7/5/06, Weyert de
Hi all...
Thanks for the responses. It was indeed a case of setNewTextFormat. I
just don't get why that AS term exists.
Thanks!
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
AS2, but I just figgured it out.
As expected I was the problem, the file was named init.as.as and hide
estensions for known file types was checked in Explorer.
Hmmm... Thanks anyway...
karim
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Danny
just don't get why that AS term exists.
Neither do I
On 7/5/06, Mendelsohn, Michael [EMAIL PROTECTED] wrote:
Hi all...
Thanks for the responses. It was indeed a case of setNewTextFormat. I
just don't get why that AS term exists.
Thanks!
- MM
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
Because it allows you to use several different text formats along one
text string. Especially useful for a chat program, where you'd like the
user's name to be in a different text style than his chat output.
- A
Marcelo de Moraes Serpa wrote:
just don't get why that AS term exists.
But couldn´t I just set a new TextFormat using the setTextFormat() method?
On 7/5/06, Andreas Rønning [EMAIL PROTECTED] wrote:
Because it allows you to use several different text formats along one
text string. Especially useful for a chat program, where you'd like the
user's name to be in a
Thank you!
Exactly the verification I needed. Perhaps I could ask for a
recommendation when it comes to a PNG to SWF batch converter as well?
Seems to be quite a few out there.
Thanks again.
Nick
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeh
That would affect all the text currently in the field.
Ian
On 7/5/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:
But couldn´t I just set a new TextFormat using the setTextFormat() method?
On 7/5/06, Andreas Rønning [EMAIL PROTECTED] wrote:
Because it allows you to use several
Hi..anyone can give me a nice tutorial to make a menu like this in XML?
http://www.coolfocus.com/relocate.asp?page=flash/examples/xpanel/index.asp
thx in advance
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
AS3 is really mature now, what is excellent! But there´s no reason to
didn´t support it.
Let´s think from other point of view.
Each sprite on the flash screen, is an instance of some class. Flash
ide is locking together View+Behavior, so I can´t have two differents
Views with the same behavior.
I draw my Countrys as movieclips without classes. Then create a
MovieClip with a Country class and put inside each movieClip
(Composition). Inside Country class, I have access to the parent
display object using the parent property and do something like an
Adapter pattern.
Ever heard of KISS ?
Thanks for your reply Steve. I modified the original class to do exactly
what you suggested with such a third parameter. You also mention,
This was added mainly for the purpose of making it easy to remove event
listeners without having to keep an external reference to the delegate
functions that
KISS is not inheritance over composition. KISS is the reverse. rule of thumb
always compose rather than extend so that it will be simple later on to
change things.
On 7/5/06, Meinte van't Kruis [EMAIL PROTECTED] wrote:
I draw my Countrys as movieclips without classes. Then create a
MovieClip
no I meant kiss=keep it simple stupid
On 7/5/06, Johannes Nel [EMAIL PROTECTED] wrote:
KISS is not inheritance over composition. KISS is the reverse. rule of
thumb
always compose rather than extend so that it will be simple later on to
change things.
On 7/5/06, Meinte van't Kruis [EMAIL
i know exactly what the acronym means, i disagree with your idea of what is
simple.
On 7/5/06, Meinte van't Kruis [EMAIL PROTECTED] wrote:
no I meant kiss=keep it simple stupid
On 7/5/06, Johannes Nel [EMAIL PROTECTED] wrote:
KISS is not inheritance over composition. KISS is the reverse.
The swf I´m loading is a v7 swf and the host is v8. Could that be causing
some this issue?
On 7/5/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:
Thanks for the article Iv. I guess the way I´m doing is right as I don´t
need this kind of control over what characters I would need to embbed.
There's a really light class called Prototype which is free to download at
http://codext.com/code/9. It does the same thing except with full
constructor support. It also has a really simple/clean API:
mc = createEmptyMovieClip(mc, 1);
Prototype.makeInstanceof(mc, MyMovieClipClass);
thats it!
Note: For those from Adobe that read this list ... With IE7's release and
it's support for tabbed browsing, if Flash Player provides no support for
opening links in tabs it will be increasing apparent that Flash Player is
essentially unaware of tabbed browers.)
I believe JavaScript is also
Nice!
Didn't know that one :)
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Tyler Wright
Verzonden: woensdag 5 juli 2006 17:47
Aan: Flashcoders mailing list
Onderwerp: Re: [Flashcoders] Re: Programmatically
instantiating a classthatextends
How about 'escaping' the text before you send to amfphp, and
'unescaping' the text after you recieve it back?
escaping = turning all non-standard characters into things like %12%34%56
unescaping = reverse of above process
-David R
On 7/4/06, Gabriel [EMAIL PROTECTED] wrote:
thanks Serge
yes,
Is a good idea, but I cannot do that because, most of the data I get, I
retrieve it from the database directly trough the ORM (pear), so I can't
touch the data.
the way it comes is:
DB-ORM-my_flash_service.php-AMFPHP gateway-myApp.swf
any idea?
thanks!
GaB
David Rorex wrote:
How about
Hello Marcelo,
MdMS The swf I╢m loading is a v7 swf and the host is v8. Could that be causing
MdMS some this issue?
http://www.sharedfonts.com/eng/faq.html
- a bit info about it in the first question.
--
Ivan Dembicki
This article explains in some detail what we're trying to say.
http://www.javaworld.com/javaworld/jw-11-1998/jw-11-techniques-p2.html
In the spirit of KISS, you could skim through most of it (but ensure you get
the difference between Inheritance and Composition) then read the stuff at
the end
Hello Iv, thanks again for the reply.
This article talks about version 7 loading v. 6.
The host SWF is v8, the loaded one is v7, the library SWF is v8. But I think
it´s the same situation after all. I will make some more tests later.
Thanks,
Marcelo.
On 7/5/06, Iv [EMAIL PROTECTED] wrote:
Hmmm.. further reading this faq, I´ve saw the question about the static text
fields. I´m actually using some static textfields that use the same shared
font, configured via the flash ide. The only difference is that I don´t use
SFM, and the faq relates to SFM...
Could that be causing these
So, you can have multiple swfs listening to a single swf, but you
cannot
have a single swf listen to multiple swfs.
The best analogy I can think of is a radio station.
A radio station can transmit its signal to all its listeners. But, the
radio station can only receive calls from one listener
The dispatcher doesn't need to know it's a unique ID. It just sends a
unique ID which is then picked up by the listener.
So, let's say you have 5 swfs listening to channel Rock. They all
want to hear Rock, but they also need to hear advertising to their local
area. So, you would pass a unique
This thread might be of use to you:
http://my.opera.com/userjs/forums/topic.dml?id=125641
Did a google search:
http://www.google.com/search?q=open+link+in+new+tab+javascript
BLITZ | Steven Sacks - 310-551-0200 x209
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
Hi Marijan,
thanks for sharing your views on this.
greetz
Hans
On 7/5/06, Marijan Miličević [EMAIL PROTECTED] wrote:
Hi Hans,
as I see it, I am not interested into dashed stuff of a shape,
only thing I am interested in is what can I do with it...
so, I could paint my shape with a brush or
IE7 will open any link with target=_blank in a new tab instead of a
new window depending on the user's prefs (the defaults are new tabs though).
I personally think IE 7 and Opera 8 get it done right, and that it
should be a browser setting that determines how best to handle popups
(links with
Hi all,
I want to start playing with AS3 so I´ve downloaded the Flex 2 SDK
from Adobe Labs. I don't want to use Flex Builder, I'm interested in
the free compiler.
I want to keep living without the Flex Framework but seems that the
mxmlc compiler *needs* an mxml file (which, by the way, make
Hello,
I think it's infinitely more complicated but you could look at the generated
actionscript files that get generated after compiling the mxml code. Use
the -keep as an argument to mxmlc.
For simpler examples, in the Actionscript 3.0 Language Reference document
(or the LiveDocs) there are
http://knowledge.lapasa.net/?p=22
(my review of Senocular's take on the mxmlc compiler)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Beverly
Guillermo
Sent: Wednesday, July 05, 2006 3:22 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] [AS3]
Thanks Mark,
I had just found senocular´s page. I´ll take a look to both now and
comeback with boring questions in a while :D
Thanks!
On 7/5/06, Mark Lapasa [EMAIL PROTECTED] wrote:
http://knowledge.lapasa.net/?p=22
(my review of Senocular's take on the mxmlc compiler)
-Original
There is not support for using the Flex Framework in an AS only
project. While it is theoretically possible, you would have to
manually bootstrap a lot of the application initialization code that
Flex handles (something which would be rather complex).
If you want to play with the
N0 actually it doesn't affect the entire string, if you use the optional
params. setTextFormat takes optional index parameters for the index to start
the format and end the format.
You can go mytf.setTextFormat(startIndex,endIndex,textFormat)
I use that all the time to format something bold,
Hi again,
Thanks Mike for the info but could you explain it a little bit more or
point us to some place describing the process? I´m fairly sure I won´t
be the only one trying to create swfs without the Flex Framework.
I haven´t done the test yet (I will, sure) but, which is the less size
So, you can have multiple swfs listening to a single swf, but you cannot
have a single swf listen to multiple swfs.
I'm not sure if I understood your thought here Steven, but with Xray, can do
this right now with logging. Xray is listening for several SWF's to send
logging data. You just can't
Sorry, I meant on a single LocalConnection.
BLITZ | Steven Sacks - 310-551-0200 x209
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of John Grden
Sent: Wednesday, July 05, 2006 2:34 PM
To: Flashcoders mailing list
Subject: Re:
Wait, you and I are saying the same thing.
I can broadcast on as many channels as I want but I can't have a
LocalConnection listen to more than the channel you pass it in the
connect method.
LC = new LocalConnection():
LC.connect(channelA);
If you call
LC.connect(channelB);
It disconnects
If you want to create a SWF that doesnt use the Flex Framework:
--HelloWorld.as--
package
{
import flash.display.Sprite;
public class HelloWorld extends Sprite;
{
public funciton HelloWorld()
{
trace(Hello World);
I have a Flash application which loads in external .swf files for drawing
charts. My main .swf is compiled for the Flash 7 player, while the loaded .swf
files are compiled for the Flash 6 player. The Flash 6 .swf is not able to
access variables or functions which are defined in the _global
Flash Player creates two different _global objects for swfs of different
versions.
On 7/5/06, Todd Hivnor [EMAIL PROTECTED] wrote:
I have a Flash application which loads in external .swf files for drawing
charts. My main .swf is compiled for the Flash 7 player, while the loaded
.swf files are
I'm working on a puzzle game in flash, much similar to jigsaw puzzles you
see in gameHouse or such casual game publisher. I'm having a hard time
trying to cut an image to make it as puzzle pieces in AS2. Currently I'm
doing it the hard way, cloning bitmapData image, and masking portions of the
How often do you use 'watch' in your applications?.
It seems pretty powerful to me, and I've only just discovered it.
Any thoughts on this.
Cheers,
Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
never...if i need to handle something when a property is updated then
i usually broadcast an event.
-- Forwarded message --
From: Stephen Ford [EMAIL PROTECTED]
Date: Jul 5, 2006 6:27 PM
Subject: [Flashcoders] AS2 and watch ...
To: flashcoders flashcoders@chattyfig.figleaf.com
On 7/5/06, Marcos Neves [EMAIL PROTECTED] wrote:
I have a A world map where each country is a movieclip. And every one
will have the same behavior. Before flash 9, what I did is assign a
class called Country to each movie clip. This way, I can easy update
the behavior of all at the same time.
The optimal way is probably to use copyPixels() for each puzzle piece,
setting the alphaBitmapData argument to an image that contains just
the puzzle piece shape. That will effectively mask out the shape of
the piece, but will perform a lot better than using a vector mask, as
it will have
_global scope is different, as well as any prototypes you've created.
However, it's not a security issue, simply a difference in how things were
implemented. So, you can get around it by simply making a reference in the
main SWF and re-referencing _global in the child SWF.
For example (in the
Hello Alll
I am making a custom listbox component and have run into a slight problem. When
I attempt to resize the listbox on the stage, it does not scale properly
becoming distorted (as opposed to the standard MM V2 ListBox which maintains
its scale when resized). I know I saw how to
I have a very simple need, and I'm trying to find the simplest way to
satisfy it. I have essentially a single remote shared object on a comm
server that is getting entirely too much traffic and I want to offload it to
some other kind of server (that doesn't have connection limits). It is
Curious - can't figure out where there's a second example of the classes
floating around -- any suggestions?
**Error** C:\Documents and Settings\grimmwerks\Local Settings\Application
Data\Macromedia\Flash
8\en\Configuration\Classes\com\grimmwerks\bakery\NumericStepperCell.as: Line
13: The name
This was done a while back, but having it uniform doesn't work too well:
http://www.halestorm.co.uk/jigsaw/
The innie-outie bit's are done randomly and it looks ok, but I was hoping to
find something that would cut it more like a regular jigsaw.
Let us know if you find anything.
Adrian
91 matches
Mail list logo