Re: [Flashcoders] attachMovie fails with runtime shared asset

2007-01-06 Thread Arindam Dhar
Hi,
   
  There is a workaround for this, where u dont have to drop an
instance of runtimeShared on the stage first.I assume "runtimeShared" is the 
identifier of the shared asset which u import from another swf for runtime 
sharing.
  
1. Create a new blank symbol in the library, where u have the imported 
symbol,give a linkage indentifier to it with export for AS and Export in first 
frame selected.
   
  2. Place the imported symbol "runtimeShared" inside the blank symbol.
   
  Now, try ur line ,_root.attachMovie("runtimeShared","runtimeShared",1);
  
This works fine when u are importing graphical objects.
   
  regards,
   
  Arindam

"Mendelsohn, Michael" <[EMAIL PROTECTED]> wrote:
  Hi list...

I'm trying to do _root.attachMovie("runtimeShared","runtimeShared",1);
where runtimeShared is an asset from another swf that's exported for
runtime sharing and dropped into this movie's library as import for
runtime sharing. 

I have found that the attachMovie method *only* works if I drop an
instance of runtimeShared on the stage first. Why would this be, and is
there a way around it? Can't you simply attach a movie of a runtime
shared asset?

Thanks,
- Michael M.

___
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


 Send instant messages to your online friends http://asia.messenger.yahoo.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] AS3 writing ByteArray hexadecimal data to a file(using Zinc)

2007-01-06 Thread Sascha
Yes I've already posted it on the Zinc forum but so far without any
solution. I will prefix any non dual digit and see if it works! Thanks Paul!

Sascha


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Paul Evans
> Sent: Sunday, 07 January, 2007 00:44
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] AS3 writing ByteArray hexadecimal data to a
file(using
> Zinc)
> 
> On 5 Jan 2007, at 03:32, Sascha wrote:
> 
> > Obviously something is wrong with the way how I convert to hex data
> 
> Additionally, I suspect your code is returning values less than 16 as
> a single digit of hex, whereas a byte should be represented by two
> hex digits - i.e. prefix a zero!
> 
> Paul
> --
> [ http://www.creative-cognition.co.uk/ ]
> [ http://creacog.wordpress.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] attachMovie fails with runtime shared asset

2007-01-06 Thread Ray Chuan

Hi,

from what I've experienced before, the assets are only available to
the child clips.

Eg.

_root
 |- some_clip
 |- asset_mc
 |- child

If you load assets into asset_mc, some_clip cannot access it, ie,
_root.some_clip.attachMovie("asset"...) won't work, neither will
_root.attachMovie(...).

Only asset_mc.attach... and child.attach... will.

On 1/6/07, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:

Hi list...

I'm trying to do _root.attachMovie("runtimeShared","runtimeShared",1);
where runtimeShared is an asset from another swf that's exported for
runtime sharing and dropped into this movie's library as import for
runtime sharing.

I have found that the attachMovie method *only* works if I drop an
instance of runtimeShared on the stage first.  Why would this be, and is
there a way around it?  Can't you simply attach a movie of a runtime
shared asset?

Thanks,
- Michael M.

___
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




--
Cheers,
Ray Chuan
___
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] Problem with BitmapData

2007-01-06 Thread Joshua Sera
An additional problem I've run into in Flash 9, is
that sometimes the player won't even look for the
crossdomain.xml file on the server you have the images
on if you're JUST loading images. If you're still
having trouble, force the player to look for the file
by creating an XML object, and having that object load
the crossdomain file.

--- William Smith <[EMAIL PROTECTED]> wrote:

> Thanks you very much. I think I'll just migrate the
> code to flash 9.
> 
> On 1/5/07, Zeh Fernando <[EMAIL PROTECTED]> wrote:
> >
> > > Ok so I'm having problems with the bitmap data
> class. I am creating a
> > > marquee of images and duplicating them using the
> draw method. This works
> > > fine locally, but when uploaded it does nothing.
> I figure it has
> > something
> > > to do with the fact the I have all my media on a
> separate server, but I
> > > thought I had all the security settings right to
> have it work. I have
> > the
> > > domain allowed in the security settings. I have
> the cross domain policy
> > > file
> > > in place on the media server and loaded. Any
> ideas? Right now I have it
> > > jury
> > > rigged using the load clip method, but if
> someone leaves their browser
> > on
> > > the page the flash with just eat bandwidth.
> >
> > It won't work. Even with all security, policy
> files and whatnot in
> > place, you can't .draw content from a movieclip
> into a BitmapData if the
> > movieclip has an image loaded from another server;
> it will render as
> > white images instead. Same with remotely loaded
> video.
> >
> > You need to either:
> >
> > 1. Have the loaded images on the same server as
> the SWF;
> > 2. Have a server proxy script on the SWF server
> that loads the images
> > from the remote server and passes them to the SWF
> (so the SWF only
> > "loads" from the original server);
> > 3. Have a proxy SWF on the remote server that
> loads the images, grabs
> > the data, then passes it to the original SWF. This
> SWF needs to set
> > .allowDomain to the original server so it can use
> the data.
> > 4. Use AS3 (Flash 9), as this has been fixed under
> the new VM.
> >
> >
> > Zeh
> > ___
> > 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
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] "real time" flash interface.

2007-01-06 Thread Paul Andrews
Yes, David, you're right. I won't know until Monday the real situation and
it may well be that I'm stuck with the flat files. The more I've thought
about it, the less workable it is as a pure flat file/flash solution.
Anyway, should prove interesting!

Paul
- Original Message - 
From: "David Rorex" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Saturday, January 06, 2007 11:06 PM
Subject: Re: [Flashcoders] "real time" flash interface.


> A more efficient way might be to write a standalone socket server, in some
> easy scripting language (php, python, etc), which sits on your server and
> monitors the flat file. Since there is no network delay, it can check very
> often, once a second or even faster. It will accept conenctions from flash
> clients, and when it sees a change in the flat file, it can broadcast it
to
> the connected clients.
>
> On 1/5/07, Paul Andrews <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I'm about to start a new project which will display the workings of a
> > server based system that's manipulating data and passing it between
servers.
> > At each stage of the process a flat file is written that indicates a
change
> > in status/readiness of the data for the next stage in the process.
> >
> > My flash project will sit over the top of this indicating what's going
on
> > - driven by the flat file status changes. It's unlikely that I can
really
> > change the infrastructure at all - probably the best I'll be able to do
will
> > be to have the  status files copied into a suitable form for the flash
> > project to read. It's going to be interesting if I can't meddle with the
> > infrastructure or get a file format compatible with loadvars or xml..
> >
> > Since it's unlikely I can add much to the infrastructure, as far as I
can
> > tell the best approach is simply to poll for the presence of the status
> > files regularly and read them to pick up any changes. I don't know if
I'll
> > be able to expose the files through a web service, or add a socket
server.
> >
> > So my current thinking is to poll (read the status files if they are
> > there), then sleep for an interval then poll again (this will be as
> > real-time as I can manage). Effectively I'll be building an event-driven
> > project that generates events to update the interface in reaction to the
> > presence of the status files. Unfortunately, without a socket server I
can't
> > push the changes, nor can I reply on other solutions being installed on
the
> > server side (such as media server).
> >
> > As the status changes, I'll animate the flash interface to show what's
> > going on on the servers.
> >
> > Anyone done this kind of thing before and have some sage advice/gotchas?
> >
> > Paul
> > --
> > ipauland.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] "real time" flash interface.

2007-01-06 Thread David Rorex

A more efficient way might be to write a standalone socket server, in some
easy scripting language (php, python, etc), which sits on your server and
monitors the flat file. Since there is no network delay, it can check very
often, once a second or even faster. It will accept conenctions from flash
clients, and when it sees a change in the flat file, it can broadcast it to
the connected clients.

On 1/5/07, Paul Andrews <[EMAIL PROTECTED]> wrote:


Hi,

I'm about to start a new project which will display the workings of a
server based system that's manipulating data and passing it between servers.
At each stage of the process a flat file is written that indicates a change
in status/readiness of the data for the next stage in the process.

My flash project will sit over the top of this indicating what's going on
- driven by the flat file status changes. It's unlikely that I can really
change the infrastructure at all - probably the best I'll be able to do will
be to have the  status files copied into a suitable form for the flash
project to read. It's going to be interesting if I can't meddle with the
infrastructure or get a file format compatible with loadvars or xml..

Since it's unlikely I can add much to the infrastructure, as far as I can
tell the best approach is simply to poll for the presence of the status
files regularly and read them to pick up any changes. I don't know if I'll
be able to expose the files through a web service, or add a socket server.

So my current thinking is to poll (read the status files if they are
there), then sleep for an interval then poll again (this will be as
real-time as I can manage). Effectively I'll be building an event-driven
project that generates events to update the interface in reaction to the
presence of the status files. Unfortunately, without a socket server I can't
push the changes, nor can I reply on other solutions being installed on the
server side (such as media server).

As the status changes, I'll animate the flash interface to show what's
going on on the servers.

Anyone done this kind of thing before and have some sage advice/gotchas?

Paul
--
ipauland.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] Tutorial on the flash mx.* classes?

2007-01-06 Thread Count Schemula

Also, try Class Browser.

http://www.sephiroth.it/python/classbrowser.php

It's nice for seeing what classes exist and their functions.


2007/1/6, William Smith <[EMAIL PROTECTED]>:
>
> I know the tween class is documented on actionscript.org, but is there
> much information on any of the other classes?


--
count_schemula
___
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 UIEventDispatcher class functioning?

2007-01-06 Thread Fumio Nonaka
Thank you for your suggestion, Brian.  mx.events.LowLevelEvents was the 
key point.


Once the LowLevelEvents class is accessed, mix-in will be accomplished. 
 That is, UIEventDispatcher.initialize() is called and mouse events are 
implemented.


mx.events.LowLevelEvents;  // *just access the class
import mx.managers.DepthManager;
import mx.controls.Button;
var myButton:Button = Button(this.createClassChildAtDepth(Button, 
DepthManager.kTop));

myButton.label = "Button";
myButton.move(10, 10);
var listenerObject:Object = new Object();
listenerObject.mouseOver = function(eventObject:Object):Void  {
trace(eventObject.target);
};
myButton.addEventListener("mouseOver", listenerObject);

ASO files are properly overwritten because their time stamps are newer. 
 And I keep the classes in the "First Run".  Therefore I just remove 
modified classes for testing and restart Flash to restore the original ones.

_
Brian Williams wrote:

Look at mx.events.LowLevelEvents.as

The way it works, as soon as you add an eventlistener for one of the low
level events, it will replace onPress, onRelease, etc with new methods that
dispatch an event.

Code that's in your configuration folder is only looked at once when
starting flash, so if you add a trace statement in
mx.events.UIEventDispatcher, you may need to clear your aso cache and/or
restart Flash to see the change.

If you're modifying any of those classes (even for testing purposes), it's
better to make a copy of the tree and put it higher in your class path, so
that flash will check it again if you make changes.

I remember reading a couple of blog posts about lowlevel events, so I would
try googling for "mx v2 lowlevelevents"


Regards,
--
Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My books
Flash community

___
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] AS3 writing ByteArray hexadecimal data to a file (using Zinc)

2007-01-06 Thread Paul Evans

On 5 Jan 2007, at 03:32, Sascha wrote:


Obviously something is wrong with the way how I convert to hex data


Additionally, I suspect your code is returning values less than 16 as  
a single digit of hex, whereas a byte should be represented by two  
hex digits - i.e. prefix a zero!


Paul
--
[ http://www.creative-cognition.co.uk/ ]
[ http://creacog.wordpress.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] AS3 writing ByteArray hexadecimal data to a file (using Zinc)

2007-01-06 Thread Paul Evans

On 5 Jan 2007, at 03:32, Sascha wrote:
I'm trying to encode binary data to hexadecimal values and then  
writing them
to a file using mdm.FileSystem.saveFileHEX(). I could also use the  
pipe
delimiter method but while it works correctly, it is very slow on  
larger

files.


The best place to pose Zinc wrapper questions is in the Zinc Forum.  
There are already a number of threads in there on or around this  
subject, and MDM personnel and developers contribute there. I've had  
similar issues with the Mac version.


http://www.mdmforum.com/

Regards


Paul
--
[ http://www.creative-cognition.co.uk/ ]
[ http://creacog.wordpress.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] Is UIEventDispatcher class functioning?

2007-01-06 Thread Brian Williams

Look at mx.events.LowLevelEvents.as

The way it works, as soon as you add an eventlistener for one of the low
level events, it will replace onPress, onRelease, etc with new methods that
dispatch an event.

Code that's in your configuration folder is only looked at once when
starting flash, so if you add a trace statement in
mx.events.UIEventDispatcher, you may need to clear your aso cache and/or
restart Flash to see the change.

If you're modifying any of those classes (even for testing purposes), it's
better to make a copy of the tree and put it higher in your class path, so
that flash will check it again if you make changes.

I remember reading a couple of blog posts about lowlevel events, so I would
try googling for "mx v2 lowlevelevents"

--Brian

On 1/5/07, Fumio Nonaka <[EMAIL PROTECTED]> wrote:


Is the UIEventDispatcher class functioning?

[1] According to Flash 8 Component Language Reference, "the
UIEventDispatcher class is mixed in to the UIComponent class".  But the
main method, UIEventDispatcher.initialize(), does not seem to be called
as I inserted a trace() statement in the method to make sure.
http://livedocs.macromedia.com/flash/8/main/4178.html

[2] The UIComponent class has several mouse events.  However it does not
have statements to dispatch mouse events.  It only has load/unload and
key events.

While I searched about this issue by Google, no useful information could
be found.  I wonder if few people use this class.

Any suggestions and comments would be very appreciated.

Regards,
--
Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My books
Flash community

___
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] Tutorial on the flash mx.* classes?

2007-01-06 Thread eka

Hello :)

in flash8 all mx.* classes are documented in the reference of the components
in the help of flash (F1)

or you can read the online documentation in
http://www.gotapi.com/(Macromedia -> ActionScript -> Component
Reference)

EKA+ :)

2007/1/6, William Smith <[EMAIL PROTECTED]>:


I know the tween class is documented on actionscript.org, but is there
much
information on any of the other classes? I've been able to piece together
a
few of them, but there's a lot in there that seem useful but have no doco.
___
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