[Flashcoders] Creating Fonts dynamically

2009-07-03 Thread Sumeet Kumar
Hi All,

Is there any way by which i can create the fonts dynamically i.e. i want to 
create fonts files dynamically without using Flash IDE. Is there any method or 
workaround by which i can do this?

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


Re: [Flashcoders] Creating Fonts dynamically

2009-07-03 Thread Glen Pike
Just a suggestion - could you compile them into library swfs that you 
load at runtime if you had the flash compiler running on the server 
(perhaps)?


The idea would be to dynamically generate an ActionScript file that uses 
the [Embed] command then compile this into a SWF with the name you want 
- you would probably have to have the file create a text field on the 
stage that embedded the characters, etc.


Just an idea - I don't have much experience of this...

Glen

Sumeet Kumar wrote:

Hi All,

Is there any way by which i can create the fonts dynamically i.e. i want to 
create fonts files dynamically without using Flash IDE. Is there any method or 
workaround by which i can do this?

Thanks in Advance
Sumeet
___
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] Creating Fonts dynamically

2009-07-03 Thread Sumeet Kumar

Thanks for the reply,

I forgot to mention, i need this for ActionScript 2.0 and for a standalone 
application.


Thanks Again

- Original Message - 
From: Glen Pike g...@engineeredarts.co.uk

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, July 03, 2009 3:46 PM
Subject: Re: [Flashcoders] Creating Fonts dynamically


Just a suggestion - could you compile them into library swfs that you load 
at runtime if you had the flash compiler running on the server (perhaps)?


The idea would be to dynamically generate an ActionScript file that uses 
the [Embed] command then compile this into a SWF with the name you want - 
you would probably have to have the file create a text field on the stage 
that embedded the characters, etc.


Just an idea - I don't have much experience of this...

Glen

Sumeet Kumar wrote:

Hi All,

Is there any way by which i can create the fonts dynamically i.e. i want 
to create fonts files dynamically without using Flash IDE. Is there any 
method or workaround by which i can do this?


Thanks in Advance
Sumeet
___
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] Strange characters added to file when saving from Flex/AIR using fileStream

2009-07-03 Thread Cheetham, Marcus
I'm using fileStream to save a text file. This works OK, but introduces
some strange characters at the beginning of the saved text.
I'm saving XML data. I've kept this as an XML object and also converted
it to string first -- same thing always happens.
 
Any idea how I can get rid of these characters?
 
Thanks, Marcus.
 
This is what I end up with (note the 'g at the beginning) :
 
'gorder
  item id=1
menuNameburger/menuName
price3.95/price
  /item
  item id=2
menuNamefries/menuName
price1.45/price
  /item
/order
 
This is the Flex 3 code:
?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute activate=createXML()
mx:Script
 ![CDATA[
  import flash.events.Event;
  import flash.filesystem.*;
  
  public function createXML():void 
  {
   x1 = order
  !--This is a comment. --
  ?PROC_INSTR sample ?
  item id='1'
 menuNameburger/menuName
  price3.95/price
  /item
  item id='2'
  menuNamefries/menuName
  price1.45/price
  /item
  /order
  }
  
  public  var file:File;
 
  public  function saveToFile() :void
  {
   file = new File(/filename.xml);
   file.addEventListener(Event.SELECT, dirSelected);
   file.browseForSave('');
  }
  
 
  public  function dirSelected(e:Event) :void
  {
   // this object will get saved to the file
   var dat:String = new String;
   var str:String = new String;
   str = x1.toXMLString();
   dat = str;
   var fileStream:FileStream = new FileStream();
   fileStream.open(file, FileMode.WRITE);
   fileStream.writeObject(dat);
   fileStream.close();
  }
 
 ]]
/mx:Script
 
 mx:Button x=102 y=320 label=Save XML click=saveToFile()/
 mx:XML id=x1 format=e4x/
 
/mx:WindowedApplication

 

 

 
This email was sent by a company owned by Pearson plc, registered office at 80 
Strand, London WC2R 0RL.
Registered in England and Wales with company number 53723

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


Re: [Flashcoders] Strange characters added to file when saving from AIR using fileStream

2009-07-03 Thread Kenneth Kawamoto
I may be wrong but that could be BOM? If you use writeUTF() and open the resulting file in a Unicode 
editor do you still see it?


Kenneth Kawamoto
http://www.materiaprima.co.uk/

Cheetham, Marcus wrote:

I'm using fileStream to save a text file. This works OK, but introduces
some strange characters at the beginning of the saved text.
I'm saving XML data. I've kept this as an XML object and also converted
it to string -- same thing always happens.
 
Any idea how I can get rid of these characters?
 
Thanks,
 
This is what I end up with (note the 'g at the beginning) :
 
'gorder

  item id=1
menuNameburger/menuName
price3.95/price
  /item
  item id=2
menuNamefries/menuName
price1.45/price
  /item
/order
 
This is the Flex 3 code:

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute activate=createXML()
mx:Script
 ![CDATA[
  import flash.events.Event;
  import flash.filesystem.*;
  
  public function createXML():void 
  {

   x1 = order
  !--This is a comment. --
  ?PROC_INSTR sample ?
  item id='1'
 menuNameburger/menuName
  price3.95/price
  /item
  item id='2'
  menuNamefries/menuName
  price1.45/price
  /item
  /order
  }
  
  public  var file:File;
 
  public  function saveToFile() :void

  {
   file = new File(/filename.xml);
   file.addEventListener(Event.SELECT, dirSelected);
   file.browseForSave('');
  }
  
 
  public  function dirSelected(e:Event) :void

  {
   // this object will get saved to the file
   var dat:String = new String;
   var str:String = new String;
   str = x1.toXMLString();
   dat = str;
   var fileStream:FileStream = new FileStream();
   fileStream.open(file, FileMode.WRITE);
   fileStream.writeObject(dat);
   fileStream.close();
  }
 
 ]]

/mx:Script
 
 mx:Button x=102 y=320 label=Save XML click=saveToFile()/

 mx:XML id=x1 format=e4x/
 
/mx:WindowedApplication

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


[Flashcoders] setTimeout / clearTimeout

2009-07-03 Thread Glen Pike

Hi,

   I have some old AS2 stuff where I have used setTimeout and 
clearTimeout in timeline script no problem, but as soon as I try to use 
these in a class I am getting compiler errors saying the functions are 
not defined.


   Any reason this would happen?  Compiling for Flash 8 AS2 with a 
mixture of timeline (yuck) and class code.


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


Re: [Flashcoders] setTimeout / clearTimeout

2009-07-03 Thread Muzak

You may have to use _global.setTimeout() and _global.clearTimeout()

regards,
Muzak

- Original Message - 
From: Glen Pike g...@engineeredarts.co.uk

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, July 03, 2009 2:02 PM
Subject: [Flashcoders] setTimeout / clearTimeout



Hi,

   I have some old AS2 stuff where I have used setTimeout and 
clearTimeout in timeline script no problem, but as soon as I try to use 
these in a class I am getting compiler errors saying the functions are 
not defined.


   Any reason this would happen?  Compiling for Flash 8 AS2 with a 
mixture of timeline (yuck) and class code.


   Glen
___
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] setTimeout / clearTimeout

2009-07-03 Thread -whispers-
not sure...maybe because setTimeout() was an undocumented function??
  - Original Message - 
  From: Glen Pike 
  To: Flash Coders List 
  Sent: Friday, July 03, 2009 7:02 AM
  Subject: [Flashcoders] setTimeout / clearTimeout


  Hi,

  I have some old AS2 stuff where I have used setTimeout and 
  clearTimeout in timeline script no problem, but as soon as I try to use 
  these in a class I am getting compiler errors saying the functions are 
  not defined.

  Any reason this would happen?  Compiling for Flash 8 AS2 with a 
  mixture of timeline (yuck) and class code.

  Glen
  ___
  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] Strange characters added to file when saving fromFlex/AIR using fileStream

2009-07-03 Thread Muzak

Use FileStream.writeUTFBytes()

   var xml:XML = order
 !--This is a comment. --
 ?PROC_INSTR sample ?
 item id='1'
menuNameburger/menuName
 price3.95/price
 /item
 item id='2'
 menuNamefries/menuName
 price1.45/price
 /item
 /order;

   var str:String = '?xml version=1.0 encoding=UTF-8?' + File.lineEnding;
   str += xml.toXMLString();

   var fs:FileStream = new FileStream();
   fs.open(outputFile, FileMode.WRITE);
   fs.writeUTFBytes(str);
   fs.close();

regards,
Muzak

- Original Message - 
From: Cheetham, Marcus marcus.cheet...@pearson.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, July 03, 2009 12:39 PM
Subject: [Flashcoders] Strange characters added to file when saving 
fromFlex/AIR using fileStream



I'm using fileStream to save a text file. This works OK, but introduces
some strange characters at the beginning of the saved text.
I'm saving XML data. I've kept this as an XML object and also converted
it to string first -- same thing always happens.

Any idea how I can get rid of these characters?

Thanks, Marcus.

This is what I end up with (note the 'g at the beginning) :

'gorder
 item id=1
   menuNameburger/menuName
   price3.95/price
 /item
 item id=2
   menuNamefries/menuName
   price1.45/price
 /item
/order

This is the Flex 3 code:
?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute activate=createXML()
mx:Script
![CDATA[
 import flash.events.Event;
 import flash.filesystem.*;

 public function createXML():void
 {
  x1 = order
 !--This is a comment. --
 ?PROC_INSTR sample ?
 item id='1'
menuNameburger/menuName
 price3.95/price
 /item
 item id='2'
 menuNamefries/menuName
 price1.45/price
 /item
 /order
 }

 public  var file:File;

 public  function saveToFile() :void
 {
  file = new File(/filename.xml);
  file.addEventListener(Event.SELECT, dirSelected);
  file.browseForSave('');
 }


 public  function dirSelected(e:Event) :void
 {
  // this object will get saved to the file
  var dat:String = new String;
  var str:String = new String;
  str = x1.toXMLString();
  dat = str;
  var fileStream:FileStream = new FileStream();
  fileStream.open(file, FileMode.WRITE);
  fileStream.writeObject(dat);
  fileStream.close();
 }

]]
/mx:Script

mx:Button x=102 y=320 label=Save XML click=saveToFile()/
mx:XML id=x1 format=e4x/

/mx:WindowedApplication






This email was sent by a company owned by Pearson plc, registered office at 80 
Strand, London WC2R 0RL.
Registered in England and Wales with company number 53723

___
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] Strange characters added to file when savingfromFlex/AIR using fileStream

2009-07-03 Thread Cheetham, Marcus
writeUTFBytes works perfectly.

thanks for the help. 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Muzak
Sent: 03 July 2009 13:48
To: Flash Coders List
Subject: Re: [Flashcoders] Strange characters added to file when
savingfromFlex/AIR using fileStream

Use FileStream.writeUTFBytes()

var xml:XML = order
  !--This is a comment. --
  ?PROC_INSTR sample ?
  item id='1'
 menuNameburger/menuName
  price3.95/price
  /item
  item id='2'
  menuNamefries/menuName
  price1.45/price
  /item
  /order;

var str:String = '?xml version=1.0 encoding=UTF-8?' +
File.lineEnding;
str += xml.toXMLString();

var fs:FileStream = new FileStream();
fs.open(outputFile, FileMode.WRITE);
fs.writeUTFBytes(str);
fs.close();

regards,
Muzak

- Original Message -
From: Cheetham, Marcus marcus.cheet...@pearson.com
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, July 03, 2009 12:39 PM
Subject: [Flashcoders] Strange characters added to file when saving
fromFlex/AIR using fileStream


 I'm using fileStream to save a text file. This works OK, but
introduces
 some strange characters at the beginning of the saved text.
 I'm saving XML data. I've kept this as an XML object and also
converted
 it to string first -- same thing always happens.

 Any idea how I can get rid of these characters?

 Thanks, Marcus.

 This is what I end up with (note the 'g at the beginning) :

 'gorder
  item id=1
menuNameburger/menuName
price3.95/price
  /item
  item id=2
menuNamefries/menuName
price1.45/price
  /item
 /order

 This is the Flex 3 code:
 ?xml version=1.0 encoding=utf-8?
 mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute activate=createXML()
 mx:Script
 ![CDATA[
  import flash.events.Event;
  import flash.filesystem.*;

  public function createXML():void
  {
   x1 = order
  !--This is a comment. --
  ?PROC_INSTR sample ?
  item id='1'
 menuNameburger/menuName
  price3.95/price
  /item
  item id='2'
  menuNamefries/menuName
  price1.45/price
  /item
  /order
  }

  public  var file:File;

  public  function saveToFile() :void
  {
   file = new File(/filename.xml);
   file.addEventListener(Event.SELECT, dirSelected);
   file.browseForSave('');
  }


  public  function dirSelected(e:Event) :void
  {
   // this object will get saved to the file
   var dat:String = new String;
   var str:String = new String;
   str = x1.toXMLString();
   dat = str;
   var fileStream:FileStream = new FileStream();
   fileStream.open(file, FileMode.WRITE);
   fileStream.writeObject(dat);
   fileStream.close();
  }

 ]]
 /mx:Script

 mx:Button x=102 y=320 label=Save XML click=saveToFile()/
 mx:XML id=x1 format=e4x/

 /mx:WindowedApplication






 This email was sent by a company owned by Pearson plc, registered
office at 80 Strand, London WC2R 0RL.
 Registered in England and Wales with company number 53723

 ___
 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] setTimeout / clearTimeout

2009-07-03 Thread Glen Pike

Perfect, thank you very much.

Muzak wrote:

You may have to use _global.setTimeout() and _global.clearTimeout()

regards,
Muzak

- Original Message - From: Glen Pike 
g...@engineeredarts.co.uk

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, July 03, 2009 2:02 PM
Subject: [Flashcoders] setTimeout / clearTimeout



Hi,

   I have some old AS2 stuff where I have used setTimeout and 
clearTimeout in timeline script no problem, but as soon as I try to 
use these in a class I am getting compiler errors saying the 
functions are not defined.


   Any reason this would happen?  Compiling for Flash 8 AS2 with a 
mixture of timeline (yuck) and class code.


   Glen
___
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] Strange characters added to file when saving fromFlex/AIR using fileStream

2009-07-03 Thread Cor
Muzak,

Is this also possible from Flash??
And if so: How?

Kind regards
Cor

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Muzak
Sent: vrijdag 3 juli 2009 14:48
To: Flash Coders List
Subject: Re: [Flashcoders] Strange characters added to file when saving 
fromFlex/AIR using fileStream

Use FileStream.writeUTFBytes()

var xml:XML = order
  !--This is a comment. --
  ?PROC_INSTR sample ?
  item id='1'
 menuNameburger/menuName
  price3.95/price
  /item
  item id='2'
  menuNamefries/menuName
  price1.45/price
  /item
  /order;

var str:String = '?xml version=1.0 encoding=UTF-8?' + File.lineEnding;
str += xml.toXMLString();

var fs:FileStream = new FileStream();
fs.open(outputFile, FileMode.WRITE);
fs.writeUTFBytes(str);
fs.close();

regards,
Muzak

- Original Message - 
From: Cheetham, Marcus marcus.cheet...@pearson.com
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, July 03, 2009 12:39 PM
Subject: [Flashcoders] Strange characters added to file when saving 
fromFlex/AIR using fileStream


 I'm using fileStream to save a text file. This works OK, but introduces
 some strange characters at the beginning of the saved text.
 I'm saving XML data. I've kept this as an XML object and also converted
 it to string first -- same thing always happens.

 Any idea how I can get rid of these characters?

 Thanks, Marcus.

 This is what I end up with (note the 'g at the beginning) :

 'gorder
  item id=1
menuNameburger/menuName
price3.95/price
  /item
  item id=2
menuNamefries/menuName
price1.45/price
  /item
 /order

 This is the Flex 3 code:
 ?xml version=1.0 encoding=utf-8?
 mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute activate=createXML()
 mx:Script
 ![CDATA[
  import flash.events.Event;
  import flash.filesystem.*;

  public function createXML():void
  {
   x1 = order
  !--This is a comment. --
  ?PROC_INSTR sample ?
  item id='1'
 menuNameburger/menuName
  price3.95/price
  /item
  item id='2'
  menuNamefries/menuName
  price1.45/price
  /item
  /order
  }

  public  var file:File;

  public  function saveToFile() :void
  {
   file = new File(/filename.xml);
   file.addEventListener(Event.SELECT, dirSelected);
   file.browseForSave('');
  }


  public  function dirSelected(e:Event) :void
  {
   // this object will get saved to the file
   var dat:String = new String;
   var str:String = new String;
   str = x1.toXMLString();
   dat = str;
   var fileStream:FileStream = new FileStream();
   fileStream.open(file, FileMode.WRITE);
   fileStream.writeObject(dat);
   fileStream.close();
  }

 ]]
 /mx:Script

 mx:Button x=102 y=320 label=Save XML click=saveToFile()/
 mx:XML id=x1 format=e4x/

 /mx:WindowedApplication






 This email was sent by a company owned by Pearson plc, registered office at 
 80 Strand, London WC2R 0RL.
 Registered in England and Wales with company number 53723

 ___
 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] problem with code

2009-07-03 Thread Glen Pike

Hi,

   Google - the main protaganist in SEO is now able to crawl Flash 
sites and extract text.  I did hear that recently this included dynamic 
text, but I am not sure how good this is.


   Using SWFAddress gives you a nice way to allow people to bookmark 
your URL's, it does not necessarily make your site search engine 
friendly just by having it  - you need to put a bit of work in or use 
the SEO example on the asual examples page (this adds some PHP stuff and 
redirection so that your URL's can be properly crawled by search engines...)


   http://www.asual.com/swfaddress/samples/seo/ - download this and 
look at the server side code too...


   The main thing about SEO is making sure you have a well structured 
site that contains content that is relevant to the search terms people 
are looking for.  No-one knows the exact algorithm that Google uses to 
rank pages, but it does a lot of adding up of weighted scores to get 
your overall rank.  The one thing that seems to make you rank highly are 
links from other ranking sites to your own, where those links are 
relevant to your site.  It's a bit of a hit  miss, but making your site 
fairly compliant and following the Google Webmaster guidelines will help 
you a lot - even though I don't believe that a fully browser compliant 
website is one of the key things seeing some of the rubbish out there 
that ranks.


   Don't forget though - SEO is just another marketing avenue.  If your 
target audience visit's FWA everyday then invest your time in making it 
win SOTD rather than 1000's on getting a high rank in GOogle, etc...


   HTH

   Glen.

Gustavo Duenas LRS wrote:
you could use to optimize a flash site the swfaddress, you can 
download it from here:

http://www.asual.com/swfaddress/
 and I'll send you a link for you to see how to apply this to your 
code, Actually the structure I have now is based on that.
You can use the metadata available in your keywords, description and 
others part also if you are using swfobject you can put in the part 
where is supposed to be the warning about the
flash kind you actually have running in your flash object (I'm doing 
that with no problem at all).
You can use indexation using a xml.tar.gz file to index the files in 
your website, you can make more than one page in html and named as the 
different parts of your website.


That is what I've been using.

Gus
On Jul 2, 2009, at 11:22 PM, Karl DeSaulniers wrote:


Hello List..

I could go to Google and try and find this out, but I figured being 
the seasoned designers you are, I would be in better hands if I asked 
here.
Excuse me if this is a little off-topic, but what, in your opinion, 
is the best way to optimize your flash site for search engines?


S.E.O is what I believe they call it.
Search Engine Optimization.

Doesn't this more pertain to the type of MetaData you have in your 
HTML then in your flash file???

Or is there a separate technology for S.E.O??

Any and all responses are welcome..

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.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



--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


[Flashcoders] problems accessing a MovieClip / display list issue

2009-07-03 Thread Isaac Alves
Problems trying to access a MovieClip that contains a dynamically loaded
image, inside dynamically created menu items.

I hope the code is self explanatory !

function mouseOverItem(e:Event):void {
var item:MenuItem = e.target as MenuItem;
 trace (item.getChildAt(3).name);
trace (item.getChildAt(3));
trace (item.bt_title);
 trace (item.getChildAt(4).name);
trace (item.getChildAt(4));
trace (item.icone);

new GTween(item.bt_title, 0.3, {y:25}, easing1);
new GTween(item.bt_subtitle, 0.3, {y:25}, easing1);
new GTween(item.icone, 0.3, {y:100}, easing1);/*/ doesn´t work!!
*


*The tracing output this:*

bt_title
[object MovieClip]
[object MovieClip]
icone
[object MovieClip]
undefined

*QUESTION: Why do i get undefined? shouldn´t I get  [object MovieClip]
instead ?*

Thanks!!

In case this code is not clear:

function iniciarMenu ():void{

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

var menuItem:MenuItem = new MenuItem();
menuItem.x = (menuItem.width + 2)*i;
menuItem.bt_title._txt.text = my_items[...@title;
menuItem.bt_title._txt.antiAliasType = AntiAliasType.ADVANCED;
menuItem.bt_subtitle._txt.text = my_items[...@subtitle;
menuItem.bt_subtitle._txt.antiAliasType = AntiAliasType.ADVANCED;

menuItem.linkTo = my_items[...@link;
menuItem.mouseChildren = false;

menuItem.addEventListener(MouseEvent.MOUSE_OVER, mouseOverItem);
menuItem.addEventListener(MouseEvent.MOUSE_OUT, mouseOutItem);
menuItem.addEventListener(MouseEvent.CLICK, itemClicked);

menu_mc.addChild(menuItem);
menuArray[i] = menuItem;

var iconURL = my_items[...@icon;
var iconLoader = new Loader();
iconLoader.load(new URLRequest(iconURL));
iconLoader.name = i;
iconLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, iconLoaded);

}
}

function iconLoaded(e:Event):void{
var my_icon:Loader = Loader(e.target.loader);
var iconMC:MovieClip = new MovieClip();
iconMC.addChild(my_icon);
menuArray[my_icon.name].addChild(iconMC);

iconMC.x = 100;
iconMC.y = 35;
iconMC.alpha = 0;
iconMC.name = icone;
new GTween(iconMC, 0.9, {alpha:0.8}, easing1);
 my_icon.contentLoaderInfo.removeEventListener(Event.COMPLETE, iconLoaded);
my_icon = null;
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Strange characters added to file whensaving fromFlex/AIR using fileStream

2009-07-03 Thread Muzak

You mean writing to disk?
That's AIR only.

regards,
Muzak

- Original Message - 
From: Cor c...@chello.nl

To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Friday, July 03, 2009 3:21 PM
Subject: RE: [Flashcoders] Strange characters added to file whensaving 
fromFlex/AIR using fileStream



Muzak,

Is this also possible from Flash??
And if so: How?

Kind regards
Cor

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Muzak
Sent: vrijdag 3 juli 2009 14:48
To: Flash Coders List
Subject: Re: [Flashcoders] Strange characters added to file when saving 
fromFlex/AIR using fileStream

Use FileStream.writeUTFBytes()

   var xml:XML = order
 !--This is a comment. --
 ?PROC_INSTR sample ?
 item id='1'
menuNameburger/menuName
 price3.95/price
 /item
 item id='2'
 menuNamefries/menuName
 price1.45/price
 /item
 /order;

   var str:String = '?xml version=1.0 encoding=UTF-8?' + File.lineEnding;
   str += xml.toXMLString();

   var fs:FileStream = new FileStream();
   fs.open(outputFile, FileMode.WRITE);
   fs.writeUTFBytes(str);
   fs.close();

regards,
Muzak



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


Re: [Flashcoders] problem with code

2009-07-03 Thread Karl DeSaulniers

Thanks Glen.

Karl

Sent from losPhone

On Jul 3, 2009, at 12:41 PM, Glen Pike postmas...@glenpike.co.uk  
wrote:



Hi,

  Google - the main protaganist in SEO is now able to crawl Flash  
sites and extract text.  I did hear that recently this included  
dynamic text, but I am not sure how good this is.


  Using SWFAddress gives you a nice way to allow people to bookmark  
your URL's, it does not necessarily make your site search engine  
friendly just by having it  - you need to put a bit of work in or  
use the SEO example on the asual examples page (this adds some PHP  
stuff and redirection so that your URL's can be properly crawled by  
search engines...)


  http://www.asual.com/swfaddress/samples/seo/ - download this and  
look at the server side code too...


  The main thing about SEO is making sure you have a well structured  
site that contains content that is relevant to the search terms  
people are looking for.  No-one knows the exact algorithm that  
Google uses to rank pages, but it does a lot of adding up of  
weighted scores to get your overall rank.  The one thing that seems  
to make you rank highly are links from other ranking sites to your  
own, where those links are relevant to your site.  It's a bit of a  
hit  miss, but making your site fairly compliant and following the  
Google Webmaster guidelines will help you a lot - even though I  
don't believe that a fully browser compliant website is one of the  
key things seeing some of the rubbish out there that ranks.


  Don't forget though - SEO is just another marketing avenue.  If  
your target audience visit's FWA everyday then invest your time in  
making it win SOTD rather than 1000's on getting a high rank in  
GOogle, etc...


  HTH

  Glen.

Gustavo Duenas LRS wrote:
you could use to optimize a flash site the swfaddress, you can  
download it from here:

http://www.asual.com/swfaddress/
and I'll send you a link for you to see how to apply this to your  
code, Actually the structure I have now is based on that.
You can use the metadata available in your keywords, description  
and others part also if you are using swfobject you can put in the  
part where is supposed to be the warning about the
flash kind you actually have running in your flash object (I'm  
doing that with no problem at all).
You can use indexation using a xml.tar.gz file to index the files  
in your website, you can make more than one page in html and named  
as the different parts of your website.


That is what I've been using.

Gus
On Jul 2, 2009, at 11:22 PM, Karl DeSaulniers wrote:


Hello List..

I could go to Google and try and find this out, but I figured  
being the seasoned designers you are, I would be in better hands  
if I asked here.
Excuse me if this is a little off-topic, but what, in your  
opinion, is the best way to optimize your flash site for search  
engines?


S.E.O is what I believe they call it.
Search Engine Optimization.

Doesn't this more pertain to the type of MetaData you have in your  
HTML then in your flash file???

Or is there a separate technology for S.E.O??

Any and all responses are welcome..

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.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



--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
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] problems accessing a MovieClip / display list issue

2009-07-03 Thread Ktu
Just a thought, try doing getChildByName(icone);

What it looks like, is that there is no member variable in the MenuItem
class called icone. You can't call object.child by using the name property
of the child. The bt_title does, because probably you have defined in the
MenuItem class a variable called bt_title. It looks like you did not do the
same with the icon. If you use the getChildByName() that will give you the
results you want.

Ktu

On Fri, Jul 3, 2009 at 2:01 PM, Isaac Alves isaacal...@gmail.com wrote:

 Problems trying to access a MovieClip that contains a dynamically loaded
 image, inside dynamically created menu items.

 I hope the code is self explanatory !

 function mouseOverItem(e:Event):void {
 var item:MenuItem = e.target as MenuItem;
  trace (item.getChildAt(3).name);
 trace (item.getChildAt(3));
 trace (item.bt_title);
  trace (item.getChildAt(4).name);
 trace (item.getChildAt(4));
 trace (item.icone);

 new GTween(item.bt_title, 0.3, {y:25}, easing1);
 new GTween(item.bt_subtitle, 0.3, {y:25}, easing1);
 new GTween(item.icone, 0.3, {y:100}, easing1);/*/ doesn´t
 work!!
 *


 *The tracing output this:*

 bt_title
 [object MovieClip]
 [object MovieClip]
 icone
 [object MovieClip]
 undefined

 *QUESTION: Why do i get undefined? shouldn´t I get  [object MovieClip]
 instead ?*

 Thanks!!

 In case this code is not clear:

 function iniciarMenu ():void{

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

 var menuItem:MenuItem = new MenuItem();
 menuItem.x = (menuItem.width + 2)*i;
 menuItem.bt_title._txt.text = my_items[...@title;
 menuItem.bt_title._txt.antiAliasType = AntiAliasType.ADVANCED;
 menuItem.bt_subtitle._txt.text = my_items[...@subtitle;
 menuItem.bt_subtitle._txt.antiAliasType = AntiAliasType.ADVANCED;

 menuItem.linkTo = my_items[...@link;
 menuItem.mouseChildren = false;

 menuItem.addEventListener(MouseEvent.MOUSE_OVER, mouseOverItem);
 menuItem.addEventListener(MouseEvent.MOUSE_OUT, mouseOutItem);
 menuItem.addEventListener(MouseEvent.CLICK, itemClicked);

 menu_mc.addChild(menuItem);
 menuArray[i] = menuItem;

 var iconURL = my_items[...@icon;
 var iconLoader = new Loader();
 iconLoader.load(new URLRequest(iconURL));
 iconLoader.name = i;
 iconLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, iconLoaded);

 }
 }

 function iconLoaded(e:Event):void{
 var my_icon:Loader = Loader(e.target.loader);
 var iconMC:MovieClip = new MovieClip();
 iconMC.addChild(my_icon);
 menuArray[my_icon.name].addChild(iconMC);

 iconMC.x = 100;
 iconMC.y = 35;
 iconMC.alpha = 0;
 iconMC.name = icone;
 new GTween(iconMC, 0.9, {alpha:0.8}, easing1);
  my_icon.contentLoaderInfo.removeEventListener(Event.COMPLETE, iconLoaded);
 my_icon = null;
 }
 ___
 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