[Flashcoders] Inserting FLV Message events

2006-12-21 Thread Chris McFadyen aka Grayson Carlyle

Is it possible?  I've seen programs that can manipulate cue points, but I
don't know the least bit about message events in an flv.

Specifically what I'm looking for is the ability to copy them out of one flv
and insert into another.
___
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] AS3: Stage.scaleMode, Stage.stageWidth and Stage.stageHeight

2006-08-09 Thread Chris McFadyen aka Grayson Carlyle

First question:

Can Stage.stageWidth and Stage.stageHeight not be modified by AS?
Documentation would suggest otherwise, but setting them has no effect.

Second question:

Does Stage.scaleMode = StageScaleMode.NO_SCALE work as intended?
Documentation states "Specifies that the size of the Flash application be
fixed, so that it remains unchanged even as the size of the player window
changes."  However, I find the application to resize itself with the player
window; IDE and browser, and changes the value of stageHeight and
stageWidth.


My intent is to be able to resize an application in code without the browser
window having an affect on size or scale, but the above properties can't
seem to be configured to do that.  Is there another way?
___
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] Persisting Arrays of Objects with Local Shared Objects

2006-07-26 Thread Chris McFadyen aka Grayson Carlyle

The first thing to be aware of is circular object references, i.e. can you
recursively trace the array without crashing Flash.  So, linked lists are
out of the question.

The second is not to pass any object references (including methods) where
the referred object might change before it is written.  This can do that
trick:




function removeByRef(object:Object) {

   if(typeof(object) == "object") {
   var tmpObject = new Object();

   for(var i in object) {

   switch(typeof(object[i])) {
   case "object":
   tmpObject[i] = removeByRef(object[i]);
   break;

   case "function":
   break;

   default:
   tmpObject[i] = object[i];
   break;
   }
   }
   return tmpObject;
   } else {
   return object;
   }
}
<<<

Basically the same rules as trying to serialize a Flash object into a SOAP
object during remoting.


Hello.

Are there any caveats to persisiting an array of shared objects?

My first attempt, which attempted to stick in one of those into a
FlashCookie failed, and Solve couldnt open the .sol file either.

I'm going to try this again, with just simple objects that have only the
fields, and no methods, but in the meantime, is there something else
that I should watch out for?

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


[Flashcoders] My Flash Editor UI is invisible/disapeared?

2006-07-21 Thread Chris McFadyen aka Grayson Carlyle

As of yesterday, I can only see Flash Editor in maximized mode.  Trying to
restore the window to it's normal size results in blank desktop, however, I
can still access the menus using alt, as seen in this image:
http://home.cogeco.ca/~gcarlyle24/flashgone.gif

Only affects Flash Editor, though, quite possibly has nothing to do with
Flash.  Anyone seen this happen to them before?
___
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] Dynamic access of top-level variables in AS3

2006-07-11 Thread Chris McFadyen aka Grayson Carlyle

That's the one! Thanks :D

On 7/11/06, Juan Anorga <[EMAIL PROTECTED]> wrote:


Hi,

You may want to check out flash.display.LoaderInfo[1]. It has a
property "parameters" that has all the variables passed to the swf via
querystring and flashvars. The DisplayObject at the top of the display
list will have a loaderInfo property with an instance of the
LoaderInfo class.

Hope this helps.

[1]
http://livedocs.macromedia.com/flex/2/langref/flash/display/LoaderInfo.html#parameters

On 7/10/06, Chris McFadyen aka Grayson Carlyle <[EMAIL PROTECTED]> wrote:
>  In doing web apps, we pass a lot of variables directly to the swf
files.
___
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] Dynamic access of top-level variables in AS3

2006-07-11 Thread Chris McFadyen aka Grayson Carlyle

Except for course that any variables you write on the stage aren't available
inside classes...

I guess the solution would be to figure out what 'this' is on the stage.

Doing trace(this); gives [object Timeline0_f07ac19cdfe1944b8711232f8d557a]
(with a different hash every time).

This isn't the flash.display.Stage object... anyone know what it is?


On 7/11/06, Chris McFadyen aka Grayson Carlyle <[EMAIL PROTECTED]> wrote:


 Aha! The solution is to have the global object on the stage AS code:

var global = this;

Simple enough, but I was always trying to do it within an as file:

package {
  var global = this;

  class MyClass() { }
}

Which will cause a compile error for referencing "this" outside of a
class.

Thanks guys.


 On 7/11/06, Derek Vadneau <[EMAIL PROTECTED]> wrote:
>
> No, you don't need to know the name of the variable. "myVar" isn't the
> name of the variable, it's a variable that holds the name of the
> variable.
>
> So:
> function getVar(myVar)
> {
> return _globla[myVar];
> }
>
> getVar("variableDelta");
>
>
> You need to know the variable name at some point to create it and to
> address it. That is, your class doesn't need to know, but at some point
> in
> code a variable name is known, whether it's generated with a string
> concatenation or passed from another SWF/app/browser/etc.
>
> Does that address your situation? If not, maybe you could explain how
> you
> want to use it?
>
>
> Derek Vadneau
>
> - Original Message -
> From: "Chris McFadyen aka Grayson Carlyle" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" < flashcoders@chattyfig.figleaf.com>
> Sent: Tuesday, July 11, 2006 11:50 AM
> Subject: Re: [Flashcoders] Dynamic access of top-level variables in AS3
>
>
> That however requires putting those variables into the global object
> (which
> I don't have a problem with), but I don't know the names of these
> variables... that's why I need dynamic variable references.
>
>
>
> ___
> 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] Dynamic access of top-level variables in AS3

2006-07-11 Thread Chris McFadyen aka Grayson Carlyle

Aha! The solution is to have the global object on the stage AS code:

var global = this;

Simple enough, but I was always trying to do it within an as file:

package {
 var global = this;

 class MyClass() { }
}

Which will cause a compile error for referencing "this" outside of a class.

Thanks guys.


On 7/11/06, Derek Vadneau <[EMAIL PROTECTED]> wrote:


No, you don't need to know the name of the variable. "myVar" isn't the
name of the variable, it's a variable that holds the name of the variable.

So:
function getVar(myVar)
{
return _globla[myVar];
}

getVar("variableDelta");


You need to know the variable name at some point to create it and to
address it. That is, your class doesn't need to know, but at some point in
code a variable name is known, whether it's generated with a string
concatenation or passed from another SWF/app/browser/etc.

Does that address your situation? If not, maybe you could explain how you
want to use it?


Derek Vadneau

----- Original Message -
From: "Chris McFadyen aka Grayson Carlyle" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Tuesday, July 11, 2006 11:50 AM
Subject: Re: [Flashcoders] Dynamic access of top-level variables in AS3


That however requires putting those variables into the global object
(which
I don't have a problem with), but I don't know the names of these
variables... that's why I need dynamic variable references.



___
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] Dynamic access of top-level variables in AS3

2006-07-11 Thread Chris McFadyen aka Grayson Carlyle

Merci,

(and I'd continue in French, but I'm far better at understanding it than
writing it)

However, this doesn't address dynamic variable referencing, only variables
for which you know the name of.


On 7/11/06, eka <[EMAIL PROTECTED]> wrote:


Hello :)

in french :

http://www.ekameleon.net/blog/index.php?2006/07/06/35--as3-le-_global-bien-cache-

EKA+ :)

2006/7/11, Derek Vadneau <[EMAIL PROTECTED]>:
>
> Create an object in the global scope to contain your variables, let's
call
> it "_global". Then reference it as:
> _global[myVar];
>
> Or if you don't like the idea of a global object, create a dynamic class
> to do the same.
>
>
> Derek Vadneau
>
> - Original Message -
> From: "Chris McFadyen aka Grayson Carlyle" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, July 11, 2006 11:31 AM
> Subject: [Flashcoders] Dynamic access of top-level variables in AS3
>
>
> flash.display.Stage is a sealed class and can't contain swf-passed
> variables.
>
>  QUOTE 
> or what about
>
> stage[myVar]
>
> Charles P.
> ___
> 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] Dynamic access of top-level variables in AS3

2006-07-11 Thread Chris McFadyen aka Grayson Carlyle

That however requires putting those variables into the global object (which
I don't have a problem with), but I don't know the names of these
variables... that's why I need dynamic variable references.

On 7/11/06, Derek Vadneau <[EMAIL PROTECTED]> wrote:


Create an object in the global scope to contain your variables, let's call
it "_global". Then reference it as:
_global[myVar];

Or if you don't like the idea of a global object, create a dynamic class
to do the same.


Derek Vadneau


___
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] Dynamic access of top-level variables in AS3

2006-07-11 Thread Chris McFadyen aka Grayson Carlyle

flash.display.Stage is a sealed class and can't contain swf-passed
variables.

 QUOTE 
or what about

stage[myVar]

Charles P.
___
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] Dynamic access of top-level variables in AS3

2006-07-11 Thread Chris McFadyen aka Grayson Carlyle

Maybe I'm missing something, but I don't see how I can dynamically reference
variables passed via a GET string into the swf using this.


Hello :)

in AS3 you use directly variables in global when you use a new .as !


package
{

 static globalVariable = {} ; // your in topLevel !!!


 public class MainClass()
 {
   // first code in your Application

  // load your xml and use your global variable !!!

 }




}


EKA+ :)

___
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] Dynamic access of top-level variables in AS3

2006-07-10 Thread Chris McFadyen aka Grayson Carlyle

In doing web apps, we pass a lot of variables directly to the swf files.
Some of these are dynamically matched using eval() to write variable values
into strings.

Example: Reading settings from an XML file, with %var% in the node values;
we search for for these and match up "%var%" to eval("var").

Without using eval(), _root[var] would've worked, but _root is gone in AS3
as well.  Is there some other method I can use in AS3 to access top-level
variables dynamically?
___
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