[Flashcoders] centering/padding dynamic text

2006-03-22 Thread Edward Hotchkiss
heres my site: http://www.murderdesign.com/
i am trying to pad the forms submit text, and align it into the center, and 
vertically align it into the center also ... any ideas? because the 
clear/submit look ugly like they are now. also, the input text fields, the same 
issue: the text is vertically aligned to the top and looks ugly also...

-edward
___
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] embedding pixel fonts but using external css versus typical textformat?

2006-03-22 Thread Edward Hotchkiss
If i try and embed fonts when i use css with flash the text does not show. is 
it possible to embed fonts when using an external stylesheet? i have been 
embedding and using textformat, but now i am playing with css and nothing seems 
to work. am i stuck not using pixel fonts with CSS?

function createNews() {
 // draw news area
 _root.createEmptyMovieClip(news_mc, this.getNextHighestDepth());
 _root.news_mc.createTextField (news_txt,this.getNextHighestDepth(), 0, 0, 
200, 600);
 with(_root.news_mc.news_txt) {
  wordWrap = true;
  multiline = true;
  html = true;
 };
 // apply stylesheet
 var cssFormat = new TextField.StyleSheet();
 var path = flash.css;
 var quick = brp class='title'The quick Kirupa jumps over the lazy 
dog./pbrp class='two'The quick Kirupa jumps over the lazy dog./pbrp 
class='three'The quick Kirupa jumps over the lazy dog./pbrp 
class='four'The quick Kirupa jumps over the lazy dog./p
 output = _root.news_mc.news_txt;
 cssFormat.load(path);
 cssFormat.onLoad = function(success) {
 if (success) {
  output.styleSheet = cssFormat;
  output.text = quick;
 } else {
  output.text = Error loading CSS file!;
 }
};
___
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] percent loaded?

2006-03-16 Thread Edward Hotchkiss
i guess that my code is being deleted on each enter frame. once it loads 
completely, the text finally shows up, and then the next frame shows up also. 
why doesnt this one frame preloader, second frame website preloader work??? 
this is really bugging me, that i have to put code on a movieclip, and i cant 
do it 100% AS. 


function preloadMe() {
 _root.onEnterFrame = function() {
 tBytes = _root.getBytesTotal();
  bLoaded = _root.getBytesLoaded();
  percent = Math.round((bLoaded/tBytes)*100);
  if (bLoaded  tBytes) {
   _root.preloader_mc.preloader_txt.text = loading site:  + percent;
   gotoAndPlay(1);
  } else {
   _root.preloader_mc.removeMovieClip();
   _root.preloader_mc.preloader_txt.removeTextField();
   gotoAndStop(2)
  };
 };
};
// -
drawPreloader();
preloadMe();
___
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] percent loaded?

2006-03-16 Thread Edward Hotchkiss
I have several fonts, and several mp3s totaling about 600k in the library, 
set for export on frame 1 with linkage.


- Original Message - 
From: eric dolecki [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 16, 2006 11:44 AM
Subject: Re: [Flashcoders] percent loaded?



Are you using a bunch of components? Do you have large assets with linkage
set to export on Frame1? I don't think you've given us enough information.

- e.dolecki

On 3/16/06, Edward Hotchkiss [EMAIL PROTECTED] wrote:


i guess that my code is being deleted on each enter frame. once it loads
completely, the text finally shows up, and then the next frame shows up
also. why doesnt this one frame preloader, second frame website preloader
work??? this is really bugging me, that i have to put code on a 
movieclip,

and i cant do it 100% AS.


function preloadMe() {
_root.onEnterFrame = function() {
 tBytes = _root.getBytesTotal();
  bLoaded = _root.getBytesLoaded();
  percent = Math.round((bLoaded/tBytes)*100);
  if (bLoaded  tBytes) {
   _root.preloader_mc.preloader_txt.text = loading site:  + percent;
   gotoAndPlay(1);
  } else {
   _root.preloader_mc.removeMovieClip();
   _root.preloader_mc.preloader_txt.removeTextField();
   gotoAndStop(2)
  };
};
};
// -
drawPreloader();
preloadMe();
___
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] percent loaded?

2006-03-16 Thread Edward Hotchkiss
maybe it does have something to do with my libraries mp3s or fonts? or with 
a drawing class i use... if someone could look at my fla, the preload is on 
the bottom of the AS. this would be greatly appreciated...

fla:
http://www.murderdesign.com/default.zip

- Original Message - 
From: Kevin Aebig [EMAIL PROTECTED]

To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 16, 2006 12:01 PM
Subject: RE: [Flashcoders] percent loaded?



There used to be an old problem that might be the cause of your troubles.
When a movie starts, sometimes the getBytesLoaded returns a value before
getBytesTotal has finished. So your condition of bLoaded  tBytes is
rendered inadequate. You could add  tBytes  8 to make sure that
totalBytes has actually loaded something...

Cheers,

Kevin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edward
Hotchkiss
Sent: March 16, 2006 10:42 AM
To: Flashcoders mailing list
Subject: [Flashcoders] percent loaded?

i guess that my code is being deleted on each enter frame. once it loads
completely, the text finally shows up, and then the next frame shows up
also. why doesnt this one frame preloader, second frame website preloader
work??? this is really bugging me, that i have to put code on a movieclip,
and i cant do it 100% AS.


function preloadMe() {
_root.onEnterFrame = function() {
tBytes = _root.getBytesTotal();
 bLoaded = _root.getBytesLoaded();
 percent = Math.round((bLoaded/tBytes)*100);
 if (bLoaded  tBytes) {
  _root.preloader_mc.preloader_txt.text = loading site:  + percent;
  gotoAndPlay(1);
 } else {
  _root.preloader_mc.removeMovieClip();
  _root.preloader_mc.preloader_txt.removeTextField();
  gotoAndStop(2)
 };
};
};
// -
drawPreloader();
preloadMe();
___
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] preloader issue

2006-03-15 Thread Edward Hotchkiss
I am really trying to have my preloader work, with a site that is 100% AS. the 
entire site resides either in classes or as on the first frame. there has got 
to be some way to preload a site, with a single function that is entirely 
dynamic. this is what i have, but it will not even appear on the screen. no 
errors .. ideas would be great

// -
// preloader
function preloadMe() {
 // stop movie from playing
 //stop();
 // reference to _root
 ref = _root;
 // create the preloader mc
 ref.createEmptyMovieClip(preloader_mc, ref.getNextHighestDepth() );
 // create the preloader mc progress text
 ref.preloader_mc.createTextField(preloader_txt, ref.getNextHighestDepth, 0, 
0, 200, 10);
 with (ref.preloader_mc.preloader_txt) {
  embedFonts = true;
  selectable = false;
  setNewTextFormat(format1_fmt);
  text = LOADING SITE: 00
 };
 // place preloader text in center of stage
 ref.preloader_mc._x = (Stage.width/2) - 
(ref.preloader_mc.preloader_txt._width/2);
 ref.preloader_mc._y = (Stage.height/2) - 
(ref.preloader_mc.preloader_txt._height/2);
 ref.onEnterFrame = function() {
 tBytes = ref.getBytesTotal();
  bLoaded = ref.getBytesLoaded();
  percent = Math.round((bLoaded/tBytes)*100);
  // keep two places if percent is under 10, ie: 03 
  if (percent  10) {
   percentTxt = LOADING SITE: 0 + percent;
  } else {
   percentTxt = LOADING SITE:  + percent;
  }
  // if this movie is not fully loaded, then display percent loaded
  if (bLoaded  tBytes) {
   ref.preloader_mc.preloader_txt.text = percentTxt;
  // otherwise, delete the preloader_mc, and the textField, then play movie
  } else {
   ref.preloader_mc.removeMovieClip();
   ref.preloader_mc.preloader_txt.removeTextField();
   play();
   delete this.onEnterFrame;
  };
 };
};
// -
//makeContent();
//makeIt();
//alot(5);
//trace(getDepth(_root.ellipse_0));
preloadMe();
___
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] gotoAndPlay?

2006-03-15 Thread Edward Hotchkiss
i have my preloader on frame 1. i have my entire site on frame 2. once i finish 
preloading, i need to delete the first frame, and go to the next frame..

the site just loops, any ideas?

// preloader
function preloadMe() {
// reference to _root
ref = _root;
 ref.onEnterFrame = function() {
 tBytes = ref.getBytesTotal();
  bLoaded = ref.getBytesLoaded();
  percent = Math.round((bLoaded/tBytes)*100);
  // keep two places if percent is under 10, ie: 03 
  if (percent  10) {
   percentTxt = LOADING SITE: 0 + percent;
  } else {
   percentTxt = LOADING SITE:  + percent;
  }
  // if this movie is not fully loaded, then display percent loaded
  if (bLoaded  tBytes) {
   ref.preloader_mc.preloader_txt.text = percentTxt;
   gotoAndPlay(1)
  } else {
   gotoAndPlay(2)
  };
 };
};
// -
preloadMe();
___
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] gotoAndPlay?

2006-03-15 Thread Edward Hotchkiss
this still does not work. when i simulate download, the text does not 
appear, then suddenly it pops up, and then it says 100 percent, no in 
between state, then onto the next frame ... any ideas?


// preloader
function preloadMe() {
ref = _root;
// create the preloader mc
ref.createEmptyMovieClip(preloader_mc, ref.getNextHighestDepth() );
// create the preloader mc progress text
ref.preloader_mc.createTextField(preloader_txt, ref.getNextHighestDepth, 
0, 0, 200, 10);

with (ref.preloader_mc.preloader_txt) {
 embedFonts = true;
 selectable = false;
 setNewTextFormat(format1_fmt);
 text = LOADING SITE: 00
};
// place preloader text in center of stage
ref.preloader_mc._x = (Stage.width/2) - 
(ref.preloader_mc.preloader_txt._width/2);
ref.preloader_mc._y = (Stage.height/2) - 
(ref.preloader_mc.preloader_txt._height/2);

ref.onEnterFrame = function() {
tBytes = ref.getBytesTotal();
 bLoaded = ref.getBytesLoaded();
 percent = Math.round((bLoaded/tBytes)*100);
 // keep two places if percent is under 10, ie: 03
 if (percent  10) {
  percentTxt = LOADING SITE: 0 + percent;
 } else {
  percentTxt = LOADING SITE:  + percent;
 }
 // if this movie is not fully loaded, then display percent loaded
 if (bLoaded  tBytes) {
  ref.preloader_mc.preloader_txt.text = percentTxt;
 } else {
  ref.preloader_mc.removeMovieClip();
  ref.preloader_mc.preloader_txt.removeTextField();
  gotoAndStop(2)
 };
};
};
// -
preloadMe();
stop(); 


___
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] duplicateMovieClip() ?

2006-03-14 Thread Edward Hotchkiss
hmm ...

// begin code
function alot(max) {
 var basename:String = circle_mc;
 for(var i = 0; i  max; i++) {
  _root.it_mc.duplicateMovieClip(basename+i, this.getNextHighestDepth() );
  _root[basename+i]._x = 100 + i*5;
  _root[basename+i]._y = 100 + i*5;
  
 }
}

the trace returns 0. why are my dynamically duplicated movieclips not showing 
up on the stage???

-eddie
___
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] storing embedded font data in local sharedobjects(LSOs)?

2006-03-14 Thread Edward Hotchkiss
just curious - is there any other requirement to embedding pixel fonts/fonts 
than importing into an fla's library, linking for as2.0, and specificying a 
name (which could be referenced via a textFormat? i am curious because i 
have issues with displaying pixel fonts/any fonts when linking like that...


-edward.

___
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