[Flashcoders] Flex sdk set up question

2009-04-27 Thread Dave Segal
Sorry to ask a Flex question here but I'm sure one of you knows the answer
or at least can point me to the place I can find the answer.

I am using Flex builder to build a pure AS project. I have been using the
3.0 sdk without a problem. When I updated the SDK to in order to build a
Flash 10 project the compiler can't find the core flash package. So base
stuff like "MovieClip" does not exist. I pretty much just downloaded the
SDK and added via the preferences dialogue. I've tried the 3.2, 3.3, 4.0
SDKs with the same results. I'm sure I am missing some step but I'm not
sure what.

Also, where is the best forum for asking Flex questions?

Thanks




 

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


[Flashcoders] Document class constructor

2009-04-16 Thread Dave Segal
What is the order of execution for the document class constructor. The
behavior seems inconsistent. For example, when I load my swf independently
calling this.loaderInfo.url in the constructor returns the correct url.
However, the same thing returns null if my swf is loaded by another swf. 

 

Is it safe to do this or will it create a race condition when the swf is
loaded independently?

 

public function DocumentClassConstructor()

{

  trace(this.loaderInfo.url); // url might be null

this.loaderInfo.addEventListener(Event.COMPLETE, init);

}

 

public function init()

{

  // everything is ready, proceed

trace(this.loaderInfo.url); // always return the url

}

 

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


Re: [Flashcoders] id3 runtime error

2009-04-03 Thread Dave Segal
I see the request in the headers and when I debug with Flex, the variables all 
appear to be declared correctly. I tried hardcoding the url as well but I get 
the same issue. I'm stumped. I suppose I can just catch the error and try to 
reload the mp3 file though that is a very unsatisfying solution.

I'll see if I can create a simple example of the issue and post to the forum.

Thanks for you helping Taka.


- Original Message -
From: "Taka Kojima" 
To: "Flash Coders List" 
Sent: Friday, April 3, 2009 2:07:54 PM GMT -05:00 US/Canada Eastern
Subject: Re: [Flashcoders] id3 runtime error

Do you have firebug?

Is it possible that it's using the wrong path or even trying to
request "" when it makes the call? If you have firebug, you can look
at all of the http requests through the net panel.

If you're using a variable to make the load call, try hardcoding a
value and see if that solves the issue...

Although, I'm not sure if Flash is throwing the security error if it
will even show up.

Can you paste the code that does the loading and event handling?

- Taka

On Fri, Apr 3, 2009 at 10:49 AM, Dave Segal  wrote:
> This is the error I am seeing. Strangely the part after the word "access" is 
> left blank. Which leads me to believe it is some kind of timing bug on my 
> side however, the trigger for this function is the ID3 event. I also tried 
> waiting for the COMPLETE event but the same issue occurs. As I mentioned the 
> mp3 file is on the same server so I'm not sure why it would be looking for a 
> policy file at all. The files are in different directories however if that 
> gives some clue.
>
> SecurityError: Error #2122: Security sandbox violation: Sound.id3: 
> http://content.dev.com/char/engines/engine.swf cannot access . A policy file 
> is required, but the checkPolicyFile flag was not set when this media was 
> loaded.
>
> Thanks for your help.
>
>
> - Original Message -
> From: "Taka Kojima" 
> To: "Flash Coders List" 
> Sent: Thursday, April 2, 2009 8:08:05 PM GMT -05:00 US/Canada Eastern
> Subject: Re: [Flashcoders] id3 runtime error
>
> Hey Dave,
>
> Can you paste the exact error message?
>
> On Thu, Apr 2, 2009 at 4:51 PM, Dave Segal  wrote:
>> I have a bug that is driving me nuts. I am loading an mp3 file from the
>> same server as my swf. About 1 in 30 tries when trying to reading the id3
>> tags after the ID3 event I get a runtime error telling me I need to load
>> the crossdomain policy file in order to access the tags. I tried setting
>> the checkpolicyfile flag to true and placing a valid crossdomain.xml on
>> the server but the error occurs with the same frequency.
>>
>> ___
>> 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] id3 runtime error

2009-04-03 Thread Dave Segal
Joel,
I am not sure of the ID3 version. Does that matter? Would different versions of 
the ID3 tags cause this type of inconsistent failure?
Dave

- Original Message -
From: "Joel Stransky" 
To: "Flash Coders List" 
Sent: Friday, April 3, 2009 12:01:11 AM GMT -05:00 US/Canada Eastern
Subject: Re: [Flashcoders] id3 runtime error

Are they id3 version 1 or 2?

--Joel

On Apr 2, 2009, at 7:51 PM, "Dave Segal"  wrote:

> I have a bug that is driving me nuts. I am loading an mp3 file from  
> the
> same server as my swf. About 1 in 30 tries when trying to reading  
> the id3
> tags after the ID3 event I get a runtime error telling me I need to  
> load
> the crossdomain policy file in order to access the tags. I tried  
> setting
> the checkpolicyfile flag to true and placing a valid crossdomain.xml  
> on
> the server but the error occurs with the same frequency.
>
> ___
> 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] id3 runtime error

2009-04-03 Thread Dave Segal
This is the error I am seeing. Strangely the part after the word "access" is 
left blank. Which leads me to believe it is some kind of timing bug on my side 
however, the trigger for this function is the ID3 event. I also tried waiting 
for the COMPLETE event but the same issue occurs. As I mentioned the mp3 file 
is on the same server so I'm not sure why it would be looking for a policy file 
at all. The files are in different directories however if that gives some clue.

SecurityError: Error #2122: Security sandbox violation: Sound.id3: 
http://content.dev.com/char/engines/engine.swf cannot access . A policy file is 
required, but the checkPolicyFile flag was not set when this media was loaded.

Thanks for your help.


- Original Message -
From: "Taka Kojima" 
To: "Flash Coders List" 
Sent: Thursday, April 2, 2009 8:08:05 PM GMT -05:00 US/Canada Eastern
Subject: Re: [Flashcoders] id3 runtime error

Hey Dave,

Can you paste the exact error message?

On Thu, Apr 2, 2009 at 4:51 PM, Dave Segal  wrote:
> I have a bug that is driving me nuts. I am loading an mp3 file from the
> same server as my swf. About 1 in 30 tries when trying to reading the id3
> tags after the ID3 event I get a runtime error telling me I need to load
> the crossdomain policy file in order to access the tags. I tried setting
> the checkpolicyfile flag to true and placing a valid crossdomain.xml on
> the server but the error occurs with the same frequency.
>
> ___
> 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] id3 runtime error

2009-04-02 Thread Dave Segal
I have a bug that is driving me nuts. I am loading an mp3 file from the
same server as my swf. About 1 in 30 tries when trying to reading the id3
tags after the ID3 event I get a runtime error telling me I need to load
the crossdomain policy file in order to access the tags. I tried setting
the checkpolicyfile flag to true and placing a valid crossdomain.xml on
the server but the error occurs with the same frequency. 

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


RE: [Flashcoders] Flash 10 file upload

2008-10-17 Thread Dave Segal
 is also the way certain similar
>>> security decisions have been made in the past.
>>>
>>> I think the only real solution would be to let it work as usual, BUT
add
>>> an
>>> optional checkbox to the file browsing dialog that would let the user
>>> disable further dialogs from that Flash movie (or at least THEN make
it
>>> respond to events only), in the same vein Google Chrome does with
>>> Javascript
>>> dialog popups. It works very well to combat the focus-stealing
exploits,
>>> and
>>> I'm not sure why Adobe didn't take that route instead.
>>>
>>>
>>> Zeh
>>>
>>> On Fri, Oct 17, 2008 at 4:47 PM, Juan Pablo Califano <
>>> [EMAIL PROTECTED]> wrote:
>>>
>>> > Not that it doesn't work, necessarily, but now the browse() method
will
>>> > only
>>> > be callable in response to a user action, not programatically.
>>> >
>>> > http://theflashblog.com/?p=423
>>> >
>>> > In my opinion, this change would be ok if it were applicable only to
>>> swf's
>>> > compiled for version 10 or greater, but changing an existing API in
a
>>> > way that deliverately breaks existing content that has been working
for
>>> > years is a stupid decision and a serious lack of respect to users of
>>> the
>>> > platform (end users and developers), to say the least.
>>> >
>>> >
>>> > Cheers
>>> > Juan Pablo Califano
>>> >
>>> >
>>> > 2008/10/17, Merrill, Jason <[EMAIL PROTECTED]>:
>>> > >
>>> > > HOLD THE PHONE.  So are you saying FileReference upload no longer
>>> works
>>> > in
>>> > > AS2/AM1 published .swfs in Flash 10?  If so, that IS VERY BAD
and
>>> > will
>>> > > break many applications.
>>> > >
>>> > > Jason Merrill
>>> > > Bank of America
>>> > > GCIB & Staff Support L&LD
>>> > > Instructional Technology & Media
>>> > > Join the Bank of America Flash Platform Developer Community
>>> > > Are you a Bank of America associate interested in innovative
learning
>>> > ideas
>>> > > and technologies?
>>> > > Check out our internal  Innovative Learning Blog & subscribe.
>>> > >
>>> > >
>>> > > -Original Message-
>>> > > From: [EMAIL PROTECTED] [mailto:
>>> > > [EMAIL PROTECTED] On Behalf Of Dave Segal
>>> > > Sent: Friday, October 17, 2008 2:18 PM
>>> > > To: 'Flash Coders List'
>>> > > Subject: [Flashcoders] Flash 10 file upload
>>> > >
>>> > > The new Flash 10 security restriction on file upload and lack of
>>> backward
>>> > > compatibility is killing me.  What was Adobe thinking unleashing
this
>>> > > nightmare and breaking working applications? Is there any quick
fix
>>> for
>>> > > this besides recoding old swfs?
>>> > >
>>> > > ___
>>> > > 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
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Flash 10 file upload

2008-10-17 Thread Dave Segal
Actually this is not the way security updates were made in the past. With
other updates, for instance the introduction of and multiple changes to
the "allowDomain" rules, backward compatibility was maintained for older
versions.

I agree with Juan, breaking a feature that has been supported for years is
a serious lack of respect for users of the platform. I guess it's time to
start looking at the alternatives to Flash that are out there.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeh
Fernando
Sent: Friday, October 17, 2008 4:25 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Flash 10 file upload

The problem is if they took that approach, the vague security hole would
continue to exist - a potential exploit would simply need to compile for
an
old version of the player.

It's awful, but I wouldn't really say it's an "stupid" decision. As soon
as
they decided to cripple the functionality, making it global is the only
way
to go. It's a no-win situation. This is also the way certain similar
security decisions have been made in the past.

I think the only real solution would be to let it work as usual, BUT add
an
optional checkbox to the file browsing dialog that would let the user
disable further dialogs from that Flash movie (or at least THEN make it
respond to events only), in the same vein Google Chrome does with
Javascript
dialog popups. It works very well to combat the focus-stealing exploits,
and
I'm not sure why Adobe didn't take that route instead.


Zeh

On Fri, Oct 17, 2008 at 4:47 PM, Juan Pablo Califano <
[EMAIL PROTECTED]> wrote:

> Not that it doesn't work, necessarily, but now the browse() method will
> only
> be callable in response to a user action, not programatically.
>
> http://theflashblog.com/?p=423
>
> In my opinion, this change would be ok if it were applicable only to
swf's
> compiled for version 10 or greater, but changing an existing API in a
> way that deliverately breaks existing content that has been working for
> years is a stupid decision and a serious lack of respect to users of the
> platform (end users and developers), to say the least.
>
>
> Cheers
> Juan Pablo Califano
>
>
> 2008/10/17, Merrill, Jason <[EMAIL PROTECTED]>:
> >
> > HOLD THE PHONE.  So are you saying FileReference upload no longer
works
> in
> > AS2/AM1 published .swfs in Flash 10?  If so, that IS VERY BAD and
> will
> > break many applications.
> >
> > Jason Merrill
> > Bank of America
> > GCIB & Staff Support L&LD
> > Instructional Technology & Media
> > Join the Bank of America Flash Platform Developer Community
> > Are you a Bank of America associate interested in innovative learning
> ideas
> > and technologies?
> > Check out our internal  Innovative Learning Blog & subscribe.
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:
> > [EMAIL PROTECTED] On Behalf Of Dave Segal
> > Sent: Friday, October 17, 2008 2:18 PM
> > To: 'Flash Coders List'
> > Subject: [Flashcoders] Flash 10 file upload
> >
> > The new Flash 10 security restriction on file upload and lack of
backward
> > compatibility is killing me.  What was Adobe thinking unleashing this
> > nightmare and breaking working applications? Is there any quick fix
for
> > this besides recoding old swfs?
> >
> > ___
> > 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] Flash 10 file upload

2008-10-17 Thread Dave Segal
The file upload has to occur as the result of a user interaction. If you
are doing any upload that is not associated with button click Flash 10
rejects the upload. The change is not backward compatible. Flash 8 and 9
content that do not conform is broken.

Here are couple articles on the topic and the F10 security documentation.


http://www.bit-101.com/blog/?p=1382

http://theflashblog.com/?p=423

http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_change
s_02.html#head34

Very bad. I'm completely frustrated with Flash.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, October 17, 2008 2:28 PM
To: Flash Coders List
Subject: RE: [Flashcoders] Flash 10 file upload

HOLD THE PHONE.  So are you saying FileReference upload no longer works in
AS2/AM1 published .swfs in Flash 10?  If so, that IS VERY BAD and will
break many applications.

Jason Merrill
Bank of America 
GCIB & Staff Support L&LD
Instructional Technology & Media
Join the Bank of America Flash Platform Developer Community
Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  Innovative Learning Blog & subscribe.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Segal
Sent: Friday, October 17, 2008 2:18 PM
To: 'Flash Coders List'
Subject: [Flashcoders] Flash 10 file upload

The new Flash 10 security restriction on file upload and lack of backward
compatibility is killing me.  What was Adobe thinking unleashing this
nightmare and breaking working applications? Is there any quick fix for
this besides recoding old swfs?

___
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] Flash 10 file upload

2008-10-17 Thread Dave Segal
The new Flash 10 security restriction on file upload and lack of backward
compatibility is killing me.  What was Adobe thinking unleashing this
nightmare and breaking working applications? Is there any quick fix for
this besides recoding old swfs?

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


[Flashcoders] GC-ing a SharedObject

2008-08-26 Thread Dave Segal
I have a large scale project I am working on that needs to be loaded and
unload so of course I am running into the dreaded AS3 garbage collection
mess.

I've tracked down the problem to a local SharedObject of a particular
class. The destructor of said class closes the SharedObject (even though
that shouldn't be necessary since it is local) and nulls the variable but
it seems this is not enough for the garbage collector. The memory is not
released. However, if I never create the SharedObject in the first place
and go through the same destruction procedure memory is released!

Help!

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


[Flashcoders] Object vs *

2008-08-08 Thread Dave Segal
What is the difference between typing an instance as "*" and typing it as
"Object"?

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


RE: [Flashcoders] webcam issues

2008-07-31 Thread Dave Segal
No Kensington peripherals that I know of on either cpu here that crashes.

It seems like a general problem with the Camera implementation in the
Flash player but strangely I can't find any documentation of the issue on
the web or in the Adobe bug db.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Watts
Sent: Thursday, July 31, 2008 6:55 PM
To: Flash Coders List
Subject: RE: [Flashcoders] webcam issues

> I am having a number of issues with the Camera class. Most 
> seriously, it crashes the browser on some computers when I 
> call getCamera() or Camera.names. It doesn't seem to be a 
> browser issue as my simple test crashes both IE and FF on the 
> same computers. Anyone know why this would happen?

Does the computer have any Kensington peripherals? I've run into conflicts
with camera use from Flash with those.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
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] webcam issues

2008-07-31 Thread Dave Segal
I am having a number of issues with the Camera class. Most seriously, it
crashes the browser on some computers when I call getCamera() or
Camera.names. It doesn't seem to be a browser issue as my simple test
crashes both IE and FF on the same computers. Anyone know why this would
happen?

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


[Flashcoders] Flash Player security hole

2008-05-27 Thread Dave Segal
Does anyone have more info on this? What is the flaw and what can we do to
protect our users?

 

http://www.pcworld.com/businesscenter/article/146343/new_adobe_flaw_being_
used_in_attacks_says_symantec.html

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


RE: [Flashcoders] as3 namespace question

2008-05-14 Thread Dave Segal
Thanks for the response Erik.

Yes, I am aware that compiling the entire base class of another swf is
problematic. I was just trying to simplify things for the example. If the
idea works I will to use an interface as a public api to the loaded swf.

Anyway, I am very interested in seeing your example files, whether in Flex
or Flash. However, I don't seem to receive attachments sent through this
list. Can you send me the attachment off list? 

Thanks
Dave


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of EECOLOR
Sent: Tuesday, May 13, 2008 5:38 PM
To: Flash Coders List
Subject: Re: [Flashcoders] as3 namespace question

And now the attachment, hehe.


Greetz Erik

On 5/13/08, EECOLOR <[EMAIL PROTECTED]> wrote:
>
> >I posted about this before and didn't receive and answer but it is 
> >still
> causing
> >me issues so I am trying again.
>
> There were some concrete answers posted to your question. Anyway, 
> let's see if we can solve it again.
>
> Before I will try and help with your problem, I want to point out 
> something about your code. I am not sure if you are using (in your 
> real
> application) an interface which you will cast your class to:
>
> *var _lm:ILoadMe = ILoadMe(_ldr.content);*
>
> If you are using the actual class, the problem is that the whole class 
> and it's dependencies are compiled into you main swf, defeating a big 
> part of the purpose of loading the swf into it.
>
> In my previous reply to your earlier email I posted a Flex version of 
> the answer. This time I created a Flash example. It is added as
attachment.
>
> The attached zip file contains 2 directories. Make sure you have your 
> webserver point to to these directories, the virtual hosts in apache:
>
> *
>   ServerName domain1
>   DocumentRoot "E:\Projects\domain1"
> 
>
> 
>   ServerName domain2
>   DocumentRoot "E:\Projects\domain2"
> *
>
> In the hosts file (if you are on windows) you need these 2 entries:
>
> *127.0.0.1 domain1
> 127.0.0.1 domain2*
>
> In order to test the example, call this url: 
> *http://domain1/domain1.html*
>
> You should see this appear on your screen:
>
> *domain1.swf
> domain2.swf loaded
> Domain2Base*
>
> I hope this will solve your problem.
>
>
> Greetz Erik
>
>
>
>
>
>
>
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] as3 namespace question

2008-05-09 Thread Dave Segal
I posted about this before and didn't receive and answer but it is still
causing me issues so I am trying again. I need to load an swf from one
server that is a member of some class. For example:

 

http://server1.mydomain.com/load_me.swf that uses the Document class
"com.mydomain.componet.LoadMe.as".

 

I want to be able to load this swf from a different server, say
http://server2.mydomain.com/load_stuff.swf, and cast it to a LoadMe when
it is done loading. Should this work? I keep getting errors when trying to
cast in the init handler.

 

 

import com.mydomain.componet.LoadMe;

 

var _req:URLRequest = new
URLRequest("http://server1.mydomain.com/load_me.swf";);

var _ldr:Loader = new Loader();

var _context:LoaderContext = new LoaderContext();

_context.securityDomain = SecurityDomain.currentDomain;

_context.applicationDomain = ApplicationDomain.currentDomain;

_ldr.contentLoaderInfo.addEventListener(Event.INIT, initHandler, false, 0,
true);

_ldr.load(_req, _context); 

 

 

private function initHandler($event:Event) () {   

var _lm:LoadMe = LoadMe(_ldr.content);

}

 

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


[Flashcoders] to mac or not to mac

2008-03-14 Thread Dave Segal
It's time for me to get a new computer and I have heard so many horror
stories about Vista that I am thinking of switching to Mac. What tools are
people using to develop on the Mac. I mostly Flash IDE, FlexBuilder,
FlashDevelop, SWFMill, SWFDump, HaXe, FlashTracer - are these available on
Mac? Also any general info about developing on the Mac, positive or
negative, would be helpful. 

Is anyone using Vista and enjoying it?

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


RE: [Flashcoders] LoaderContext question

2008-03-07 Thread Dave Segal
I am getting a type Coercion error. "TypeError: Error #1034: Type Coercion
failed"

Really the whole goal here is to be able to load swfs (from a different
server) that implement some public api. Then have the loading swf cast the
loaded swf to that api, so code hints and type checking are available. Are
there any solutions for this type of thing?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrei
Thomaz
Sent: Thursday, March 06, 2008 7:05 PM
To: Flash Coders List
Subject: Re: [Flashcoders] LoaderContext question

what is the error?

[]'s
andrei


On Thu, Mar 6, 2008 at 8:41 PM, Dave Segal <[EMAIL PROTECTED]> wrote:

> I need to load an swf from one server that is a member of some class.
For
> example:
>
>
>
> http://server1.mydomain.com/load_me.swf that uses the Document class
> "com.mydomain.componet.LoadMe.as".
>
>
>
> I want to be able to load this swf from different server, say
> http://server2.mydomain.com/load_stuff.swf, and cast it to a LoadMe when
> it is done loading. Should this work? I keep getting errors when trying
to
> cast in the init handler.
>
>
>
>
>
> import com.mydomain.componet.LoadMe;
>
>
>
> var _req:URLRequest = new
> URLRequest("http://server1.mydomain.com/load_me.swf";);
>
> var _ldr:Loader = new Loader();
>
> var _context:LoaderContext = new LoaderContext();
>
> _context.securityDomain = SecurityDomain.currentDomain;
>
> _context.applicationDomain = ApplicationDomain.currentDomain;
>
> _ldr.contentLoaderInfo.addEventListener(Event.INIT, initHandler, false,
0,
> true);
>
> _ldr.load(_req, _context);
>
>
>
>
>
> private function initHandler($event:Event) () {
>
>var _lm:LoadMe = LoadMe(_ldr.content);
>
> }
>
> ___
> 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] LoaderContext question

2008-03-06 Thread Dave Segal
I need to load an swf from one server that is a member of some class. For
example:

 

http://server1.mydomain.com/load_me.swf that uses the Document class
"com.mydomain.componet.LoadMe.as".

 

I want to be able to load this swf from different server, say
http://server2.mydomain.com/load_stuff.swf, and cast it to a LoadMe when
it is done loading. Should this work? I keep getting errors when trying to
cast in the init handler.

 

 

import com.mydomain.componet.LoadMe;

 

var _req:URLRequest = new
URLRequest("http://server1.mydomain.com/load_me.swf";);

var _ldr:Loader = new Loader();

var _context:LoaderContext = new LoaderContext();

_context.securityDomain = SecurityDomain.currentDomain;

_context.applicationDomain = ApplicationDomain.currentDomain;

_ldr.contentLoaderInfo.addEventListener(Event.INIT, initHandler, false, 0,
true);

_ldr.load(_req, _context); 

 

 

private function initHandler($event:Event) () {   

var _lm:LoadMe = LoadMe(_ldr.content);

}

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


[Flashcoders] frame rate guidelines

2008-02-22 Thread Dave Segal
Are there any general guidelines about what frame rate to use when
publishing an swf?

 

Also, are there any techniques for adjusting the frame rate of an swf at
runtime?

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


[Flashcoders] AVM1 loadMovie problems

2007-12-17 Thread Dave Segal
I am  having some problems loading multiple Flash 8 movies into Flash 9. I
understand that this not recommended and that is preferred to work with
all Flash 9/AS 3 content. 

 

Here is the situation. I have 2 Flash 8 swfs, let's call these
"f8loader1.swf" and "f8loader2.swf". Both of these swfs instantiate the
same class, "F8AssestClass",  which loads another Flash 8 swf,
"f8asset.swf".   In my Flash 9 application I am loading "f8loader1.swf"
which instantiates "F8AssetClass" which loads "f8asset.swf" just as
planned.  However, when I then load "f8loader2.swf", it starts up and
instantiates "F8AssetClass" but "f8asset.swf" never loads. I have tried to
load "f8asset.swf" with both loadMovie and with the MovieClipLoader. It
never loads the second time.

 

I have a project where the above scenario is going to be in play multiple
times and I don't have much flexibility to adjust the Flash 8 content. I'm
hoping someone can help me understand what is happening here and let me
know if whether it is possible to achieve this. 

 

I have example files I can send if anyone is interested. 

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


[Flashcoders] System.as vs System.security

2007-04-09 Thread Dave Segal
I asked a question about this on Friday with no response but here goes
again this time with more details. It seems like the Flash compiler is
choking on the System class when I delete the ASO cache and compile. Here
is all the code in my test fla:

System.security.allowDomain(" 
www.mydomain.com");
System.exactSettings = false;
 
and here is the compiler error I get from the System.as:
 
**Error** C:\Documents and Settings\dave\Local Settings\Application
Data\Macromedia\Flash 8\en\Configuration\Classes\FP8\System.as: Line 7:
The name of this class, 'System', conflicts with the name of another class
that was loaded.
 {
 
 
Switch the order of the lines:
System.exactSettings = false;
System.security.allowDomain(" 
www.mydomain.com");
 
and here is the compiler error I get from the security.as class
 
**Error** C:\Documents and Settings\dave\Local Settings\Application
Data\Macromedia\Flash 8\en\Configuration\Classes\FP8\System\security.as:
Line 7: The name of this class, 'System.security', conflicts with the name
of another class that was loaded, 'System'.
 
 
It seems that the problem is related to the fact that there is both a
System.as class, which defines exactSettings, useCodepage,  setClipboard,
etc, and a System folder which contains the System.security,
System.capabilities, and System.IME classes. When both the System package
and the System class are referenced the compiler throws an error. I
searched around and was surprised that I couldn't find any information
related to the conflict. Does anyone know how to resolve this?
Thanks
Dave
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] compiler error from System class

2007-04-07 Thread Dave Segal
Someone on my team keeps getting compiler errors like this.

**Error** C:\Documents and Settings\Smyer\Local Settings\Application
Data\Macromedia\Flash 8\en\Configuration\Classes\FP8\System\security.as: 

Line 7: The name of this class, 'System.security', conflicts with the name
of another class that was loaded, 'System'.

The error only occurs when the ASO cache is deleted. On subsequent
compilation without deleting the ASO cache the file compiles fine. Anyone
have any insight into why this would be happening?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Detecting embedded domain?

2007-03-13 Thread Dave Segal
Someone else on this list hooked me up with this a while back. It works as 
long as JavaScript is not restricted on the pages your swf is embedded on 
(see mySpace).

var embedded_domain:String = flash.external.ExternalInterface.call("eval", 
"location.href");



-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Perdue, 
Blake
Sent: Tuesday, March 13, 2007 3:19 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Detecting embedded domain?

Building a video player that can be embedded in a web page. We'd like to be 
able to detect what domain the page the player is embedded on lives.
If the domain is not ours (eg, SI.com), we'd like to display a logo; if it 
is ours, we don't want to display the logo.



Does anyone know how to detect what the domain is for a page that the SWF is 
embedded on?





Blake Perdue  |  212.522.1292  |  AIM: blakepCNN



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com 
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Security error "tried to access incompatible context"

2007-01-23 Thread Dave Segal
I have local file that is loading a remote file. The remote file sends a
number of events to the file that loads it. I have
System.security.allowDomain in the loading file set to allow the domain of
the file that is loaded. Events are received, everything works, no
problem.
 
But, I keep getting errors in the Flash IDE output window that say "tried
to access incompatible context". 
 
Like this :
 
*** Security Sandbox Violation ***
SecurityDomain 'http://my.domain.com/my_swf.swf' tried to access
incompatible context 'file:///C|/my_local.swf'
 
I read that this is the expected behavior for the debug version of the
flash player. But it is quite annoying. Is there a way to suppress it? 
Thanks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] RE: swf and referring domain

2006-11-16 Thread Dave Segal

Thanks for the response Joey. I actually tried a similar method before that
almost worked. From Flash I did this - 

getURL("javascript:document.mySWF.SetVariable('referringDomain',document.loc
ation.host)"); 

The problem I ran into was that in IE as soon as this line executes the page
stops rendering. This is especially problematic when the swf begins before
the page is done loading. The page never completes. Also, several sites I am
targeting, like mySpace, restrict javascript. I'm not sure what would happen
if I tried writing javascript at runtime to a mySpace page. 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: swf and referring domain

2006-11-16 Thread Dave Segal
Thanks for the response Ray but that is not really what I am looking for. I
don't want to prevent others from using my swf. I just want an way to
identify the referring domain when it is embedded. Specifically, I want
people to embed my swf from my server on their web pages (hosted by myspace
or anywhere else) and have the player detect at runtime where the request is
coming from. Unfortunately using php or asp for referrer detection is not an
option. I am hoping there is a way to get it from the player. I figure the
player must know about the referring domain as it is able to block or accept
calls from the page with the allowscriptaccess parameter.  

> 
> The swf (SWFA) that wants to load your swf (SWFB) can't do so if you
> 
> i) you don't allow it
> ii) you don't know where SWFA is
> 
> You have to know where SWFA is to allow it.
> 
> See the System.security.allowDomain entry in the Flash 8 docs; it has
> a nice diagram to illustrate things.
> 
> http://livedocs.macromedia.com/flash/8/main/2647.html
> 
> 
> On 11/16/06, Dave Segal <[EMAIL PROTECTED]> wrote:
> > Is there a way to find the domain of the page that loads my swf. For
> > example, someone embeds an swf served from my server on their
> > www.myspace.com <http://www.myspace.com/>  page. Is there 
> is way for me to
> > determine that the request is coming from myspace.com at runtime?
> >
> > A search of the archive revealed this thread that describes 
> exactly the
> > problem that I am facing but I didn't see any solution.
> > 
> http://chattyfig.figleaf.com/pipermail/flashcoders/2006-Octobe
r/175064.html
> >
> > I have the option of using AS 3 if it provides a solution.
> >
> > Thanks.
> >
> >
> 
> 
> -- 
> Cheers,
> Ray Chuan


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] swf and referring domain

2006-11-15 Thread Dave Segal
Is there a way to find the domain of the page that loads my swf. For
example, someone embeds an swf served from my server on their
www.myspace.com   page. Is there is way for me to
determine that the request is coming from myspace.com at runtime?
 
A search of the archive revealed this thread that describes exactly the
problem that I am facing but I didn't see any solution.
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-October/175064.html
 
I have the option of using AS 3 if it provides a solution.
 
Thanks. 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com