[Flashcoders] Masks when Zooming in I.E. 7

2008-11-12 Thread Marc Hoffman

I'm still looking for an anwer to this -- has anybody encountered this before?

I created a swf that has several layers of translucent clouds moving 
beneath masks. The masks are assigned via ActionScript 2.0 and the 
cloud motion is also scripted.


When this movie is zoomed 150% or larger in I.E. 7, the clouds become 
nearly opaque.


Anyone know what it is about zooming in I.E. 7 that would cause 
masked translucent objects to become nearly opaque?


TIA,
Marc

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Masks when Zooming in I.E. 7

2008-11-04 Thread Marc Hoffman
I created a swf that has several layers of translucent clouds moving 
beneath masks. The masks are set with ActionScript 2.0 and the cloud 
motion is also AS2.


When this movie is zoomed larger than 100% in I.E. 7, the clouds 
become nearly opaque.


Anyone know what it is about zooming in I.E. 7 that would cause 
masked translucent objects to become nearly opaque?


TIA,
Marc

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Masks when Zooming in I.E. 7

2008-11-04 Thread Marc Hoffman
[Please excuse if this comes through twice -- it's been over 8 hours 
since I sent, but did not see posted, my original message.]


I created a swf that has several layers of translucent clouds moving 
beneath masks. The masks are set with ActionScript 2.0 and the cloud 
motion is also AS2.


When this movie is zoomed larger than 100% in I.E. 7, the clouds 
become nearly opaque.


Anyone know what it is about zooming in I.E. 7 that would cause 
masked translucent objects to become nearly opaque?


TIA,
Marc

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Making dynamic text look the same as static text

2008-09-19 Thread Marc Hoffman
Furthermore, you have to separately embed each font face that you're 
using (regular, bold, italic).


At 11:46 PM 9/18/2008, Christoffer Enedahl wrote:


You need to embed the font. Google it

Alan Neilsen skrev:
I have found that when I call text into a dynamic text field from a 
variable, it does not look the same as the text in a static text 
field set with the same font, size, etc. The text in the dynamic 
text field appears with no anti-alias, emboldening or italics, even 
though I have set those properties for that dynamic text field. Can 
anyone advise how I make those properties work for a dynamic text field?


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Paragraph spacing in AS2

2008-03-17 Thread Marc Hoffman
I'm using style sheets to control text appearance in a Flash 8 site 
(AS2). I've been able to control the spacing between lines, but have 
not found a way to control spacing between paragraphs. Thus my 
paragraph spacing equals two line breaks, which is too tall.


Anyone have an AS2 technique for setting inter-paragraph spacing? 
Ideally I'd want it to be about 1.5x the regular line spacing.


Thanks!

Marc Hoffman 
___

Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Paragraph spacing in AS2

2008-03-17 Thread Marc Hoffman

Thank you, Glen. I will try this.

Marc

At 08:16 AM 3/17/2008, Glen Pike wrote:
In CSS it is margin and margin-top, etc. that sets your spacing 
between elements - don't know if this will work with AS2, e.g.


p {
   margin-bottom:10px;
}

Marc Hoffman wrote:
I'm using style sheets to control text appearance in a Flash 8 site 
(AS2). I've been able to control the spacing between lines, but 
have not found a way to control spacing between paragraphs. Thus my 
paragraph spacing equals two line breaks, which is too tall.


Anyone have an AS2 technique for setting inter-paragraph spacing? 
Ideally I'd want it to be about 1.5x the regular line spacing.


Thanks!

Marc Hoffman ___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Running Independent SWF

2008-03-13 Thread Marc Hoffman

Anuj,

I know this is more of a hack than really fixing the problem, but 
have you tried keeping all swf's in the same directory? I am 
suspicious of the URL: file:///video/pic_8.swf. Why so many directory 
levels in the path?


- Marc


At 11:08 PM 3/12/2008, you wrote:

Hi Bob
Thanks for reply. This is not AIR, its simple swf file created from Flash
authoring timeline. All the code is on main timeline. Also it behaves
similarly on HTML published too, i tried windows exe publishing too.
It seems like in my Flash IDE it is loading external SWF but when i am
trying to run independent swf it is not loading external swfs. I don't know
how to get rid of this problem.
Please help
Thanks
Anuj

On Wed, Mar 12, 2008 at 7:19 PM, Bob Wohl [EMAIL PROTECTED] wrote:

 Is this from opening the swf or is this an air app? Does this behave this
 way when testing from embeding in an html document?


 B.

 On Wed, Mar 12, 2008 at 3:08 PM, anuj sharma [EMAIL PROTECTED] wrote:

  Hi All
  I made a desktop application( in AS 3.0 using Flash IDE) in which I am
  loading bunch of SWFs in my UILoader. The file is working fine from
 Flash
  Authoring tool( IDE). I publish my file using local files only. Now when
 I
  am trying to run my independent SWF file, i am getting error
  Error #2044: Unhandled ioError:. text=Error #2035: URL Not Found. URL:
  file:///video/pic_8.swf.
  The things are working fine if i open fla and hit ctr+Enter.I don't know
  why
  its not working as an independent swf. Also the title of the player is
  showing player 9, which means it is using the player it is supposed to
  use.
  If i change my publish settings to
   network only nothing works at all.
  i am just using XML to load external SWFs and videos in UIloader
  component.
  Any body has any solution for this kind of problem.
  I am putting all my code on main time line in Flash authoring tool and
 my
  Operating system is XP
  Thanks a lot.
  Anuj
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] loadmovie

2008-02-29 Thread Marc Hoffman

Theodore,

How was holder_lesson created? If it has been scaled up from some 
other mc, the loaded movie will also be scaled up. Best to use a 
non-scaled clip as a holder. AS2 example:


this.createEmptyMovieClip(holder_lesson,this.getNextHighestDepth());
holder_lesson._x = 10; // or wherever you want to place it
holder_lesson._y= 10; // or wherever you want to place it
holder_lesson.loadMovie(lessons/ + _root.wlesson + .swf);

As Bob mentioned, you can also resize after loading but you must wait 
until the onLoadInit event has fired. In AS2 you'd use 
MovieClipLoader class to handle this.


Marc

At 06:45 AM 2/29/2008, you wrote:

I am loading a movie via:

holder_lesson.loadMovie(lessons/+_root.wlesson+.swf);

the problem is the movie is maxing to the size of the swf and not the
size of the clip it is being loaded into... it takes up the whole swf...
I am even trying to resize it:

holder_lesson._width = 967;
holder_lesson._height = 572;
holder_lesson._x = 3;
holder_lesson._y = 23;

what's up?


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] loadmovie

2008-02-29 Thread Marc Hoffman
Well-put, Jonathan.  Thanks for a useful clarification -- wish all 
idiots were as clever as you!

-Marc

At 12:59 PM 2/29/2008, you wrote:

Yes, my apologies.

I guess I was mixing up dynamic properties with the standard properties.

Dynamic properties do get wiped, but standard ones are preserved, as Marc
states.
loader2.idiot = jonathan;
loader2.onRelease = function(){
this.loadMovie(circle.swf);
}

// then once it is loaded
trace(loader2.idiot); // traces undefined, (which is clearly not true. we
know exactly who the idiot is, yes?)




On Fri, Feb 29, 2008 at 3:22 PM, Marc Hoffman [EMAIL PROTECTED]
wrote:

 Jonathan,

 Sorry, but as far as AS2, you're wrong. A loaded movie inherits the
 properties of the clip it's loaded into. Test it yourself. Create
 circle.swf, a movie of a round circle. Create a base movie with two
 loaders (loader1 and loader2)  based on a square mc. Code it like this:


 loader2._xscale = 50;
 loader1.onRelease = function(){
 this.loadMovie(circle.swf);
 }
 loader2.onRelease = function(){
 this.loadMovie(circle.swf);
 }


 Test the base movie. loader1 loads the circle as a circle. loader2
 loads it as an elipse half as wide as it is high.

 Marc

 At 11:19 AM 2/29/2008, you wrote:
 And if you are loading it into a clip that you've set _xscale + _yscale
 on,
 the movie replaces those properties when it's loaded. loadMovie
 essentially
 replaces the movie it's called from, wiping its properties.
 
 On Fri, Feb 29, 2008 at 1:28 PM, Marc Hoffman [EMAIL PROTECTED]
 wrote:
 
   Theodore,
  
   How was holder_lesson created? If it has been scaled up from some
   other mc, the loaded movie will also be scaled up. Best to use a
   non-scaled clip as a holder. AS2 example:
  
   this.createEmptyMovieClip(holder_lesson,this.getNextHighestDepth());
   holder_lesson._x = 10; // or wherever you want to place it
   holder_lesson._y= 10; // or wherever you want to place it
   holder_lesson.loadMovie(lessons/ + _root.wlesson + .swf);
  
   As Bob mentioned, you can also resize after loading but you must wait
   until the onLoadInit event has fired. In AS2 you'd use
   MovieClipLoader class to handle this.
  
   Marc
  
   At 06:45 AM 2/29/2008, you wrote:
   I am loading a movie via:
   
   holder_lesson.loadMovie(lessons/+_root.wlesson+.swf);
   
   the problem is the movie is maxing to the size of the swf and not the
   size of the clip it is being loaded into... it takes up the whole
 swf...
   I am even trying to resize it:
   
   holder_lesson._width = 967;
   holder_lesson._height = 572;
   holder_lesson._x = 3;
   holder_lesson._y = 23;
   
   what's up?
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
 --
 -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] determining url of container page

2008-02-18 Thread Marc Hoffman

_root._url returns the url of the swf, not the html page.

At 08:38 PM 2/18/2008, Ketan Anjaria wrote:

In AS2 it's _root._url.
In AS3 I think it's stage.contentLoaderInfo.url or something like that.
Check the docs on the LoaderInfo class.

On Feb 18, 2008 6:49 PM, Andrew Sinning [EMAIL PROTECTED] wrote:

 How can you determine from within Flash (or php on the server when the
 request for the swf comes in) the url of the page within which a swf is
 embedded?

 Thanks!
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
Ketan Anjaria
415.260.8742
f. 415-358-4278
[EMAIL PROTECTED]
www.kidbombay.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] buttons lined up next to each other- rollout not work

2008-01-15 Thread Marc Hoffman
No such problem here with either adjacent or overlapping buttons. 
Please post your code. Here's mine for four buttons named btn1, btn2, etc.:


for (i = 1; i  5; i++) {
this[btn + i].onRollOut = function() {
trace(this._name);
};
}

Marc

At 09:06 PM 1/15/2008, you wrote:


This is probably a classic issue..

I have  5 buttons lined up next to each with no space between but 
they arent overlapping.


I have rollover and rollout events.. but the rollout event doesnt 
work when i roll over to the next button..


the onrollout event works only when i rollout on to negative 
space..which sucks

is there a workaround


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread Marc Hoffman

At least one problem:

_root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000);
should be (note quotes):
_root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000);

Also, you don't need the line:
var vidThumb:MovieClip =

You can just tell _root.playListHolder to create the clips based on 
the incremental naming scheme you describe.


- Marc

At 09:05 PM 1/12/2008, you wrote:

hi there,

I am having problem to create empty Movie clicp by using the code below, I
can't create 5 movie clips vertically. Would you please help me take a look
this. Thank you so much :)

playListHolder is an MC Instance name and placed on Stage.


for (var i:Number = 0; i 5; i++) {

  var vidThumb:MovieClip =
_root.playListHolder.createEmptyMovieClip(vThumb+i, i+1000);

   vidThumb = eval(vThumb+i)

   //theVideo.width = thumbWidth
   //theVideo.height = thumbHeight;

   vidThumb._y = i*thumbHorizontalGap+thumbY;

   vidThumb.loadMovie( http://www.google.com/
http://img0.gmodules.com/ig/images//weather_welcome_image.jpg;)

}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Simple quesiton for createEmptyMovieClip in AS2

2008-01-12 Thread Marc Hoffman

Put the URLs in an array:

myURLS = new Array(www.domain1.com, www.anotherDomain.com, 
www.anotherDomain.com, www.anotherDomain.com, www.anotherDomain.com);


then for the URL specified as the target of each clip you create, 
just reference the URL this way:


vidThumb.onRelease = function(){
   openURL(myURLS[i]);
  }

- Marc

At 10:20 PM 1/12/2008, you wrote:


AWESOME! thanks all :)

One more question here... how can I assign URL link to each movieClip? I
would like to add URL for each of movieClip which created by looping, the
code like this

Thank you


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Software Patent Question

2008-01-04 Thread Marc Hoffman

Hi Dave,

I have to wonder -- if you just wanted confirmation of your gut 
feeling, why did you write to a technical forum? Sorry, but it annoys 
me to have taken the time to provide objective information when all 
the poster wants is validation for a gut response.


If your concern is truly to avoid legal liability, you should ignore 
your feeling of being pissed off and seek legally accurate 
information. From the US Patent and Trademark Office website 
(http://www.uspto.gov/go/pac/doc/general/#patenthttp://www.uspto.gov/go/pac/doc/general/#patent) 
:



There are three types of patents:

1) Utility patents may be granted to anyone who invents or discovers 
any new and useful process, machine, article of manufacture, or 
composition of matter, or any new and useful improvement thereof;


Obviously, more information is needed to establish whether the 
process in question qualifies for a patent, but just because it's a 
process (not a tangible product) does not disqualify it.


Can we still be friends?

Marc


At 10:41 AM 1/4/2008, you wrote:
Thanks, for the opinions. I have to agree with Charles on this - the 
patent is bunk. I just wanted to hear it from someone else. Makes me 
want to make an open-source makeover engine. It might be something 
to do in all my free-time. Heh



Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Software Patent Question

2008-01-02 Thread Marc Hoffman

Hi Dave,

There are various ways of looking at this. Although it may seem 
ridiculous that you can't develop any technology you wish, the flip 
side is that many inventions would never be produced if, after years 
of hard work, the inventor's creations could be easily copied and 
exploited by others. Patent laws are supposed to allow the inventor 
to reap the profits of his or her work for a certain number of years.


If you use someone's patented idea, even without being aware you're 
doing so, then you're violating their patent right and they can 
legally come after you. Whether you're using someone else's idea 
might be pretty obvious or it might be a very subtle issue, which is 
why patent litigation can take years to resolve. Whether they come 
after you will probably depend on how aggressive they are in 
enforcing their rights, how clear or vague the violation is, and how 
deep your pockets are (why sue someone who's broke?).


[Disclaimer: I am not a lawyer and the above is a lay interpretation 
of information I have gleaned from lawyers and other sources.]


Best wishes,
Marc

At 01:25 PM 1/2/2008, you wrote:

Question - as a software developer, are we free to create anything 
we want if we use our own, from scratch, code? For instance, we 
created a Flash based Virtual Makeover application a couple years 
back. We may make a new one for a new client but our old client has 
issue. Evidently they invented this makeover system, and even have 
a patent: http://tinyurl.com/2yxj8v
But there are other examples of such systems. Maybe they're not 
identical, but the good ones work much the same. To me, it's utterly 
ridiculos that I could be stopped from writing any kind of software. 
I could make a Riven clone called Raven if I wanted, couldn't I? 
Anyone have any input?



Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Estimate FLV file size?

2007-12-22 Thread Marc Hoffman
Wouldn't it be kbps x total running time in seconds?  So if it's 512 
kbps for 100 seconds then it's 512 x 100 = 51,200 kb.


Marc

At 10:34 AM 12/22/2007, you wrote:


Hi all,

Just wondering if there is a good way to estimate flash video file sizes?

For example, lets say I have 2:30 of RAW DV footage that I want to convert
to:

* Video Codec: On2 VP6
* Encoding: 2-Pass VBR
* Resolution: 480x360 pixels
* Frame Rate: 30 fps
* Video Data Rate: 464 kbps
* Audio Data Rate: 48 kbps
* Total Data Rate: 512 kbps
* Keyframe: Every 6 seconds

Is there a mathematical way to calculate/approximate file size based on
(above) settings?

My rough estimate: 9.5 to 13.5 megabytes

Sound right to you?

Unfortunately, I do not have access to the/any video at the moment... I
would prefer to just test some real video, rather than bothering all of
you folks. :(

Tips on how I could roughly estimate file size would be great! Or, does my
guestimation sound close?

Thanks!
Cheers,
Micky


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Estimate FLV file size?

2007-12-22 Thread Marc Hoffman

bits :)

At 11:52 AM 12/22/2007, [EMAIL PROTECTED] wrote:


 Wouldn't it be kbps x total running time in seconds?  So if it's 512
 kbps for 100 seconds then it's 512 x 100 = 51,200 kb.

Ah, yes... that makes sense. :)

This might be another silly question, but how does one know when kbps is
kilobytes or kilobits?

Many thanks for the help. :D

Cheers,
M


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Estimate FLV file size?

2007-12-22 Thread Marc Hoffman

bits :)

At 11:52 AM 12/22/2007, [EMAIL PROTECTED] wrote:


 Wouldn't it be kbps x total running time in seconds?  So if it's 512
 kbps for 100 seconds then it's 512 x 100 = 51,200 kb.

Ah, yes... that makes sense. :)

This might be another silly question, but how does one know when kbps is
kilobytes or kilobits?

Many thanks for the help. :D

Cheers,
M


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] ActiveContent is not enforcing minimum Flash version

2007-08-09 Thread Marc Hoffman
I have published html with the active content template, to require 
Player version 8 and above. But users with lower versions are still 
getting into the site, resulting in some critical elements (notably, 
my navigation menu) being broken. The site is:

http://www.newellcoach.com/flash.html

Is there something wrong with the code that is allowing users of the 
wrong version to proceed without an upgrade alert? Anyone else 
encountering this problem? Fixes?


The html script is below. Thanks for any help!

Marc Hoffman

= html script 

html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /
titleNewell Coach Luxury Motorhomes/title
script language=javascriptAC_FL_RunContent = 0;/script
script src=AC_RunActiveContent.js language=javascript/script
/head

body bgcolor=#0B111F
table width='100%' height='100%'trtd width='100%' height='100%' 
align='center' valign='middle'

!-- saved from url=(0013)about:internet --
script language=javascript
if (AC_FL_RunContent == 0) {
alert(This page requires AC_RunActiveContent.js. In 
Flash, run \Apply Active Content Update\ in the Commands menu to 
copy AC_RunActiveContent.js to the HTML output folder.);

} else {
AC_FL_RunContent(
'bgcolor', '#0B111F',
'codebase', 
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',

'width', '900',
'height', '620',
'src', 'interiorPage',
'quality', 'high',
'pluginspage', 
'http://www.macromedia.com/go/getflashplayer',

'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'interiorPage',
'name', 'interiorPage',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'interiorPage',
'salign', ''
); //end AC code
}
/script

noscript
object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0; 
width=900 height=620 id=interiorPage align=middle

param name=allowScriptAccess value=sameDomain /
param name=movie value=interiorPage.swf /param 
name=quality value=high /param name=bgcolor value=#0B111F 
/embed src=interiorPage.swf quality=high bgcolor=#0B111F 
width=900 height=620 name=interiorPage align=middle 
allowScriptAccess=sameDomain type=application/x-shockwave-flash 
pluginspage=http://www.macromedia.com/go/getflashplayer; /

/object
/noscript
/td/tr/table
script src=http://www.google-analytics.com/urchin.js; type=text/javascript
/script
script type=text/javascript
_uacct = UA-992189-1;
urchinTracker();
/script/body
/html

===  end html script  
___

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] ActiveContent is not enforcing minimum Flash version

2007-08-09 Thread Marc Hoffman
For some reason, my code was stripped out from the message I just 
posted. Trying once more to include it, but if you cannot see it 
please view it at the URL below.  Thanks --Marc


At 08:49 AM 8/9/2007, Marc Hoffman wrote:
I have published html with the active content template, to require 
Player version 8 and above. But users with lower versions are still 
getting into the site, resulting in some critical elements (notably, 
my navigation menu) being broken. The site is:

http://www.newellcoach.com/flash.html

Is there something wrong with the code that is allowing users of the 
wrong version to proceed without an upgrade alert? Anyone else 
encountering this problem? Fixes?


The html script is below. Thanks for any help!

Marc Hoffman

= html script 


html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /
titleNewell Coach Luxury Motorhomes/title
script language=javascriptAC_FL_RunContent = 0;/script
script src=AC_RunActiveContent.js language=javascript/script
/head

body bgcolor=#0B111F
table width='100%' height='100%'trtd width='100%' 
height='100%' align='center' valign='middle'

!-- saved from url=(0013)about:internet --
script language=javascript
if (AC_FL_RunContent == 0) {
alert(This page requires AC_RunActiveContent.js. 
In Flash, run \Apply Active Content Update\ in the Commands menu 
to copy AC_RunActiveContent.js to the HTML output folder.);

} else {
AC_FL_RunContent(
'bgcolor', '#0B111F',
'codebase', 
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',

'width', '900',
'height', '620',
'src', 'interiorPage',
'quality', 'high',
'pluginspage', 
'http://www.macromedia.com/go/getflashplayer',

'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'interiorPage',
'name', 'interiorPage',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'interiorPage',
'salign', ''
); //end AC code
}
/script

noscript
object 
classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0; 
width=900 height=620 id=interiorPage align=middle

param name=allowScriptAccess value=sameDomain /
param name=movie value=interiorPage.swf /param 
name=quality value=high /param name=bgcolor 
value=#0B111F /embed src=interiorPage.swf quality=high 
bgcolor=#0B111F width=900 height=620 name=interiorPage 
align=middle allowScriptAccess=sameDomain 
type=application/x-shockwave-flash 
pluginspage=http://www.macromedia.com/go/getflashplayer; /

/object
/noscript
/td/tr/table
script src=http://www.google-analytics.com/urchin.js; 
type=text/javascript

/script
script type=text/javascript
_uacct = UA-992189-1;
urchinTracker();
/script/body
/html


===  end html script 
___


___
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] Re:Displaying Chinese character set via XML

2007-07-26 Thread Marc Hoffman
Thanks, but I don't think that's the problem. I've reverted to using 
Notepad and still have problems.


Marc

At 01:48 AM 7/26/2007, Joe Cutting wrote:


I cannot get a dynamic text field to display Chinese characters from
XML. Results vary from question marks in the field, to undefined,
to blank. What should happen is that Flash derives elements from the
XML and displays them in the textfield. I'm using XMLSA to parse the xml.

I've no experience of importing chinese characters from XML but I 
did once do something similar with
Azeri (as spoken in Azerbaijan). I seem to remember having problems 
with Textpad as an XML editor and
ended up using a freeware editor called Notepad++ (google it). Can't 
remember the exact issue but it was something to do with unicode encoding.


Hope that helps

Joe


___
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] Audio Stuttering on CD

2007-07-25 Thread Marc Hoffman
Have you tested on different computers? Was it the same computer that 
worked last year?


At 11:36 AM 7/25/2007, you wrote:


I have some audio slide presentations that I've created in Flash for 
the web that I need to put on CD.  I am using autorun to execute an 
index.html page and then from there, the user can select the various 
presentations.  But from CD, when I open the presentation, the audio 
stutters(loops the first second) and slides do not advance.


The weird thing is I did one of these last year without a hitch and 
now even that presentation is having the same issue.   And nothing has changed.


I should note everything works great in Firefox.  This is only 
happening from the CD in IE6 and IE7 XP.  All web versions, 
regardless of browser, are fine.


I know this may be slightly OT... any thoughts?

Richard


___
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] Displaying Chinese character set via XML

2007-07-25 Thread Marc Hoffman
I cannot get a dynamic text field to display Chinese characters from 
XML. Results vary from question marks in the field, to undefined, 
to blank. What should happen is that Flash derives elements from the 
XML and displays them in the textfield. I'm using XMLSA to parse the xml.


Another language (French) works fine. Anyone have a Chinese example 
that works? Here's what I've got so far:

   * TrueType font is SimSun.
   * XML is being saved as UTF-8 in TextPad and declares UTF-8 as 
the encoding language. Also tried this all using NotePad. Got both 
text editors to show the Chinese characters as the actual characters 
and also as boxes. Tried saving as UTF-8 and also as Big-Endian. I'm 
using CDATA around all text.

   * XML is being pasted from MS Word. Also tried pasting from Excel.
   * Flash textfield: Set for HTML. I've tried various combinations 
of embedding Chinese characters, including embedding ALL Chinese 
characters (lots of bytes!). I've also tried populating the text 
field with ALL the Chinese text, and using Auto-fill to embed those 
characters. I'm not using any bolding or italics.


I'm losing hair over this and would really appreciate either a 
working example (including the xml and flash files) or some more 
troubleshooting methods.


Thanks,
Marc
___
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] Display Non-English Characters from XML?

2007-07-23 Thread Marc Hoffman
I am having trouble getting non-English 
characters to show up in Flash when they're read 
from an XML doc. For example, the French e with 
accent, as in resume (résumé). Here's what my xml 
doc looks like -- seems I'm doing something 
wrong, but I can't figure out what. By the way, 
I'm saving it as UTF-8. Can anyone give me an 
example of a non-English xml doc that gets 
displayed correctly in Flash using non-English 
characters? I need to create localized versions 
for French, Chinese (simple), Chinese 
(traditional), Korean, Japanese, and several other languages.


== XML =

?xml version=1.0 encoding=utf-8 xml:lang=fr?
questions

question
qText![CDATA[Quels sont les objectifs de cette formation ?]]/qText
qAnswers
qAns num=0![CDATA[a. M’aider à comprendre 
les règles et les politiques clés pour que je fasse les bons choix]]/qAns
qAns num=1![CDATA[b. Fournir des exemples 
concrets des domaines à risque]]/qAns
qAns num=2![CDATA[c. Renforcer l’idée que le 
respect des lois et politiques de Microsoft n’est pas négociable]]/qAns
qAns num=3![CDATA[d. M’aider à identifier 
les problèmes clés de conformité]]/qAns

qAns num=4![CDATA[e. Toutes les réponses ci-dessus]]/qAns
/qAnswers
qCorrect4/qCorrect
/question

/questions
==  end XML =

Thanks!

Marc Hoffman 
___

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] Never Mind :) [Was: Display Non-English Characters from XML?]

2007-07-23 Thread Marc Hoffman
Sheepishly, I must admit I forgot to embed the 
extended Latin I character set in my dynamic text 
field. As soon as I did that, of course, the 
accented characters were displayed. Honestly, 
I've had to do this enough times, I don't know why I forgot this time.


Marc

At 12:22 AM 7/23/2007, you wrote:
I am having trouble getting non-English 
characters to show up in Flash when they're read 
from an XML doc. For example, the French e with 
accent, as in resume (résumé). Here's what my 
xml doc looks like -- seems I'm doing something 
wrong, but I can't figure out what. By the way, 
I'm saving it as UTF-8. Can anyone give me an 
example of a non-English xml doc that gets 
displayed correctly in Flash using non-English 
characters? I need to create localized versions 
for French, Chinese (simple), Chinese 
(traditional), Korean, Japanese, and several other languages.


== XML =

?xml version=1.0 encoding=utf-8 xml:lang=fr?
questions

question
qText![CDATA[Quels sont les objectifs de cette formation ?]]/qText
qAnswers
qAns num=0![CDATA[a. M’aider à comprendre 
les règles et les politiques clés pour que je fasse les bons choix]]/qAns
qAns num=1![CDATA[b. Fournir des exemples 
concrets des domaines à risque]]/qAns
qAns num=2![CDATA[c. Renforcer l’idée que 
le respect des lois et politiques de Microsoft n’est pas négociable]]/qAns
qAns num=3![CDATA[d. M’aider à identifier 
les problèmes clés de conformité]]/qAns

qAns num=4![CDATA[e. Toutes les réponses ci-dessus]]/qAns
/qAnswers
qCorrect4/qCorrect
/question

/questions
==  end XML =

Thanks!

Marc Hoffman ___
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] Flash movie background color not showing in Firefox browser...

2007-07-22 Thread Marc Hoffman
Make sure the bgcolor in the html code for embedding the flash movie 
is correct. I can't think of any other reason you'd have these symptoms.


Marc Hoffman

At 01:52 PM 7/22/2007, you wrote:

Hi,
You probably want to create a bg layer in you flash movie that has the
correct color!

A:)=


On 7/22/07 11:48 AM, BOYD SPEER [EMAIL PROTECTED] wrote:

 Is there any special setting that would affect the movie 
background color when
 displayed in Firefox as opposed to Internet Explorer? My webpage 
looks fine in
 IE but the background color in Firefox changes to white instead 
of the #99
 dark red (that it shows in IE). This means the white text becomes 
invisible!


 Thanks,
 -Boyd
 ___
 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] Controllingt he volume of multiple sound objects at the same time

2007-07-06 Thread Marc Hoffman
Yes, but he has created a separate Sound object for each sound 
(sound1 and sound2), so he's fine in that respect.


What would make this simpler, however, is to write a function that 
creates the sound objects based on the array, while also storing the 
initial volume for each sound. Here's an UNTESTED example:


// build the array based on linked sounds in the library (catMeow etc.):
var theSounds: Array = [catMeow , dogBark , alienScream , doorCreak]
// create a parallel array of sound levels for each sound:
var theVolumes: Array = [50,65,90,5];
// create a sound object for each array element:
for (i=0; itheSounds.length; i++){
// create the sound object and attach the sound:
this [theSounds[i] + SoundObject'] = new Sound();
this [theSounds[i] + SoundObject'].attachSound (this [theSounds[i]);
// create a variable to store the initial volume for each sound:
this [theSounds[i] + SoundObject'].initVolume = theVolumes[i];
// set the volume for this sound:
this [theSounds[i] + SoundObject'].setVolume(this 
[theSounds[i] + SoundObject'].initVolume);

}

Where sound name is the name of the sound object:
To play a sound, just use (sound name).start.
To mute it, use (sound name).setVolume(0);
To restore the volume, use (sound name.setVolume(sound 
name.initVolume). You could construct a function for this where the 
only arg would be the sound name.


HTH

Marc Hoffman



At 08:33 AM 7/6/2007, you wrote:


Sound objects associated with the same movie clip share their
properties (volume, etc.), so if you change the volume through one of
them, the change will be reflected by others, too. That is because in
fact sound properties belong to movie clips and not the Sound objects,
and Sound objects only reflect the sound settings of the associated movie
clip.

  Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:[EMAIL PROTECTED] [EMAIL PROTECTED]
To:  flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com
Date:Friday, July 6, 2007, 4:44:25 PM
Subject: [Flashcoders] Controllingt he volume of multiple sound 
objects at the same time

--===--

Hey there. I am trying to control the volume of a number of sound 
objects that have their own individual volume levels. I want to be 
able to mute them or allow them to play at the volume that has been 
set for them. I was thinking that I could do this by storing the 
values in arrays and then looping through these each time the sound 
is muted/unmuted but I am sure there must be an easier way.

Any suggestsions v gratefully received :)

Here is what I have so far:
var sound1:Sound = new Sound(this);
sound1.setVolume(60);
var sound2:Sound = new Sound(this);
sound2.setVolume(20);

sound1.loadSound('an.mp3', false);
sound2.loadSound('another.mp3', false);



___
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 Development on PC vs Mac

2007-06-20 Thread Marc Hoffman

Jim,

I agree with Seth that the Mac-versus-PC decision should probably be 
made mostly by considerations other than Flash development.


If you are using the laptop primarily in a work environment, one 
major consideration should be what your collaborators are using. For 
example, in a mixed platform environment all fonts must be 
cross-platform (this has been a headache in nearly EVERY 
cross-platform project I've participated in). File  type recognition 
is different between platforms, so that Macs sometimes don't 
recognize PC-generated files (though there are simple work-arounds, 
it's time-consuming and annoying). Another huge consideration is what 
software you will be using. Is it all cross-platform? Who will be 
buying the licenses for new software, and will it make a difference 
if they have to buy licenses for two platforms rather than one?


Another issue is testing, especially if you need to test on browsers. 
If you go with Mac, you'll want easy access to a PC for testing on PC 
browsers. On the other hand, testing on Macs is important but is 
usually secondary to testing on PC's, just because of how the market works.


What platform are you on now? Does it matter whether you can transfer 
your existing software to the new machine?


As far as Flash files themselves, I don't think you'll have 
significant trouble opening PC- or Mac-generated fla's 
cross-platform, aside from missing fonts.


Marc Hoffman
Poison Dart Frog Media

At 09:16 AM 6/20/2007, you wrote:
I'd say your choice of Mac vs. PC should go well beyond which is 
better for flash development considering there are major differences 
between the two.


I'd like to challenge the rest of the people on the list not to get 
into a PC vs Mac fanboy debate and keep this particular discussion 
to flash development on the two OSs.


My only anecdotal evidence is that my wife works for a prominent 
interactive agency that does a ton of flash development. their 
entire flash team uses Macs.




Jim Robson wrote:

Questions for those of you who have done Flash development on both
platforms:
What are the pros and cons of Flash development on Mac vs PC? Which
platform would you recommend?
My laptop is in need of replacement, and my employer generally gives
us a choice of IBM (lenovo) or Mac.



___
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] seamless audio loops

2007-05-30 Thread Marc Hoffman
Some MP3's have padding in the headers which causes Flash to 
hesitate. You probably need to re-encode the MP3's without the 
extraneous information. Sorry I don't have the exact info, but I know 
it's been documented and you should be able to Google it. -Marc


At 08:08 AM 5/30/2007, you wrote:

Hi Guys,

We are having problems with seamlessly looping audio in Flash - is
there a special way of doing this? We are using mp3 and even thought
eh audio is perfect (tested in other apps) we can't get it to loop
properly without gap!

Thanks,

Nik



___
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] textArea doesn't scroll far enough

2007-05-24 Thread Marc Hoffman

I've just added a couple of line breaks to the xml text:

myTextField.htmlText = theXmlText + BRBRBR;

Hackish, but easy to implement.

At 10:44 AM 5/24/2007, you wrote:

I've run into this issue before as well. My (hackish) work-around was to
create an empty MovieClip right after the text, set its alpha to 0, set its
height to like, 50 or some arbitrary number to force the scrollbars to
scroll beyond the text. Very hackish and not the best solution, but I had to
get it working right then and there so


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Allandt
Bik-Elliott (Receptacle)
Sent: Thursday, May 24, 2007 12:30 PM
To: flashcoders
Subject: [Flashcoders] textArea doesn't scroll far enough

gah - not my day today

i've got my textArea loading up a bunch of text from a string, from
an array loaded from an xml file (erk), but the scrollbars for the
component don't scroll far enough (either the bar or the arrows) -
i've dragged down the text with my cursor and the extra lines are there.

does anyone with any experience of using these components know of any
reason this might happen?
___
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


[Flashcoders] [OT] How to capture swf to .avi?

2007-05-23 Thread Marc Hoffman
What software are you using to capture a swf (including audio) and 
save as .avi? Note: I'm not talking about exporting from the .fla -- 
this .swf uses scripted tweens and other scripting, so I need to 
capture the entire animation sequence, including audio, from the .swf 
in either the browser or the standalone Flash player. Must be 
Windows-based. Prefer something under U.S. $100. I see some programs 
online but can't tell if they're professional quality.


Thanks,
Marc Hoffman


___
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 keeps dropping one of my CSS classes

2007-05-07 Thread Marc Hoffman
I am using an internally-defined stylesheet in Flash with three 
styles and about five classes per style.


This was working fine until recently when Flash stopped reading one 
of the classes and started applying the default class. It has nothing 
to do with the xml I'm feeding to the textfield, as that hasn't changed.


I was able to fix the problem by renaming the class and replacing all 
the class designations in the xml for that class. In other words, I 
changed class = 'header3'  to class = 'header4'  in the xml, then 
made the appropriate replacements in the internal style definitions.


This worked for an hour or so, then Flash started losing the class 
again. Seems quite bizarre. Anybody see something like this before? 
Ideas on fixing it? Please don't tell me to define the classes in an 
external CSS; that's not an option at this point.


Thanks,
Marc


___
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] copying formatted text out of flash

2007-04-09 Thread Marc Hoffman
Without the tags, it's unformatted text. In other words, for the copy 
to show formatting, it must have the tags, and it must be displayed 
in a viewer that understands those tags.  -Marc


At 11:22 PM 4/8/2007, you wrote:

Hello

Is there any way to copy formatted text to the system clipboard

ie I don't really want all the html / textformat tags

But I'd like to be able to copy formatted text out of textbox / textarea


I'm thinking that's not too easy - its either plain text, or textformat
tags?

Hoping I'm wrong

Cheers

Rob



Important - This email and any attachments may be confidential. If 
received in error, please contact us and delete all copies. Before 
opening or using attachments check them for viruses and defects. 
Regardless of any loss, damage or consequence, whether caused by the 
negligence of the sender or not, resulting directly or indirectly 
from the use of any attached files our liability is limited to 
resupplying any affected attachments. Any representations or 
opinions expressed are those of the individual sender, and not 
necessarily those of the Department of Education.

___
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] Swf not working when loaded from another movie..

2007-04-08 Thread Marc Hoffman
We need a lot more information to help you. What is the loaded swf 
supposed to do? How much does it actually do when loaded? Also, check 
that you're not using _level0 within the loaded swf to refer to itself. - Marc


At 06:46 PM 4/8/2007, you wrote:


Hi list... i got an swf that actually is the gallery part of a site i am
working on
the swf itself works when run alone... But in the site, when loaded by
loadMovie(), works partially.
does someone know why this is happening

Thanks so much

Regards

--
Omar Fouad - Digital Emotions...



___
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] creatTextField Help

2007-04-05 Thread Marc Hoffman
When embedFonts=true, you must manually embed the font(s) in a 
textfield -- either the one referred to in your text, or a dummy 
field. It can be offstage but it has to be present.


Marc

At 10:50 AM 4/5/2007, you wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

hi everyone, any idea why the text does not show up?

- 



_root.myRed = 0xFF;
_root.myLightGray = 0x99;
_root.myDarkGray = 0x353535;

_root.Art_Fmt = new TextFormat();
with (_root.Art_Fmt) {
font = menuFont;
size = 8;
color = myLightGray;
embedFonts = true;
}

_root.Art_MC = _root.createEmptyMovieClip(Art_MC, 0);
_root.Art_MC.createTextField(Art_Txt, i, 10, 10, 80, 20);
with (_root.Art_MC[Art_Txt]) {
border = false;
autoSize = false;
selectable = false;
embedFonts = true;
html = false;
}

_root.Art_MC[Art_Txt].text = Test Text!!!;
_root.Art_MC[Art_Txt].setTextFormat(_root.Art_Fmt);

_root.onRollOver = function() {
this[Art_Txt].textColor = myDarkGray;
}
-BEGIN PGP SIGNATURE-
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.5

wpwEAQECAAYFAkYVNoQACgkQnK42HzOJXBejgQP+N4+E+HWIZlFIb448AZFEzlbGEOye
hD6bKAUTOrsOoy0Vt/ZyLq7uKqh3Cbb906Xy4hdSjaH/ZHVJ8ten62xdokfd9ev7tyK8
y6v9QPjIQ23t6oAZiwZDu8eE992cghuI9Y5XXXSRS+UH/uke3ykUV5Q5kUWmglbi1vVV
utsPmTY=
=rylS
-END PGP SIGNATURE-

--
Click to find great rates on home insurance, save big, shop here
http://tagline.hushmail.com/fc/CAaCXv1QU9IdGnuLtTBUmTDA5ogVpQkF/


___
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] Free Upgrade CS2 to CS3???

2007-03-29 Thread Marc Hoffman
I hope the information I just got is wrong, so please post here if 
you learn anything different from Adobe.


I just had a long talk with Deborah at US Adobe sales and she was 
unable to find any free update offer from CS2 to CS3, regardless of 
how recently one had purchased CS2.


The best US price she could find for an upgrade was $799, and that 
was going from CS2 Production Premium to CS3 Production Premium. All 
other upgrade paths are called upsell rather than upgrade because 
CS3 Production Premium includes more applications.


So, I have Studio 8 Pro, Photoshop CS, Premiere Pro 1.5, Audition 
1.5, and an old version of Illustrator, and it appears the cheapest I 
can upgrade to the CS3 Production Premiere will be $1199 US. I guess 
it could be worse -- I could be living in Europe.


I would LOVE to hear that I'm wrong, and that there actually is a 
free update if I buy CS2 Premium or CS2 Production Premium in the 
next few days. That would save me a small bundle.


Marc Hoffman

At 12:11 AM 3/29/2007, you wrote:


However there is one interesting thing I found out. Apparently Adobe will
be
offering a FREE update to CS3 for anyone that buys CS2 from now until CS3
is
available...



___
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] timer question

2007-03-25 Thread Marc Hoffman
It doesn't trace plus 10 because you're calling it when you declare 
all your variables, rather than 10 seconds later when seconds == 
newSeconds. You'll need an onEnterFrame or other loop running to 
check, and one of the checks will have to be invoked during the 
single second when it's 10 seconds after var seconds is declared.


Marc Hoffman

At 12:28 PM 3/23/2007, you wrote:

Hi, I'm trying to launch an event using a timer so far the code for
trace something is this:

var now = new Date();

var seconds:Number = now.getSeconds();

trace(seconds);

var newSeconds: Number = seconds+10;

if ( seconds == newSeconds){
trace(plus 10);
}

var seconds:Number = seconds;



the problem is that this ones doesn't trace plus 10, instead just
traces the var seconds.

Do you know what is wrong here?


Regards.



Gustavo Duenas

___
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] Flash - using the back button

2007-03-16 Thread Marc Hoffman
Am I missing something? When I try the included example files and 
move around among the Flash pages, the browser back button does 
nothing. I.E. and Firefox.


- Marc

At 05:49 AM 3/16/2007, you wrote:

u link the button with a java script command the one that gets the history
of the current page back one page...

On 3/16/07, Karim Beyrouti [EMAIL PROTECTED] wrote:


Lovely - SWFAddress looks very nice... thank you all for the links and
advice...


Karim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Henry
Sent: 15 March 2007 23:45
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash - using the back button

Hi,

I've been using SWFAddress (http://www.asual.com/swfaddress/), no
tutorials needed really...

Steven


Karim Beyrouti wrote:

Hi All,

I was just wondering what the best way to activate the browser's back
button
for a Flash(8) app?... are there any up to date resources / tutorial
about
this?...


Kind regards



Karim






___
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

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.11/723 - Release Date:
15/03/2007
11:27


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.11/723 - Release Date:
15/03/2007
11:27


___
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




--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
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] Split text field for multi-page print job

2007-03-14 Thread Marc Hoffman

Before I re-invent the wheel:

Has anyone come up with a method to split a long text field into 
shorter ones that can each print on a new page? Some of my text 
fields should probably be broken into 3 or 4 pages so the text is 
large enough to read easily. This needs to be done dynamically, as 
the text length varies depending on an xml file and I don't want to 
have to manually define where the text should break.


Thanks,

Marc Hoffman


___
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] question about txt files and flash

2007-03-14 Thread Marc Hoffman
You might try using the XML Object to load and parse the xml. And of 
course make sure your xml is properly formatted (drag it into I.E. 
for a quick check).


- Marc

At 10:28 AM 3/14/2007, you wrote:

Hi, there is a limit height that flash can process or read from a
text file?, because I have something with xml tags, the file reads
well till the
item4, so far i didn't read anything...there is a way to tell flash
that there is something way beyond that ...?
I'm using loadVariables(url, this.content(the name of the dinamic
text));


Regards



Gustavo Duenas



___
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] Split text field for multi-page print job

2007-03-14 Thread Marc Hoffman
[This seems not to have gone through the first time. Forgive me if 
you get it twice.]


Before I re-invent the wheel:

Has anyone come up with a method to split a long text field into 
shorter ones that can each print on a new page? Some of my text 
fields should probably be broken into 3 or 4 pages so the text is 
large enough to read easily. This needs to be done dynamically, as 
the text length varies depending on an xml file and I don't want to 
have to manually define where the text should break.


Thanks,

Marc Hoffman


___
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] (job offered) Need Referral to ASP Programmer

2007-03-13 Thread Marc Hoffman
I am looking for someone to work the server side of a Flash project, 
using asp. No recruiters, please.


Might this be you, or someone you know? The person must have 
demonstrated expertise in these areas:


1. Establish a database (this one will hold about 1,000 items, each 
with 4-6 fields).
2. On receipt of a query from Flash, the ASP will send Flash an xml 
file of the current database.
3. Establish a shopping cart, possibly using AbleCommerce, which is 
asp.net -- not sure yet, and not sure if using .net complicates 
things. You might be in a position to recommend a different shopping 
cart that you're more familiar with, as long as it works with asp.

4. Receive variables from Flash and send them securely to the shopping cart.

Experience integrating Flash and asp is desirable, but not essential.

The project is not yet certain, but we're well into negotiations.

Please email me offlist. If you include links to a resume and work 
samples, I promise to reply. If you look like a good candidate, I 
will also forward your information to the client, who will be doing the hiring.



Many thanks,

Marc

Marc Hoffman
Poison Dart Frog Media
Macromedia-Certified Flash Developer
Online Portfolio: http://www.dartfrogmedia.com/portfolio
___
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] Adjust height of UIScrollBar?

2007-03-13 Thread Marc Hoffman
Update: I was finally able to do this -- not sure exactly where in 
the sequence the UIScrollbar snaps to the textfield, but if you catch 
it after that point you can just use myScrollBar._height = nnn. I'm 
now setting it after the xml loads and is assigned to the text field, 
and that seems to work fine.


Marc

At 11:06 PM 3/12/2007, you wrote:


Errors-To: [EMAIL PROTECTED]
X-UIDL: -22!#ea!!JkI!!Ub##!

I want to set the UIScrollbar height independent of the height of 
the textfield being scrolled. I used to be able to do this easily. 
Is it just me, or did Flash8 do away with that? Now the scrollbar 
snaps to the height of the textfield no matter what I do. Anyone 
know how to fix this? I want the scrollbar to fill a vertical space 
but I want the textfield shorter so it maintains top and bottom 
margins. Anyone know how to do this?


thanks,
Marc



___
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] deleting a progress bar after loading

2007-03-12 Thread Marc Hoffman
Sorry I just caught this thread, but I notice something that seems 
wrong in your code. You have:

if(_root.logoX._x=_root.logoX._x-270)...

Now, why would a value ever be equal to less than itself? If this is 
an important part of your code, you need to create another variable 
to remember the initial value, and then compare the current value to 
it. Something like:


_root.logoX._x=5;
_root.logoXInitX = _root.logoX;
if(_root.logoX._x=_root.logoXInitX-270){
   _root.logoX=0;
   _root.menu._x-=275;
_root.button1._x-=180;
}

All this is said without figuring out what your code is actually 
supposed to do.


- Marc

At 10:23 PM 3/12/2007, you wrote:


_root.logoX._x-=5;
//revisamos la posicion
if(_root.logoX._x=_root.logoX._x-270){
   _root.logoX=0;
   _root.menu._x-=275;
_root.button1._x-=180;
}



___
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] Adjust height of UIScrollBar?

2007-03-12 Thread Marc Hoffman
I want to set the UIScrollbar height independent of the height of the 
textfield being scrolled. I used to be able to do this easily. Is it 
just me, or did Flash8 do away with that? Now the scrollbar snaps to 
the height of the textfield no matter what I do. Anyone know how to 
fix this? I want the scrollbar to fill a vertical space but I want 
the textfield shorter so it maintains top and bottom margins. Anyone 
know how to do this?


thanks,
Marc


___
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] Long text field multipage print job

2007-02-27 Thread Marc Hoffman
[I'm pretty sure this is not a new issue, but I can't get into the 
Flashcoders archives or find anything on Google.]


I want to allow visitors at a Flash website to print out a long block 
of text that's currently in a scrolling textfield. But I want to 
break it up into a multi-page print job. I'm familiar with printing 
from an offstage movieclip, but I'm not sure how to go about breaking 
up the text into several blocks that will print on separate pages all 
in one print job.


Any tips?

Thanks,
Marc Hoffman


___
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] Prevent Reading Cached xml Doc?

2007-02-15 Thread Marc Hoffman
When loading an xml doc into an XML object, how can I prevent Flash 
from using a cached version of the xml doc? I've tried adding a 
random query string:


myXML.load(xml/ + page + .xml ?randomArg= + Math.random());

but Flash won't find the xml doc if the query string is there.


___
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] Prevent Reading Cached xml Doc?

2007-02-15 Thread Marc Hoffman
Thanks, Jason. That not only works, it makes it clear why mine didn't 
work (trying to pass a query string to the local player).


- Marc

At 11:04 AM 2/15/2007, you wrote:

I use this:

if(System.capabilities.playerType == External){  //running locally
local = true;
}else if(System.capabilities.playerType == ActiveX ||
System.capabilities.playerType ==PlugIn){  //runnning in a browser
local = false;
}

var contentXML:XML = new XML();
contentXML.ignoreWhite = true;
contentXML.onLoad = xmlLoadHandler
if(local){
contentXML.load(content.xml);
}else{
contentXML.load(content.xml?cb=+getTimer());
}


Jason Merrill
Bank of America
Learning  Organizational Effectiveness



___
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] Mouseclick on disabled button....

2007-01-25 Thread Marc Hoffman
Are you sure the slowdown is only when clicking on the buttons? Does 
it slow down when you click other places?


At 06:51 AM 1/25/2007, you wrote:
no onEnterframe() , just plain movieclip timeline animations, little 
heavy though, and some buttons comtrolling them which are disabled 
when animations are running.




Lois IN [EMAIL PROTECTED] wrote:
  Maybe you have a lot of onEnterFrame, or somthing like this and your movie
was to heavy.

Paste your code to see what's happend.


2007/1/25, Arindam Dhar :


 its button.enabled = false;

 Lois IN wrote:
 Hi,
 First of all, sorry for my english.

 When you say the button are disabled you refer like this:
 button.enabled = false;
 Or you just talk about visibiliti:
 button._visible = false;

 Please confirm that.

 Regards!

 2007/1/25, Arindam Dhar :
 
  hi,
 
  I have a movie loaded with many animations(not scripted). And there are
  few buttons on stage to control them.Now,when the buttons are disabled,
  continueously clicking on them makes the animations slower and sometimes
  jerky.
 
  Why is that happening? When button is disabled no code execution happens
  so, what consumes the CPU? its a fact that multiple processing makes
 flash
  animations slower, but never thought clicking disabled buttons would
 consume
  CPU and make animations slower..
 
  Any explanation is highly appreciated..
 
  thanks,
 
  Arindam
 
 
  -
 
  Real people. Real questions. Real answers. Share what you know.
  ___
  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



 -

 Real people. Real questions. Real answers. Share what you know.
 ___
 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



-
 Yahoo! Movies - Search movie info and celeb profiles and photos.
___
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] Mouseclick on disabled button....

2007-01-25 Thread Marc Hoffman
It is typical that a movie that is highly taxing to the processor 
will slow down when rapid mouse motion or clicks are occurring. I 
would guess that the reason you can't replicate your user's 
experience is that your computer is more powerful or you've upgraded 
the Flash player. I doubt that it makes a difference whether you 
click over a disabled button or over another area of the Flash 
screen, but you would need to use a fps detector to achieve a 
reliable test, unless the difference was extreme.


Marc Hoffman

At 08:16 AM 1/25/2007, you wrote:
I am not sure if slowdown happens when other areas are clicked, in 
fact this problem was reported by someone else and i just saw him 
clickng only the disabled buttons. Later,may be after a month of 
reporting, I could not reproduce the same problem and still trying. 
But whats for sure is, i have seen the problem happening.So i was 
just wondering how it could it happen earlier and not happening now. 
But i have observed that clicking a disabled button rapidly, does 
consume a little CPU...





  Marc Hoffman [EMAIL PROTECTED] wrote:
  Are you sure the slowdown is only when clicking on the buttons? Does
it slow down when you click other places?

At 06:51 AM 1/25/2007, you wrote:
no onEnterframe() , just plain movieclip timeline animations, little
heavy though, and some buttons comtrolling them which are disabled
when animations are running.



Lois IN wrote:
 Maybe you have a lot of onEnterFrame, or somthing like this and your movie
was to heavy.

Paste your code to see what's happend.


2007/1/25, Arindam Dhar :
 
 
  its button.enabled = false;
 
  Lois IN wrote:
  Hi,
  First of all, sorry for my english.
 
  When you say the button are disabled you refer like this:
  button.enabled = false;
  Or you just talk about visibiliti:
  button._visible = false;
 
  Please confirm that.
 
  Regards!
 
  2007/1/25, Arindam Dhar :
  
   hi,
  
   I have a movie loaded with many animations(not scripted). And there are
   few buttons on stage to control them.Now,when the buttons are disabled,
   continueously clicking on them makes the animations slower 
and sometimes

   jerky.
  
   Why is that happening? When button is disabled no code 
execution happens

   so, what consumes the CPU? its a fact that multiple processing makes
  flash
   animations slower, but never thought clicking disabled buttons would
  consume
   CPU and make animations slower..
  
   Any explanation is highly appreciated..
  
   thanks,
  
   Arindam
  
  
   -
  
   Real people. Real questions. Real answers. Share what you know.
   ___
   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
 
 
 
  -
 
  Real people. Real questions. Real answers. Share what you know.
  ___
  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



-
 Yahoo! Movies - Search movie info and celeb profiles and photos.
___
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



-
Meet your soulmate!
 Yahoo! Asia presents

RE: [Flashcoders] Getting Frames Per Second

2007-01-23 Thread Marc Hoffman

Daniel,

Try this, from Colin Moock:

http://www.moock.org/webdesign/flash/actionscript/fps-speedometer/http://www.moock.org/webdesign/flash/actionscript/fps-speedometer/ 



A bit dated, but still should work fine or at least give you a 
headstart building your own.


Marc Hoffman

At 10:20 AM 1/23/2007, you wrote:

The post below about converting graphics to vectors got me thinking 
and I wanted to see how using bitmap cache, vectors, filters, 
images, etc effected the frame rate.  I can obviously see when the 
frame rate slows down, but it'd be nice to have some actual numbers with it.


I'd also like to get some real numbers when testing flash 
applications on slower computers and different OS.


Daniel Holth

___
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] Mouse stage border issue?

2007-01-21 Thread Marc Hoffman
Make the stage larger, but keep the game the same size. Constrain 
dragging the paddle to the game area.


At 10:23 AM 1/21/2007, you wrote:


Question, is there any way to control the mouse that it doesn't go out of
the stage as quick?  I have a simple pong game that people I have test it
find they go outside of the stage window too often and lose control of the
paddle.  I.e. they exit the stage to quick with a broad stroke of the
mouse.  I'd like to find a more elegant solution than telling them Move
the mouse in smaller motions.

Thanks!



Marty



___
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] Get Properties of a Gradient on Stage

2007-01-19 Thread Marc Hoffman
If you have the .fla, you can just use the eyedropper tool to pull 
the gradient info into the color mixer panel, then save it as a 
swatch. Low-tech solution :)


At 08:22 AM 1/19/2007, you wrote:


Is there any JFSL way to get the color and position array data from a
hand draw gradient on the stage at dev time? I am trying to reproduce
a gradient that was given to me that has about 15 color changes in
it, and the best i can do right now is guess at the position of each
color change...

thanks
mike



___
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 adds seconds to audio clip

2006-12-29 Thread Marc Hoffman

Hi Frank,

Not sure why it's an issue for you, so I'm not sure what to suggest.

If you still want to test the length of the audio clip, use 
SoundObject to load it and then use SoundObject's onComplete method 
to tell you when the sound is done.


But the bigger question is, why is this a problem? As I mentioned, if 
the sound is musical, you'd almost certainly hear a change in pitch 
if the speed were off by one or two percent.


Marc

At 08:40 AM 12/29/2006, you wrote:

Thanx Marc,

I don't have a stopwatch...but I did use windows media player and when
I put a 'finish' text box on the 362nd frame, then it doesn't appear
until approximately 2 seconds after the audio has finished playing.

In one way it seems like a bug since the frame after the audio clip is
not being executed until 2 seconds later than it should.  But it
maybe, like you said, the audio clip is eating up so many resources
that Flash won't even show the 'finish' text box until 2 seconds after
it should.

It does fine with .avi video files though...it is just .wav and .mp3
files that are giving me troubles.


Any other suggestions?

thanx -
 Frank



On 12/28/06, Marc Hoffman [EMAIL PROTECTED] wrote:

 From your description, it's not clear if the trace output is 32
seconds or 28.1 seconds. But either way, if the sound were being
slowed down or sped up that much, you would likely hear a difference
in pitch (especially if it's music).

Try timing the audio with a stopwatch. I'm guessing it's the trace
call that's being delayed due to the sound processing, and that the
sound is being played correctly.

Marc Hoffman

At 12:30 PM 12/28/2006, you wrote:
Hello all,

When I play a 30 second audio file in Flash (.wav or .mp3), it is
taking flash 32 seconds to run it.


To test this, I've made it real simple and only used one layer (The
frame rate for the audio is 12 fps).  The audio starts on the first
frame and lasts until the 361st (30 seconds x 12 fps + 1) frame.  I've
added this code to these frames:

var tmp = new Date();
trace(start time:  + tmp.getSeconds());

On the 362nd frame (immediately after the audio has played) I have
another key frame with this code:

var tmp = new Date();
trace(end time:  + tmp.getSeconds());


That's it.  I just output the time when the movie starts and when it
stops.  When I only use 338 frames (instead of 361), then the whole
clips pays fine and lasts 30 seconds.


Why is a 30 second clip (running at 12 fps) only taking 28.1 
seconds to play?


Thank you -
  Frank
___
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




___
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 adds seconds to audio clip

2006-12-28 Thread Marc Hoffman
From your description, it's not clear if the trace output is 32 
seconds or 28.1 seconds. But either way, if the sound were being 
slowed down or sped up that much, you would likely hear a difference 
in pitch (especially if it's music).


Try timing the audio with a stopwatch. I'm guessing it's the trace 
call that's being delayed due to the sound processing, and that the 
sound is being played correctly.


Marc Hoffman

At 12:30 PM 12/28/2006, you wrote:

Hello all,

When I play a 30 second audio file in Flash (.wav or .mp3), it is
taking flash 32 seconds to run it.


To test this, I've made it real simple and only used one layer (The
frame rate for the audio is 12 fps).  The audio starts on the first
frame and lasts until the 361st (30 seconds x 12 fps + 1) frame.  I've
added this code to these frames:

var tmp = new Date();
trace(start time:  + tmp.getSeconds());

On the 362nd frame (immediately after the audio has played) I have
another key frame with this code:

var tmp = new Date();
trace(end time:  + tmp.getSeconds());


That's it.  I just output the time when the movie starts and when it
stops.  When I only use 338 frames (instead of 361), then the whole
clips pays fine and lasts 30 seconds.


Why is a 30 second clip (running at 12 fps) only taking 28.1 seconds to play?

Thank you -
 Frank
___
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] passing parameters to function on context menu

2006-12-07 Thread Marc Hoffman
Not sure why you'd need to pass parameters, since the context menu is 
established by your code and doesn't allow sub-menus (from what I've 
read). Whatever parameter you need to pass, I assume it's a result of 
something else happening in the movie, so why not store it in a 
variable in the movie and then access it as part of the function 
_test? If the parameter varies depending where the user right-clicks, 
you'd need a new context menu for that area of the stage, or you 
could evaluate where the mouse cursor is and use that to generate the 
parameter. If you need variations on the function from a single 
context menu, just create more custom items (up to 15 are allowed).


Or am I missing something?

Marc Hoffman

At 12:38 PM 12/7/2006, you wrote:


Hi!
I have this code:
var cm:ContextMenu = new ContextMenu();
cm.hideBuiltInItems();
cm.customItems.push(new ContextMenuItem(My menu, _test));
my_dg[menu] = cm;//my_dg is an data grid component

How i can pass parameters to function _test



___
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] How to Embed Fonts for CSS Usage

2006-12-06 Thread Marc Hoffman

I am having trouble getting Flash to embed a font that is designated by CSS.

In Flash:
- I create a textfield, create a loadVars and a StyleSheet, load the 
CSS into the StyleSheet, and designate the style sheet as the style 
for the text field. I then load text into the textfield (currently 
using hard-coded AS, but eventually it will be xml).
- I also create dummy text fields to embed the fonts in Flash that 
the CSS uses.

- I then generate the .swf for testing.

The CSS file is present and working.

When I play the swf, Everything works okay ONLY IF the font is on my 
system. If I remove the font from my system and double-click the swf 
again, the font is replaced by a system-resident font.


Is there a right way to embed a font in a swf so that when it is 
called by CSS, it will display even if it's not on the user's system?


TIA,

Marc Hoffman


___
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] How to Embed Fonts for CSS Usage

2006-12-06 Thread Marc Hoffman

Well, one question leads to another :)

First, thank you Jim -- I had avoided embedFonts thinking it would 
embed the entire character set, but according to the Size Report it 
embeds only those characters I embed in the dummy text fields. So now 
it's working fine.


And now my next question: Is there a way to dynamically 
increase/decrease type size when using CSS? Once the CSS is loaded 
into the swf, can I modify its font-size settings? I can change type 
size using textFormat, but since it seems you can't combine 
textFormat with CSS, I lose the benefits of CSS (in particular the 
ability to define a:link and a:hover).


thanks,
Marc

At 09:47 AM 12/6/2006, you wrote:

Just checking for gotchas...

Are you loading text into a textfield on the stage, or creating the
field dynamically?

Either way, set myTextField.embedFonts = true; if you haven't already...

Jim Kremens

On 12/6/06, Marc Hoffman [EMAIL PROTECTED] wrote:

I am having trouble getting Flash to embed a font that is designated by CSS.

In Flash:
- I create a textfield, create a loadVars and a StyleSheet, load the
CSS into the StyleSheet, and designate the style sheet as the style
for the text field. I then load text into the textfield (currently
using hard-coded AS, but eventually it will be xml).
- I also create dummy text fields to embed the fonts in Flash that
the CSS uses.
- I then generate the .swf for testing.

The CSS file is present and working.

When I play the swf, Everything works okay ONLY IF the font is on my
system. If I remove the font from my system and double-click the swf
again, the font is replaced by a system-resident font.

Is there a right way to embed a font in a swf so that when it is
called by CSS, it will display even if it's not on the user's system?

TIA,

Marc Hoffman


___
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



--
Jim Kremens
___
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] How to Embed Fonts for CSS Usage

2006-12-06 Thread Marc Hoffman
Thanks, Jim. I appreciate your help. Your post makes sense to me and 
I'll play with modifying the styleSheet object.


If anyone has examples of this, it would probably save me a couple of 
hours experimenting.


Thanks all,

Marc

At 11:24 AM 12/6/2006, you wrote:

You can do this.  I don't have time to do even pseudocode, but

Once you've loaded a sylesheet from a file, you can modify it.
Therefore, you can build a function to:

1.  Modify a property of your styleSheet object.
2.  Broadcast notification that it has been modified to all interested
text fields.  If you don't know what I mean, look into
EventDispatcher, AsBroadcaster, or the Observer Pattern in general.

Once each textfield is notified that there's been a change in its
stylesheet, it can trigger a function to reassign its stylesheet
property to that altered stylesheet.  Kind of like refreshing

Jim Kremens

On 12/6/06, Marc Hoffman [EMAIL PROTECTED] wrote:

Well, one question leads to another :)

First, thank you Jim -- I had avoided embedFonts thinking it would
embed the entire character set, but according to the Size Report it
embeds only those characters I embed in the dummy text fields. So now
it's working fine.

And now my next question: Is there a way to dynamically
increase/decrease type size when using CSS? Once the CSS is loaded
into the swf, can I modify its font-size settings? I can change type
size using textFormat, but since it seems you can't combine
textFormat with CSS, I lose the benefits of CSS (in particular the
ability to define a:link and a:hover).

thanks,
Marc

At 09:47 AM 12/6/2006, you wrote:
Just checking for gotchas...

Are you loading text into a textfield on the stage, or creating the
field dynamically?

Either way, set myTextField.embedFonts = true; if you haven't already...

Jim Kremens

On 12/6/06, Marc Hoffman [EMAIL PROTECTED] wrote:
I am having trouble getting Flash to embed a font that is 
designated by CSS.


In Flash:
- I create a textfield, create a loadVars and a StyleSheet, load the
CSS into the StyleSheet, and designate the style sheet as the style
for the text field. I then load text into the textfield (currently
using hard-coded AS, but eventually it will be xml).
- I also create dummy text fields to embed the fonts in Flash that
the CSS uses.
- I then generate the .swf for testing.

The CSS file is present and working.

When I play the swf, Everything works okay ONLY IF the font is on my
system. If I remove the font from my system and double-click the swf
again, the font is replaced by a system-resident font.

Is there a right way to embed a font in a swf so that when it is
called by CSS, it will display even if it's not on the user's system?

TIA,

Marc Hoffman


___
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


--
Jim Kremens
___
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



--
Jim Kremens
___
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] (revised post) textFormat, CSS, embedded fonts, dynamic font size control

2006-12-01 Thread Marc Hoffman
[I'm revising and re-sending this as I'm not sure this reached the 
list, and I've answered some of my own questions. -Marc]


I'm working on an all-Flash site that will use a single swf to 
display many pages of information about manufactured products. 
Regarding text functionality, I'm not sure what combination of 
textFormat, CSS, and font embedding to use. I want to achieve the following:


1. Dynamic text fields that display text from an xml file.
2. Embedding several fonts, but not the entire character sets.
3. Allowing the user to modify the point size of the text (for accessibility).
4. Controlling a:hover and a:link properties from a central location 
so that I can apply color and underline effects to links.


#1: This is no problem for me.

#2: The issue is that if I use CSS rather than TextFormat, the 
embedded fonts aren't accessed by Flash, so the font must reside on 
the user's system, which is no good.


#3: Is there a way to trap the browser text-size controls so that 
they tell Flash to resize the text? Sort of like trapping the Forward 
and Back buttons in the browser. But it could be too complicated if 
the different browsers use different methods to resize the text. 
Anybody have experience with this?


#4: Can CSS be used at the same time as TextFormat? If so, how? 
Specifically, I'd like to specify a:hover and a:link properties via 
CSS, but handle most other text properties via TextFormat.


Many thanks!

Marc Hoffman


___
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] (revised post) textFormat, CSS, embedded fonts, dynamic font size control

2006-12-01 Thread Marc Hoffman

Hi Jim,

Thanks so much for the reply. I'll have to double-check my tests -- I 
embedded the fonts (as you suggested) in offstage textfields. Then I 
designated the font face and other attributes in CSS, loaded the CSS 
into a style, and attached the style to an onstage textfield (or some 
such procedure -- the point being it mostly worked). All the CSS 
attributes worked (a:hover, a:link, color, size) but the font 
designation would not work unless the font was on my system. Are you 
sure it worked for you when the font wasn't present on the user's system?


This is also becoming complicated by the fact that I now am letting 
the user increase text size by modifying the TextFormat size and 
reapplying the TextFormat to the textfield. I suppose I could do 
something similar using CSS, though I don't know how to dynamically 
change the text size in CSS.


Marc

At 11:58 AM 12/1/2006, you wrote:

#2: The issue is that if I use CSS rather than TextFormat, the
embedded fonts aren't accessed by Flash, so the font must reside on
the user's system, which is no good.

This is not true.  I've used CSS and embedded fonts lots of times.
You should be able to find plenty of examples by Googling.  A trick
you might employ:  embed the fonts you need in dummy textfields
offstage.  Then, when Flash calls for the font specified in the
stylesheet, it's in the swf.  Alternatively, you could look into
shared libraries for loading the font.  And lastly, several dynamic
font loaders have ben written that can address this problem.  Using
one of these, you'd load the fonts you need into the swf just like you
load images or any other asset.

#4: Can CSS be used at the same time as TextFormat? If so, how?
Specifically, I'd like to specify a:hover and a:link properties via
CSS, but handle most other text properties via TextFormat.

As far as I know, you can't really do this.  But look into
stylesheet.transform() as a way of expanding the things that can be
done with CSS.  Again, Google is your friend.

Good luck!

Jim Kremens


On 12/1/06, Marc Hoffman [EMAIL PROTECTED] wrote:

[I'm revising and re-sending this as I'm not sure this reached the
list, and I've answered some of my own questions. -Marc]

I'm working on an all-Flash site that will use a single swf to
display many pages of information about manufactured products.
Regarding text functionality, I'm not sure what combination of
textFormat, CSS, and font embedding to use. I want to achieve the following:

1. Dynamic text fields that display text from an xml file.
2. Embedding several fonts, but not the entire character sets.
3. Allowing the user to modify the point size of the text (for 
accessibility).

4. Controlling a:hover and a:link properties from a central location
so that I can apply color and underline effects to links.

#1: This is no problem for me.

#2: The issue is that if I use CSS rather than TextFormat, the
embedded fonts aren't accessed by Flash, so the font must reside on
the user's system, which is no good.

#3: Is there a way to trap the browser text-size controls so that
they tell Flash to resize the text? Sort of like trapping the Forward
and Back buttons in the browser. But it could be too complicated if
the different browsers use different methods to resize the text.
Anybody have experience with this?

#4: Can CSS be used at the same time as TextFormat? If so, how?
Specifically, I'd like to specify a:hover and a:link properties via
CSS, but handle most other text properties via TextFormat.

Many thanks!

Marc Hoffman


___
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



--
Jim Kremens
___
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] fllickr

2006-11-27 Thread Marc Hoffman
I have notified the list-owner of the issues with flickr. Hopefully 
the flickr account (if there is one) will be removed from Flashcoders 
and Flashnewbie.


Marc

Marc Hoffman
Poison Dart Frog Media
Certified Flash Developer
Online Portfolio: http://www.dartfrogmedia.com/portfolio 
___

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] mp3 not playing in I.E. 6

2006-11-13 Thread Marc Hoffman
I found that a ZoneAlarm setting was interfering with I.E. playing 
the mp3's. Not a very happy outcome, since I can't coach every user 
on how to set ZoneAlarm. But many others tested the page and nobody 
else had the same problem, so I suppose it's pretty rare.


At 08:11 AM 11/13/2006, you wrote:

Marc, did you ever get this problem solved, I'm currently having a similar
issue..?





Here is my post.



Site: http://www.sonburst.com/nng/



The application no longer will display the time on the page, it turned to
the original request of a progress bar that shows a percentage

There are some problems of the page not doing what they want it to, when
going back through mp3's... the problem has been identified in .mp3 files
are being cached in IE 6.

I'm currently trying to find a fix for this... so far, i've tried preventing
the page cache using

CFHEADER NAME=Pragma VALUE=no-cache

but no luck so far... when i go into IE, and change my settings to

Tools  Internet Options  (Temporary Internet Files)  Click on Settings 
Change the value Check for newer versions of stored pages to every visit
to the page and then i deleted my files, and refreshed the page, and it
worked

Still working on a permanent fix, but we've identified the problem.  Used a
tool called Service Capture to find out that it was IE 6 that was doing
it... the problem doesnt seem to be happening in firefox, and that is one of
the reasons I never saw it, because my base alpha testing was done in
firefox



Check it out at



http://axel.cfwebtools.com http://axel.cfwebtools.com/













Coldfusion Experts





Axel Jensen

CF Webtools


11204 Davenport, Suite 200b
Omaha, NE 68154
http://axel.cfwebtools.com
402-408-3733 Ext 106


MSN: [EMAIL PROTECTED]













___
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] Video Controller Component

2006-11-10 Thread Marc Hoffman

Eric,

The video player component that ships with Flash 8 Pro can be loaded 
dynamically.


Please don't cross-post to Flashcoders and Flashnewbie. It causes 
confusion as to which posts have been responded to, and many members 
find it annoying.


Thanks,
Marc

At 09:42 AM 11/10/2006, you wrote:

Hello all,

I am in search of a Video Controller Component usage w/ dynamic video
loading anyone know of one? I use php for all my sites also. I have
found some references to one in the archives but could not find a link
anywhere.

Thanks in advance,

Eric



___
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] Detecting a click on an html link in a text field

2006-11-08 Thread Marc Hoffman
And on yet another side note, I believe only one arg can be passed 
with an a-href asfunction call. However, it could contain several 
args separated by a character other than a comma, such as the pipe 
(|) character, then in the function declaration, convert the pipe 
character to comas to split the value into several args.


Marc

At 10:15 AM 11/8/2006, you wrote:

A side note, fairly irrelevant, but I heard/read somewhere asfunction is
going away in AS3 - I think I saw that in the AS3 documentation - anyone
know what the equivalent form would be in the future?

Jason Merrill
Bank of America
Learning  Organizational Effectiveness


-Original Message-

Hi List,

If you have an href link within an html text field in Flash, is there
any way of detecting when the user clicks on it?




___
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] Q: exact match of flash background hex color and background color of html page

2006-11-06 Thread Marc Hoffman
I believe if you use web-safe colors, they will look the same in both 
Flash and HTML on a 16-bit display. But this bears testing out.  - Marc Hoffman


At 03:34 PM 11/6/2006, you wrote:


[EMAIL PROTECTED] wrote:
I've encountered issues in the past, where the identical hex colors 
in flash and in html were rendered slightly different, making it 
impossible to seemless merge the 2.

Does anyone know if this isue been resolved?


Usually depends on the display space... on 16-bit displays you'll 
see undisplayable colors handled in different ways be different 
rendering engines.


HTML colors look different than SWF colors
http://www.adobe.com/go/14819


jd



___
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] Scaling problem while loading external jpeg's in the Movie Clip

2006-11-01 Thread Marc Hoffman
First, use MovieClipLoader to load the image. This will allow you to 
determine when it has initialized (onLoadInit). Then determine the 
ratio of the image width to the actual width you want it to be. Do 
the same for the height. Determine which ratio is larger, and use 
that to rescale both the height and width of the image.


- Marc Hoffman

At 05:10 AM 11/1/2006, you wrote:


Hi,



I am using loadMovie function to load the external jpeg files in the Movie
Clip.

The Movie Clip (in which I am loading the external jpeg files) varies in
size depending on the users screen resolution.

The problem I am facing while scaling the images in the Movie Clip. When I
scale the images to fit it properly in Movie Clip, it gets distorted, as the
image's height and width is greater than the Movie Clip's height and width.



Is there any solution to overcome this problem?



Thanks for any help!

Abhijit



___
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] Scaling problem while loading external jpeg's in theMovie Clip

2006-11-01 Thread Marc Hoffman
doesn't address the problem -- resizing the image to a fixed ratio 
that may not be the ratio of the loaded image, so it becomes distorted.


-Marc Hoffman

At 10:43 AM 11/1/2006, you wrote:


this.holder.loadMovie(some.jpg);
this.onEnterFrame = function() {
if (this.holder._width  4) {
resizeHolder();
delete this.onEnterFrame;
}
};
function resizeHolder() {
holder._width = w;
holder._height = h;
}
__



___
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] Scaling problem while loading externaljpeg's in theMovie Clip

2006-11-01 Thread Marc Hoffman
You also need to use MovieClipLoader and onLoadInit before measuring 
the size of the clip. Just testing it for _width4 (per your earlier 
example) will return an immediate positive if there was an image 
already loaded prior to calling loadMovie.

-Marc

At 11:50 AM 11/1/2006, you wrote:


It addresses half the problem.   I missed the other requirement.

It's pretty easy to accomplish that, though.

You find the largest dimension delta and determine its percentage delta
and then adjust based on that.

var perc:Number;
if (actualW - targetW  actualH - targetH) {
perc = targetW / actualW;
} else {
perc = targetH / actualH;
}
clip._xscale = clip._yscale = perc * 100;



___
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] Scaling problem while loading externaljpeg'sin theMovie Clip

2006-11-01 Thread Marc Hoffman
Perhaps I'm wrong, but I thought I did a valid test to see what 
_width was returned right after a holder clip, which already had an 
image loaded, was instructed to load another image. The width that 
was returned was for the prior image, even though the loadMovie 
command for a new image had already been issued:


holder.loadMovie(image01.jpg);
// then after a few seconds, call this:
holder.loadMovie(image02.jpg);
trace (holder._width) // returns the width of image01.jpg, NOT zero 
or the width of image02.jpg


Thus I don't believe that this code, which you proposed, will detect 
if the new image has loaded:


this.holder.loadMovie(some.jpg);
this.onEnterFrame = function() {
if (this.holder._width  4) {
resizeHolder();
delete this.onEnterFrame;
}
};

That's why I think onLoadInit is required. How else would you know 
when to rescale the new image?


By the way, I do like your code to determine the scale factor and do 
the scaling. Nice and efficient.


-Marc

At 04:44 PM 11/1/2006, you wrote:


You don't NEED to use MovieClipLoader and onLoadInit, but feel free to
if you WANT.  :)



___
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] Dynamically Distort Text?

2006-10-24 Thread Marc Hoffman
Thanks to Scott and Gregory for the replies. It's pretty much as I 
suspected -- no dynamic solution in Flash alone.  -Marc


At 09:05 AM 10/24/2006, you wrote:

Not in (solely) flash, as far as I know or have ever seen.

We created a Java class that takes the parameters (font, text, style) and
performs the distortions on actual letter outlines, using Font objects. This
was set up as a webservice (coldfusion instantiates java object) that
returns coordinates for flash to draw out, at runtime.

Here's a section of that code, to give an idea (sorry, closed-source!):

private java.awt.Shape transform( int layout, String text, String font )
{
   j_Font = new java.awt.Font(font, java.awt.Font.PLAIN, FONT_SIZE);

   // FontRenderContext needed to create a GlyphVector object
   FontRenderContext frc = new FontRenderContext(null,true,true);

   // Create a GlyphVector object to get an outline of the text string
   GlyphVector gv = j_Font.createGlyphVector(frc, text);

   int length = gv.getNumGlyphs(); //Get the number of characters
   for(int i = 0; i  length; i++) {
   java.awt.Shape glyph = gv.getGlyphOutline(i); //Transform
single glyph to Shape

   double glyphWidth = glyph.getBounds().getWidth(); //Get
single glyph width prior to rotation
   theta = (accGlyphWidth/gvWidth) * totalRotationDistance;
//Set rotation by points
   accGlyphWidth = accGlyphWidth + glyphWidth; //Add up
distance traveled thus far

   Point2D p = gv.getGlyphPosition(i);

   AffineTransform at = new AffineTransform();
   at.translate(-p.getX(), -p.getY());
  .
  .
 .
   }
 .
.
.

}

As you can see, most of the transformations were accomplised using
AffineTransform to the glyphs stored in 'gv'.

Hope that gives you an idea of how this was done..!

Scott

On 10/23/06, Marc Hoffman [EMAIL PROTECTED] wrote:


I need to dynamically distort user input text to fill a limited set
of shapes. For example, the user might type in WINNERS and select a
shape like the Arc d' Triomphe (flat-topped arch), and the tops of
all the letters would be flat but the bottoms would be curved. This
is more than just putting text on a curve -- it requires actually
distorting the individual letters. Nike has something similar to this
(but not exactly) on their custom uniform builder. See
http://www.niketeam.com/v2/new/Builders/Baseball/check_flash5.asp and
move through the steps until you reach the Select Name Style, after
which you'll see the effect I'm after. Somehow they are able to skew
the letters, though they're not actually distorting any straight
lines into a curve, and all the letters keep the same height.

Anyone know of something like this? Especially Flash 7-compliant?

Thanks.

Marc Hoffman


___
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




--

: : ) Scott
___
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] Dynamically Distort Text?

2006-10-23 Thread Marc Hoffman
I need to dynamically distort user input text to fill a limited set 
of shapes. For example, the user might type in WINNERS and select a 
shape like the Arc d' Triomphe (flat-topped arch), and the tops of 
all the letters would be flat but the bottoms would be curved. This 
is more than just putting text on a curve -- it requires actually 
distorting the individual letters. Nike has something similar to this 
(but not exactly) on their custom uniform builder. See 
http://www.niketeam.com/v2/new/Builders/Baseball/check_flash5.asp and 
move through the steps until you reach the Select Name Style, after 
which you'll see the effect I'm after. Somehow they are able to skew 
the letters, though they're not actually distorting any straight 
lines into a curve, and all the letters keep the same height.


Anyone know of something like this? Especially Flash 7-compliant?

Thanks.

Marc Hoffman


___
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] swfObject problem

2006-10-14 Thread Marc Hoffman
First off, my apologies to Victor for being snooty in my previous 
reply. That was not a good way to handle it, but I was annoyed 
because I'd taken the time to look at both pages, look at the html 
code (which was presumably the thing that was causing the swf to 
break), and offer a suggestion. When Victor replied by asking if that 
was the problem, I thought he ought to have done the work of trying 
out my suggestion (which was very quick and easy) rather than engage 
me in another response. I was being a bit prickly, but I wasn't 
trying to be a smartass in explaining what performance hit means, 
since I think that's quite possibly the problem.


John  Victor: As for what the problem is, I don't see that the 
dragging is actually being dropped. What I do see is an erratic frame 
rate, which is exactly what WMODE = transparent might produce in a 
tween-heavy simulation such as we have here. When I play the game, 
the dragging is never lost, but things run choppily which feels as if 
I have no control.


Victor: please delete the html line that sets WMODE, and let us know 
if that fixes the problem.


Marc Hoffman

At 02:35 AM 10/14/2006, you wrote:

he's not describing dropping of framerate, he's describing that he can no
longer drag the ship around:

But when I use swfObject to publish it, it starts droping the drag of the
ship.

when he uses swfObject, he looses that functionality.  It's not a
performance question, its a functionality question.

hth,

jpg

On 10/14/06, Marc Hoffman [EMAIL PROTECTED] wrote:


Performance hit means a reduction in performance (extra burden on
the CPU), which is what you described. Why don' t you change the code
and see if that fixes it?

At 09:36 PM 10/13/2006, you wrote:
Is that the problem?

- Original Message - From: Marc Hoffman 
[EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, October 13, 2006 9:16 PM
Subject: Re: [Flashcoders] swfObject problem


Why do you have WMODE set to transparent? If you don't need it,
lose it. It results in a performance hit.
At 07:30 PM 10/13/2006, you wrote:

Hey All,

I am making this game that allows you drag around a ship and shoot
things. It works fine when I let Flash publish the HTML:

http://creativenetdesign.com/xwing/

But when I use swfObject to publish it, it starts droping the drag
of the ship.

http://creativenetdesign.com/xwing/index_old.html

Anyone know why, or if there is anything I can do to fix it?


___
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




--
[  JPG  ]
___
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] swfObject problem

2006-10-14 Thread Marc Hoffman

Victor,

You are exactly right about the purpose of WMODE, and your HTML guy 
should be taking the opposite approach: always leave it off (which by 
default sets it to false) unless you need it. And know that it still 
doesn't work on some browsers.


Glad to get this problem solved.

BTW, WSFTP never gives me a problem -- have you tried re-installing 
it? It might also be an issue with your server timing out, so you 
might need to turn WSFTP off, or disconnect, after each transfer 
session. Or even try repairing your network connection. Weird that 
you'd have to reboot -- what a drag.


- Marc

At 10:44 AM 10/14/2006, you wrote:
Yes! It does fix the problem.  Thanks very much!  Now let me expalin 
why I didn't just try it and then reply back.  Normally I would have 
done so and I did change the code but my FTP client (WSFTP) on this 
machine just stops working after about 4 hours and I have to 
re-boot. I was lazy and wanted more information before I went 
through that ordeal. Therefore, I guess your snooty answer may have 
been somewhat in order and I apologize and I also am very grateful 
for the help and time in looking over the code.


BTW, this may sound stupid but what is transparent mode?  Is it so 
HTML can be seen underneath like on stupid point roll banner adds or 
those stupid adds you always see poping over HTML for the ARMY?  My 
HTML guy always sets that WMODE to true.  If your not doing a banner 
add then why would you need it?


Again, thank you Marc,
V
- Original Message - From: Victor Gaudioso [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, October 14, 2006 10:34 AM
Subject: Re: [Flashcoders] swfObject problem


I will try right now and I do appreciate the response.  Let you 
know in a few.  Thanks again, V

- Original Message - From: Marc Hoffman [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, October 14, 2006 9:06 AM
Subject: Re: [Flashcoders] swfObject problem


First off, my apologies to Victor for being snooty in my previous 
reply. That was not a good way to handle it, but I was annoyed 
because I'd taken the time to look at both pages, look at the html 
code (which was presumably the thing that was causing the swf to 
break), and offer a suggestion. When Victor replied by asking if 
that was the problem, I thought he ought to have done the work of 
trying out my suggestion (which was very quick and easy) rather 
than engage me in another response. I was being a bit prickly, but 
I wasn't trying to be a smartass in explaining what performance 
hit means, since I think that's quite possibly the problem.


John  Victor: As for what the problem is, I don't see that the 
dragging is actually being dropped. What I do see is an erratic 
frame rate, which is exactly what WMODE = transparent might 
produce in a tween-heavy simulation such as we have here. When I 
play the game, the dragging is never lost, but things run choppily 
which feels as if I have no control.


Victor: please delete the html line that sets WMODE, and let us 
know if that fixes the problem.


Marc Hoffman

At 02:35 AM 10/14/2006, you wrote:

he's not describing dropping of framerate, he's describing that he can no
longer drag the ship around:

But when I use swfObject to publish it, it starts droping the drag of the
ship.

when he uses swfObject, he looses that functionality.  It's not a
performance question, its a functionality question.

hth,

jpg

On 10/14/06, Marc Hoffman [EMAIL PROTECTED] wrote:


Performance hit means a reduction in performance (extra burden on
the CPU), which is what you described. Why don' t you change the code
and see if that fixes it?

At 09:36 PM 10/13/2006, you wrote:
Is that the problem?

- Original Message - From: Marc Hoffman 
[EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, October 13, 2006 9:16 PM
Subject: Re: [Flashcoders] swfObject problem


Why do you have WMODE set to transparent? If you don't need it,
lose it. It results in a performance hit.
At 07:30 PM 10/13/2006, you wrote:

Hey All,

I am making this game that allows you drag around a ship and shoot
things. It works fine when I let Flash publish the HTML:

http://creativenetdesign.com/xwing/

But when I use swfObject to publish it, it starts droping the drag
of the ship.

http://creativenetdesign.com/xwing/index_old.html

Anyone know why, or if there is anything I can do to fix it?


___
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




--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search

Re: [Flashcoders] swfObject problem

2006-10-13 Thread Marc Hoffman
Why do you have WMODE set to transparent? If you don't need it, lose 
it. It results in a performance hit.


At 07:30 PM 10/13/2006, you wrote:


Hey All,

I am making this game that allows you drag around a ship and shoot 
things. It works fine when I let Flash publish the HTML:


http://creativenetdesign.com/xwing/

But when I use swfObject to publish it, it starts droping the drag 
of the ship.


http://creativenetdesign.com/xwing/index_old.html

Anyone know why, or if there is anything I can do to fix it?



___
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] swfObject problem

2006-10-13 Thread Marc Hoffman
Performance hit means a reduction in performance (extra burden on 
the CPU), which is what you described. Why don' t you change the code 
and see if that fixes it?


At 09:36 PM 10/13/2006, you wrote:

Is that the problem?

- Original Message - From: Marc Hoffman [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, October 13, 2006 9:16 PM
Subject: Re: [Flashcoders] swfObject problem


Why do you have WMODE set to transparent? If you don't need it, 
lose it. It results in a performance hit.

At 07:30 PM 10/13/2006, you wrote:


Hey All,

I am making this game that allows you drag around a ship and shoot 
things. It works fine when I let Flash publish the HTML:


http://creativenetdesign.com/xwing/

But when I use swfObject to publish it, it starts droping the drag 
of the ship.


http://creativenetdesign.com/xwing/index_old.html

Anyone know why, or if there is anything I can do to fix it?



___
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] Help! What am I doing wrong? Centering movies.

2006-10-12 Thread Marc Hoffman
I'm not familiar with Schall's class, but why are you using ._x2, 
._y2 and not just ._x and ._y? For centering purposes, the 
registration point shouldn't even matter. -Marc


At 02:15 PM 10/12/2006, you wrote:


Ok, I've got to be missing something basic here. I am
trying to load and center a movieclip to the stages
center. I cannot control the registration points of
the loaded movie clips so I have tried to make use of
Darron Schall's DynamicRegistration class, but
something is awry.


_global.loadWrongMovie = function(mc){
  movie_mc = attachMovie(mc, mc+2, 142);

  movie_mc.stop();

  DynamicRegistration.initialize(movie_mc);

  movie_mc.setRegistration(0, 0);

  movie_mc._x2 = Stage.width/2 - movie_mc._width/2;
  movie_mc._y2 = Stage.height/2 - movie_mc._height/2;
}



___
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] simple gotoAndPlay

2006-10-11 Thread Marc Hoffman
To see if something in the movie is corrupted, try turning content 
layers into guides, either all at once or one at a time, and you may 
be able to narrow down where the problem is. You can also try pasting 
all frames into a new movie.


Sorry I didn't follow the beginning of this thread, and the message 
has been clipped, so I'm not sure what the original issue was exactly.


- Marc

At 07:16 AM 10/11/2006, you wrote:


I've just seen that a file with similar functionality is 62k instead
of the 24k of the troubled file...
So I'm going to officially call this a messed up file... Even tho I
already tried renaming it, save-and-compacting it and oh yeah...
all frames I call do have frame labels.

I've even tried copying everything after frame 75 to another scene
(even tho I don't like to use them) but even then, I can not seem to
get beyond that frame 34... So weird...
___



___
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] Which object called the function

2006-10-07 Thread Marc Hoffman
I'd love to know of a solution to this, too. My hack is to give the 
function an argument me:


// declaration:
traceCaller = function(me){
trace (me);
}

// function call traces full path of calling object.:
traceCaller(this);

- Marc Hoffman

At 08:10 AM 10/7/2006, you wrote:

Hi everyone,

How do you find out which object calls a particular function?  Is it
even possible?

Let's say there are two classes:

class A
{
function A(){}

function hello()
{
trace (hello);
   //I want to know who called me, here
}
}

class Main
{
var a = new A();

function Main()
{
a.hello();
}
}

=

How will A know that Main called the function?

Thank you,
--
Ramon Miguel M. Tayag
___
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] Which object called the function

2006-10-07 Thread Marc Hoffman
Yes, Suhas -- but the function is scoped to the timeline in which it 
was created, not the object doing the calling. So how do you return 
the ID of the calling object?


  - Marc

At 09:02 AM 10/7/2006, you wrote:

Initialise objects with unique ID's which will help you later to determine
which object is calling the function.

Suhas

On 10/7/06, Ramon Miguel M. Tayag [EMAIL PROTECTED] wrote:


Hi everyone,

How do you find out which object calls a particular function?  Is it
even possible?

Let's say there are two classes:

class A
{
function A(){}

function hello()
{
trace (hello);
//I want to know who called me, here
}
}

class Main
{
var a = new A();

function Main()
{
a.hello();
}
}

=

How will A know that Main called the function?

Thank you,
--
Ramon Miguel M. Tayag
___
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




--
Dr. Suhas Pharkute, PhD
Syna Intelligence, LLP
V. 208 830 8915 (C)
E. [EMAIL PROTECTED],.com
W. http://synaintel.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] Which object called the function

2006-10-07 Thread Marc Hoffman

Mischa,

Can you give a code example of this? Let's say I have this function 
on the main timeline:


someFunction = function(){
// do something;
}

I then call the function from another timeline. How would I use 
arguments.caller to return the ID of the object making the call?


Thanks,
Marc

At 09:21 AM 10/7/2006, you wrote:

arguments.caller

Will give you a reference to the calling function. From the help:

Property; refers to the calling function. The value of this property
is null if the current function was not called by another function.

Cheers,

Mischa

On 7 Oct 2006, at 17:02, Dr. Suhas Pharkute wrote:


Initialise objects with unique ID's which will help you later to
determine
which object is calling the function.

Suhas

On 10/7/06, Ramon Miguel M. Tayag [EMAIL PROTECTED] wrote:


Hi everyone,

How do you find out which object calls a particular function?  Is it
even possible?

Let's say there are two classes:

class A
{
function A(){}

function hello()
{
trace (hello);
//I want to know who called me, here
}
}

class Main
{
var a = new A();

function Main()
{
a.hello();
}
}

=

How will A know that Main called the function?

Thank you,
--
Ramon Miguel M. Tayag
___
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




--
Dr. Suhas Pharkute, PhD
Syna Intelligence, LLP
V. 208 830 8915 (C)
E. [EMAIL PROTECTED],.com
W. http://synaintel.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


___
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] Creating a SWF to dynamically create SWF';s

2006-10-05 Thread Marc Hoffman
It's late, and I may not be thinking clearly, but it seems to me that 
the effect on server load and bandwidth is going to be the same 
whether those 200 learners download the whole swf in one go or they 
download it as they work their way through the course (well, I guess 
if they're going to revisit and replay the course, then it DOES save 
bandwidth for them to download once and play back locally, but not if 
the assets are cached).


The critical thing for keeping the size down is managing the asset 
sizes, particularly bitmaps, audio, and video. And I would be frank 
with the client, and give them examples of those assets compressed to 
different levels, so they can see what the trade-offs are -- either 
they compress things more (poorer quality), or use fewer assets, or 
stretch out the timeline so less bandwidth is used. The options are 
limited, and the reality may be that the client is not equipped to 
deliver to as many learners as anticipated, and may have to bite the 
bullet and pay for more server bandwidth.


Marc Hoffman

At 12:26 AM 10/5/2006, you wrote:

Hi Jason,

That was the initial understanding with which I entered the project, now
they don't want to do that because of the server load and bandwidth if 200
learners access the course simultaneously...

They want the learner to download the course in one go (a smaller swf
hopefully), and then work through it at their own speed.

Any ideas??

Thanks

Don




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 04 October 2006 14:45
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Creating a SWF to dynamically create SWF';s

Keep all images external and just reference them in the XML.  Then your .swf
is 50k or less, not 6MB.

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions






-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Gaia-Tek
Sent: Tuesday, October 03, 2006 10:39 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Creating a SWF to dynamically create SWF';s

Hi All,

My client has asked me to create a SWF that reads in some XML and
generates
a course depending on the amount of questions images etc. in the XML.
They found out today that the XML with all the images comes to about
6MB -
so suddenly frightened by the implications of this, they've asked me
if I
can develop a SWF, that when run, will generate the same content, but
then
save the resultant SWF to a file, with all images, sound and questions
embedded in the new SWF - and then score back to the shell application
as
well...

Is this even possible??

.NET is NOT an option...

Thanks...

Don

___
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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 02/10/2006

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 02/10/2006


___
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] How to create a preloader that plays in full

2006-10-05 Thread Marc Hoffman

Hi Aaron,

By my definition, a preloader plays until the rest of the content is 
sufficiently loaded for the .swf to stream at the user's bandwidth. 
If you just want something to play in its entirety, you're talking 
about an introduction, which is created the same as any other Flash 
content. If you need something that will play all the way through but 
then do some sort of waiting if the rest of the content isn't 
sufficiently loaded, then you're back to the concept of inserting a 
preloader. So you see, it's either an intro (which plays through once 
and moves on to the main content), a preloader (which plays until 
content is sufficiently loaded) or a combination of both.


The tour started by showing a golf ball traveling in a loop. Each 
time the ball got close to the hole, the swf evaluated whether the 
main content had sufficiently loaded. If the enough content was 
loaded, the ball fell into the hole with a nice clunk sound, and 
the main content played. On the other hand, if the main content 
wasn't ready, the golf ball travelled back to its starting point and 
then looped to the hole again, where it would once again check 
loading status. So the ball would always travel at least to the hole, 
and the main content would never play without the user seeing the 
ball fall into the hole. The ball traveling to the hole is the intro 
part. The ball looping continuously until the content is ready is the 
preloader part.


Marc

At 09:40 AM 10/5/2006, you wrote:

Thanks for the sarcasm but I am not just trying to create a simple
preloader that plays until the movie has loaded. Rather, I want to
create a preloader that has two functions: 1) to preload the movie (of
coarse) and 2) to play the entire preloader's timeline even if the
movie has already been preloaded. It's the second part that I am
having trouble with.

A traditional preloader plays until the movie has been loaded.
Instead, I want the preloader to play in entirely even if the movie
has already been loaded. This way, the preloader is not just a
progress bar but an element of the movie.

I hope that makes sense.

On 10/5/06, Michael Stuhr [EMAIL PROTECTED] wrote:

Aaron Roberson schrieb:
 I want to create a preloader that plays through even if the rest of
 the timeline has been loaded. I saw a tutorial on this some time back
 but can't find it now.

 Forgive me if this is a common request or something but I have
 searched and searched but can't find it. The problem is probably that
 I'm not sure what keywords to use for a good search.


you cannot find *anything* about how a *preloader* is made in flash ?

is the list archive down ?
is flashkit down ?
is google down ?

micha
___
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] ::dk:: Best way to check if data is done loading for scroll bars

2006-09-20 Thread Marc Hoffman
Good point, and I don't know of an elegant answer. But one hack would 
be to simultaneously load your images into hidden clips using 
MovieClipLoader, and set up some onInit calls that would tell you 
when all the images have been downloaded.


Marc

At 09:20 AM 9/20/2006, you wrote:


Gustavo Teider - Adobe Flash Developer wrote:



use setScrollTarget

scrollbar.setScrollTarget(your_textfield);

is this ?
But how do you tell if the data is actually done loading? I mean for 
example, i have a field that loads a jpg in, and since the jpg takes 
a little longer, the scroll bars account for the text, but not hte 
image. And if I call redraw right after I call the data to be 
loaded, it seems to still be too soon.




--
dnk



___
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] MC not pressed

2006-09-20 Thread Marc Hoffman

What I usually do is two steps:

Step 1: go through all the clips and scale them to 50.

Step 2: scale the pressed clip back to 300.

If you have a lot of clips, you should put them in an array. If 
they're all nested in a parent clip, with nothing else in that clip, 
you can use a for...in function to create the array for you:


var pressableClips = new Array();
for (i in parentClipName) {
pressableClips.push (parentClipName[i]);
}

Now you can just cycle through the array to scale everything to 50, 
and then scale the pressed clip to 300.


Sorry I haven't tested this so the syntax may not be perfect.

Marc

At 10:03 AM 9/20/2006, you wrote:


There is a lot of mc but I take to explain the case :
They are name A_mc, B_mc and C_mc

If I press one clip its scale get 300.
How can I do in the same time get 50 to the other not pressed ?

A_mc.onPress = B_mc.onPress = C_mc.onPress = function() {
this._xscale = this._yscale = 300;
};

Thank you very much




___
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] The Align panel

2006-09-11 Thread Marc Hoffman
If aligning left, move all other objects to the right of the one you 
want as the reference object. If aligning top, move them below. And 
so on for bottom and right. For center, I've found the smaller 
object(s) must be placed within the horizontal and/or vertical limits 
of the largest object, which will then be the reference object. It 
would be nice if you could just designate the reference object, but I 
haven't found a way to do that.


Marc Hoffman

At 12:10 PM 9/11/2006, you wrote:

When aligning a group of objects using the Align panel, is there a 
way of keeping one of the objects static and having all the others 
align with it?


Andy Kirkham



___
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] (repost) Horizontal Drop-Down Menu (pleeeease don't flame me!)

2006-09-06 Thread Marc Hoffman

Hi Kurt,

I may well take you up on your offer. Is there a chance we could talk 
briefly by phone before you leave? I want to consider hiring you to 
do the menu, but need to clarify what would be involved to meet my 
specs. I also want you to know that the client needs to sign off on 
the nav design (though it's virtually the same as the site they 
wanted to look like), so unless this would be a really simple, 
low-cost job, I'd probably do a rough mockup pending client approval.


I'm also looking into a menu system described in Flash Application 
Design Solutions: Flash Usability Handbook (Friend of Ed), whose 
files are downloadable.


Vacation sounds nice :)

Thanks!

Marc

At 05:13 AM 9/6/2006, you wrote:

I''m sorry Mark.  I should have looked closer. that's a different beast.

but not a hard beast!

I wish I could offer to help further, but I'm trying to keep 
everybody happy before I leave for a vacation Friday.


If it can wait I can help next week.

Kurt

At 10:49 PM 9/5/2006, you wrote:


Hey Kurt,

Good to hear from you, too. I still have your old emails :)

Your menu would be useful to me if it allowed a cascade of 
full-width menu bars as in this gif:
http://www.dartfrogmedia.com/images/menuExample_MH060903a.gifhttp://www.dartfrogmedia.com/images/menuExample_MH060903a.gif 



It only needs to go three levels deep (as in the gif) but must 
highlight the selected menu items so the user can readily see the 
path to the current content.


Have you done any work on the menu that might lend itself to such 
an application?


Thanks and regards,

Marc


At 07:30 PM 9/5/2006, you wrote:

Marc, this may be of use, though it's a little dated.

I've probably got better code ast my office that I just haven't 
uploaded yet, but maybe it will get you started...


http://www.mrkurt.biz/kurtsmenu.html

hope that helps.

Kurt

PS  it's good to see you're still out there.  I recall emailing 
you at least 5 years ago!


At 07:23 PM 9/5/2006, you wrote:

[Still looking for the menu I need -- I'd sure appreciate if 
someone on the list has a clue for me.  thanks!]


I know this should be searchable, but I'm really not finding what 
I need in the archives or Google.


I need to find or create a horizontal drop-down menu that expands 
up to three tiers high. Each tier is a differently-colored bar 
the full width of the stage and contains text links. Links change 
color on rollover. Bars descend on mouseclick, not on rollover. 
They have a smooth tweening motion, not just an instant 
drop-down. Clicked links retain their rollover color so that if a 
user gets to the third tier, there would be a highlighted link in 
each level showing the user what path they'd taken. This should 
be xml-based. I'm happy to pay for something that will save me a 
day's scripting, but it has to fit the above parameters or be easily adaptable.


Here's an example of the menu expanced to all three tiers:
http://www.dartfrogmedia.com/images/menuExample_MH060903a.gifhttp://www.dartfrogmedia.com/images/menuExample_MH060903a.gif 



Thanks,
Marc


___
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


___
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] (repost) Horizontal Drop-Down Menu (pleeeease don't flame me!)

2006-09-06 Thread Marc Hoffman

redFaceOops, meant to send this offlist./redFace

Hi Kurt,

I may well take you up on your offer. ..


___
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] (repost) Horizontal Drop-Down Menu (pleeeease don't flame me!)

2006-09-05 Thread Marc Hoffman
[Still looking for the menu I need -- I'd sure appreciate if someone 
on the list has a clue for me.  thanks!]


I know this should be searchable, but I'm really not finding what I 
need in the archives or Google.


I need to find or create a horizontal drop-down menu that expands up 
to three tiers high. Each tier is a differently-colored bar the full 
width of the stage and contains text links. Links change color on 
rollover. Bars descend on mouseclick, not on rollover. They have a 
smooth tweening motion, not just an instant drop-down. Clicked links 
retain their rollover color so that if a user gets to the third tier, 
there would be a highlighted link in each level showing the user what 
path they'd taken. This should be xml-based. I'm happy to pay for 
something that will save me a day's scripting, but it has to fit the 
above parameters or be easily adaptable.


Here's an example of the menu expanced to all three tiers:
http://www.dartfrogmedia.com/images/menuExample_MH060903a.gifhttp://www.dartfrogmedia.com/images/menuExample_MH060903a.gif 



Thanks,
Marc  



___
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] (repost) Horizontal Drop-Down Menu (pleeeease don't flame me!)

2006-09-05 Thread Marc Hoffman

Hey Kurt,

Good to hear from you, too. I still have your old emails :)

Your menu would be useful to me if it allowed a cascade of full-width 
menu bars as in this gif:
http://www.dartfrogmedia.com/images/menuExample_MH060903a.gifhttp://www.dartfrogmedia.com/images/menuExample_MH060903a.gif 



It only needs to go three levels deep (as in the gif) but must 
highlight the selected menu items so the user can readily see the 
path to the current content.


Have you done any work on the menu that might lend itself to such an 
application?


Thanks and regards,

Marc


At 07:30 PM 9/5/2006, you wrote:

Marc, this may be of use, though it's a little dated.

I've probably got better code ast my office that I just haven't 
uploaded yet, but maybe it will get you started...


http://www.mrkurt.biz/kurtsmenu.html

hope that helps.

Kurt

PS  it's good to see you're still out there.  I recall emailing you 
at least 5 years ago!


At 07:23 PM 9/5/2006, you wrote:

[Still looking for the menu I need -- I'd sure appreciate if 
someone on the list has a clue for me.  thanks!]


I know this should be searchable, but I'm really not finding what I 
need in the archives or Google.


I need to find or create a horizontal drop-down menu that expands 
up to three tiers high. Each tier is a differently-colored bar the 
full width of the stage and contains text links. Links change color 
on rollover. Bars descend on mouseclick, not on rollover. They have 
a smooth tweening motion, not just an instant drop-down. Clicked 
links retain their rollover color so that if a user gets to the 
third tier, there would be a highlighted link in each level showing 
the user what path they'd taken. This should be xml-based. I'm 
happy to pay for something that will save me a day's scripting, but 
it has to fit the above parameters or be easily adaptable.


Here's an example of the menu expanced to all three tiers:
http://www.dartfrogmedia.com/images/menuExample_MH060903a.gifhttp://www.dartfrogmedia.com/images/menuExample_MH060903a.gif 



Thanks,
Marc


___
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


[Flashcoders] Horizontal Drop-Down Menu (pleeeease don't flame me!)

2006-09-03 Thread Marc Hoffman
I know this should be readily searchable, but I'm really not finding 
what I need in the archives or Google.


I need to find or create a horizontal drop-down menu that expands up 
to three tiers high. Each tier is a differently-colored bar the full 
width of the stage and contains text links. Links change color on 
rollover. Bars descend on mouseclick, not on rollover. They have a 
smooth tweening motion, not just an instant drop-down. Clicked links 
retain their rollover color so that if a user gets to the third tier, 
there would be a highlighted link in each level showing the user what 
path they'd taken. This should be xml-based. I'm happy to pay for 
something that will save me a day's scripting, but it has to fit the 
above parameters or be easily adaptable.


Here's an example of the menu expanced to all three tiers:
http://www.dartfrogmedia.com/images/menuExample_MH060903a.gifhttp://www.dartfrogmedia.com/images/menuExample_MH060903a.gif 



Thanks,
Marc  
___

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] Slow performance

2006-09-03 Thread Marc Hoffman
I'm seeing a window full of text (Firefox, Win XP Pro) -- is this 
what you intended? If so, that's a HUGE number of vectors to redraw 
so rapidly. Furthermore, by using a serif font you're probably 
doubling or tripling the number of vectors, so try the simplest, 
non-serif, mono-stroke (consistent stroke thickness) font you can, 
such as Verdana. And of course lengthen the redraw interval.


Marc

At 12:24 PM 9/3/2006, you wrote:

Hi,
setInterval each 10ms might be a bit overkill.
grtz
JC


On 9/3/06, kariminal [EMAIL PROTECTED] wrote:


Hello All...

My flash movie fills the whole browser window. If the window is kept small
performance is great, however when I maximize the browser everything slows
down. This is a simple effect which I think should run at a good speed
regardless. I've uploaded a sample here: http://www.kurst.co.uk/transfer/

And the animation code is as follows:

//CODE

   private function stopAnimation( ):Void{

   clearInterval( animationIID );

   }
   private function restartAnimation( ):Void{

   stopAnimation();
   animationIID = setInterval( this, animationLoop , 10 );

   }
   private function animationLoop( ):Void{


   // make sure we always keep the counter within the length
of
the array
   if ( lineCounter  code_lines.length ) lineCounter = 2

   // print the text
   if ( lineCounter == 0 ) {

   field_txt.text = code_lines[lineCounter]

   } else { field_txt.text = field_txt.text +
code_lines[lineCounter] }

   // ready counter for the next line

   lineCounter ++

   if (field_txt.maxscroll  1 ){


   pageCounter ++;
   field_txt.text = ;
   stopAnimation();
   clearInterval( clearIID );
   clearIID = setInterval( this, restartAnimation ,
clearIntervalTime );

   }


   }

//CODE


And I've also uploaded a copy of the whole class here
http://www.kurst.co.uk/transfer/textComponent.as
Any tips on optimizing this one are welcome...


Regards




Karim




___
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] Dynamically Loading JPGs ~ Strange Behavior

2006-09-01 Thread Marc Hoffman
Of the solutions that have been suggested, I think the most likely 
one is case-sensitivity. Make sure to maintain the same case in 
naming and calling the files.


It doesn't seem that loading time is an issue. If you're using the 
MovieClipLoader you're probably already using onLoadInit to display 
the new image. You may want to create a new loader for each image so 
that the current image isn't dumped before the new image is initialized.


The problem definitely isn't progressive JPGs, since it's working on 
the Windows server.


Marc

At 10:23 AM 9/1/2006, you wrote:

I have about 20 jpegs that are dynamically being loaded into a swf. 
These images are loaded one at a time, fade in as the previous one 
fades out, and then eventually the loop starts over again, loading 
the initial image. I am using the MovieClipLoader Class to load 
them. I am, however, running into an odd problem.


On the site's live server (Linux Box), the images don't always get 
loaded in to the swf and there is just 'white' space.  I have this 
exact site on another hosting company's server (windows) and the 
issue never occurs. To resolve the issue, I have even tried to use a 
cacheBuster for the images (ex: image1.jpg?12345). This however 
still doesn't work.  I have also tried using a Windows server on 
the live site, but it yielded the same result. In my mind. clearly 
this is an issue with the hosting company?. Does anyone have any 
thioughts about why this may be occuring?


Thanks for any and all replies.



___
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] Hex colors function?

2006-08-23 Thread Marc Hoffman

Very nice -- thanks for the lesson!  -Marc

At 05:33 PM 8/22/2006, you wrote:

Optimized for her pleasure:

hex = [00, 33, 66, 99, CC, FF];
wsp = [];
var r, g, b;
r = 6;
var x = 0;
while (--r -(-1)) {
g = 6;
while (--g -(-1)) {
b = 6;
while (--b -(-1)) {
wsp[x++] = 0x + hex[r] + hex[g] + hex[b];
}
}
}
trace(wsp);

___
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] Hex colors function?

2006-08-22 Thread Marc Hoffman
The default Flash IDE palette is 216 colors, which constitute the 
web-safe palette. If it's of any help, the web-safe palette assigns 
R, G, and B each one of the following decimal values:

0
51
102
153
204
255

Convert each value to hexadecimal and create all the possible 
combinations of three of those values, and you'd have the full list. 
Something like:

possibleColors = new Array (0,51,102,153,204,255);
hexColors = new Array();
for (i=0; ipossibleColors.length; i++){
hexColors[i]=hex equivalent of possibleColors[i]; // mock code
}
webSafePalette = new Array();
for (r=0; rhexColors.length; r++){
set webSafePalette[i] value to hexColors[i], or to # plus 
hexColors[i]

for (g=0; ghexColors.length; g++){
concatenate hexColors[g] to webSafePalette[i] 
string; // mock code

}
for (b=0; bhexColors.length; b++){
concatenate hexColors[b] to webSafePalette[i] 
string; // mock code

}
}

By this process of concatenating each value for the webSafePalette 
array, you'd now have the full array.


Note this is untested and in some cases is mock code.

Of course the list of web-safe colors probably exists in a million 
places on the web, so it might be faster just to nab it and clean it 
up as needed. But the above code would let you generate as many 
colors as you wish, by modifying the possibleColors array.


Marc

At 10:56 AM 8/22/2006, you wrote:

Anyone have a function that returns an array of the hex color values for
a particular range (i.e., say the 144 hex colors you see in the Flash
IDE's color picker)?  Or know how to write one?  I'm not looking for a
complete color picker class or component, I'm creating my own with
specific needs, but to do so, I'm not sure how the hex number math
works.  Don't really want to enter all the values manually.

Thanks.

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions





___
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] Hex colors function?

2006-08-22 Thread Marc Hoffman
Ok, this looked like a fun project so I wrote code to construct an 
array of all web-safe colors:


hexColors = new Array(00, 33, 66, 99, CC, FF);
webSafePalette = new Array();
// length of webSafePalette will be length of hexColors cubed:
for (i = 0; i  Math.pow(hexColors.length, 3); i++) {
for (r = 0; r  hexColors.length; r++) {
for (g = 0; g  hexColors.length; g++) {
for (b = 0; b  hexColors.length; b++) {
webSafePalette[webSafePalette.length] 
= 0x + hexColors[r] + hexColors[g] + hexColors[b];

}
}
}
}
// returns 216 values in hexadecimal format:
trace (webSafePalette);

You could modify to produce more colors just by modifying the 
elements in hexColors to reflect the number of incremental values for 
red, green, and blue.


Marc


At 10:56 AM 8/22/2006, you wrote:


Errors-To: [EMAIL PROTECTED]
X-UIDL: 4[(!!IlZ!T![52!

Anyone have a function that returns an array of the hex color values for
a particular range (i.e., say the 144 hex colors you see in the Flash
IDE's color picker)?  Or know how to write one?  I'm not looking for a
complete color picker class or component, I'm creating my own with
specific needs, but to do so, I'm not sure how the hex number math
works.  Don't really want to enter all the values manually.

Thanks.

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions

___
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] Day before duplication audio problem

2006-08-21 Thread Marc Hoffman
Can you test it outside of Director, to start isolating whether it's 
a Flash, Director, or the combination of the two? Also, are you 
testing on multiple machines, in order to isolate a potential 
hardware or driver problem?


- Marc

At 04:52 PM 8/21/2006, you wrote:

Banging my head trying to get to the bottom of a bug on a CDROM that should
be going for duplication tomorrow.

It is Flash 8 CDROM (PC Only) with a main container movie and various games
loaded into it. The flash movie is loaded into a Director shell though I
have tried it using Zinc and had the same problems.

The problem is that the audio is quite often just cutting off midway through
the audio file and resulting in the game hanging. It is not happening at any
particular point in the CDROM. I tried reducing the audio (external mp3) to
22 Khz from 44 but seems to have no affect.

I am thinking it could possibly be a performance problem as its quite a
resource hungry product. The cursor is flashing like crazy at all times - is
this something that indicates a problem?

The problem happens when run from the CDROM and when run from the hard drive
but possibly worse from the CDROM. It is so random it is hard to say.

Are there any memory leaks in Flash 8 - and if so are there any solutions or
updates?

Any help much appreciated as missing this deadline won't make me a very
popular person.

Thanks in advance.

Paul



___
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] Accessing a Flash frame label

2006-08-08 Thread Marc Hoffman
Make sure, however, that the targeted frame is loaded before calling 
it within Flash -- otherwise, the function will fail and nothing will happen.


- Marc

At 04:42 PM 8/8/2006, you wrote:

frame labels become numeric when published to SWF, so you wouldn't be able
to do that. However, you could always send in a specific variable value, and
have a function in the SWF look at it, and target the mc you want.

On 8/8/06, Jeff Hindman [EMAIL PROTECTED] wrote:


Hey Flashcoders,

  How can I access a specific frame label in a Flash movie from an HTML
link?  It would look something like this:

a href = http://www.mydomain.com/myMovie.swf?label='here'Click me/a

where here is the frame label in the SWF.

Thanks --

  -- Jeff
___
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


[Flashcoders] need help with local apache test server

2006-07-22 Thread Marc Hoffman
I'm trying to set up a local apache server for testing PHP on my 
laptop. This is all new territory for me and although I've followed 
instructions on several sites, it won't work. I do have TCP/IP 
working. During setup and when trying to start the server, I get this 
DOS message:


Installing the Apache2.2 service
The Apache2.2 service is successfully installed.
Testing httpd.conf
Errors reported here must be corrected before the service can be started.
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Note the errors or messages above, and press the ESC key to exit.  25...

I then tried installing WAMP, which integrates the apache server 
functionality. I used it to have Apache test port 80 (which is what 
the server is using) and first got a DOS alert that Skype might be 
using it. Closed Skype, re-tested port 80, and got the DOS alert 
Your port 80 is not actually used.


Then I used WAMP to Install Service and got the DOS message: Your 
port 80 is available, Install will proceed. But a subsequent test of 
Port 80 once again indicated Your port 80 is not actually used.


WAMP allows direct setting of the WWW root, and I have pointed it to 
a location with an index.html file. But my browser (firefox) cannot 
open http://localhost/ or http://localhost/test01 where I have 
another index.html file.


I'd appreciate help from anyone who understands this stuff.

Thanks,
Marc


___
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] need help with local apache test server

2006-07-22 Thread Marc Hoffman

Thanks, Kevin -- works like a dream!

- Marc

At 11:33 AM 7/22/2006, you wrote:

I use apachefriends.org

Its a no brainer!  Make sure to shut your firewall off when installing.

Kevin



From: Marc Hoffman [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] need help with local apache test server
Date: Sat, 22 Jul 2006 11:00:01 -0700

I'm trying to set up a local apache server for testing PHP on my 
laptop. This is all new territory for me and although I've followed 
instructions on several sites, it won't work. I do have TCP/IP 
working. During setup and when trying to start the server, I get 
this DOS message:


Installing the Apache2.2 service
The Apache2.2 service is successfully installed.
Testing httpd.conf
Errors reported here must be corrected before the service can be started.
(OS 10048)Only one usage of each socket address (protocol/network 
address/port)

is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Note the errors or messages above, and press the ESC key to exit.  25...

I then tried installing WAMP, which integrates the apache server 
functionality. I used it to have Apache test port 80 (which is what 
the server is using) and first got a DOS alert that Skype might be 
using it. Closed Skype, re-tested port 80, and got the DOS alert 
Your port 80 is not actually used.


Then I used WAMP to Install Service and got the DOS message: 
Your port 80 is available, Install will proceed. But a subsequent 
test of Port 80 once again indicated Your port 80 is not actually used.


WAMP allows direct setting of the WWW root, and I have pointed it 
to a location with an index.html file. But my browser (firefox) 
cannot open http://localhost/ or http://localhost/test01 where I 
have another index.html file.


I'd appreciate help from anyone who understands this stuff.

Thanks,
Marc


___
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


  1   2   >