Re: [Flashcoders] FLV, attachMovie, and missing controls

2006-08-30 Thread Jeff Jonez

Thanks Tyson,

That was exactly the problem.

On 8/22/06, Tyson Tune [EMAIL PROTECTED] wrote:


You need to include the skin swf to have the controls present in your
new swf.
On Aug 20, 2006, at 3:37 PM, Jeff Jonez wrote:

 I have a 4 megabyte flv file that loads via attachMovie into my swf
 file.
 When I run from my computer everything works fine. Once I post the
 swf on
 the net, the controls (play, pause, volume) disappear when I load
 the movie.
 Any tips?

 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] FLV, attachMovie, and missing controls

2006-08-20 Thread Jeff Jonez

I have a 4 megabyte flv file that loads via attachMovie into my swf file.
When I run from my computer everything works fine. Once I post the swf on
the net, the controls (play, pause, volume) disappear when I load the movie.
Any tips?

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


Re: [Flashcoders] list of files in a directory using FileReference or FileReferenceList

2006-07-11 Thread Jeff Jonez

Or you could use PHP or another scripting language.

Jeff

On 7/10/06, Marcos Neves [EMAIL PROTECTED] wrote:

You canĀ“t dynamic list all files, but you can popup a browser window,
asking to the user select all files on the folder. This is for
security reason.

On 7/10/06, jordan robinson [EMAIL PROTECTED] wrote:
 Is there a way to get a list of files in a directory using
 FileReference or FileReferenceList classes in flash 8. I don't want
 the user to browse to get the files since the files will be already
 set. I basically want to pull in all the file names that are in a
 particular folder. I am trying to set something up to load files in a
 folder but the folder may constantly change contents.


 On Jul 9, 2006, at 12:02 PM, jordan robinson wrote:

  I am working on  kiosk project that will be updated dynamically. Is
  there  way to have flash detect what is in a folder before I have
  the shell play through the sub files. I know you can set it up
  through xml and have it go through a list but I'd rather use that
  option as  plan b. The project is dealing with kiosks in hundreds
  of locations and some locations will be playing different file then
  others. If I could get my shell to just play whatever is in a
  folder then that would be ideal (playing whatever is in that
  subdirectory). Thanks in advance for any help on this issue.
 
  Jordan Robinson
 


 ___
 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] Delegate and [self] Argument

2006-07-05 Thread Jeff Jonez

Thanks for your reply Steve. I modified the original class to do exactly
what you suggested with such a third parameter. You also mention,

This was added mainly for the purpose of making it easy to remove event
listeners without having to keep an external reference to the delegate
functions that were created.

Do you have an example of how this might be used? How does the reference to
the delegate class itself help allow removal of such event listeners? Or
wait--- it's a reference to the function passed in as the second
parameter... I'll verify that right now.

Jeff.


On 7/4/06, Steve Webster [EMAIL PROTECTED] wrote:


Hi Jeff,

 In the delegate class from Steve Webster, there is this line:

 var fullArgs:Array = arguments.concat(self.extraArgs, [self]);

 I was wondering if anyone knows why there is a reference to self passed
to
 the handler function. Or how might this be useful? This extra argument
could
 cause a problem depending upon what your hander function does with
 parameters, for example if you have a function with a dynamic number of
 variables.

Yeah, my Delegate class doesn't work very well for event handlers that
expect a variable number of arguments. This has caused us problems in
the past, and we have an internal version of this class that allows
you to pass a third argument to Delegate.create that prevents the
reference to self being added to the arguments list. Let me know if
this might be useful for you and I'll dig it out.

The reference to self is passed so that you have a clean and easy way
to reference the delegate function in the event handler method. This
was added mainly for the purpose of making it easy to remove event
listeners without having to keep an external reference to the delegate
functions that were created. Of course, you could just use
arguments.caller, but that's less obvious.

Cheers,

Steve

--
Steve Webster
http://dynamicflash.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] Delegate and [self] Argument

2006-07-01 Thread Jeff Jonez

Hi All,

In the delegate class from Steve Webster, there is this line:

var fullArgs:Array = arguments.concat(self.extraArgs, [self]);

I was wondering if anyone knows why there is a reference to self passed to
the handler function. Or how might this be useful? This extra argument could
cause a problem depending upon what your hander function does with
parameters, for example if you have a function with a dynamic number of
variables.

I'm debating whether I should keep this [self] reference in a helper
function I wrote (see below), that is similar to delegate.

JJ


Here's the short helper function I wrote: it executes a function after a
specified delay and repeats the call if the optional 'repeat' variable is
passed in

  //
  // Two ways to use this function
  //delay( timeDelay, target, handler )
  //delay( timeDelay, repeat, target, handler )
   public static function delay( timeDelay:Number ):Void
   {

   // Create the timeDelay function
   var timerDelay:Function = function()
   {

   // Get reference to self
var self:Function = arguments.callee;

   // Augment arguments passed from broadcaster with additional
args
   // Note: The [self] array addition passes a reference to the
callee itself and passes
   // this as a parameter to the handler which could cause
unforseen problems. It is not
   // clear to me why delegate passes this reference.
   var fullArgs:Array = arguments.concat(self.extraArgs, [self]);

self.repeat--;

if( self.repeat == 0 )
{
   clearInterval( self.intervalId );
}

   // Call handler with arguments
   return self.handler.apply(self.target, fullArgs);
   };


   // Pass in local references
 // The arguments passed in have different meaning whether we have
 // repeat variable or not
 if( typeof( arguments[1] ) == number )
 {
timerDelay.repeat  = arguments[1];
timerDelay.target  = arguments[2];
timerDelay.handler = arguments[3];
timerDelay.extraArgs = arguments.slice(4);
 }
 else
 {
timerDelay.repeat  = 1;
timerDelay.target  = arguments[1];
timerDelay.handler = arguments[2];

timerDelay.extraArgs = arguments.slice(3);
 }

   // start the timer interval
 timerDelay.intervalId =  setInterval( timerDelay, timeDelay );
   }
___
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] Is Object scope lost when using Delegate?

2006-06-09 Thread Jeff Jonez

I'm wondering if, when I use the Delegate class to set the scope of an
event handler, is it possible to reference the previous scope? My
problem is this...

I have a class which implements a menu. Each menu item is a movieclip
and I add new menu items by calling a function called addChild like
this.

var myMenu: new Menu();
myMenu.addChild( Item1 );
myMenu.addChild( Item2 );

In class Menu, the function addChild does something like this,

funciton addChild( txt:String ):Void
{
  // make new mc, with a text field and set the txt
  myNewMc.onRelease = Delegate( this, onMenuRelease );
{

function onMenuRelease( ):Void
{
  // here I want to access class variable No problem!
  // now I want to change properties of myNewMc! How do I access it?
  // If I have 12 menu items, how can I know which one was triggered
the onRelease!?

}

So, when I get to the onRelease event handler, is there a way to
reference the scope of the MC that the event hander is attached to?
Or, because I used Delegate has the mc scope been lost and I need to
somehow keep track of that by, perhaps setting a focus variable or
something...

Makes sense?

Thanks.
___
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] Is Object scope lost when using Delegate?

2006-06-09 Thread Jeff Jonez

This is exactly what I was looking for, cheers Mark and Morten!

   myNewMc.onRelease = Delegate( this, onMenuRelease, myNewMc );


Previously, I kept a reference to my class in mc variable, which
wasn't so bad codewise... not sure if there are other side effects to
doing that.

Re: Matt

can you not add your children in a loop?


The children or menu items are added and removed dynamically by
calling add/remove child ( and then I animate them on and off) from
some other class that wants to use the menu
___
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