[Flashcoders] red dots along png overlaying a video ( Topic Summary: when I access the swf directly it displays fine. WHen I pull it into my AS3 class it has this stange behavior)
http://www.boski.com/facebook/superVideo/superVideomain2.html?3 click on the preview button to view the video. (I get strange reddots.) if I access it here http://www.boski.com/facebook/superVideo/video/swfs/Anchorman.swf (no dots.) does anyone have any ideas what this could be? Thanks, Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] [OT] desktop file searching utility
SEPY has a search in feature that would work perfectly for what you are doing. you could set up a fake project that is at the root level of your drive and search .as files for text. On 5/28/07, keith <[EMAIL PROTECTED]> wrote: http://keithhair.com/web/photos/searchexample.jpg http://www.jedit.org/ If you not familiar, J-Edit's "Hypersearch" feature would be excellent for this. It searches within all text filetypes over a whole directory. Allows filtering and RegExp. Not bad for writing scripts either. -- Keith H -- Hairy Dog Digital wrote: > Hi all, > > Does anyone have a desktop file searching utility they can recommend that > really does search within files of any type for specific strings? > > The built in Windows search utility, as well as the Google Desktop Search, > do not seem to search within file types such as external ActionScript files. > They only seem to poke around in the known text document types (DOC, PDF, > EPS, XLS, etc.) > > Recommendations? > > Thanks, > Rob > > ___ 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
Re: [Flashcoders] loadVars not initialising first
try this. frame one: // var myMenuData = new LoadVars; var myTxt:Array = new Array();' // myFile = "../textFiles/menuLabels.txt"; myMenuData.onLoad = function(success) { if (success) { trace("LoadVars loaded successfully: "+this.loaded); <==this one returns = true _parent.myTxt = this.myVar.split(","); trace(_parent.myTxt[3]); <==this trace returns the correct value _parent.play(); } else { trace("Could not get the data"); } }; myMenuData._parent = this; myMenuData.load(myFile); stop(); frame 2: trace(myTxt[3]); ___ 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] loadVars not initialising first
trace(myTxt[3]); <== this trace returns undefined returns undefined because it is not loaded yet. you have to access the load after the onLoad event. this could be a couple seconds later or even a whole minute depending on how long it takes to load the file. Mike On 5/27/07, John Trentini <[EMAIL PROTECTED]> wrote: Hi there, (my second try at this, I was really hoping on some help with this one) I am sure this has an easy answer but i can't get my head around it. I have even put the code into an #include file to see if it would init the loadVars before anything else but, no luck.. On Eric's early suggestion I have placed the .load aftert the onLoad function but that did not resolve my problem. I am getting data from an external text file and using the information tobuild a menu with the following: // var myMenuData = new LoadVars; var myTxt:Array = new Array();' // myFile = "../textFiles/menuLabels.txt"; myMenuData.onLoad = function(success) { if (success) { trace("LoadVars loaded successfully: "+this.loaded); <==this one returns = true myTxt = this.myVar.split(","); trace(myTxt[3]); <==this trace returns the correct value } else { trace("Could not get the data"); } }; myMenuData.load(myFile); trace(myTxt[3]); <== this trace returns undefined I am unable to get the info out of the load function, what am i doing wrong? How can I make the info persistent? Thanks JohnT ___ 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
Re: [Flashcoders] AS3 continuous loop on mouse down
if you want something to happen over and over do a set interval on mouse down and clear interval on mouse up. On 5/13/07, dave matthews <[EMAIL PROTECTED]> wrote: hi All, What is the syntax for a continuous loop in AS3? Have working code for a code loop using mouse down - one frame-main timeline, but can't figure out how to maintain the rate of movement when the mouse is stationary with the mouse button still in down position. thanks, Dave_Matthews Place symbol instance named 'circle' on stage. Paste this code on actions frame: import flash.events.MouseEvent; this.stop(); var circleOrigX:Number; var circleOrigY:Number; var curOrigX:Number; var curOrigY:Number; var panRateX:Number; var panRateY:Number; function panSetUpDrag(event:MouseEvent):void { circleOrigX = event.stageX - circle.x; circleOrigY = event.stageY - circle.y; curOrigX= event.stageX ; curOrigY= event.stageY ; stage.addEventListener(MouseEvent.MOUSE_MOVE, panloop); } function panloop(event:MouseEvent):void { /*want this loop to operate while mouse is stationary - causing pan actions to reposition circle at rate based on distance of cursor from start*/ panRateX = (event.stageX -curOrigX) * 3 ; panRateY = (event.stageY -curOrigY) * 3 ; circle.x = event.stageX - circleOrigX - panRateX; circle.y = event.stageY - circleOrigY - panRateY; event.updateAfterEvent(); } function PanStopDrag(event:MouseEvent):void { gotoAndStop(1); stage.removeEventListener(MouseEvent.MOUSE_MOVE, panloop); } stage.addEventListener(MouseEvent.MOUSE_DOWN, panSetUpDrag); stage.addEventListener(MouseEvent.MOUSE_UP, PanStopDrag); _ More photos, more messages, more storage—get 2GB with Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507 ___ 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
Re: [Flashcoders] RE: Cross domain issue
ash Player 7; behavior changed in Flash Player 8. Parameters *domain1*:String - One or more strings that specify domains that can access objects and variables in the SWF file that contains the System.Security. allowDomain() call. The domains can be formatted in the following ways: - "domain.com" - "http://domain.com"; - "http://IPaddress"; - (Flash Player 8 only) "*" You can pass a wildcard ("*") to System.security.allowDomain() to allow all domains, including local hosts, access to the calling SWF file. Before using the wildcard, be sure that you want to provide such broad access to the calling SWF file. See the discussion in the main description of this method. Example The SWF file located at www.macromedia.com/MovieA.swf contains the following lines: System.security.allowDomain("www.shockwave.com"); loadMovie("http://www.shockwave.com/MovieB.swf";, my_mc); Because MovieA contains the allowDomain() call, MovieB can access the objects and variables in MovieA. If MovieA didn't contain this call, the Flash Player security implementation would prevent MovieB from accessing MovieA's objects and variables. On 4/24/07, Michael Boski <[EMAIL PROTECTED]> wrote: Both apps are using delagate and eventdispature. problem I am having: the shell sets up this function onLoadInit (mc : MovieClip) { trace ("MOB onLoadInit: " + mc); passAlongParameters (); this.getPlayer = function () { return placeHolder_mc.embeddedPlayer.getPlayer (); } placeHolder_mc.embeddedPlayer.onInitError = Delegate.create (this, onInitError); placeHolder_mc.embeddedPlayer.onInitComplete = Delegate.create(this, onInitComplete); placeHolder_mc.embeddedPlayer.getEmbedOverrides = Delegate.create (this, getEmbedOverrides); } function onInitComplete () { trace ("MOB:onInitComplete: clipID=" + clipID); } and the swf being loaded in loads and I can see it traces out: onReady. We killed it, people. config.autoStart so i can tell this is fireing function onReady() { trace("onReady. We killed it, people. config.autoStart: " + config.autoStart); inited = true; onInitComplete(); /*_parent.onInitComplete(); _level0.embeddedPlayer.onInitComplete(); _parent._parent.onInitComplete(); _parent._parent._parent.onInitComplete(); /* } however it doesn't work. if I load an swf right next to the shell it does work?? Thanks in advance, mike On 4/23/07, Michael Ypes <[EMAIL PROTECTED]> wrote: > > I have had exactly the same problem as I have been doing a lot of cross > domain policy stuff for sony recently so I know most of the pitfalls. > > It depends on the how you want to use your classes and where you have > created the instance of the class. My example was using singletons. > > Can you explain a bit further how you are using your classes and how the > two > different swf's are using them and i shall try to help??? > > Cheers > > Michael Ypes > > > ___ > 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
Re: [Flashcoders] RE: Cross domain issue
Both apps are using delagate and eventdispature. problem I am having: the shell sets up this function onLoadInit (mc : MovieClip) { trace ("MOB onLoadInit: " + mc); passAlongParameters (); this.getPlayer = function () { return placeHolder_mc.embeddedPlayer.getPlayer (); } placeHolder_mc.embeddedPlayer.onInitError = Delegate.create (this, onInitError); placeHolder_mc.embeddedPlayer.onInitComplete = Delegate.create(this, onInitComplete); placeHolder_mc.embeddedPlayer.getEmbedOverrides = Delegate.create (this, getEmbedOverrides); } function onInitComplete () { trace ("MOB:onInitComplete: clipID=" + clipID); } and the swf being loaded in loads and I can see it traces out: onReady. We killed it, people. config.autoStart so i can tell this is fireing function onReady() { trace("onReady. We killed it, people. config.autoStart: " + config.autoStart); inited = true; onInitComplete(); /*_parent.onInitComplete(); _level0.embeddedPlayer.onInitComplete(); _parent._parent.onInitComplete(); _parent._parent._parent.onInitComplete(); /* } however it doesn't work. if I load an swf right next to the shell it does work?? Thanks in advance, mike On 4/23/07, Michael Ypes <[EMAIL PROTECTED]> wrote: I have had exactly the same problem as I have been doing a lot of cross domain policy stuff for sony recently so I know most of the pitfalls. It depends on the how you want to use your classes and where you have created the instance of the class. My example was using singletons. Can you explain a bit further how you are using your classes and how the two different swf's are using them and i shall try to help??? Cheers Michael Ypes ___ 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] Cross domain issue
I am loading an swf using load The swf I am loading is from another domain. the crossdomain.xml is working and it is loading. however the component inside of it can't seem to have its functions delegated or through custom events. when I load the same swf from the same domain it works fine. I read on blurb that crossdomain movies can not share classes might this be the problem? Mike ___ 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] I have small doubt
A server side item in asp, php etc... has to do the actual righting of the file. flash can not. On 3/18/07, sirajudeen kamarul jaman <[EMAIL PROTECTED]> wrote: >hi toeverybody, > >this is first time to joining the team.i have small doubt. i have one xml >file that file containing >two fields,student name and question.how to update the xml file from flash. >Is it possible to update the xml node? > >thanks for ur advacne replay > >_ >Voice your questions and our experts will answer them >http://content.msn.co.in/Lifestyle/AskExpert/Default01.htm > >___ >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 _ Catch the complete World Cup coverage with MSN http://content.msn.co.in/Sports/Cricket/Default.aspx ___ 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
Re: [Flashcoders] Inspectable parameters ignored in my 1st component
what you want to do is add an inittext varible to hold the param until you finish initializing you text box and then push it in. this code works/ I tested it. the lines I added are 3 and have "// line added MOB" at the end of them. MIke boski.com import mx.core.UIComponent; /* simple component, a text field inside of yellow rectangle */ class TestCase extends UIComponent { static var symbolName:String = 'TestCase'; static var symbolOwner:Object = TestCase; var className:String = 'TestCase'; public var inittext:String; // line added MOB private var bb_mc:MovieClip; private var rect_mc:MovieClip; private var text_txt:TextField; function TestCase() { } private function init():Void { super.init(); bb_mc.unloadMovie(); } private function createChildren():Void { rect_mc = this.createEmptyMovieClip('rect_mc', this.getNextHighestDepth()); text_txt = this.createTextField('text_txt', this.getNextHighestDepth(), 0, 0, 20, 20); text_txt.autoSize = true; text_txt.text = inittext; // line added MOB size(); } // invoked when component is resized private function size():Void { super.size(); invalidate(); } // called after invalidate() private function draw():Void { super.draw(); var w = text_txt.textWidth + 16; var h = text_txt.textHeight + 16; //trace(text_txt.text + ': ' + w + ' x ' + h); with (rect_mc) { clear(); lineStyle(0, 0x00, 100); beginFill(0x66, 100); moveTo(0, 0); lineTo(w, 0); lineTo(w, h); lineTo(0, h); lineTo(0, 0); endFill(); } } [Inspectable(defaultValue="Set in TestCase.as - does not work", type='String')] public function set text(str:String):Void { inittext = str; // line added MOB text_txt.text = str; invalidate(); } public function get text():String { return text_txt.text; } } On 3/18/07, Alexander Farber <[EMAIL PROTECTED]> wrote: Hello Nel and others, On 3/14/07, Johannes Nel <[EMAIL PROTECTED]> wrote: > [Inspectable(defaultValue="8", type="Number")] > > On 3/14/07, Alexander Farber <[EMAIL PROTECTED]> wrote: > > I'm trying to create a component representing a comic-like > > chat bubble and while it mostly functions fine, > > I have a problem, that the 2 parameters here are ignored > > (full source code: http://preferans.de/flash/Bubble.as ): sorry it takes me sometime to reply, because I only do flash at weekends and evenings when I have time. Your suggestion unfortunately doesn't help anything. I have prepared a simple test case - a simple component, with a text field inside a yellow rectangle. There is 1 inspectable value - "text", changed by 2 set/get functions. My problem is that eventhough I see the "text" in the component inspector (Alt-F7), changing the value there doesn't have any effect, the initial text isn't displayed: import mx.core.UIComponent; /* simple component, a text field inside of yellow rectangle */ class TestCase extends UIComponent { static var symbolName:String = 'TestCase'; static var symbolOwner:Object = TestCase; var className:String = 'TestCase'; private var bb_mc:MovieClip; private var rect_mc:MovieClip; private var text_txt:TextField; function TestCase() { } private function init():Void { super.init(); bb_mc.unloadMovie(); } private function createChildren():Void { rect_mc = this.createEmptyMovieClip('rect_mc', this.getNextHighestDepth()); text_txt = this.createTextField('text_txt', this.getNextHighestDepth(), 0, 0, 20, 20); text_txt.autoSize = true; //text_txt.text = 'Only this works as default?'; size(); } // invoked when component is resized private function size():Void { super.size(); invalidate(); } // called after invalidate() private function draw():Void { super.draw(); var w = text_txt.textWidth; var h = text_txt.textHeight; //trace(text_txt.text + ': ' + w + ' x ' + h); with (rect_mc) { clear(); lineStyle(0, 0x00, 100); beginFill(0x66, 100); moveTo(0, 0);
[Flashcoders] Flash, PHP and mysql Costumer Database
Does anyone know an open source Flash, PHP and mysql Costumer Database. (with generic fields name, address ...) Or even on that you purchase the code. if it uses AMFphp all the better. thanks, mike ___ 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