[Flashcoders] blip.tv api?

2009-06-18 Thread Fabio Pinatti
Dear Coders,

I'm wondering if exists some api similar to youtube, to get blip.tv (
http://blip.tv/) videos..

Some advice?

Thank you

-- 
Fabio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] mathematics of an elipse

2009-06-18 Thread allandt bik-elliott (thefieldcomic.com)
hey guys

I have have a maths problem that i'm having trouble solving, despite
repeated attempts on Google.

If i have an angle and a distance (n), plus one of the axis lengths (say the
minor, y), how would i find out what the remaining axis length (x) was
please?

I've drawn it out here (let me know if the link fails - it has a limit)
https://www.yousendit.com/download/cmczRFFlK3hLVlZMWEE9PQ

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


[Flashcoders] swfaddress help needed

2009-06-18 Thread Gustavo Duenas LRS

Hi Friends.
I have seen the tutorial for the swfaddress in gotoandlearn.com, but  
I want to use it on a project I have which is a quite different  
situation,


1. the website is dynamic the parts of it are me on runtime, are not  
present on the stage at the moment, are just called and assembly  
depending of the name of the button that click the call.


2. the swfaddress works good when it comes to show the address in the  
address bar of the browser, but when I try to use the directional  
arrows of the browser I'm shooting at the dark totally.
Because I don't know how to make it work, since he tutorial never  
mention about this particular.



here is the code to create the different parts.


//the part of the import the swfAddress is here, no problem at all

//the part of the set value//

switch(e.value){

case /contact

//here I don't know how to going forward since all my past intents  
were so frustrating...any ideas?//


}

this.contact.addEventListener(MouseEvent.CLICK, newClick);

function newClick(e:MouseEvent):void{

//here is the swfAddress//

swfAddress.setValue(e.currentTarget.name);

var newWindow:NewWindow = new NewWindow();

newWindow.name=e.currentTarget.name;

an so on the structures that are in the windows


///the part of the addchild that works good//


}


I hope someone could help me...any advice welcome.

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


[Flashcoders] SecurityPanel events?

2009-06-18 Thread Andrew Murphy
Hello. :)
 
Is there any way to detect when the user has finished using the Settings
Manager to change their security settings?
 
- user right-clicks on the Flash
- selects Settings to open the Settings Manager
- changes their settings
- clicks Close to close the Settings Manager
 
I want to be able to trigger code in my Flash when they click the Close
button in the Settings Manager.. but the SecurityPanel class that you use to
open the Setting Manager panel and the  doesn't appear to throw any events.
I've also tried putting a Mouse event listener in the app's main class and
that doesn't trigger when the Close button is clicked in the Settings
Manager panel.
 
Thank you.
 
 


Andrew Murphy
Interactive Media Specialist
 mailto:amur...@delvinia.com amur...@delvinia.com

Delvinia
214 King Street West, Suite 214 
Toronto Canada M5H 3S6

P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com

CONFIDENTIALITY NOTICE
This email message may contain privileged or confidential information. If
you are not the intended recipient or received this communication by error,
please notify the sender and delete the message without copying or
disclosing it.

AVIS DE CONFIDENTIALITÉ
Ce message peut contenir de l'information légalement privilégiée ou
confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par
erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
détruire le contenu sans le communiquer a d'autres ou le reproduire.

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


Re: [Flashcoders] mathematics of an elipse

2009-06-18 Thread Charles Parcell
Hmmm

Likely not, now that I am looking through it.  I could have sworn it had a
demo on angles and areas

Charles P.


On Thu, Jun 18, 2009 at 1:35 PM, Charles Parcell pokemonkil...@gmail.comwrote:

 Does this help at all?  Check the demo.

 http://code.google.com/p/bezier/

 Charles P.



 On Thu, Jun 18, 2009 at 10:59 AM, allandt bik-elliott (thefieldcomic.com)
 alla...@gmail.com wrote:

 hey guys

 I have have a maths problem that i'm having trouble solving, despite
 repeated attempts on Google.

 If i have an angle and a distance (n), plus one of the axis lengths (say
 the
 minor, y), how would i find out what the remaining axis length (x) was
 please?

 I've drawn it out here (let me know if the link fails - it has a limit)
 https://www.yousendit.com/download/cmczRFFlK3hLVlZMWEE9PQ

 Thanks
 A
 ___
 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] mathematics of an elipse

2009-06-18 Thread Charles Parcell
Does this help at all?  Check the demo.

http://code.google.com/p/bezier/

Charles P.


On Thu, Jun 18, 2009 at 10:59 AM, allandt bik-elliott (thefieldcomic.com) 
alla...@gmail.com wrote:

 hey guys

 I have have a maths problem that i'm having trouble solving, despite
 repeated attempts on Google.

 If i have an angle and a distance (n), plus one of the axis lengths (say
 the
 minor, y), how would i find out what the remaining axis length (x) was
 please?

 I've drawn it out here (let me know if the link fails - it has a limit)
 https://www.yousendit.com/download/cmczRFFlK3hLVlZMWEE9PQ

 Thanks
 A
 ___
 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] legal: Flash player ActiveX usage on Windows

2009-06-18 Thread Pavel Repkin
Hey!

I want to embed Flash ActiveX control inside my C++ application.
Does Adobe allow to embed Flash control inside Windows application?
Do you know what are the license requirements should I comply with if any?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Fast color-transformation over MovieClip with cacheAsBitmap

2009-06-18 Thread Pavel Repkin
Primary because it's hard to track cumulative scale changes from the
containers up the tree.
It seems I have to workaround this problem and write my own bitmap-caching
based on BitmapData. Thanks!

On Tue, Jun 9, 2009 at 6:15 PM, Ruy Adorno r...@lesite.ca wrote:

 Why don't you create a BitmapData from the original background and apply
 the light on this new bitmapdata which even yourself said it's faster. Then,
 everytime the stage is resized you can just create another BitmapData from
 the original background.
 This is not really a solution, but seems a nice and fast workaround.
 ___
 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] mathematics of an elipse

2009-06-18 Thread Ivan Dembicki
Hello Charles,

You can build many ellipses through your points.
More data needed for ellipse unique define.

Also you can see old bezier classes
http://bezier.googlecode.com/files/ru.bezier.zip
Ellipse class especially.

good luck!

-- 
iv
http://www.bezier.ru
http://bezier.googlecode.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] swfaddress help needed

2009-06-18 Thread Kenneth Kawamoto
You should not create your NewWindow in the newClick function. Do so on SWFAddressEvent.CHANGE 
event instead.


Kenneth Kawamoto
http://www.materiaprima.co.uk/

Gustavo Duenas LRS wrote:

Hi Friends.
I have seen the tutorial for the swfaddress in gotoandlearn.com, but I 
want to use it on a project I have which is a quite different situation,


1. the website is dynamic the parts of it are me on runtime, are not 
present on the stage at the moment, are just called and assembly 
depending of the name of the button that click the call.


2. the swfaddress works good when it comes to show the address in the 
address bar of the browser, but when I try to use the directional arrows 
of the browser I'm shooting at the dark totally.
Because I don't know how to make it work, since he tutorial never 
mention about this particular.



here is the code to create the different parts.


//the part of the import the swfAddress is here, no problem at all

//the part of the set value//

switch(e.value){

case /contact

//here I don't know how to going forward since all my past intents were 
so frustrating...any ideas?//


}

this.contact.addEventListener(MouseEvent.CLICK, newClick);

function newClick(e:MouseEvent):void{

//here is the swfAddress//

swfAddress.setValue(e.currentTarget.name);

var newWindow:NewWindow = new NewWindow();

newWindow.name=e.currentTarget.name;

an so on the structures that are in the windows


///the part of the addchild that works good//


}


I hope someone could help me...any advice welcome.

Gustavo

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


Re: [Flashcoders] swfaddress help needed

2009-06-18 Thread Glen Pike

Hi,

   Like Kenneth said - you need to pass all your navigation from Flash 
through SWFAddress and don't directly create windows when someone clicks 
a button in Flash, but you listen for the changes to the SWFAddress 
value and open windows based on the value.  That way, when someone 
clicks the forward  back buttons in the browser, the history changes 
the SWFAddress value, so your Flash will keep up...



//Somewhere in your init, you listen for changes to SWFAddress
SWFAddress.addEventListener(SWFAddressEvent.CHANGE, _changeHandler);

//Do your normal setup for buttons.  
this.contact.addEventListener(MouseEvent.CLICK, newClick);


var internal:Boolean = false;

function newClick(e:MouseEvent):void{
   //here is the swfAddress//
   //You only set the value in here - you wait for SWFAddress to tell 
you something has changed before doing anything

   swfAddress.setValue(e.currentTarget.name);
   //You might want to set a variable here like internal = true if 
you want to know whether clicks are from inside Flash or from the browser..

   internal = true;
}

//Handle changes in
function _changeHandler(event:SWFAddressEvent):void {

   var newWindow:NewWindow = new NewWindow();
  
   //The path value of the event contains the new SWFAddress path in 
your history.
   //On first load of the page you will get / as the path so you need 
to handle this.

   var path:String = event.path;
   if(/ == path) {
  path = /home;
   }
   //Maybe do something if your internal variable was true.
   if(true == internal) {
  //Do something different maybe if someone clicked in Flash?
   }
   //reset internal
   internal = false;
   newWindow.name= path;
   //...
}

HTH

   Glen

Gustavo Duenas LRS wrote:

Hi Friends.
I have seen the tutorial for the swfaddress in gotoandlearn.com, but I 
want to use it on a project I have which is a quite different situation,


1. the website is dynamic the parts of it are me on runtime, are not 
present on the stage at the moment, are just called and assembly 
depending of the name of the button that click the call.


2. the swfaddress works good when it comes to show the address in the 
address bar of the browser, but when I try to use the directional 
arrows of the browser I'm shooting at the dark totally.
Because I don't know how to make it work, since he tutorial never 
mention about this particular.



here is the code to create the different parts.


//the part of the import the swfAddress is here, no problem at all

//the part of the set value//

switch(e.value){

case /contact

//here I don't know how to going forward since all my past intents 
were so frustrating...any ideas?//


}

this.contact.addEventListener(MouseEvent.CLICK, newClick);

function newClick(e:MouseEvent):void{

//here is the swfAddress//

swfAddress.setValue(e.currentTarget.name);

var newWindow:NewWindow = new NewWindow();

newWindow.name=e.currentTarget.name;

an so on the structures that are in the windows


///the part of the addchild that works good//


}


I hope someone could help me...any advice welcome.

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




--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


[Flashcoders] assigning variable to a movie clip and a MOUSE_DOWN event

2009-06-18 Thread Kurt Dommermuth
Hi All,

New to AS3.  I'm enjoying it, but occasionally I run into issue where I
don't know even what to search for to learn more.

The short of it is this:

//The first line is using an object o to store the loader info.
//This was need because I had loaded an external swf and am loading
//assets from it's library into the main container.

var asset_class = o.loader_info.applicationDomain.getDefinition(linkage
name) as Class;
var asset_mc:MovieClip = new asset_class() as MovieClip;
addChild(asset_mc);
asset_mc.my_variable = some value;
asset_mc.buttonMode = true;
asset_mc.useHandCursor = true;

asset_mc.addEventListener(MouseEvent.MOUSE_DOWN, loadGame);

function loadGame(e:MouseEvent):void
{
trace(e.target.my_variable);
trace(e.target)
}

The trace will give me the expected value if I click on certain parts of
asset_mc.  

If I click on a nested movie clip it will trace as undefined.

So, it seems that e.target changes depending on what I click on within
asset_mc.

I had a similar problem when I used MOUSE_OVER instead of ROLL_OVER.

Anyway, that target gives me a different value depending on what I click on.
Sort of makes sense, but how do I drill down to get to the variable I
assigned to asset_mc? I can think of ways, but it seems awfully convoluted.

I think what I'm looking for is the root of asset_mc.  How do I find it?  

Any ideas?

Hope I'm making sense.

Thank you,
Kurt







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


Re: [Flashcoders] assigning variable to a movie clip and a MOUSE_DOWN event

2009-06-18 Thread Glen Pike
e.target will change depending on what was clicked inside the thing you 
are listening to events from...


If you want to know the thing sending the event - the thing you are 
listening to, use e.currentTarget


This explains it a bit more:

http://mysticnomad.wordpress.com/2008/03/21/difference-between-eventtarget-and-eventcurrenttarget-properties-in-an-event-object/

Kurt Dommermuth wrote:

Hi All,

New to AS3.  I'm enjoying it, but occasionally I run into issue where I
don't know even what to search for to learn more.

The short of it is this:

//The first line is using an object o to store the loader info.
//This was need because I had loaded an external swf and am loading
//assets from it's library into the main container.

var asset_class = o.loader_info.applicationDomain.getDefinition(linkage
name) as Class;
var asset_mc:MovieClip = new asset_class() as MovieClip;
addChild(asset_mc);
asset_mc.my_variable = some value;
asset_mc.buttonMode = true;
asset_mc.useHandCursor = true;

asset_mc.addEventListener(MouseEvent.MOUSE_DOWN, loadGame);

function loadGame(e:MouseEvent):void
{
trace(e.target.my_variable);
trace(e.target)
}

The trace will give me the expected value if I click on certain parts of
asset_mc.  


If I click on a nested movie clip it will trace as undefined.

So, it seems that e.target changes depending on what I click on within
asset_mc.

I had a similar problem when I used MOUSE_OVER instead of ROLL_OVER.

Anyway, that target gives me a different value depending on what I click on.
Sort of makes sense, but how do I drill down to get to the variable I
assigned to asset_mc? I can think of ways, but it seems awfully convoluted.

I think what I'm looking for is the root of asset_mc.  How do I find it?  


Any ideas?

Hope I'm making sense.

Thank you,
Kurt







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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


Re: [Flashcoders] swfaddress help needed

2009-06-18 Thread Gustavo Duenas LRS

Thanks Man, I will try that tomorrow, let you you know if that was it.

Regards,

Gus


On Jun 18, 2009, at 5:02 PM, Glen Pike wrote:


Hi,

   Like Kenneth said - you need to pass all your navigation from  
Flash through SWFAddress and don't directly create windows when  
someone clicks a button in Flash, but you listen for the changes to  
the SWFAddress value and open windows based on the value.  That  
way, when someone clicks the forward  back buttons in the browser,  
the history changes the SWFAddress value, so your Flash will keep  
up...



//Somewhere in your init, you listen for changes to SWFAddress
SWFAddress.addEventListener(SWFAddressEvent.CHANGE, _changeHandler);

//Do your normal setup for buttons.   
this.contact.addEventListener(MouseEvent.CLICK, newClick);


var internal:Boolean = false;

function newClick(e:MouseEvent):void{
   //here is the swfAddress//
   //You only set the value in here - you wait for SWFAddress to  
tell you something has changed before doing anything

   swfAddress.setValue(e.currentTarget.name);
   //You might want to set a variable here like internal = true  
if you want to know whether clicks are from inside Flash or from  
the browser..

   internal = true;
}

//Handle changes in
function _changeHandler(event:SWFAddressEvent):void {

   var newWindow:NewWindow = new NewWindow();
 //The path value of the event contains the new SWFAddress path  
in your history.
   //On first load of the page you will get / as the path so you  
need to handle this.

   var path:String = event.path;
   if(/ == path) {
  path = /home;
   }
   //Maybe do something if your internal variable was true.
   if(true == internal) {
  //Do something different maybe if someone clicked in Flash?
   }
   //reset internal
   internal = false;
   newWindow.name= path;
   //...
}

HTH

   Glen

Gustavo Duenas LRS wrote:

Hi Friends.
I have seen the tutorial for the swfaddress in gotoandlearn.com,  
but I want to use it on a project I have which is a quite  
different situation,


1. the website is dynamic the parts of it are me on runtime, are  
not present on the stage at the moment, are just called and  
assembly depending of the name of the button that click the call.


2. the swfaddress works good when it comes to show the address in  
the address bar of the browser, but when I try to use the  
directional arrows of the browser I'm shooting at the dark totally.
Because I don't know how to make it work, since he tutorial never  
mention about this particular.



here is the code to create the different parts.


//the part of the import the swfAddress is here, no problem at all

//the part of the set value//

switch(e.value){

case /contact

//here I don't know how to going forward since all my past intents  
were so frustrating...any ideas?//


}

this.contact.addEventListener(MouseEvent.CLICK, newClick);

function newClick(e:MouseEvent):void{

//here is the swfAddress//

swfAddress.setValue(e.currentTarget.name);

var newWindow:NewWindow = new NewWindow();

newWindow.name=e.currentTarget.name;

an so on the structures that are in the windows


///the part of the addchild that works good//


}


I hope someone could help me...any advice welcome.

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




--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
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] blip.tv api?

2009-06-18 Thread Nate Beck
Did you try... http://www.google.com/search?q=blip.tv+api

First one on there.

On Thu, Jun 18, 2009 at 5:33 AM, Fabio Pinattifpina...@gmail.com wrote:
 Dear Coders,

 I'm wondering if exists some api similar to youtube, to get blip.tv (
 http://blip.tv/) videos..

 Some advice?

 Thank you

 --
 Fabio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 

Cheers,
Nate

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


[Flashcoders] Query String + Loader odd issue

2009-06-18 Thread Steve Mathews
Using Flash CS3 pro, trying to load a Flex based swf into a non-Flex swf and
pass a query string to the Flex application. Simple enough in theory, using
a Loader just point at the file and load. Add the loader to the stage and
all is good.
Now for the query string. Add it to the path ..
var request:URLRequest = new URLRequest(path+?data=true);

and launch. Error #2035: URL Not Found. Ok, well lets launch this in debug
mode... wait, that works? Yep, launching with the debugger and my file
loads, gets the data and all is good.

Just to add to this, I have a Captivate widget that basically does exactly
this and it also works fine running in a published Captivate project. It has
the same code with the query string and all. Note that I also tried using
URLVariables instead of the string with no change.

Anyone have any ideas what is going on here?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS 2.0 FileReference issue I/O error thrown

2009-06-18 Thread TS
My uploader works on every other platform except for Mac. The file uploader
never completes and throws an ioError? Latest Player installed on FF. Using
PHP as the file handler on the backend. Anyone else have this issue or know
a workaround?

Thanks, T

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


Re: [Flashcoders] AS 2.0 FileReference issue I/O error thrown

2009-06-18 Thread Karl DeSaulniers

Hey T,
If you want to send me your code offline or here, I am on a MAC and  
work primarily in AS2 and can test for you.

Which uploader are you using?

I have this error check listener in mine and it works fine.  
imagePane is a component in my file that displays the uploaded file  
once complete.


listener.onHTTPError = function(file:FileReference,  
httpError:Number):Void {

imagePane.contentPath = error;
	imagePane.content.errorMSG.text = HTTPError number: +httpError  
+\nFile: + file.name;

}

listener.onIOError = function(file:FileReference):Void {
imagePane.contentPath = error;
imagePane.content.errorMSG.text = IOError: + file.name;
}

listener.onSecurityError = function(file:FileReference,  
errorString:String):Void {

imagePane.contentPath = error;
	imagePane.content.errorMSG.text = SecurityError: +SecurityError 
+\nFile: + file.name;	

}

HTH,

Karl


On Jun 18, 2009, at 6:21 PM, TS wrote:

My uploader works on every other platform except for Mac. The file  
uploader
never completes and throws an ioError? Latest Player installed on  
FF. Using
PHP as the file handler on the backend. Anyone else have this issue  
or know

a workaround?

Thanks, T

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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


[Flashcoders] ReferenceError: Error #1065 issue

2009-06-18 Thread Robert Leisle
Hi list,

This should be simple, but for some reason refuses to cooperate. I'm working
in AS3, CS3.
I've got a super class (HsSegment) and a subclass (HsSegment_qtd1), both are
public. In the super class are the definitions for many methods, including
this definition:

protected function mthGetPDataTag(stgInput:String):String
{
//...Do stuff and return a String...
}

In the subclass I've got the call to this method:
var stgEg:String = mthGetPDataTag(stgInput);

 When testing in the IDE this works fine. When testing in the browser I get
a runtime error,
 ReferenceError: Error #1065: Variable
hs.segments.classes:HsSegment_qtd1::mthGetPDataTag is not defined.

I've googled and found plenty of questions around this, but no answers,
other than 'make your classes public', which they are.
The other methods in the super class are defined and called essentially this
same way and work fine in both IDE and browser. What makes this one special?

What am I missing? Any help is appreciated.

Thanks,
Bob


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


RE: [Flashcoders] assigning variable to a movie clip and a MOUSE_DOWN event

2009-06-18 Thread Kurt Dommermuth
man.  THANK YOU!

Kurt

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike
Sent: Thursday, June 18, 2009 5:38 PM
To: Flash Coders List
Subject: Re: [Flashcoders] assigning variable to a movie clip and a
MOUSE_DOWN event

e.target will change depending on what was clicked inside the thing you 
are listening to events from...

If you want to know the thing sending the event - the thing you are 
listening to, use e.currentTarget

This explains it a bit more:

http://mysticnomad.wordpress.com/2008/03/21/difference-between-eventtarget-a
nd-eventcurrenttarget-properties-in-an-event-object/

Kurt Dommermuth wrote:
 Hi All,

 New to AS3.  I'm enjoying it, but occasionally I run into issue where I
 don't know even what to search for to learn more.

 The short of it is this:

 //The first line is using an object o to store the loader info.
 //This was need because I had loaded an external swf and am loading
 //assets from it's library into the main container.

 var asset_class = o.loader_info.applicationDomain.getDefinition(linkage
 name) as Class;
 var asset_mc:MovieClip = new asset_class() as MovieClip;
 addChild(asset_mc);
 asset_mc.my_variable = some value;
 asset_mc.buttonMode = true;
 asset_mc.useHandCursor = true;

 asset_mc.addEventListener(MouseEvent.MOUSE_DOWN, loadGame);

 function loadGame(e:MouseEvent):void
 {
 trace(e.target.my_variable);
 trace(e.target)
 }

 The trace will give me the expected value if I click on certain parts of
 asset_mc.  

 If I click on a nested movie clip it will trace as undefined.

 So, it seems that e.target changes depending on what I click on within
 asset_mc.

 I had a similar problem when I used MOUSE_OVER instead of ROLL_OVER.

 Anyway, that target gives me a different value depending on what I click
on.
 Sort of makes sense, but how do I drill down to get to the variable I
 assigned to asset_mc? I can think of ways, but it seems awfully
convoluted.

 I think what I'm looking for is the root of asset_mc.  How do I find it?


 Any ideas?

 Hope I'm making sense.

 Thank you,
 Kurt







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


   

-- 

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
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] blip.tv api?

2009-06-18 Thread Nate Beck
From developer wiki that I referenced in my previous post... You may
be particularly interested in the main blip.tv API, which is built on
the back of open standards like RSS and JSON.

Blip.tv has a RESTful JSON API which you can call from Flash.

To do this you would setup a URLRequest and URLLoader to make a call
to get the desired data you want. Then using something like JSON
Parser included in the as3corelib
(http://code.google.com/p/as3corelib/), you can parse the results.

A great tutorial of this technique can be found here:
http://www.cakesgood.com/2009/04/flash-cs3-actionscript-30-json-keep-it_3277.html

That being said... I don't believe anyone has written a library which
makes use of the blip.tv API yet.  You can be the first!

Cheers,
Nate

On Thu, Jun 18, 2009 at 6:49 PM, Fabio Pinattifpina...@gmail.com wrote:
 I think I'm either being a little stupid or I didn't get how that api can
 work with flash. I see just some zips with java and weird extension files,
 but no way to call/integrate them from flash. That's the kind of api I asked
 for, since it's a flash forum. ;)

 Clear now? Thanks!

 On Thu, Jun 18, 2009 at 7:35 PM, Nate Beck n...@tldstudio.com wrote:

 Did you try... http://www.google.com/search?q=blip.tv+api

 First one on there.

 On Thu, Jun 18, 2009 at 5:33 AM, Fabio Pinattifpina...@gmail.com wrote:
  Dear Coders,
 
  I'm wondering if exists some api similar to youtube, to get blip.tv (
  http://blip.tv/) videos..
 
  Some advice?
 
  Thank you
 
  --
  Fabio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --

 Cheers,
 Nate
 
 http://blog.natebeck.net
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 --
 Fabio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 

Cheers,
Nate

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


Re: [Flashcoders] blip.tv api?

2009-06-18 Thread Nate Beck
To try and make this a little more clear.  You're basically requesting
the information from their webservers using a customized url.

A RESTful service you can actually use from a web browser, for
example... on Twitter Search you can get your results in JSON by doing
this.

http://search.twitter.com/search?q=iPhone

turns into this:

http://search.twitter.com/search.json?q=iPhone

Which will return the data your looking for in a format called JSON
(JavaScript Object Notation).

So to clarify on what I said earlier.  You can get this data into your
flash application using URLLoader.  Just set the URL to where the JSON
data is and then request it.

When you get a result back, you will have a REALLY long String of data
that you want to drill into. That's where as3corelib and it's
JSON.parse() method steps in. You pass JSON.parse() a String and it
returns an Object.

You can then drill into that Object to get the relevant data that you need.

Those Java and Ruby files are just wrappers for making calls to
Blip.tv web services.  Unfortunately there isn't a wrapper (library)
for ActionScript.

Hopefully that makes it a bit more clear, I wasn't trying to be rude
earlier, after re-reading my emails I may have come across that way.
I apologize.

Cheers,
Nate

On Thu, Jun 18, 2009 at 8:00 PM, Nate Beckn...@tldstudio.com wrote:
 From developer wiki that I referenced in my previous post... You may
 be particularly interested in the main blip.tv API, which is built on
 the back of open standards like RSS and JSON.

 Blip.tv has a RESTful JSON API which you can call from Flash.

 To do this you would setup a URLRequest and URLLoader to make a call
 to get the desired data you want. Then using something like JSON
 Parser included in the as3corelib
 (http://code.google.com/p/as3corelib/), you can parse the results.

 A great tutorial of this technique can be found here:
 http://www.cakesgood.com/2009/04/flash-cs3-actionscript-30-json-keep-it_3277.html

 That being said... I don't believe anyone has written a library which
 makes use of the blip.tv API yet.  You can be the first!

 Cheers,
 Nate

 On Thu, Jun 18, 2009 at 6:49 PM, Fabio Pinattifpina...@gmail.com wrote:
 I think I'm either being a little stupid or I didn't get how that api can
 work with flash. I see just some zips with java and weird extension files,
 but no way to call/integrate them from flash. That's the kind of api I asked
 for, since it's a flash forum. ;)

 Clear now? Thanks!

 On Thu, Jun 18, 2009 at 7:35 PM, Nate Beck n...@tldstudio.com wrote:

 Did you try... http://www.google.com/search?q=blip.tv+api

 First one on there.

 On Thu, Jun 18, 2009 at 5:33 AM, Fabio Pinattifpina...@gmail.com wrote:
  Dear Coders,
 
  I'm wondering if exists some api similar to youtube, to get blip.tv (
  http://blip.tv/) videos..
 
  Some advice?
 
  Thank you
 
  --
  Fabio Pinatti
  :: web.developer
   www.pinatti.com.br
  :: 19. 9184.3745 / 3342.1130
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --

 Cheers,
 Nate
 
 http://blog.natebeck.net
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 --
 Fabio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 --

 Cheers,
 Nate
 
 http://blog.natebeck.net




-- 

Cheers,
Nate

http://blog.natebeck.net

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