[Flashcoders] JS Error with ExternalInterface and Firefox

2006-06-03 Thread Adam Pasztory

Ack!  What happened?  This used to work, didn't it?

I'm getting an error with ExternalInterface in Firefox:
thisMovie(ExternalInterfaceExample).fromJS is not a function

This happens even when I try to run the simple example from the Flash 8
Essentials book.

Sorry if this is a stupid question, but I've been searching around for an
hour for an answer, and come up empty. :(

JS CODE:

   function thisMovie(movieName)
   {
  if (isIE())
  {
return window[movieName]
  }
  else
  {
return document[movieName]
  }
   }

   function isIE()
   {
   return navigator.appName.indexOf (Microsoft) != -1;
   }

   // This function will call the ActionScript function fromJS
   function makeCall(str)
   {
thisMovie(ExternalInterfaceExample).fromJS(str);
   }

   // This function fromAS will be called from ActionScript
   function fromAS(str)
   {
   document.inForm.inField.value = str;
   }
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Accordion Class

2006-06-03 Thread Van Phan
Hello,

I'm having problem making contents scoll in a accordion panel.  I've been 
searching and found your group.  If anyone has the Accordion class that Richard 
Leggett sent to the group (in February 2005), would you send it to me?
I would very much appreciate it.

Thank you very much for your time

- Van Phan



___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Font symbols and bold/italic (cont.)

2006-06-03 Thread Bernard Visscher
Hi,

IMO the only way to export all styles, like bold, italic etc is to have a
textfield on stage which embeds the font.
The textfield has to have HTML-render, and you have to type a letter (or
something like that) in all the styles you need.
So something like:
Regular
bbold/b
iitalic/i

Now the font is available in all the styles and will work if you set a
dynamic field to render as HTML.

Bernard

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens jim
Verzonden: vrijdag 2 juni 2006 20:26
Aan: 'Flashcoders mailing list'
Onderwerp: RE: [Flashcoders] Font symbols and bold/italic (cont.)

Bummer, well if you have any luck let me know.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Lee
Sent: 02 June 2006 19:19
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Font symbols and bold/italic (cont.)

No... In fact it seems to fail entirely if you turn on Render Text as Html
for the text field.  I'll have to research this more another day.

-tom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jim
Sent: Friday, June 02, 2006 2:07 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Font symbols and bold/italic (cont.)

Taking this back to the original point, did you ever get one font embedded
that has plain, bold, italic  bold italic symbols so if you have a html
text field with all of those styles inside it will display correctly?

I have never managed to do this  would like to know if its possible. I have
no trouble using shared assets movie clips, fonts, sounds etc its just this
one last thing that would make me very happy.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Lee
Sent: 02 June 2006 17:38
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Font symbols and bold/italic (cont.)

If you want to do run-time embed rather than author-time embed, you follow
the exact same procedure, except that the linkage for your font library
would be Export for runtime sharing instead of Export for ActionScript.
I tried it with a really complex font called JokerMan and my resulting
filesizes were 44KB for fontLibrary.swf and just 124 bytes for fontTest.swf
(the consuming swf).

-tom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Danny
Kodicek
Sent: Friday, June 02, 2006 12:07 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Font symbols and bold/italic (cont.)


 I hope that I don't insult your intelligence by referring you to a 
 TechNote.
 But, by following the steps as shown at
 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14786 I was 
 able
 to use a shared font successfully in Flash 8.  It sounds as if you may be
 taking some unnecessary steps: for example, you shouldn't need to include
 any text fields in your sharedfonts.fla.  Also, make sure that you follow
 the method of Open As Library as described in the TechNote.  (In Flash 
 8,
 this is File  Import  Open External Library).  Setting the library font 
 to
 a different font may in fact be causing a problem - I would suggest 
 instead
 testing with wingdings or some other crazy font so you can know for sure
 it's working.

Okay, this works, thanks for that. But it makes no sense to me. The two 
files are both about 20k, so they can't contain the font outlines. So in 
what sense is this font embedded? As far as I can see, what this is doing is

linking to a font named Arial, but someone without Arial on their system 
won't see it. (it does have the advantage that if I want to globally change 
the font, I just do it in one place, but that's all). So how can I embed the

actual font outlines in the way I do for a local font?

Oh - and incidentally why the hell do I have to select 'export for 
actionScript' instead of 'export for runtime sharing'?!

Danny 

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



RE: [Flashcoders] mobile?

2006-06-03 Thread Dave Watts
 which one has the widest distribution now?

I don't think that any Flash Player version is distributed with Windows
Mobile, generally. You have to download and install it.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] mobile?

2006-06-03 Thread Thomas Marbois

Ah...

thanks.

But the Nokia phones are coming with Flashlite installed already right?

I think this market is getting ready to take off for mobile flash  
stuff...and Im keeping my projects in the frame of mind that I can  
port things over - or make lite-extensions to my flash web-apps.


regards

Tj

On Jun 3, 2006, at 10:41 AM, Dave Watts wrote:


which one has the widest distribution now?


I don't think that any Flash Player version is distributed with  
Windows

Mobile, generally. You have to download and install it.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flash/Eclipse Workflow

2006-06-03 Thread Weldon MacDonald

Ok, I installed Eclipse, spent a better part of a day downloading
plugins and configuring everything. I'm using Ant tasks to compile
with MTASC and send it to the standalone player.
I don't see the need for swfmill, since I own Flash. My plan was to
create vector graphics and any timeline stuff in flash (mostly done by
my wife) and then move to Eclipse to write the code.
But now I'm not at all sure how to structure a project. I read about
several methods, but am at a loss as to how to proceed. What's best
practise?
Can I use one swf as a symbol library and compile it with the class
files and a 'main' entrypoint? Do I inject all the code into the
library swf?
I've been experimenting with a class that's tied to a symbol in an
.fla and would like to switch over to the new workflow, if I can
figure out what that is. The symbol is a movieclip with nested
movieclips. The class extends MovieClip and uses an init function
rather than a constructor. The code I've been using to test is in the
.fla  but the class file is external. How can I restructure this to
include Eclipse in the workflow?


Weldon MacDonald
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash/Eclipse Workflow

2006-06-03 Thread Scott Hyndman

What I usually do is load in the assets swf through the MTASC
generated swf and use it as the root in the movieclip hierarchy. By
this I mean all movieclips created by my MTASC generated swf are
descendants of the asset swf. By doing so you can access all symbols
in the asset swf through attachMovieClip and you don't have to mess
around with injection. An added benefit is that you can display a
preloader on the asset swf which is quite likely large.

Hope that helps,
Scott

On 6/3/06, Weldon MacDonald [EMAIL PROTECTED] wrote:

Ok, I installed Eclipse, spent a better part of a day downloading
plugins and configuring everything. I'm using Ant tasks to compile
with MTASC and send it to the standalone player.
I don't see the need for swfmill, since I own Flash. My plan was to
create vector graphics and any timeline stuff in flash (mostly done by
my wife) and then move to Eclipse to write the code.
But now I'm not at all sure how to structure a project. I read about
several methods, but am at a loss as to how to proceed. What's best
practise?
Can I use one swf as a symbol library and compile it with the class
files and a 'main' entrypoint? Do I inject all the code into the
library swf?
I've been experimenting with a class that's tied to a symbol in an
.fla and would like to switch over to the new workflow, if I can
figure out what that is. The symbol is a movieclip with nested
movieclips. The class extends MovieClip and uses an init function
rather than a constructor. The code I've been using to test is in the
.fla  but the class file is external. How can I restructure this to
include Eclipse in the workflow?


Weldon MacDonald
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Embedding a SWF using base64 and Data: URI scheme

2006-06-03 Thread Bernard Poulin

I believe Outlook uses resources located in mime attachments in the email.
I do not think it uses that special data: URI scheme.

I did a view source from an email in Outlook and got an image URI like the
following:  img src='cid:image001.jpg@01C6863F.C5CB6260'

It seems that cid: is actually a standard described in RFC 2392.

Haven said that, anybody tried using  cid: uris in html documents - does
it work?

B.

2006/6/2, Kevin Aebig [EMAIL PROTECTED]:


Does anyone else find it funny that even though IE doesn't support this,
Outlook does? I've received all kinds of stupid emails with encoded
sounds,
images and other objects from relatives...

!k

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Cheng
Sent: June 2, 2006 3:01 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Embedding a SWF using base64 and Data: URI
scheme

Tom Lee wrote:

 In the original Microsoft list of workarounds for the Eolas patch, one
of
 the possible workarounds was to base64 encode your swf and embed the
data
 inline in your object tag.  The original page has since been removed,
and
 the only evidence I can now find of this is at
 http://www.mustardlab.com/developer/flash/standards/, a page being kept
 around for archival reasons (see the official fixes section).  Though
I
 don't need this technique as an Eolas workaround, I'm still really
curious
 about it.  Is it possible to base64 encode a swf file and include that
raw
 data in your web page instead of hosting a separate swf file on your
server?


 Anyone have experience with the Data: URI Scheme?  I find it odd that
 Microsoft would include it in their list of workarounds if their browser
 didn't support it, but then again, maybe that's why the page was
removed.
 I'd like to at least get this working in Mozilla browsers.

Tom,

Hey, it's Mustard Lab--that's us.  I actually work with Sean Christmann,
the author of the page that you referred to, and would refer you to him,
but he's out until Monday so I'll take a stab at elaborating on this.

The very short answer to your question is that that the data: URI scheme
(RFC 2397) is not supported by Internet Explorer.  It does, however,
work with most other browsers on the market, including Firefox, Opera
and Safari.  As such, it is not helpful in terms of working around the
recent change in IE to bring it into compliance with the Eolas patent.

To answer your second question, yes it is possible to use this technique
to encode a SWF file within a containing HTML page.  A while back, I
actually managed to write out a second SWF to a HTML page from another
SWF with a bit of Javascript. You can see a working example with source
code here:  http://dev.psalterego.com/datauri/.

Originally, I was experimenting with using the data URI scheme as a
possible means to obfuscate SWFs encoded within an outer wrapper SWF to
make it slightly more difficult for relatively unskilled script
kiddies to quickly recover and decompile the bytecodes for the inner
SWF via a simple attack with a decompiler.  However, as such a scheme
would result in the inner protected SWF being completely inaccessible
to Internet Explorer users, I never pursued this idea further.

Keep in mind that this technique is not particularly efficient in terms
of file size, particularly if the base 64 encoded data is stored in
HTML.  There are also limitations on the maximum possible length of a
URL supported by each browser that effectively limit the size of the
data that you can include via a data URI scheme.

Jim



___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] What does this code mean and What are Inspectables ...

2006-06-03 Thread Manuel Saint-Victor

Inspectables are features for Flash components they create a field that can
be seen in the properties panel in flash.  Although I don't have the link
right now if you look in the Flash livedocs under creating components
there's a brief explanation of the use of this metadata- the Event there is
a notation of the events dispatched by a component


On 6/3/06, Stephen Ford [EMAIL PROTECTED] wrote:


Hi all,

FIRSTLY (1)
I have found, in numerous AS2.0 code examples, code that looks like the
following ...

[Event(click)]

... i.e: code inside square brackets but nothing to do with arrays.

Can someone advise what this is ?. I have also seen it like:

[Inspectable(type=Boolean,name=Vertical,defaultValue=true)]

SECONDLY (2)
What are Inspectables in relation to AS2.0 classes ???

Thanks,
Stephen.___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] What does this code mean and What are Inspectables ...

2006-06-03 Thread Steven Sacks
They are for AS2 components.

http://www.actionscript.org/forums/archive/index.php3/t-38760.html


___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com