[Flashcoders] swf paths...

2009-06-03 Thread maurice sallave
Hello!
First time on here, so thanks for any advice.
I'm pulling in a preloader.swf file into an html file that sits at root
swf/preloader.swf.  All my swf's are located in a swf directory that gets
preloaded into this preloader.swf - simple enough.  I'd like to try to keep
my server as clean as possible without having to hard-code the path into the
preloader.swf file and don't want to use flashvars as a way of referencing
my targeted path. Is there another way of doing this?  Of course if I put
the html file inside the swf directory, everything works, but it defeats the
purpose of keeping my server organized. I hope this makes sense and again
thanks in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] swf paths...

2009-06-03 Thread maurice sallave
Thanks for the replies.  I'll be looking into both.

kind of been playing around with this as well:
str = _url;
slash = str.lastIndexOf(/);
str = str.substring(slash+1, str.length);
dot = str.lastIndexOf(.);
filename = str.substring(0, dot);
directoryLocation = _url.split(filename + .swf).join();

and setting it to frame 1.

On Wed, Jun 3, 2009 at 2:15 PM, Robert Leisle b...@headsprout.com wrote:

 Hi Maurice,

 How about sending it in as a URL variable when you load preloader.swf into
 the html page?

 In the HTML:
 object .
param name=movie value=swf/preloader.swf?path=swf/ /
...
embed src=swf/preloader.swf?path=swf/ .../
 /object

 Then in preloader.swf:
 var ojtParams:Object = this.loaderInfo.parameters;
 var swfPath:String = ojtParams.path;


 hth,
 Bob


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of maurice
 sallave
 Sent: Wednesday, June 03, 2009 1:30 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] swf paths...

 Hello!
 First time on here, so thanks for any advice.
 I'm pulling in a preloader.swf file into an html file that sits at root
 swf/preloader.swf.  All my swf's are located in a swf directory that gets
 preloaded into this preloader.swf - simple enough.  I'd like to try to keep
 my server as clean as possible without having to hard-code the path into
 the
 preloader.swf file and don't want to use flashvars as a way of referencing
 my targeted path. Is there another way of doing this?  Of course if I put
 the html file inside the swf directory, everything works, but it defeats
 the
 purpose of keeping my server organized. I hope this makes sense and again
 thanks in advance.
 ___
 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] swf paths...

2009-06-03 Thread maurice sallave
ah sumly cool.  Thanks for showing off.  I love it.

On Wed, Jun 3, 2009 at 3:52 PM, Robert Leisle b...@headsprout.com wrote:

 Here's another version:

 var str:String = http://www.yourDomain.com/dir1/dir2/dir3/preloader.swf;;
 var intFirst:int = str.indexOf(.com/) +5;
 var intLast:int = str.lastIndexOf(/)+1;
 var intPathLen:int = intLast - intFirst;
 // 
 var serverName:String = str.substr( 0, intFirst );
 var directoryPath:String = str.substr( intFirst, intPathLen );
 var fileName:String = str.substr( intLast );
 // 
 trace( serverName: +serverName, \ndirectoryPath: +directoryPath,
 \nfileName: +fileName );


 Cheers,
 Bob

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of maurice
 sallave
 Sent: Wednesday, June 03, 2009 3:11 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] swf paths...

 Thanks for the replies.  I'll be looking into both.

 kind of been playing around with this as well:
 str = _url;
 slash = str.lastIndexOf(/);
 str = str.substring(slash+1, str.length);
 dot = str.lastIndexOf(.);
 filename = str.substring(0, dot);
 directoryLocation = _url.split(filename + .swf).join();

 and setting it to frame 1.

 On Wed, Jun 3, 2009 at 2:15 PM, Robert Leisle b...@headsprout.com wrote:

  Hi Maurice,
 
  How about sending it in as a URL variable when you load preloader.swf
 into
  the html page?
 
  In the HTML:
  object .
 param name=movie value=swf/preloader.swf?path=swf/ /
 ...
 embed src=swf/preloader.swf?path=swf/ .../
  /object
 
  Then in preloader.swf:
  var ojtParams:Object = this.loaderInfo.parameters;
  var swfPath:String = ojtParams.path;
 
 
  hth,
  Bob
 
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com
  [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of maurice
  sallave
  Sent: Wednesday, June 03, 2009 1:30 PM
  To: flashcoders@chattyfig.figleaf.com
  Subject: [Flashcoders] swf paths...
 
  Hello!
  First time on here, so thanks for any advice.
  I'm pulling in a preloader.swf file into an html file that sits at root
  swf/preloader.swf.  All my swf's are located in a swf directory that
 gets
  preloaded into this preloader.swf - simple enough.  I'd like to try to
 keep
  my server as clean as possible without having to hard-code the path into
  the
  preloader.swf file and don't want to use flashvars as a way of
 referencing
  my targeted path. Is there another way of doing this?  Of course if I put
  the html file inside the swf directory, everything works, but it defeats
  the
  purpose of keeping my server organized. I hope this makes sense and again
  thanks in advance.
  ___
  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

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


Re: [Flashcoders] Language translation from English to german/russian etc

2008-04-23 Thread maurice sallave
Not sure about what your deadline is on these things but wouldn't it be
better to rip all the text out and have that feed from an xml file?

On Wed, Apr 23, 2008 at 2:13 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi guys
 I came under a scenario where I have 15 User interface screens all in
 English and they are designed graphically (not using Action Script code at
 all). Now my requirements is that I need to convert all of those 15
 screens
 to 8 more languages which include russian, german, hebrew , japanese and
 few
 more. I need to see how does those screens look with other languages.
 Does anyone know any plugin where i can just pass those swf files and new
 swf files came with converted language. Somehow like this webpage

 http://www.windowslivetranslator.com/Default.aspx

 Please let me know if there is any other way too.
 Any help will be highly appreciated.
 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


Re: [Flashcoders] print function in AS2

2008-02-19 Thread maurice sallave
cool!  I'll check it out.  Thanks!

On Feb 15, 2008 6:26 PM, Gabriel Laet [EMAIL PROTECTED]
wrote:

 Hi Maurice,

 I highly recommend you to take a look on PrintJob class. It will give you
 much more control and make your life easier. I'm not sure, but I remember
 that was an issue with the print function and layer-masks (and a lot of
 other
 stuff too). But I don't know how complicated will be for you debug and
 test
 this.

 A simple and fast solution would be generate a Bitmap of the screen (like
 a
 print-screen)
 before printing. And then you just dispose the object.

 I hope this helps you to figure out an solution.

 On Feb 15, 2008 6:34 PM, maurice sallave [EMAIL PROTECTED] wrote:

  Hi,
  I'm trying to print  from Flash using  the print function.  I've created
 a
  print button to point to a movieClip that gets dynamically created e.g.
 a
  results page.  What's weird is  that it works as a standalone swf file
 and
  prints fine, but when it's in a browser I get one solid color and no
  images
  - no results.  I've used bframe, bmax, and bmovie where I instantiated
 #p
  at
  the first frame and still no luck.  Thanks for any help.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 ~Gabriel Laet
 ___
 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] print function in AS2

2008-02-15 Thread maurice sallave
Hi,
I'm trying to print  from Flash using  the print function.  I've created a
print button to point to a movieClip that gets dynamically created e.g. a
results page.  What's weird is  that it works as a standalone swf file and
prints fine, but when it's in a browser I get one solid color and no images
- no results.  I've used bframe, bmax, and bmovie where I instantiated #p at
the first frame and still no luck.  Thanks for any help.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] sound object in AS2

2008-02-08 Thread maurice sallave
Hi,
This is my first post so please bare with me.  Presently I'm using the sound
object class in AS2 to control my sounds and using the linkage id to attach
my sounds appropriately.  The problem I'm having is that when I export in
first frame for a couple of audio files the presence of my loader goes
down.  Meaning  that I don't start to see my loader till it's at around 50%,
I'd actually like to see it start at 0%.  When I uncheck export in first
frame my loader shows more, but I don't hear any sound playing right away
and I do have *soundobject.start* both times.  Is there a better way to load
sound files into flash where I can see my loader start, hopefully at 0%, and
play my sound right away?  I'm using sound object so that I can better
control the many sounds on this project or maybe my approach is wrong.
Thanks for any help.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] sound object in AS2

2008-02-08 Thread maurice sallave
So are the audio files to be set at stream or event?

On Feb 8, 2008 3:48 AM, Jimbo [EMAIL PROTECTED] wrote:

 Yes, that is the way to get around this, also make sure that you uncheck
 'export in first frame' in your assets - when you uncheck that box, the
 compiler will not export the asset at all, so you need to physically place
 it on frame 2 or later, but before they are neeeded. Then the frame 1 'load'
 is only the weight of the preloader itself.
 hth,
 jimbo

 *** REPLY SEPARATOR  ***

 On 2/8/2008 at 9:42 AM McVirusS wrote:

 Hi Maurice,
 
 What you could do is place a movieclip in the second frame that contains
 all
 the sounds on different layers (don't forget to put it on stop). It's
 not
 a very clean solution but it works :).
 
 Regards,
 Meinaart / McVirusS
 
 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Namens maurice sallave
 Verzonden: vrijdag 8 februari 2008 8:48
 Aan: flashcoders@chattyfig.figleaf.com
 Onderwerp: [Flashcoders] sound object in AS2
 
 Hi,
 This is my first post so please bare with me.  Presently I'm using the
 sound
 object class in AS2 to control my sounds and using the linkage id to
 attach
 my sounds appropriately.  The problem I'm having is that when I export
 in
 first frame for a couple of audio files the presence of my loader goes
 down.  Meaning  that I don't start to see my loader till it's at around
 50%,
 I'd actually like to see it start at 0%.  When I uncheck export in first
 frame my loader shows more, but I don't hear any sound playing right
 away
 and I do have *soundobject.start* both times.  Is there a better way to
 load
 sound files into flash where I can see my loader start, hopefully at 0%,
 and
 play my sound right away?  I'm using sound object so that I can better
 control the many sounds on this project or maybe my approach is wrong.
 Thanks for any help.
 ___
 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