[Flashcoders] Giving dynamic object a custom variable

2014-08-15 Thread Ted Lehr
How can I create a variable in a dynamic object?

For example, if I had a movie clip in the library, I could open it up and on 
the first frame I could give it:

var velocityX:Number = Math.random()*10-10;

I could then refer to mc.velocityX;

How can I create that variable on an object create in actionscript?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Giving dynamic object a custom variable

2014-08-15 Thread Ted Lehr
ugh never mind... sorry


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Ted Lehr
Sent: Fri 8/15/2014 2:23 PM
To: Flash Coders List
Subject: [Flashcoders] Giving dynamic object a custom variable
 
How can I create a variable in a dynamic object?

For example, if I had a movie clip in the library, I could open it up and on 
the first frame I could give it:

var velocityX:Number = Math.random()*10-10;

I could then refer to mc.velocityX;

How can I create that variable on an object create in actionscript?

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


[Flashcoders] getting data from outside servers

2014-08-11 Thread Ted Lehr
So it seems Flash by default does not allow a movie to get data (say xml) from 
another server. So if I have a movie on http://www.thissite.com/movie.swf and 
in that movie I have:

var xmlLoader:URLRequest = new URLRequest(http://www.thissite.com/data.xml;);

Is there anyway around this?

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


[Flashcoders] Modifying Sharepoint 2010 list from Flash

2013-11-27 Thread Ted Lehr
Anyone have any experience/guidance with how to modifying list entries in 
Sharepoint 2010 from Flash?

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


[Flashcoders] Change Background Color of Datagrid Cell

2013-09-05 Thread Ted Lehr
Is it possible to dynamically change the background color of an individual DG 
cell?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] CHANGE style of Datagrid

2013-08-16 Thread Ted Lehr
Is it possible to change the style of a datagrid? I have a datagrid I am 
dg.setStyle 'ing when I create it... at a certain point I want to change the 
style of that grid... I am simply trying to setStyle again... I am guessing you 
cannot reset a style by simply setting a new style as it is not working... Is 
it possible?

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


RE: [Flashcoders] CHANGE style of Datagrid

2013-08-16 Thread Ted Lehr
yeah - that's a good idea... I am creating like 10 grids so I was hoping I 
could just change the style when needed as opposed to having to create 20...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Paul A.
Sent: Fri 8/16/2013 12:05 PM
To: Flash Coders List
Subject: Re: [Flashcoders] CHANGE style of Datagrid
 
On 16/08/2013 16:23, Ted Lehr wrote:
 Is it possible to change the style of a datagrid? I have a datagrid I am 
 dg.setStyle 'ing when I create it... at a certain point I want to change the 
 style of that grid... I am simply trying to setStyle again... I am guessing 
 you cannot reset a style by simply setting a new style as it is not 
 working... Is it possible?

 Ted


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

I don't know, but you could just have two different datagrids and switch 
them?
___
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] CHANGE style of Datagrid

2013-08-16 Thread Ted Lehr
So when I use getStyle to see if it is changing - it appears as though it is... 
like when I trace it - what is being returned on getStyle is correct - it's 
just that the actual style is not changing visually...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Ted Lehr
Sent: Fri 8/16/2013 12:23 PM
To: Flash Coders List
Subject: RE: [Flashcoders] CHANGE style of Datagrid
 
yeah - that's a good idea... I am creating like 10 grids so I was hoping I 
could just change the style when needed as opposed to having to create 20...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Paul A.
Sent: Fri 8/16/2013 12:05 PM
To: Flash Coders List
Subject: Re: [Flashcoders] CHANGE style of Datagrid
 
On 16/08/2013 16:23, Ted Lehr wrote:
 Is it possible to change the style of a datagrid? I have a datagrid I am 
 dg.setStyle 'ing when I create it... at a certain point I want to change the 
 style of that grid... I am simply trying to setStyle again... I am guessing 
 you cannot reset a style by simply setting a new style as it is not 
 working... Is it possible?

 Ted


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

I don't know, but you could just have two different datagrids and switch 
them?
___
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] CHANGE style of Datagrid

2013-08-16 Thread Ted Lehr
nice... yes, changing the data does seem to help... thanks... going to chase 
that rabbit now...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of ktu
Sent: Fri 8/16/2013 1:03 PM
To: Flash Coders List
Subject: Re: [Flashcoders] CHANGE style of Datagrid
 
i have no idea what framework you are using and have never used a framework
that had a DataGrid, so i can't help with specifics but this is how i would
approach:

are there docs to look at?
does it have a render() or update() or invalidate()?
maybe taking it off the display list then putting it back on?
or maybe changing the data will cause it to re-render?





On Fri, Aug 16, 2013 at 12:42 PM, Ted Lehr t...@qvine.com wrote:

 So when I use getStyle to see if it is changing - it appears as though it
 is... like when I trace it - what is being returned on getStyle is correct
 - it's just that the actual style is not changing visually...


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Ted Lehr
 Sent: Fri 8/16/2013 12:23 PM
 To: Flash Coders List
 Subject: RE: [Flashcoders] CHANGE style of Datagrid

 yeah - that's a good idea... I am creating like 10 grids so I was hoping I
 could just change the style when needed as opposed to having to create 20...


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Paul A.
 Sent: Fri 8/16/2013 12:05 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] CHANGE style of Datagrid

 On 16/08/2013 16:23, Ted Lehr wrote:
  Is it possible to change the style of a datagrid? I have a datagrid I am
 dg.setStyle 'ing when I create it... at a certain point I want to change
 the style of that grid... I am simply trying to setStyle again... I am
 guessing you cannot reset a style by simply setting a new style as it is
 not working... Is it possible?
 
  Ted
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 I don't know, but you could just have two different datagrids and switch
 them?
 ___
 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




-- 
Ktu;

The information contained in this message may or may not be privileged
and/or confidential. If you are NOT the intended recipient,
congratulations, you got mail!
___
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] Pushing to existing multi dimensional array

2013-07-26 Thread Ted Lehr
So say I have a multi dimensional array like:

main[0].name = Ted;
main[0].hair = brown;



and then I want to later, after this array already exists push a new value to 
it:

main[0].shoes = dress;


How would I go about that... I tried main[0].push({shoes:dress});

or some such - but that did not work

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


[Flashcoders] printJob

2012-10-04 Thread Ted Lehr
So I have a sprite that has a child sprite with some objects in it... I am 
trying to print it with code like:

if ( !printJob.start() )
return;

var origWid:Number = clip.width;
clip.width = printJob.pageWidth;
clip.scaleY = clip.scaleX;

printJob.addPage(clip, new Rectangle(0, 0, printJob.pageWidth, 
printJob.pageHeight));

printJob.send();

printJob = null;

clip.width = origWid;
clip.scaleY = clip.scaleX;
  
My issue is that things do not always print - I get this error:

Warning: Filter will not render. The DisplayObject's filtered dimensions (6699, 
5824) are too large to be drawn.



Any thoughts on why it is not printing?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] printJob

2012-10-04 Thread Ted Lehr
Not filter that I am aware of...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Hans Wichman
Sent: Thu 10/4/2012 1:33 PM
To: Flash Coders List
Subject: Re: [Flashcoders] printJob
 
because your clip has a filter and its filtered dimensions are too large?

On 4-10-2012 19:25, Ted Lehr wrote:
 So I have a sprite that has a child sprite with some objects in it... I am 
 trying to print it with code like:

  if ( !printJob.start() )
  return;

  var origWid:Number = clip.width;
  clip.width = printJob.pageWidth;
  clip.scaleY = clip.scaleX;

  printJob.addPage(clip, new Rectangle(0, 0, printJob.pageWidth, 
 printJob.pageHeight));

  printJob.send();

  printJob = null;

  clip.width = origWid;
  clip.scaleY = clip.scaleX;

 My issue is that things do not always print - I get this error:

 Warning: Filter will not render. The DisplayObject's filtered dimensions 
 (6699, 5824) are too large to be drawn.



 Any thoughts on why it is not printing?


 ___
 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] printJob

2012-10-04 Thread Ted Lehr
although I am using custom classes i.e. var headC:gridHead = new gridHead()

maybe that is what it is referring to


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Hans Wichman
Sent: Thu 10/4/2012 1:33 PM
To: Flash Coders List
Subject: Re: [Flashcoders] printJob
 
because your clip has a filter and its filtered dimensions are too large?

On 4-10-2012 19:25, Ted Lehr wrote:
 So I have a sprite that has a child sprite with some objects in it... I am 
 trying to print it with code like:

  if ( !printJob.start() )
  return;

  var origWid:Number = clip.width;
  clip.width = printJob.pageWidth;
  clip.scaleY = clip.scaleX;

  printJob.addPage(clip, new Rectangle(0, 0, printJob.pageWidth, 
 printJob.pageHeight));

  printJob.send();

  printJob = null;

  clip.width = origWid;
  clip.scaleY = clip.scaleX;

 My issue is that things do not always print - I get this error:

 Warning: Filter will not render. The DisplayObject's filtered dimensions 
 (6699, 5824) are too large to be drawn.



 Any thoughts on why it is not printing?


 ___
 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] FLVPlayback/FF3/FP11

2012-07-18 Thread Ted Lehr
SO I think this is a real shot in the dark - but are there any known issues 
about using FLVPlayback in Firefox 3 with Flash player 11?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Cache Issue

2012-07-17 Thread Ted Lehr
beautious - thanks... did not think about the xml...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Nathan Mynarcik
Sent: Mon 7/16/2012 3:27 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Cache Issue
 
add a query at the end of the xml string when loading.

var cb = new Date().getTime();

then when you load..

load('content.xml/?cb='+cb);
___
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] RE: Integrating Flash with Sharepoint

2012-07-16 Thread Ted Lehr
great - thanks


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Alexander, Mary C
Sent: Fri 7/13/2012 1:08 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint
 
Just make sure the ID is displayed in the List View. I usually create an Export 
View that has only the fields I want in my XML.




From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] on behalf of Ted Lehr 
[t...@qvine.com]
Sent: Thursday, July 12, 2012 2:33 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

One more question on this: do you know if there is any way to get the id of 
each item included in the xml?


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Ted Lehr
Sent: Thu 6/7/2012 2:14 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

nice - works perfectly... thanks!


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Thu 6/7/2012 1:49 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

Hey Ted,

Here's how to get the XML url of the SharePoint list:

Click on Settings  List Settings
From the browser's address bar get the ID of the list (everything following 
List=)
Example: %7BFE1F96DF%2DED4E%2D4B55%2D96FD%2D79F7D61F0D8B%7D
Put together the URL for the XML
http://[YOUR SHAREPOINT SITE URL]/_vti_bin/owssvr.dll?Cmd=DisplayList=[YOUR 
LIST ID]XMLDATA=TRUE

Example: 
http://sharepoint.mysite.com/sites/SDTeam/_vti_bin/owssvr.dll?Cmd=DisplayList=%7BFE1F96DF%2WQA4E%2D4B55%2D96FD%2D79F7D61F0D8B%7DXMLDATA=TRUE

That link should display a page that shows the XML for the list.


 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Thursday, June 07, 2012 12:03 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

Great - thanks - I'll look into the xml view...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:47 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

Every list in Sharepoint has a unique URL for the corresponding XML (this XML 
is generated by the Sharepoint server).  Part of that URL is the unique ID for 
the list. You first need the List ID and then you can figure that into the XML 
URL. I'll try and dig up that info for you, it's been a while. The XML you 
receive however, contains namespaces, sp:MyNode / for example, which 
Actionscript will choke on natively, but there are ways to clean out those 
namespaces or map the namespaces to pull the XML using the XML namespace 
features of AS3 (that's a whole other topic).

That's one way. However, if you can make use of Web services, Sharepoint has 
Web services available to get and send data to and from Sharepoint data sources 
like lists. Flex makes it easy to generate code to grab the Sharepoint Web 
service, but I don't know if you want/have access to make use of Flex for this. 
There are some third party Webservice classes for Flash, but it's been a while 
since I have looked into and used those, but you can Google it.

Ideally, using Sharepoint Webservices is best because you can both send and 
receive data and you have other features available (like SQL like abilities) 
but it's also more complicated than just pulling the XML to set up and use.

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:31 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

ok - How would I export a Sharepoint list as xml to Flash? or is there a better 
way to get a list into flash?


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:11 PM
To: Flash Coders List
Subject: [Flashcoders] RE: Integrating Flash with Sharepoint

I haven't seen any resources out there, but I have done a LOT of it and still 
do. Might be better off just asking your questions here.

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:05 PM
To: Flash Coders List
Subject: [Flashcoders] Integrating

[Flashcoders] Cache Issue

2012-07-16 Thread Ted Lehr
So I have a movie that is caching... it is loading XML and the changes in the 
xml is not always being reflected correctly...

I am adding a random variable to the .swf html code (i.e. 
news.swf?ref=65465465) but I am doing it all via javascript:

... ... ...
holder += 'param name=movie value=news.swf?ref='+ranNumb+'/';
... ... ...

document.getElementById('news').innerHTML=holder;



but it seems like it is still caching... any ideas on how I can do it 
differently?


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


RE: [Flashcoders] RE: Integrating Flash with Sharepoint

2012-07-12 Thread Ted Lehr
One more question on this: do you know if there is any way to get the id of 
each item included in the xml?


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Ted Lehr
Sent: Thu 6/7/2012 2:14 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint
 
nice - works perfectly... thanks!


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Thu 6/7/2012 1:49 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint
 
Hey Ted,

Here's how to get the XML url of the SharePoint list:

Click on Settings  List Settings 
From the browser's address bar get the ID of the list (everything following 
List=) 
Example: %7BFE1F96DF%2DED4E%2D4B55%2D96FD%2D79F7D61F0D8B%7D
Put together the URL for the XML 
http://[YOUR SHAREPOINT SITE URL]/_vti_bin/owssvr.dll?Cmd=DisplayList=[YOUR 
LIST ID]XMLDATA=TRUE

Example: 
http://sharepoint.mysite.com/sites/SDTeam/_vti_bin/owssvr.dll?Cmd=DisplayList=%7BFE1F96DF%2WQA4E%2D4B55%2D96FD%2D79F7D61F0D8B%7DXMLDATA=TRUE

That link should display a page that shows the XML for the list.


 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Thursday, June 07, 2012 12:03 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

Great - thanks - I'll look into the xml view...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:47 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint
 
Every list in Sharepoint has a unique URL for the corresponding XML (this XML 
is generated by the Sharepoint server).  Part of that URL is the unique ID for 
the list. You first need the List ID and then you can figure that into the XML 
URL. I'll try and dig up that info for you, it's been a while. The XML you 
receive however, contains namespaces, sp:MyNode / for example, which 
Actionscript will choke on natively, but there are ways to clean out those 
namespaces or map the namespaces to pull the XML using the XML namespace 
features of AS3 (that's a whole other topic).

That's one way. However, if you can make use of Web services, Sharepoint has 
Web services available to get and send data to and from Sharepoint data sources 
like lists. Flex makes it easy to generate code to grab the Sharepoint Web 
service, but I don't know if you want/have access to make use of Flex for this. 
There are some third party Webservice classes for Flash, but it's been a while 
since I have looked into and used those, but you can Google it. 

Ideally, using Sharepoint Webservices is best because you can both send and 
receive data and you have other features available (like SQL like abilities) 
but it's also more complicated than just pulling the XML to set up and use. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:31 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

ok - How would I export a Sharepoint list as xml to Flash? or is there a better 
way to get a list into flash?


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:11 PM
To: Flash Coders List
Subject: [Flashcoders] RE: Integrating Flash with Sharepoint
 
I haven't seen any resources out there, but I have done a LOT of it and still 
do. Might be better off just asking your questions here. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:05 PM
To: Flash Coders List
Subject: [Flashcoders] Integrating Flash with Sharepoint

Anyone know of any good resources dealing with Flash and Sharepoint 
integration? Specifically something such as having a list available as xml to 
be imported into a Flash movie

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any

[Flashcoders] Loader Mouse Event

2012-06-11 Thread Ted Lehr
So I have a Loader that is loading an image:

var Img:Loader = new Loader();
var urlReq:URLRequest = new URLRequest(http://www.someurl.com;);

img.load(urlReq);


and I am trying:

img.addEventListener(MouseEvent.ROLL_OVER,x);



this does not seem to work - does that make sense? and if so, how can I get a 
mouse event on the loader - do I need to load it in another mc?


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


RE: [Flashcoders] Loader Mouse Event

2012-06-11 Thread Ted Lehr
Thanks - I ended up putting a sprite over the image and giving that the 
listener...

Ted


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Kerry Thompson
Sent: Mon 6/11/2012 1:32 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Loader Mouse Event
 
I've never tried to get a mouse event on a loader. Do you have a
progress bar? I would add a MouseEvent listener to the progress bar,
not the loader itself. If that doesn't work, add a movie clip with a 0
alpha on top of the loader, and attach the mouse listener to that. You
could use a standard Flash shape like a rectangle, and lengthen it in
sequence with the progress bar, You would want something like this to
keep it in sequence:

progBar.addEventListener(ProgressEvent.PROGRESS, progressHandler);

and, in your progressHanler function, set its length and height to
that of the progress bar.

Cordially,

Kerry Thompson

On Mon, Jun 11, 2012 at 1:08 PM, Ted Lehr t...@qvine.com wrote:
 So I have a Loader that is loading an image:

 var Img:Loader = new Loader();
 var urlReq:URLRequest = new URLRequest(http://www.someurl.com;);

 img.load(urlReq);


 and I am trying:

 img.addEventListener(MouseEvent.ROLL_OVER,x);



 this does not seem to work - does that make sense? and if so, how can I get a 
 mouse event on the loader - do I need to load it in another mc?


 Thanks!

 ___
 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] RE: Integrating Flash with Sharepoint

2012-06-07 Thread Ted Lehr
Great - thanks - I'll look into the xml view...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:47 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint
 
Every list in Sharepoint has a unique URL for the corresponding XML (this XML 
is generated by the Sharepoint server).  Part of that URL is the unique ID for 
the list. You first need the List ID and then you can figure that into the XML 
URL. I'll try and dig up that info for you, it's been a while. The XML you 
receive however, contains namespaces, sp:MyNode / for example, which 
Actionscript will choke on natively, but there are ways to clean out those 
namespaces or map the namespaces to pull the XML using the XML namespace 
features of AS3 (that's a whole other topic).

That's one way. However, if you can make use of Web services, Sharepoint has 
Web services available to get and send data to and from Sharepoint data sources 
like lists. Flex makes it easy to generate code to grab the Sharepoint Web 
service, but I don't know if you want/have access to make use of Flex for this. 
There are some third party Webservice classes for Flash, but it's been a while 
since I have looked into and used those, but you can Google it. 

Ideally, using Sharepoint Webservices is best because you can both send and 
receive data and you have other features available (like SQL like abilities) 
but it's also more complicated than just pulling the XML to set up and use. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:31 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

ok - How would I export a Sharepoint list as xml to Flash? or is there a better 
way to get a list into flash?


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:11 PM
To: Flash Coders List
Subject: [Flashcoders] RE: Integrating Flash with Sharepoint
 
I haven't seen any resources out there, but I have done a LOT of it and still 
do. Might be better off just asking your questions here. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:05 PM
To: Flash Coders List
Subject: [Flashcoders] Integrating Flash with Sharepoint

Anyone know of any good resources dealing with Flash and Sharepoint 
integration? Specifically something such as having a list available as xml to 
be imported into a Flash movie

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http

RE: [Flashcoders] RE: Integrating Flash with Sharepoint

2012-06-07 Thread Ted Lehr
nice - works perfectly... thanks!


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Thu 6/7/2012 1:49 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint
 
Hey Ted,

Here's how to get the XML url of the SharePoint list:

Click on Settings  List Settings 
From the browser's address bar get the ID of the list (everything following 
List=) 
Example: %7BFE1F96DF%2DED4E%2D4B55%2D96FD%2D79F7D61F0D8B%7D
Put together the URL for the XML 
http://[YOUR SHAREPOINT SITE URL]/_vti_bin/owssvr.dll?Cmd=DisplayList=[YOUR 
LIST ID]XMLDATA=TRUE

Example: 
http://sharepoint.mysite.com/sites/SDTeam/_vti_bin/owssvr.dll?Cmd=DisplayList=%7BFE1F96DF%2WQA4E%2D4B55%2D96FD%2D79F7D61F0D8B%7DXMLDATA=TRUE

That link should display a page that shows the XML for the list.


 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Thursday, June 07, 2012 12:03 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

Great - thanks - I'll look into the xml view...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:47 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint
 
Every list in Sharepoint has a unique URL for the corresponding XML (this XML 
is generated by the Sharepoint server).  Part of that URL is the unique ID for 
the list. You first need the List ID and then you can figure that into the XML 
URL. I'll try and dig up that info for you, it's been a while. The XML you 
receive however, contains namespaces, sp:MyNode / for example, which 
Actionscript will choke on natively, but there are ways to clean out those 
namespaces or map the namespaces to pull the XML using the XML namespace 
features of AS3 (that's a whole other topic).

That's one way. However, if you can make use of Web services, Sharepoint has 
Web services available to get and send data to and from Sharepoint data sources 
like lists. Flex makes it easy to generate code to grab the Sharepoint Web 
service, but I don't know if you want/have access to make use of Flex for this. 
There are some third party Webservice classes for Flash, but it's been a while 
since I have looked into and used those, but you can Google it. 

Ideally, using Sharepoint Webservices is best because you can both send and 
receive data and you have other features available (like SQL like abilities) 
but it's also more complicated than just pulling the XML to set up and use. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:31 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Integrating Flash with Sharepoint

ok - How would I export a Sharepoint list as xml to Flash? or is there a better 
way to get a list into flash?


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:11 PM
To: Flash Coders List
Subject: [Flashcoders] RE: Integrating Flash with Sharepoint
 
I haven't seen any resources out there, but I have done a LOT of it and still 
do. Might be better off just asking your questions here. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:05 PM
To: Flash Coders List
Subject: [Flashcoders] Integrating Flash with Sharepoint

Anyone know of any good resources dealing with Flash and Sharepoint 
integration? Specifically something such as having a list available as xml to 
be imported into a Flash movie

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement

[Flashcoders] Integrating Flash with Sharepoint

2012-06-05 Thread Ted Lehr
Anyone know of any good resources dealing with Flash and Sharepoint 
integration? Specifically something such as having a list available as xml to 
be imported into a Flash movie
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] RE: Integrating Flash with Sharepoint

2012-06-05 Thread Ted Lehr
ok - How would I export a Sharepoint list as xml to Flash? or is there a better 
way to get a list into flash?


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 6/5/2012 3:11 PM
To: Flash Coders List
Subject: [Flashcoders] RE: Integrating Flash with Sharepoint
 
I haven't seen any resources out there, but I have done a LOT of it and still 
do. Might be better off just asking your questions here. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, June 05, 2012 3:05 PM
To: Flash Coders List
Subject: [Flashcoders] Integrating Flash with Sharepoint

Anyone know of any good resources dealing with Flash and Sharepoint 
integration? Specifically something such as having a list available as xml to 
be imported into a Flash movie

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
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] RE: Grab Textfield Value from Javascript

2012-05-24 Thread Ted Lehr
So this is what I am trying:

when an html form is submitted I am calling this javascript function:

function getValue() {
   var flash;

   var isIE = navigator.appName.indexOf(Microsoft)!=-1;
   flash = isIE?document.all.flashObjectId:document.flashObjectId;

   //it seems to fail at the next line
   var ntext = flash.getFromFlash();
}



the Flash is just using an external call to send the value back to the 
javascript... the point is that I need to initiate this from the html/Flash... 
I know how to push from Flash to the javascript - but am having issues with 
having the whole event start in the html/javascript and have a value pulled 
from the swf...

any thoughts?

Thanks!


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Wed 5/23/2012 3:38 PM
To: Flash Coders List
Subject: [Flashcoders] RE: Grab Textfield Value from Javascript
 
Yes. Javascript can call Flash functions. Flash functions can return data to 
Javascript. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Wednesday, May 23, 2012 3:13 PM
To: Flash Coders List
Subject: [Flashcoders] Grab Textfield Value from Javascript

Is it possible for Javascript to call into a swf and grab a variable or 
textfield value?

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
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] RE: Grab Textfield Value from Javascript

2012-05-24 Thread Ted Lehr
Thanks for the response - I have tried this and a search of the internet makes 
it appear as though this is the tried and true method HOWEVER... in the FF 
error console - I am getting (if it were your code below):

asFunc is not a function

it is though it is searching for that function locally in the JS not sure 
if I have a js browser setting off or not...



Ted


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Nathan Mynarcik
Sent: Thu 5/24/2012 11:01 AM
To: Flash Coders List
Subject: Re: [Flashcoders] RE: Grab Textfield Value from Javascript
 
*In JS:*

mainFlash = document.getElementById('flash'); //id of the object element


mainFlash.asFunc(); //trigger flash with an external interface call


*In Flash:*


//Flash listens for asFunc in JS and knows to execute myFunc

ExternalInterface.addCallback('asFunc', myFunc); //my Func is an
actual function in my AS3;

 myFunc will contain your script to grab the text in the TF and send
it back to JS.
___
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] RE: Grab Textfield Value from Javascript

2012-05-24 Thread Ted Lehr
So seems like my issue was the object tag - I used a simplified version: 

object data=myflash.swf type=application/x-shockwave-flash id=myflash 
width=100 height=200
param name=movie value=myflash.swf /
param name=bgcolor value=#ff /
param name=height value=100 /
param name=width value=200 /
param name=quality value=high /
param name=menu value=false /
param name=allowscriptaccess value=samedomain /
/object

and it seems to work...

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Ted Lehr
Sent: Thu 5/24/2012 11:24 AM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Grab Textfield Value from Javascript
 
Thanks for the response - I have tried this and a search of the internet makes 
it appear as though this is the tried and true method HOWEVER... in the FF 
error console - I am getting (if it were your code below):

asFunc is not a function

it is though it is searching for that function locally in the JS not sure 
if I have a js browser setting off or not...



Ted


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Nathan Mynarcik
Sent: Thu 5/24/2012 11:01 AM
To: Flash Coders List
Subject: Re: [Flashcoders] RE: Grab Textfield Value from Javascript
 
*In JS:*

mainFlash = document.getElementById('flash'); //id of the object element


mainFlash.asFunc(); //trigger flash with an external interface call


*In Flash:*


//Flash listens for asFunc in JS and knows to execute myFunc

ExternalInterface.addCallback('asFunc', myFunc); //my Func is an
actual function in my AS3;

 myFunc will contain your script to grab the text in the TF and send
it back to JS.
___
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] RE: Grab Textfield Value from Javascript

2012-05-24 Thread Ted Lehr
H still cross-browser issues - it's always something... :-)


-Original Message-
From: Ted Lehr
Sent: Thu 5/24/2012 11:43 AM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Grab Textfield Value from Javascript
 
So seems like my issue was the object tag - I used a simplified version: 

object data=myflash.swf type=application/x-shockwave-flash id=myflash 
width=100 height=200
param name=movie value=myflash.swf /
param name=bgcolor value=#ff /
param name=height value=100 /
param name=width value=200 /
param name=quality value=high /
param name=menu value=false /
param name=allowscriptaccess value=samedomain /
/object

and it seems to work...

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Ted Lehr
Sent: Thu 5/24/2012 11:24 AM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Grab Textfield Value from Javascript
 
Thanks for the response - I have tried this and a search of the internet makes 
it appear as though this is the tried and true method HOWEVER... in the FF 
error console - I am getting (if it were your code below):

asFunc is not a function

it is though it is searching for that function locally in the JS not sure 
if I have a js browser setting off or not...



Ted


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Nathan Mynarcik
Sent: Thu 5/24/2012 11:01 AM
To: Flash Coders List
Subject: Re: [Flashcoders] RE: Grab Textfield Value from Javascript
 
*In JS:*

mainFlash = document.getElementById('flash'); //id of the object element


mainFlash.asFunc(); //trigger flash with an external interface call


*In Flash:*


//Flash listens for asFunc in JS and knows to execute myFunc

ExternalInterface.addCallback('asFunc', myFunc); //my Func is an
actual function in my AS3;

 myFunc will contain your script to grab the text in the TF and send
it back to JS.
___
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] RE: Can Javascript Listen to Flash Events?

2012-05-23 Thread Ted Lehr
Thanks for the thought - this is a situation where this swf is being pushed to 
multiple work stations and then run from each workstation - locally...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Chris Foster
Sent: Tue 5/22/2012 5:47 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Can Javascript Listen to Flash Events?
 
I've got around the 'local  security warning' issue in the past by
running the content from a standalone webserver - check out  Server2Go.
You'll be able to fire off whatever ExternalInterface call you need.

You'll have a pause of a few seconds while the server stats up, but
otherwise it's a pretty seamless experience.

C:

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill,
Jason
Sent: Wednesday, 23 May 2012 2:42 AM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Can Javascript Listen to Flash Events?

I'm assuming you've already read the capabilities and info listed here,
but if not, check this out:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash
/external/ExternalInterface.html?filter_flash=cs5filter_flashplayer=10.
2filter_air=2.6

From that page: 

From ActionScript, you can do the following on the HTML page: 

Call any JavaScript function. 
Pass any number of arguments, with any names. 
Pass various data types (Boolean, Number, String, and so on). 
Receive a return value from the JavaScript function. 

From JavaScript on the HTML page, you can: 

Call an ActionScript function. 
Pass arguments using standard function call notation. 
Return a value to the JavaScript function.



 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, May 22, 2012 12:36 PM
To: Flash Coders List
Subject: RE: [Flashcoders] RE: Can Javascript Listen to Flash Events?

I cannot change security settings for the player - this will be used by
a lot of people and I cannot go to each work station and change that
setting... unless you are talking about some other setting...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Paul
Andrews
Sent: Tue 5/22/2012 12:15 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] RE: Can Javascript Listen to Flash Events?
 
Just get a flash event handler to call a javascript function.

You probably don't have the security setting for the project set right -
network access only.

Paul


On 22/05/2012 17:06, Ted Lehr wrote:
 Oh - yes - I have the .fla... I just am running into issues when I try
to have the swf call out to the javascript - I get the security warning
from the player - so I am trying to figure out how to, instead of having
the swf make a call out - maybe the javascript could just listen to the
player...


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, 
 Jason
 Sent: Tue 5/22/2012 11:52 AM
 To: Flash Coders List
 Subject: [Flashcoders] RE: Can Javascript Listen to Flash Events?

 You would have to add code to the .swf, but yes, Javascript can listen
for Flash events and vice versa.

   Jason Merrill
   Instructional Technology Architect II
   Bank of America  Global Learning





 ___

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted 
 Lehr
 Sent: Tuesday, May 22, 2012 11:44 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Can Javascript Listen to Flash Events?

 So I have a swf that needs to run locally and make an
ExternalInterface.call ... I am unable to make settings changes to the
users Flash Players ... so as of now it seems unpossible!

 My thoughts was to see if the javascript can listen for a flash event 
 (the end of a flv in FLVPlayback to be specific)

 Any thoughts?

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

 --
 This message w/attachments (message) is intended solely for the use of
the intended recipient(s) and may contain information that is
privileged, confidential or proprietary. If you are not an intended
recipient, please notify the sender, and then please delete and destroy
all copies and attachments, and be advised that any review or
dissemination of, or the taking of any action in reliance on, the
information contained in or attached to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or
a solicitation of any investment products or other financial product or
service

[Flashcoders] Grab Textfield Value from Javascript

2012-05-23 Thread Ted Lehr
Is it possible for Javascript to call into a swf and grab a variable or 
textfield value?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Can Javascript Listen to Flash Events?

2012-05-22 Thread Ted Lehr
So I have a swf that needs to run locally and make an ExternalInterface.call 
... I am unable to make settings changes to the users Flash Players ... so as 
of now it seems unpossible! 

My thoughts was to see if the javascript can listen for a flash event (the end 
of a flv in FLVPlayback to be specific)

Any thoughts?

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


RE: [Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Ted Lehr
Oh - yes - I have the .fla... I just am running into issues when I try to have 
the swf call out to the javascript - I get the security warning from the player 
- so I am trying to figure out how to, instead of having the swf make a call 
out - maybe the javascript could just listen to the player...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
Sent: Tue 5/22/2012 11:52 AM
To: Flash Coders List
Subject: [Flashcoders] RE: Can Javascript Listen to Flash Events?
 
You would have to add code to the .swf, but yes, Javascript can listen for 
Flash events and vice versa. 

 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning 





___

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
Sent: Tuesday, May 22, 2012 11:44 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Can Javascript Listen to Flash Events?

So I have a swf that needs to run locally and make an ExternalInterface.call 
... I am unable to make settings changes to the users Flash Players ... so as 
of now it seems unpossible! 

My thoughts was to see if the javascript can listen for a flash event (the end 
of a flv in FLVPlayback to be specific)

Any thoughts?

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

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
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] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Ted Lehr
Sorry - my original post must have been confusing...

This is an original .fla. My issue is that the resulting swf needs to run 
locally. Now it seems to me that when a swf is run locally on Flash Player that 
by default - the Flash Player does not like to to make calls outside of itself 
(i.e. ExternalInterface.call) I no this can be overcome by changing some of the 
settings in Flash player, but that is not an option here... I am wondering how 
I can fire off some javascript when the player blocks the call - hence, perhaps 
the js could be listening to the flash


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Matt S.
Sent: Tue 5/22/2012 12:03 PM
To: Flash Coders List
Subject: Re: [Flashcoders] RE: Can Javascript Listen to Flash Events?
 
could you load the SWF into a shell, and add the FLV event listeners at the
shell level? That would require knowing the name of the flv player within
the SWF, but maybe you could figure it out with a decompiler?

That's just a random idea, not sure if it would work...
.m

On Tue, May 22, 2012 at 11:52 AM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 You would have to add code to the .swf, but yes, Javascript can listen for
 Flash events and vice versa.

  Jason Merrill
  Instructional Technology Architect II
  Bank of America  Global Learning





 ___

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
 Sent: Tuesday, May 22, 2012 11:44 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Can Javascript Listen to Flash Events?

 So I have a swf that needs to run locally and make an
 ExternalInterface.call ... I am unable to make settings changes to the
 users Flash Players ... so as of now it seems unpossible!

 My thoughts was to see if the javascript can listen for a flash event (the
 end of a flv in FLVPlayback to be specific)

 Any thoughts?

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

 --
 This message w/attachments (message) is intended solely for the use of the
 intended recipient(s) and may contain information that is privileged,
 confidential or proprietary. If you are not an intended recipient, please
 notify the sender, and then please delete and destroy all copies and
 attachments, and be advised that any review or dissemination of, or the
 taking of any action in reliance on, the information contained in or
 attached to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or a
 solicitation of any investment products or other financial product or
 service, an official confirmation of any transaction, or an official
 statement of Sender. Subject to applicable law, Sender may intercept,
 monitor, review and retain e-communications (EC) traveling through its
 networks/systems and may produce any such EC to regulators, law
 enforcement, in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the handling
 of EC, and EC may be archived, supervised and produced in countries other
 than the country in which you are located. This message cannot be
 guaranteed to be secure or free of errors or viruses.

 References to Sender are references to any subsidiary of Bank of America
 Corporation. Securities and Insurance Products: * Are Not FDIC Insured *
 Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not
 a Condition to Any Banking Service or Activity * Are Not Insured by Any
 Federal Government Agency. Attachments that are part of this EC may have
 additional important disclosures and disclaimers, which you should read.
 This message is subject to terms available at the following link:
 http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender
 you consent to the foregoing.
 ___
 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] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Ted Lehr
I cannot change security settings for the player - this will be used by a lot 
of people and I cannot go to each work station and change that setting... 
unless you are talking about some other setting...


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Paul Andrews
Sent: Tue 5/22/2012 12:15 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] RE: Can Javascript Listen to Flash Events?
 
Just get a flash event handler to call a javascript function.

You probably don't have the security setting for the project set right - 
network access only.

Paul


On 22/05/2012 17:06, Ted Lehr wrote:
 Oh - yes - I have the .fla... I just am running into issues when I try to 
 have the swf call out to the javascript - I get the security warning from the 
 player - so I am trying to figure out how to, instead of having the swf make 
 a call out - maybe the javascript could just listen to the player...


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Merrill, Jason
 Sent: Tue 5/22/2012 11:52 AM
 To: Flash Coders List
 Subject: [Flashcoders] RE: Can Javascript Listen to Flash Events?

 You would have to add code to the .swf, but yes, Javascript can listen for 
 Flash events and vice versa.

   Jason Merrill
   Instructional Technology Architect II
   Bank of America  Global Learning





 ___

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ted Lehr
 Sent: Tuesday, May 22, 2012 11:44 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Can Javascript Listen to Flash Events?

 So I have a swf that needs to run locally and make an ExternalInterface.call 
 ... I am unable to make settings changes to the users Flash Players ... so as 
 of now it seems unpossible!

 My thoughts was to see if the javascript can listen for a flash event (the 
 end of a flv in FLVPlayback to be specific)

 Any thoughts?

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

 --
 This message w/attachments (message) is intended solely for the use of the 
 intended recipient(s) and may contain information that is privileged, 
 confidential or proprietary. If you are not an intended recipient, please 
 notify the sender, and then please delete and destroy all copies and 
 attachments, and be advised that any review or dissemination of, or the 
 taking of any action in reliance on, the information contained in or attached 
 to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or a 
 solicitation of any investment products or other financial product or 
 service, an official confirmation of any transaction, or an official 
 statement of Sender. Subject to applicable law, Sender may intercept, 
 monitor, review and retain e-communications (EC) traveling through its 
 networks/systems and may produce any such EC to regulators, law enforcement, 
 in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the handling of 
 EC, and EC may be archived, supervised and produced in countries other than 
 the country in which you are located. This message cannot be guaranteed to be 
 secure or free of errors or viruses.

 References to Sender are references to any subsidiary of Bank of America 
 Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
 Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
 Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
 Government Agency. Attachments that are part of this EC may have additional 
 important disclosures and disclaimers, which you should read. This message is 
 subject to terms available at the following link:
 http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
 consent to the foregoing.
 ___
 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] dynamically including MC's

2008-02-01 Thread Ted Lehr
I want to have a folder where I can throw in some swf's then have another mc
that will dynamically display these mc's. So what I need is a way to
dynamically display a file structure, I guess. Kind of like FileSystemObject
in .asp. Something that will dynamically loop through a set of files give
the folder.

 

Thanks!

 

Ted

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