[Flashcoders] [AS2/JS] problem with cross domain JS,

2008-01-10 Thread sebastian chedal
Hello everyone, searched archives and went through the flash help IDE but I am still a bit stuck with a cross domain issue. 2 flash files and 1 html page, the HTML page is on a different server/domain than the SWFs. both flash files need to have access to JS on the page [calls and return]. It

Re: [Flashcoders] IE6: javascript issues w. events calling:getURL/SWFAddress/Object

2007-06-01 Thread sebastian chedal
Hello everyone, thanks for your fast responces, When I use: //AS: ExternalInterface.call (check); //JS: function check () { alert(check); } This works fine on ALL browsers. But if I use: AS: ExternalInterface.call (spawnWindow,

Re: [Flashcoders] IE6: javascript issues w. events calling:getURL/SWFAddress/Object

2007-06-01 Thread sebastian chedal
/07, sebastian chedal [EMAIL PROTECTED] wrote: Hello everyone, thanks for your fast responces, When I use: //AS: ExternalInterface.call (check); //JS: function check () { alert(check); } This works fine on ALL browsers. But if I use

[Flashcoders] IE6: javascript issues w. events calling: getURL/SWFAddress/Object

2007-05-31 Thread sebastian chedal
Hello, I'm having problems with IE6 and getURL calling javascript code: getURL (javascript:void(urchinTracker('+__newURL.parameters.myURL+')););//google analytics makes IE6 open a new window and puts the words: javascript:void(urchinTracker('path/file')); in the url bar! a pop up throws

[Flashcoders] AS2: local events [fuse] to boradcast between classes?

2007-05-08 Thread sebastian chedal
Hey yawl, I have a question, I'm using FUSE to do tweens and I need an event to be sent when it is done. I'm using the following syntax: import mx.utils.Delegate; import com.mosesSupposes.fuse.*; class com.blabla.PostView extends MovieClip { private var myID:Number; private var

Re: [Flashcoders] stumped video behaviour in AS2/Classes

2007-05-04 Thread sebastian chedal
doh, I'm really sorry. Silly me, thanks! [btw the constructor had all kinds of other [irrelevant] things in it, hence why i left it out, sorry! will include next time] On 5/3/07, Lists [EMAIL PROTECTED] wrote: Sebastian, You didn't include the timeline code, but I made some assumptions. I

[Flashcoders] Re: AS2: Design Pattern: event based or pointer? from model or controller?

2007-05-04 Thread sebastian chedal
Alo, So I've done some more independant research, I think I'm going to use an EventDispatcher system from the PageController: http://www.adobe.com/devnet/flash/articles/creating_events.html Instead of pointers. As I think this makes more sense. Ofcourse, any insight from the 'pros' still

Re: [Flashcoders] dynamic image loading in mc

2007-05-03 Thread sebastian chedal
Hi Gustavo, You will need to either create a button at run time, or attach one from the library. Since each image will need to be with an assosiated button, you might as well load them both into a container MovieClip and then assign that container a variable with the link address to it so that

[Flashcoders] stumped video behaviour in AS2/Classes

2007-05-03 Thread sebastian chedal
Hi folks, sorry to bother you with this, but I'm stumped. I have a class file that needs to generate video on the fly. I can get video to play fine when I pop the code onto the main timeline, but when I put it into a seperate class file, nothing happens. onStatus simply says NetStream.Play.Start

[Flashcoders] AS2: generating new instances dynamically?

2007-05-01 Thread sebastian chedal
Hello Flashcoders, Sorry to bother you with another simple AS2 questions, I'm making good progress but I am stumped with one simple thing. I have one class/object that I want to use to generate copies [instances] of another class. The second class is an object in the library with an ID and an

[Flashcoders] OOP: design patterns: multiple MVCs?

2007-04-28 Thread sebastian chedal
Hello folks, I have a design question, the application I am building could be designed with several Model-View-Controller rings in it. But I am not sure what would be the best practice to connect them together... or if MVC is even the best way to go? In a nut shell here is what my application

[Flashcoders] how to write a class that loads XML?

2007-04-27 Thread sebastian chedal
Hello Flash coders. :) Could anyone help me to fix my class code? I can't find any reference anywhere that will help me... I'm trying to load XML via a generalized class object, but the data in postXML never makes it to the parseXML constructor, any help is greatly appreciated! Thanks!

Re: [Flashcoders] how to write a class that loads XML?

2007-04-27 Thread sebastian chedal
Hi Thanks for that tip, delegate seems to work when I pass a variable, but its still not passing the XML object. However, I'm also having a problem which is stopping me from figuring out the issue... intermitently I get the error message: **Error** {...}/Flash/work/core/XMLoader.as: Line 3: The

Re: [Flashcoders] how to write a class that loads XML?

2007-04-27 Thread sebastian chedal
ok i was able to solve the issue, has to do with working from a network drive... how annoying!!! http://www.epresenterplus.com/blog/archives/30.html :-P XML is loading now just fine too, thanks everyone!! :D seb. On 4/27/07, sebastian chedal [EMAIL PROTECTED] wrote: Hi Thanks

[Flashcoders] dynamically attaching a movie clip to a class/object

2007-04-26 Thread sebastian chedal
hello flash coders! ive just joined and there are some nice discussions here, i hope to contribute positivly to the level of knowledge in the group. :) i'm currently learning how to work in an OOP manner in flash, and thus meeting some basic hurdles. it would be very kind of you if you could