Re: [Flashcoders] external interface

2010-01-15 Thread amol

It is because of your js   just chang this lightbox++.js   and check


- Original Message - 
From: "Gustavo Duenas" 

To: "Flash Coders List" 
Sent: Saturday, January 16, 2010 5:09 AM
Subject: Re: [Flashcoders] external interface


solved I did as you mentioned and also I put a folder named images 
without seems not to work.
But now I have a problem, when I click and the lightbox is launched,  the 
flash movie disappear and when I click close on the lightbox img,

the movie appears again, is that normal?


Gustavo
On Jan 15, 2010, at 3:54 PM, Bob Wohl wrote:


Also, just took a quick peep at your code, I'm pretty certain your  call
should look like:

 ExternalInterface.call("LightboxDelegate","images/ cocoabutter.png" 
,

"Cocoa Butter by COFINA SA'");

first param is the function name, second 2 would be the params you are
passing. I would probably clean this up a little on the JS side and  have 
a

function that accepts the call from flash and handle the call to the
lightbox script from there. But that's just my opinion. :)

hth

On Fri, Jan 15, 2010 at 1:47 PM, Bob Wohl  wrote:

Are you able to get a simple alert to show from a button call?  Also, 
what

browser are you using?



On Fri, Jan 15, 2010 at 11:13 AM, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:


Thanks for your reply, I have the allow script access like this:


  var flashvars = {};
  var params = {};
  params.allowscriptaccess = "always";

var attributes={id:"menuCofina"};
swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%",
"10.0.0",false,flashvars,params, attributes);



I'm testing it over the internet, on my test site.
but it is still not working, I don't get it...there is something  wrong
with my as3? I don't know I didn't realize this matter should be so
difficult

Gustavo

On Jan 15, 2010, at 12:57 PM, Bob Wohl wrote:

If you are testing localy you may need to go here and change your 
privacy
settings to allow the directory you are testing from to  communicate 
with

JS:
<

http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html




Also, you need to make sure your embed script is properly set up. 
Look at

allowScriptAccess.

B.

On Fri, Jan 15, 2010 at 10:43 AM, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:

Hi, Coders, I've been trying to use External interface to  activate a

lightbox code I have on my web page, here is the html

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>

/>

Untitled Document



var attributes={id:"menuCofina"};
swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%",
"10.0.0",null,null,null, attributes);








function LightboxDelegate(url,caption) {
var objLink = document.createElement('a');
objLink.setAttribute('href',url);
objLink.setAttribute('rel','lightbox');
objLink.setAttribute('title',caption);
Lightbox.prototype.start(objLink);
}













and here is my as3 code.

for the buttons.

buttinButter.addEventListener(MouseEvent.CLICK, butterImage);



function butterImage(evt:MouseEvent):void{
if(ExternalInterface.available){
ExternalInterface.call("LightboxDelegate('images/ 
cocoabutter.png' ,

'Cocoa Butter by COFINA SA')");
trace("vamos bien");
}else{trace("problemas");}
}

buttonLiquor.addEventListener(MouseEvent.CLICK, liquorImage);

function liquorImage(evt:MouseEvent):void{
if(ExternalInterface.available){

ExternalInterface.call("LightboxDelegate('images/ cocoaliquor.png' ,
'Cocoa
liquor by COFINA SA')");
trace("vamos-rebien");}
}

buttonPowder.addEventListener(MouseEvent.CLICK, powderImage);

function powderImage(evt:MouseEvent):void{
if(ExternalInterface.available){

ExternalInterface.call("LightboxDelegate('images/ cocoapowder.png' ,
'Cocoa
Powder by COFINA SA')");
trace("rebien Vamos!!");}
}


Am I doing anything wrong, probably this is some estupid  mistake, 
but I
don't see it, I'm doing anything by the book, let me know,  please I 
need

this fixed asap.

Regards,

Gustavo
___
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] How to change the String Settings using JSFL?

2010-01-15 Thread Jim Lafser

I'm writing some JSFL and I can't find a way to change how strings are handled 
by Flash.
Anyone know how to get to the data that shows up in the settings dialog of the 
Strings Panel?
 
Jim



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


Re: [Flashcoders] external interface

2010-01-15 Thread Gustavo Duenas
solved I did as you mentioned and also I put a folder named images  
without seems not to work.
But now I have a problem, when I click and the lightbox is launched,  
the flash movie disappear and when I click close on the lightbox img,

the movie appears again, is that normal?


Gustavo
On Jan 15, 2010, at 3:54 PM, Bob Wohl wrote:

Also, just took a quick peep at your code, I'm pretty certain your  
call

should look like:

 ExternalInterface.call("LightboxDelegate","images/ 
cocoabutter.png" ,

"Cocoa Butter by COFINA SA'");

first param is the function name, second 2 would be the params you are
passing. I would probably clean this up a little on the JS side and  
have a

function that accepts the call from flash and handle the call to the
lightbox script from there. But that's just my opinion. :)

hth

On Fri, Jan 15, 2010 at 1:47 PM, Bob Wohl  wrote:

Are you able to get a simple alert to show from a button call?  
Also, what

browser are you using?



On Fri, Jan 15, 2010 at 11:13 AM, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:


Thanks for your reply, I have the allow script access like this:


  var flashvars = {};
  var params = {};
  params.allowscriptaccess = "always";

var attributes={id:"menuCofina"};
swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%",
"10.0.0",false,flashvars,params, attributes);



I'm testing it over the internet, on my test site.
but it is still not working, I don't get it...there is something  
wrong

with my as3? I don't know I didn't realize this matter should be so
difficult

Gustavo

On Jan 15, 2010, at 12:57 PM, Bob Wohl wrote:

If you are testing localy you may need to go here and change your  
privacy
settings to allow the directory you are testing from to  
communicate with

JS:
<

http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html




Also, you need to make sure your embed script is properly set up.  
Look at

allowScriptAccess.

B.

On Fri, Jan 15, 2010 at 10:43 AM, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:

Hi, Coders, I've been trying to use External interface to  
activate a

lightbox code I have on my web page, here is the html

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>



Untitled Document



var attributes={id:"menuCofina"};
swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%",
"10.0.0",null,null,null, attributes);








function LightboxDelegate(url,caption) {
var objLink = document.createElement('a');
objLink.setAttribute('href',url);
objLink.setAttribute('rel','lightbox');
objLink.setAttribute('title',caption);
Lightbox.prototype.start(objLink);
}













and here is my as3 code.

for the buttons.

buttinButter.addEventListener(MouseEvent.CLICK, butterImage);



function butterImage(evt:MouseEvent):void{
if(ExternalInterface.available){
ExternalInterface.call("LightboxDelegate('images/ 
cocoabutter.png' ,

'Cocoa Butter by COFINA SA')");
trace("vamos bien");
}else{trace("problemas");}
}

buttonLiquor.addEventListener(MouseEvent.CLICK, liquorImage);

function liquorImage(evt:MouseEvent):void{
if(ExternalInterface.available){

ExternalInterface.call("LightboxDelegate('images/ 
cocoaliquor.png' ,

'Cocoa
liquor by COFINA SA')");
trace("vamos-rebien");}
}

buttonPowder.addEventListener(MouseEvent.CLICK, powderImage);

function powderImage(evt:MouseEvent):void{
if(ExternalInterface.available){

ExternalInterface.call("LightboxDelegate('images/ 
cocoapowder.png' ,

'Cocoa
Powder by COFINA SA')");
trace("rebien Vamos!!");}
}


Am I doing anything wrong, probably this is some estupid  
mistake, but I
don't see it, I'm doing anything by the book, let me know,  
please I need

this fixed asap.

Regards,

Gustavo
___
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] external interface

2010-01-15 Thread Bob Wohl
Also, just took a quick peep at your code, I'm pretty certain your call
should look like:

  ExternalInterface.call("LightboxDelegate","images/cocoabutter.png" ,
"Cocoa Butter by COFINA SA'");

first param is the function name, second 2 would be the params you are
passing. I would probably clean this up a little on the JS side and have a
function that accepts the call from flash and handle the call to the
lightbox script from there. But that's just my opinion. :)

hth

On Fri, Jan 15, 2010 at 1:47 PM, Bob Wohl  wrote:

> Are you able to get a simple alert to show from a button call? Also, what
> browser are you using?
>
>
>
> On Fri, Jan 15, 2010 at 11:13 AM, Gustavo Duenas <
> gdue...@leftandrightsolutions.com> wrote:
>
>> Thanks for your reply, I have the allow script access like this:
>>
>> 
>>var flashvars = {};
>>var params = {};
>>params.allowscriptaccess = "always";
>>
>> var attributes={id:"menuCofina"};
>> swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%",
>> "10.0.0",false,flashvars,params, attributes);
>>
>> 
>>
>> I'm testing it over the internet, on my test site.
>> but it is still not working, I don't get it...there is something wrong
>> with my as3? I don't know I didn't realize this matter should be so
>> difficult
>>
>> Gustavo
>>
>> On Jan 15, 2010, at 12:57 PM, Bob Wohl wrote:
>>
>>  If you are testing localy you may need to go here and change your privacy
>>> settings to allow the directory you are testing from to communicate with
>>> JS:
>>> <
>>>
>>> http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
>>>


>>> Also, you need to make sure your embed script is properly set up. Look at
>>> allowScriptAccess.
>>>
>>> B.
>>>
>>> On Fri, Jan 15, 2010 at 10:43 AM, Gustavo Duenas <
>>> gdue...@leftandrightsolutions.com> wrote:
>>>
>>>  Hi, Coders, I've been trying to use External interface to activate a
 lightbox code I have on my web page, here is the html

 >>> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
 http://www.w3.org/1999/xhtml";>
 
 
 Untitled Document
 
 
 
 var attributes={id:"menuCofina"};
 swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%",
 "10.0.0",null,null,null, attributes);

 
 >>> type="text/css"/>
 
 
 
 
 
  function LightboxDelegate(url,caption) {
  var objLink = document.createElement('a');
  objLink.setAttribute('href',url);
  objLink.setAttribute('rel','lightbox');
  objLink.setAttribute('title',caption);
  Lightbox.prototype.start(objLink);
 }
 
 
 
 

 
 
 
 
 
 
 

 and here is my as3 code.

 for the buttons.

 buttinButter.addEventListener(MouseEvent.CLICK, butterImage);



 function butterImage(evt:MouseEvent):void{
 if(ExternalInterface.available){
  ExternalInterface.call("LightboxDelegate('images/cocoabutter.png' ,
 'Cocoa Butter by COFINA SA')");
  trace("vamos bien");
 }else{trace("problemas");}
 }

 buttonLiquor.addEventListener(MouseEvent.CLICK, liquorImage);

 function liquorImage(evt:MouseEvent):void{
  if(ExternalInterface.available){

 ExternalInterface.call("LightboxDelegate('images/cocoaliquor.png' ,
 'Cocoa
 liquor by COFINA SA')");
  trace("vamos-rebien");}
 }

 buttonPowder.addEventListener(MouseEvent.CLICK, powderImage);

 function powderImage(evt:MouseEvent):void{
  if(ExternalInterface.available){

 ExternalInterface.call("LightboxDelegate('images/cocoapowder.png' ,
 'Cocoa
 Powder by COFINA SA')");
  trace("rebien Vamos!!");}
  }


 Am I doing anything wrong, probably this is some estupid mistake, but I
 don't see it, I'm doing anything by the book, let me know, please I need
 this fixed asap.

 Regards,

 Gustavo
 ___
 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.f

Re: [Flashcoders] SOLVED Crossdomain.xml, shared hosting, https, oh my!

2010-01-15 Thread Steven Loe
Just wanted to post back that this is solved, so that it may help someone else:

I found that I had to load both of the policy files over https in order to make 
the crossdomain policy take effect.

First line of the document class' constructor:
Security.loadPolicyFile('https://stage.example.com/crossdomain.xml'); 
Security.loadPolicyFile('https://stage.example.com/game/crossdomain.xml');

Happy OK message in my policyfiles.txt log:
OK: Request for resource at https://stage.example.com/game/direct_payment by 
requestor from http://stage.example.com/media/swf/game.swf is permitted due to 
policy file at https://stage.example.com/game/crossdomain.xml

Crossdomain.xml files and web service paths are as below:

Thanks!

Now that this is working, I can play with getting rid of the '*'


> > The swf is loaded via http at http://stage.example.com/media/swf/game.swf
> > The credit card data is Loaded/sent via https at 
> > https://stage.example.com/game/direct_payment
> > Policy File 1 is here: http://stage.example.com/crossdomain.xml
> > Policy file 2 is here: http://stage.example.com/game/crossdomain.xml:
> >
> > Policy File 1:
> > 
> >  >   SYSTEM 'http://www.adobe.com/xml/dtds/cross-domain-policy.dtd'>
> > 
> >      permitted-cross-domain-policies="all"/>
> >      domain="*"/>
> > 
> >
> > Policy file 2:
> > 
> >  >   SYSTEM 'http://www.adobe.com/xml/dtds/cross-domain-policy.dtd'>
> > 
> >      domain="*.example.com" secure="false"/>
> > 


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


Re: [Flashcoders] external interface

2010-01-15 Thread Bob Wohl
Are you able to get a simple alert to show from a button call? Also, what
browser are you using?



On Fri, Jan 15, 2010 at 11:13 AM, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:

> Thanks for your reply, I have the allow script access like this:
>
> 
>var flashvars = {};
>var params = {};
>params.allowscriptaccess = "always";
>
> var attributes={id:"menuCofina"};
> swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%",
> "10.0.0",false,flashvars,params, attributes);
>
> 
>
> I'm testing it over the internet, on my test site.
> but it is still not working, I don't get it...there is something wrong with
> my as3? I don't know I didn't realize this matter should be so difficult
>
> Gustavo
>
> On Jan 15, 2010, at 12:57 PM, Bob Wohl wrote:
>
>  If you are testing localy you may need to go here and change your privacy
>> settings to allow the directory you are testing from to communicate with
>> JS:
>> <
>>
>> http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
>>
>>>
>>>
>> Also, you need to make sure your embed script is properly set up. Look at
>> allowScriptAccess.
>>
>> B.
>>
>> On Fri, Jan 15, 2010 at 10:43 AM, Gustavo Duenas <
>> gdue...@leftandrightsolutions.com> wrote:
>>
>>  Hi, Coders, I've been trying to use External interface to activate a
>>> lightbox code I have on my web page, here is the html
>>>
>>> >> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>>> http://www.w3.org/1999/xhtml";>
>>> 
>>> 
>>> Untitled Document
>>> 
>>> 
>>> 
>>> var attributes={id:"menuCofina"};
>>> swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%",
>>> "10.0.0",null,null,null, attributes);
>>>
>>> 
>>> >> type="text/css"/>
>>> 
>>> 
>>> 
>>> 
>>> 
>>>  function LightboxDelegate(url,caption) {
>>>  var objLink = document.createElement('a');
>>>  objLink.setAttribute('href',url);
>>>  objLink.setAttribute('rel','lightbox');
>>>  objLink.setAttribute('title',caption);
>>>  Lightbox.prototype.start(objLink);
>>> }
>>> 
>>> 
>>> 
>>> 
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> and here is my as3 code.
>>>
>>> for the buttons.
>>>
>>> buttinButter.addEventListener(MouseEvent.CLICK, butterImage);
>>>
>>>
>>>
>>> function butterImage(evt:MouseEvent):void{
>>> if(ExternalInterface.available){
>>>  ExternalInterface.call("LightboxDelegate('images/cocoabutter.png' ,
>>> 'Cocoa Butter by COFINA SA')");
>>>  trace("vamos bien");
>>> }else{trace("problemas");}
>>> }
>>>
>>> buttonLiquor.addEventListener(MouseEvent.CLICK, liquorImage);
>>>
>>> function liquorImage(evt:MouseEvent):void{
>>>  if(ExternalInterface.available){
>>>
>>> ExternalInterface.call("LightboxDelegate('images/cocoaliquor.png' ,
>>> 'Cocoa
>>> liquor by COFINA SA')");
>>>  trace("vamos-rebien");}
>>> }
>>>
>>> buttonPowder.addEventListener(MouseEvent.CLICK, powderImage);
>>>
>>> function powderImage(evt:MouseEvent):void{
>>>  if(ExternalInterface.available){
>>>
>>> ExternalInterface.call("LightboxDelegate('images/cocoapowder.png' ,
>>> 'Cocoa
>>> Powder by COFINA SA')");
>>>  trace("rebien Vamos!!");}
>>>  }
>>>
>>>
>>> Am I doing anything wrong, probably this is some estupid mistake, but I
>>> don't see it, I'm doing anything by the book, let me know, please I need
>>> this fixed asap.
>>>
>>> Regards,
>>>
>>> Gustavo
>>> ___
>>> 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


Re: [Flashcoders] external interface

2010-01-15 Thread Gustavo Duenas

Thanks for your reply, I have the allow script access like this:


var flashvars = {};
var params = {};
params.allowscriptaccess = "always";

var attributes={id:"menuCofina"};
swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%", "10.0.0",false,flashvars,params, attributes);



I'm testing it over the internet, on my test site.
but it is still not working, I don't get it...there is something wrong  
with my as3? I don't know I didn't realize this matter should be so  
difficult


Gustavo
On Jan 15, 2010, at 12:57 PM, Bob Wohl wrote:

If you are testing localy you may need to go here and change your  
privacy
settings to allow the directory you are testing from to communicate  
with JS:

<
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html




Also, you need to make sure your embed script is properly set up.  
Look at

allowScriptAccess.

B.

On Fri, Jan 15, 2010 at 10:43 AM, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:


Hi, Coders, I've been trying to use External interface to activate a
lightbox code I have on my web page, here is the html

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>


Untitled Document



var attributes={id:"menuCofina"};
swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%",
"10.0.0",null,null,null, attributes);








 function LightboxDelegate(url,caption) {
 var objLink = document.createElement('a');
 objLink.setAttribute('href',url);
 objLink.setAttribute('rel','lightbox');
 objLink.setAttribute('title',caption);
 Lightbox.prototype.start(objLink);
}













and here is my as3 code.

for the buttons.

buttinButter.addEventListener(MouseEvent.CLICK, butterImage);



function butterImage(evt:MouseEvent):void{
if(ExternalInterface.available){
  ExternalInterface.call("LightboxDelegate('images/ 
cocoabutter.png' ,

'Cocoa Butter by COFINA SA')");
  trace("vamos bien");
}else{trace("problemas");}
}

buttonLiquor.addEventListener(MouseEvent.CLICK, liquorImage);

function liquorImage(evt:MouseEvent):void{
  if(ExternalInterface.available){

ExternalInterface.call("LightboxDelegate('images/cocoaliquor.png' ,  
'Cocoa

liquor by COFINA SA')");
  trace("vamos-rebien");}
}

buttonPowder.addEventListener(MouseEvent.CLICK, powderImage);

function powderImage(evt:MouseEvent):void{
  if(ExternalInterface.available){

ExternalInterface.call("LightboxDelegate('images/cocoapowder.png' ,  
'Cocoa

Powder by COFINA SA')");
  trace("rebien Vamos!!");}
  }


Am I doing anything wrong, probably this is some estupid mistake,  
but I
don't see it, I'm doing anything by the book, let me know, please I  
need

this fixed asap.

Regards,

Gustavo
___
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] external interface

2010-01-15 Thread Bob Wohl
If you are testing localy you may need to go here and change your privacy
settings to allow the directory you are testing from to communicate with JS:
<
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
>

Also, you need to make sure your embed script is properly set up. Look at
allowScriptAccess.

B.

On Fri, Jan 15, 2010 at 10:43 AM, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:

> Hi, Coders, I've been trying to use External interface to activate a
> lightbox code I have on my web page, here is the html
>
>  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
> 
> Untitled Document
> 
> 
> 
> var attributes={id:"menuCofina"};
> swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%",
> "10.0.0",null,null,null, attributes);
>
> 
>  type="text/css"/>
> 
> 
> 
> 
> 
>   function LightboxDelegate(url,caption) {
>   var objLink = document.createElement('a');
>   objLink.setAttribute('href',url);
>   objLink.setAttribute('rel','lightbox');
>   objLink.setAttribute('title',caption);
>   Lightbox.prototype.start(objLink);
> }
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
>
> and here is my as3 code.
>
> for the buttons.
>
> buttinButter.addEventListener(MouseEvent.CLICK, butterImage);
>
>
>
> function butterImage(evt:MouseEvent):void{
> if(ExternalInterface.available){
>ExternalInterface.call("LightboxDelegate('images/cocoabutter.png' ,
> 'Cocoa Butter by COFINA SA')");
>trace("vamos bien");
> }else{trace("problemas");}
> }
>
> buttonLiquor.addEventListener(MouseEvent.CLICK, liquorImage);
>
> function liquorImage(evt:MouseEvent):void{
>if(ExternalInterface.available){
>
>  ExternalInterface.call("LightboxDelegate('images/cocoaliquor.png' , 'Cocoa
> liquor by COFINA SA')");
>trace("vamos-rebien");}
> }
>
> buttonPowder.addEventListener(MouseEvent.CLICK, powderImage);
>
> function powderImage(evt:MouseEvent):void{
>if(ExternalInterface.available){
>
>  ExternalInterface.call("LightboxDelegate('images/cocoapowder.png' , 'Cocoa
> Powder by COFINA SA')");
>trace("rebien Vamos!!");}
>}
>
>
> Am I doing anything wrong, probably this is some estupid mistake, but I
> don't see it, I'm doing anything by the book, let me know, please I need
> this fixed asap.
>
> Regards,
>
> Gustavo
> ___
> 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] external interface

2010-01-15 Thread Gustavo Duenas
Hi, Coders, I've been trying to use External interface to activate a  
lightbox code I have on my web page, here is the html


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd 
">

http://www.w3.org/1999/xhtml";>


Untitled Document



var attributes={id:"menuCofina"};
swfobject.embedSWF("menucofina2.swf", "content", "100%", "100%", "10.0.0",null,null,null, attributes);


type="text/css"/>






   function LightboxDelegate(url,caption) {
   var objLink = document.createElement('a');
   objLink.setAttribute('href',url);
   objLink.setAttribute('rel','lightbox');
   objLink.setAttribute('title',caption);
   Lightbox.prototype.start(objLink);
}














and here is my as3 code.

for the buttons.

buttinButter.addEventListener(MouseEvent.CLICK, butterImage);



function butterImage(evt:MouseEvent):void{
if(ExternalInterface.available){
	ExternalInterface.call("LightboxDelegate('images/cocoabutter.png' ,  
'Cocoa Butter by COFINA SA')");

trace("vamos bien");
}else{trace("problemas");}
}

buttonLiquor.addEventListener(MouseEvent.CLICK, liquorImage);

function liquorImage(evt:MouseEvent):void{
if(ExternalInterface.available){
		ExternalInterface.call("LightboxDelegate('images/cocoaliquor.png' ,  
'Cocoa liquor by COFINA SA')");

trace("vamos-rebien");}
}

buttonPowder.addEventListener(MouseEvent.CLICK, powderImage);

function powderImage(evt:MouseEvent):void{
if(ExternalInterface.available){
		ExternalInterface.call("LightboxDelegate('images/cocoapowder.png' ,  
'Cocoa Powder by COFINA SA')");

trace("rebien Vamos!!");}
}


Am I doing anything wrong, probably this is some estupid mistake, but  
I don't see it, I'm doing anything by the book, let me know, please I  
need this fixed asap.


Regards,

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


[Flashcoders] [JOB] AS3 Developer Position in London

2010-01-15 Thread Piers Cowburn
Hi,

Hope nobody minds a job post, hopefully it'll help somebody out. The agency I 
work at, Pushbutton ( http://www.pushbutton.tv ) is looking for an experienced 
interactive developer to join us. We mainly work in the areas of interactive TV 
and mobile development, but also do some desktop and browser based work. I've 
been working here for a year, and it's a great place to work :) Details are as 
follows:
You will be working on jobs for the likes of Virgin Media, BBC, Sky and 
Microsoft, as well as our own exciting internal projects. The applications you 
will be architecting and developing will shape the future of interactive TV 
over the next few years.

Requirements

You are either a Javascript or AS3 developer with 2-4 years’ experience of 
application development.
You have a keen interest (obsession would be better) in new technology, the 
web, and interactive TV.
Whether or not you have experience of a specific framework, you understand the 
principles of MVC and its benefits in application development.
You keep up to date with the latest developments in your chosen area 
(Javascript or AS3), and can tell the difference between a fad and something 
useful.
You won’t be required to produce any designs yourself, but a good eye for 
design and a desire to get things pixel-perfect is a big plus.
You know what’s going on in the back end. An understanding of server 
terminology and how it integrates with your applications is a must.
You have experience managing version control using Subversion or Git.
Above all, you’re easy to get along with, and have excellent written and verbal 
communication skills.
Responsibilities

Interpret client/internal briefs into a logical and well planned app 
architecture.
Interpret UI designs and advise on ease of implementation.
Develop your area of the application from start to finish.
Liase with other members of the team to make sure the finished application 
works well as a whole.
Write basic documentation for your code to ensure other members of the team can 
work with it in your absence.
Please reply off list to piers.cowb...@pushbutton.tv with some examples of 
work. Salary based on experience, but competitive.

Cheers,
Piers___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] What is your policy on loading files?

2010-01-15 Thread Andrew Murphy
Another factor to consider is the client's willingness to pay for bandwidth.
(Assuming you have a client.)  If they need to keep costs down then you
probably should avoid preloading content that the user would need to drill
down to, since the user may never see it.


--
Andrew Murphy
Interactive Media Developer
amur...@delvinia.com

Delvinia
370 King Street West, 5th Floor, Box 4 
Toronto Canada M5V 1J9
P (416) 364-1455 ext. 232
F (416) 364-9830  
W www.delvinia.com



 

> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com 
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf 
> Of allandt bik-elliott (thefieldcomic.com)
> Sent: Friday, January 15, 2010 5:35 AM
> To: Flash Coders List
> Subject: [Flashcoders] What is your policy on loading files?
> 
> Hi guys
> 
> I'm re-looking at my microsite building engine and rewriting 
> it for MVC but something is bothering me that i was hoping to 
> get a consensus on.
> 
> How do you load your (micro)sites? Do you:
> 1 load the entire site at the start by loading a single xml 
> file and trawling it for assets
> 2 load the entire site at the start by loading a single xml 
> file plus loading a library file with all of your assets in
> 3 load each page in using a separate xml file as it's needed
> 4 load the homepage and start preloading the pages while the 
> user is on the homepage to cut down wait time for the pages
> 5 load each view as it's used by the user? So if a link in a 
> page was clicked that created a popup in flash, flash would 
> load the assets for the popup when the link was clicked
> 6 something else?
> 
> if you have the time, i'd really appreciate your input
> 
> 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] What is your policy on loading files?

2010-01-15 Thread Greg Ligierko
I agree with Glenn... it depends on size, particular example and is
often a speculation before the project starts running. If this is
going to be a micro-engine, why not add a set of modes and use one
depending on site. However this would mean a lot of work and testing.

Perhaps a more elastic approach could be using simple 0/1 flags in XML
attributes saying whether the asset it defines should be loaded
instantly or wait for a request. This would mean just handling two
modes from the engine's perspective.

g




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


Re: [Flashcoders] What is your policy on loading files?

2010-01-15 Thread Glen Pike

Have a look at Gaia framework for some ideas.

Previously, I have loaded a sitemap XML and then loaded SWF's for pages 
on request.


On another site which had quite a lot of animations and videos, I 
implemented an "intelligent" preloader that would look for assets in the 
sitemap and load these in the order which I thought was important - i.e. 
load stuff for the home page first, then work down the tree.  The 
preloader was "interruptable" so you could insert a bunch of assets at 
the front of the queue if a page was requested before it's assets had 
loaded...


I think a balance of loading some assets at start - people don't mind 
waiting for a bit of loading, but I think that seeing a loading bar 
every time you go to a page might not be much fun in this day and age - 
again, I guess that depends on the size of your assets


I think it's probably dependent on the site - sorry

allandt bik-elliott (thefieldcomic.com) wrote:

Hi guys

I'm re-looking at my microsite building engine and rewriting it for MVC but
something is bothering me that i was hoping to get a consensus on.

How do you load your (micro)sites? Do you:
1 load the entire site at the start by loading a single xml file and
trawling it for assets
2 load the entire site at the start by loading a single xml file plus
loading a library file with all of your assets in
3 load each page in using a separate xml file as it's needed
4 load the homepage and start preloading the pages while the user is on the
homepage to cut down wait time for the pages
5 load each view as it's used by the user? So if a link in a page was
clicked that created a popup in flash, flash would load the assets for the
popup when the link was clicked
6 something else?

if you have the time, i'd really appreciate your input

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] What is your policy on loading files?

2010-01-15 Thread Cor
My option is 5.
Normally I load it as needed.
And if it is predictable, then I consider to preload it in case it is
somewhat heavy content.

HTH
Cor

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of allandt
bik-elliott (thefieldcomic.com)
Sent: vrijdag 15 januari 2010 11:35
To: Flash Coders List
Subject: [Flashcoders] What is your policy on loading files?

Hi guys

I'm re-looking at my microsite building engine and rewriting it for MVC but
something is bothering me that i was hoping to get a consensus on.

How do you load your (micro)sites? Do you:
1 load the entire site at the start by loading a single xml file and
trawling it for assets
2 load the entire site at the start by loading a single xml file plus
loading a library file with all of your assets in
3 load each page in using a separate xml file as it's needed
4 load the homepage and start preloading the pages while the user is on the
homepage to cut down wait time for the pages
5 load each view as it's used by the user? So if a link in a page was
clicked that created a popup in flash, flash would load the assets for the
popup when the link was clicked
6 something else?

if you have the time, i'd really appreciate your input

thanks
a
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.725 / Virus Database: 270.14.140/2621 - Release Date: 01/14/10
13:39:00

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


[Flashcoders] What is your policy on loading files?

2010-01-15 Thread allandt bik-elliott (thefieldcomic.com)
Hi guys

I'm re-looking at my microsite building engine and rewriting it for MVC but
something is bothering me that i was hoping to get a consensus on.

How do you load your (micro)sites? Do you:
1 load the entire site at the start by loading a single xml file and
trawling it for assets
2 load the entire site at the start by loading a single xml file plus
loading a library file with all of your assets in
3 load each page in using a separate xml file as it's needed
4 load the homepage and start preloading the pages while the user is on the
homepage to cut down wait time for the pages
5 load each view as it's used by the user? So if a link in a page was
clicked that created a popup in flash, flash would load the assets for the
popup when the link was clicked
6 something else?

if you have the time, i'd really appreciate your input

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


[Flashcoders] Gordon: Flash in javascript runtime

2010-01-15 Thread allandt bik-elliott (thefieldcomic.com)
You guys probably already know about this but it blew my mind
http://www.metafilter.com/88307/Adobe-Flash-Gordon

It only supports swf v1 at the moment but it's a really interesting idea and
a GREAT hack... and it works on the iPhone

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


Re: [Flashcoders] Crossdomain.xml, shared hosting, https, oh my!

2010-01-15 Thread Henrik Andersson

Steven Loe wrote:

I could load everything over https but it's ~7mb of swf and audio. It's going 
to be slower over https.



I do not believe that it will be too noticeable. The transfer is done 
with a symetric encryption, it is very rare that those changes the data 
size at all (excluding some padding at the end).

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


Re: [Flashcoders] Crossdomain.xml, shared hosting, https, oh my!

2010-01-15 Thread John McCormack

Instead of: Policy file 2 is here: 
http://stage.example.com/game/crossdomain.xml:
Try: Policy file 2 here: http://stage.example.com/crossdomain.xml:
and specify /game/ as an okay directory.

John



Steven Loe wrote:
I'm still getting a security sandbox error when the swf tries to get data via https.   What am I doing wrong here? 


The swf is loaded via http at http://stage.example.com/media/swf/game.swf
The credit card data is Loaded/sent via https at 
https://stage.example.com/game/direct_payment
Policy File 1 is here: http://stage.example.com/crossdomain.xml
Policy file 2 is here: http://stage.example.com/game/crossdomain.xml:

Policy File 1:

http://www.adobe.com/xml/dtds/cross-domain-policy.dtd'>





Policy file 2:

http://www.adobe.com/xml/dtds/cross-domain-policy.dtd'>





Here's my policyfiles.txt log
OK: Root-level SWF loaded: http://stage.example.com/media/swf/game.swf
OK: Searching for  in policy files to authorize data loading 
from resource at https://stage.example.com/game/direct_payment by requestor from 
http://stage.example.com/media/swf/game.swf
OK: Policy file accepted: https://stage.example.com/crossdomain.xml
Error: Request for resource at https://stage.example.com/game/direct_payment by 
requestor from http://stage.example.com/media/swf/game.swf is denied due to 
lack of policy file permissions.


Thanks!

--- On Wed, 1/13/10, Glen Pike  wrote:

  

From: Glen Pike 
Subject: Re: [Flashcoders] Crossdomain.xml, shared hosting, https, oh my!
To: "Flash Coders List" 
Date: Wednesday, January 13, 2010, 7:07 PM
Hi,

   I think you need to add in the
secure="false" and make sure that is the cross domain file
served from the https connection on the server..

   
http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html#allow-access-from-secure

   e.g.

http://stage.example.com"; secure="false"/>

 Not sure about policy file logging - managed on Linux, but
never tried on Mac.  You need to run the Debug player
to get it to log though.

Also, if you are using https, watch out
for www. vs non-www - the SSL certificates sometimes don't
cover both these domain names, so you may have to ensure
your clients always get redirected to the dubs or non-dubs
one, point Firefox at https://www.blah and https://blah and see
if it chucks a security exception.  If this happens,
you could serve the swf over https and redirect requests for
http to https with mod_rewrite in an .htacess file.

HTH


Glen


  
Steven Loe wrote:


Okay I've gotten the server folks to allow me to serve
  

my own crossdomain.xml file. How do I craft a crossdomain
policy file that will allow the swf (served via http) to
access data served via https within the same domain? 


Here's my error:
2048: Security sandbox violation: http://example.com/media/swf/game.swf cannot 
load data
  

from https://example.com/secure/game/direct_payment.


I've tried this:   

encoding="utf-8"?>


http://www.adobe.com/xml/dtds/cross-domain-policy.dtd'>

  

domain="*"/>




I've also tried this:

http://www.adobe.com/xml/dtds/cross-domain-policy.dtd";>

  

permitted-cross-domain-policies="all"/>


  

domain="www.example.com"/>


  

domain="example.com"/>


  

domain="stage.example.com"/>


  

domain="www.stage.example.com"/>


  

domain="stage.example.com"/>


http://stage.example.com"/>
http://www.stage.example.com"/>
https://stage.example.com"/>
https://www.stage.example.com"/>
http://example.com"/>
http://www.example.com"/>
https://example.com"/>
https://www.example.com"/>



Neither work. I've tried placing the policy file at
  

root and in the /game folder. No Luck. Any ideas as to what
I'm doing wrong here?


Also, has anyone had luck getting policy file logging
  

to work on osx? I've followed adobe's recipe but there seems
to be no policyfiles.txt log file on my machine.


thanks

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

   
  

--
Glen Pike
01326 218440
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


  



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


RE: [Flashcoders] Flash inside Java Runtime on the desktop

2010-01-15 Thread Snaijer, Paul de
Hi Meinte,

Thank you for your answers!

Best regards,
Paul

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Meinte van't 
Kruis
Sent: donderdag 14 januari 2010 12:18
To: Flash Coders List
Subject: Re: [Flashcoders] Flash inside Java Runtime on the desktop

This might have nothing to do with embedding flash within java, but maybe
it helps anyway. It's a bridge between AIR and Java, making it possible
for them to communicate, it's called Merapi:

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

On Wed, Jan 13, 2010 at 9:50 AM, Snaijer, Paul de <
paul.de.snai...@logica.com> wrote:

> Hi all,
>
>
>
> Right now I am figuring out if it is possible to embed a Flash object
> (.swf) inside a Java application running on the desktop. It must also be
> possible to communicate from Java to Flash. A quick search on the net
> resulted in a library called jpackages
> (http://www.jpackages.com/jflashplayer/
>  ). Does anyone have experiences
> with this? Or are there other/better solutions?
>
>
>
> Thanx for answering in advance!!
>
>
>
> Best regards,
>
> Paul
>
>
>
> Please help Logica to respect the environment by not printing this email  /
> Pour contribuer comme Logica au respect de l'environnement, merci de ne pas
> imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen
> Sie so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a
> respeitar o ambiente nao imprimindo este correio electronico.
>
>
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be copied,
> disclosed to, retained or used by, any other party. If you are not an
> intended recipient then please promptly delete this e-mail and any
> attachment and all copies and inform the sender. Thank you.
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Meinte van't Kruis

Freelance Flash Platform Dev (mxml,actionscript,flex,air)

malatze
http://www.malatze.com/
http://www.linkedin.com/in/meinte
mei...@malatze.com
0617459744
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Please help Logica to respect the environment by not printing this email  / 
Pour contribuer comme Logica au respect de l'environnement, merci de ne pas 
imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie 
so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a 
respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.



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