[Flashcoders] Flash CS5 iPhone development question
Hi, Have'nt seem much discussion on this subject yet. I am starting to experiment with the iPhone packager and had few questions. Any idea how to store data locally? For example Game Levels or Application data etc.? Can Flash CS5 make use of SqLite database? Any tutorials available? Thanks and I will keep posting my experiment results here. So far, it seems to work smoothly. I am going to try more intensive apps to explore the limits. -Sajid ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] getChildByName problem
Ok, As a quick workaround, I removed the nesting of movieclips and put them all in first frame. I made them all hidden (alpha=0) and then show them as needed. This works but its not the idea way for me :( I will still be looking for a good solution to this one. Thanks On Mon, Nov 23, 2009 at 2:50 PM, Sajid Saiyed sajid.fl...@gmail.com wrote: I am on CS3 with Flash Player 9. Is there a way to deal with this in Player 9? Thanks On Mon, Nov 23, 2009 at 2:36 PM, Henrik Andersson he...@henke37.cjb.net wrote: The playhead vs actionscript situation is a mess in Flash since as 3 first came out. This is the end result of flex being the only tool to test with. But enough ranting about that. First make sure that your swf is published for FP 10, if it is, the situation is better. If this is not enough (or possible), there are two ways of executing code before the rendering, but after the frame change. The first one is simple framescripts. They run when the frame in question is loaded, so per definition, they can't run too late. The other way is the FP 10 new event FRAME_CONSTRUCTED that is fired just before the framescripts are executed. ___ 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] addChild and Array problem
Hi, Not sure if this is what is causing my problem. I have an array called __viewsArray Then I created 3 new movieclips which I added to the Array. Like this: __viewsArray = new Array(); __view1MC = new MovieClip(); __view2MC = new MovieClip(); __view3MC = new MovieClip(); addChild(__view1MC); addChild(__view2MC); addChild(__view3MC); __viewsArray.push(__view1MC); __viewsArray.push(__view2MC); __viewsArray.push(__view3MC); Now, I create new instances of Loader and add them to the three viewMC's. . myLoader = new Loader(); myLoader.name = MC; myLoader.load(fileRequest); ... // I am removing the code of the loader listener, but u can be sure that I am checking for the load event to complete here... ... __viewsArray[i].addChild(myLoader); . So far so good. When I loop through the __viewsArray, I can do the : __viewsArray[j].getChildByName(MC); no errors. Now, I decide to shuffle the array. So I did: var tempArray = __viewsArray.pop(); __viewsArray.unshift(tempArray); Now when I loop through the array, I get a null object reference. Is it because I am shuffling the array or is it due to something else? Cant figure this one out :( Thanks for any help. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] getChildByName problem
Hi, I dont know what am I doing wrong here. I have a library item linked to a class. The class creates the instance of the symbol. Then I addChild The symbol has three keyframes on the timeline (by default stopping at first frame). Each frame has different movieclips. INside these movieclips, there are some more movieclips. So lets assume this is the structure of my library symbol: canvas (library item name) | (frame-1) canvasOne (instance name) ||-- mc1 (instance name) ||-- mc2 (instance name) ||-- mc3 (instance name) | (frame-2) canvasTwo (instance name) ||-- mc1 (instance name) ||-- mc2 (instance name) | (frame-3) canvasThree (instance name) |-- mc1 (instance name) |-- mc2 (instance name) |-- mc3 (instance name) Now, when I call the following from within my class, it works: /* code */ this.canvas.gotoAndStop(2); but the next line fails / this.canvas.canvasTwo.getInstanceByName(mc1); Any Idea? Thanks a lot... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] getChildByName problem
I am on CS3 with Flash Player 9. Is there a way to deal with this in Player 9? Thanks On Mon, Nov 23, 2009 at 2:36 PM, Henrik Andersson he...@henke37.cjb.net wrote: The playhead vs actionscript situation is a mess in Flash since as 3 first came out. This is the end result of flex being the only tool to test with. But enough ranting about that. First make sure that your swf is published for FP 10, if it is, the situation is better. If this is not enough (or possible), there are two ways of executing code before the rendering, but after the frame change. The first one is simple framescripts. They run when the frame in question is loaded, so per definition, they can't run too late. The other way is the FP 10 new event FRAME_CONSTRUCTED that is fired just before the framescripts are executed. ___ 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] Setting a property in a class from another class
Hi, I have a basic problem that I cant figure out how... I have a ClassA and ClassB (both extend Sprite) ClassA has a property called nextPrev:Boolean Inside ClassA I create an instance of ClassB like this: public var myB:ClassB = new ClassB(); Now, is it possible that I can have a method inside ClassB that can set the nextPrev property inside ClassA? Dont know if this is possible... 4 Regards ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Problem understanding Class heirarchy issue
Ok, Here is a bit more information. ClassA (works pefrectly fine): --- package com.folder.subfolder { import flash.display.*; import flash.events.*; import flash.filters.*; import flash.utils.Timer; import com.folder.subfolder.*; public class ClassA extends ClassC { public var myMenu: ClassB; public function ClassA (){ addEventListener(ClassC.moveUP, someFunction); } public function someFunction(){ myMenu = new ClassB(); myMenu.name = mymenu; this.addChild(myMenu); } } } ClassB --- package com.folder.subfolder { import flash.display.*; import flash.events.*; import flash.filters.*; import flash.utils.Timer; import com.folder.subfolder.*; public class ClassB extends ClassC { public function ClassB (){ // This is not getting called. } } } Does this explanation help a bit?? Am I looking at the right place for the problem or the problem could be somewhere else? Thanks Sajid On Mon, Aug 31, 2009 at 10:46 PM, jonathan howejonathangh...@gmail.com wrote: Are you defining a subclass constructor and then failing to explicitly call the super() (superclass's constructor)? On Mon, Aug 31, 2009 at 8:37 AM, Sajid Saiyed sajid.fl...@gmail.com wrote: I am already importing all the classes in the package. Still cant seem to get my head around this. Maybe later today I will post excerpts of my classes here. That might help. Regards Sajid On Mon, Aug 31, 2009 at 6:14 PM, Corc...@chello.nl wrote: Not knowing what you are trying to do, you have to import ClassB to instantiate it in ClassA. HTH Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sajid Saiyed Sent: maandag 31 augustus 2009 12:06 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Problem understanding Class heirarchy issue Hi, I have following Class structure: ClassA extends ClassC ClassB extends ClassC ClassC extends ClassD ClassD extends MovieClip Now, If I instantiate ClassB from ClassA, the constructor does not execute. note: Inside ClassB, I am instantiating another ClassE which extends MovieClip Is there something I am doing wrong? ___ 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 -- -jonathan howe ___ 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] Problem understanding Class heirarchy issue
yes, someFunction is getting called. If I change ClassB to: public class ClassB extends MovieClip or public class ClassB extends Sprite Then the constructor gets called. I still have to try super() as suggested by Steven (I am at home now so dont have the code with me) So Steven, Do youmean that I just add super() in the first line of ClassA constructor? Regards Sajid On Tue, Sep 1, 2009 at 11:03 PM, Jim Lafserjimlaf...@yahoo.com wrote: Have you verified that someFunciton is getting called? Is someFunction getting called in the scope that you expect? May need to use: addEventListener(ClassC.moveUP, Delegate.create(this, someFunction); to get someFunciton to run in the scope that you expect. --- On Tue, 9/1/09, Steven Sacks flash...@stevensacks.net wrote: From: Steven Sacks flash...@stevensacks.net Subject: Re: [Flashcoders] Problem understanding Class heirarchy issue To: Flash Coders List flashcoders@chattyfig.figleaf.com Date: Tuesday, September 1, 2009, 9:11 AM You're not calling super() in the ClassA constructor. On Aug 31, 2009, at 11:12 PM, Sajid Saiyed wrote: Ok, Here is a bit more information. ClassA (works pefrectly fine): --- package com.folder.subfolder { import flash.display.*; import flash.events.*; import flash.filters.*; import flash.utils.Timer; import com.folder.subfolder.*; public class ClassA extends ClassC { public var myMenu: ClassB; public function ClassA (){ addEventListener(ClassC.moveUP, someFunction); } public function someFunction(){ myMenu = new ClassB(); myMenu.name = mymenu; this.addChild(myMenu); } } } ClassB --- package com.folder.subfolder { import flash.display.*; import flash.events.*; import flash.filters.*; import flash.utils.Timer; import com.folder.subfolder.*; public class ClassB extends ClassC { public function ClassB (){ // This is not getting called. } } } Does this explanation help a bit?? Am I looking at the right place for the problem or the problem could be somewhere else? Thanks Sajid ___ 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] Problem understanding Class heirarchy issue
Hi, Thanks all of you for adding your valuable inputs, I am reviewing all suggestions. Meanwhile, I would like to say that, I am not writing anything in my FLA. (I guess thats the best practice, is it correct?) So, ONlything I do in the FLA is declare ClassA as my document root class. Could that be the problem? Also the trace in my someFunction is getting called. Then immediately after the trace, I have the code to instantiate ClassB. The trace immediately after this instantiation does not appear. Regards Sajid On Wed, Sep 2, 2009 at 8:06 AM, Muzakp.ginnebe...@telenet.be wrote: Works fine here: ClassA extends ClassC ClassB extends ClassC ClassC extends ClassD ClassD extends MovieClip // ClassA package { import flash.events.Event; public class ClassA extends ClassC { public var b:ClassB; public function ClassA():void { trace(ClassA ::: CONSTRUCTOR); addEventListener(ClassC.MOVE_UP, moveUpHandler); } protected function moveUpHandler(event:Event):void { trace(ClassA ::: moveUpHandler); b = new ClassB(); trace( - instance 'b': , b); } } } // ClassB package { public class ClassB extends ClassC { public function ClassB():void { trace(ClassB ::: CONSTRUCTOR); } } } // ClassC package { public class ClassC extends ClassD { public static const MOVE_UP:String = moveUp; public function ClassC():void { trace(ClassC ::: CONSTRUCTOR); } } } // ClassD package { import flash.display.MovieClip; public class ClassD extends MovieClip { public function ClassD():void { trace(ClassD ::: CONSTRUCTOR); } } } In FLA: var a = new ClassA(); trace( - instance 'a': , a); trace( - disptaching MOVE_UP event on 'a'); a.dispatchEvent(new Event(ClassC.MOVE_UP)); //Output ClassD ::: CONSTRUCTOR ClassC ::: CONSTRUCTOR ClassA ::: CONSTRUCTOR - instance 'a': [object ClassA] - disptaching MOVE_UP event on 'a' ClassA ::: moveUpHandler ClassD ::: CONSTRUCTOR ClassC ::: CONSTRUCTOR ClassB ::: CONSTRUCTOR - instance 'b': [object ClassB] Exactly as expected. From what I can tell, it doesn't really matter which class extends which. The only thing that matters is that the MOVE_UP event handler (moveUpHandler) in ClassA gets called, which happens when I dispatch a MOVE_UP event on 'a' in the fla. regards, Muzak - Original Message - From: Sajid Saiyed sajid.fl...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tuesday, September 01, 2009 8:12 AM Subject: Re: [Flashcoders] Problem understanding Class heirarchy issue Ok, Here is a bit more information. ClassA (works pefrectly fine): --- package com.folder.subfolder { import flash.display.*; import flash.events.*; import flash.filters.*; import flash.utils.Timer; import com.folder.subfolder.*; public class ClassA extends ClassC { public var myMenu: ClassB; public function ClassA (){ addEventListener(ClassC.moveUP, someFunction); } public function someFunction(){ myMenu = new ClassB(); myMenu.name = mymenu; this.addChild(myMenu); } } } ClassB --- package com.folder.subfolder { import flash.display.*; import flash.events.*; import flash.filters.*; import flash.utils.Timer; import com.folder.subfolder.*; public class ClassB extends ClassC { public function ClassB (){ // This is not getting called. } } } Does this explanation help a bit?? Am I looking at the right place for the problem or the problem could be somewhere else? Thanks Sajid On Mon, Aug 31, 2009 at 10:46 PM, jonathan howejonathangh...@gmail.com wrote: Are you defining a subclass constructor and then failing to explicitly call the super() (superclass's constructor)? On Mon, Aug 31, 2009 at 8:37 AM, Sajid Saiyed sajid.fl...@gmail.com wrote: I am already importing all the classes in the package. Still cant seem to get my head around this. Maybe later today I will post excerpts of my classes here. That might help. Regards Sajid On Mon, Aug 31, 2009 at 6:14 PM, Corc...@chello.nl wrote: Not knowing what you are trying to do, you have to import ClassB to instantiate it in ClassA. HTH Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sajid Saiyed Sent: maandag 31 augustus 2009 12:06 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Problem understanding Class heirarchy issue Hi, I have following Class structure: ClassA extends ClassC ClassB extends ClassC ClassC extends ClassD ClassD extends MovieClip Now, If I instantiate ClassB from ClassA, the constructor does not execute. note: Inside ClassB, I am instantiating another ClassE which extends MovieClip Is there something I am doing
Re: [Flashcoders] Problem understanding Class heirarchy issue
Hi, In ClassA, the someFunction definition is: public function someFunction(){ trace(this, Some function called); objectB = new ClassB(); objectB.name = myobjectB; this.addChild(objectB); trace(this, This is not getting called); } Regards Sajid On Wed, Sep 2, 2009 at 10:07 AM, Sajid Saiyedsajid.fl...@gmail.com wrote: Hi, Thanks all of you for adding your valuable inputs, I am reviewing all suggestions. Meanwhile, I would like to say that, I am not writing anything in my FLA. (I guess thats the best practice, is it correct?) So, ONlything I do in the FLA is declare ClassA as my document root class. Could that be the problem? Also the trace in my someFunction is getting called. Then immediately after the trace, I have the code to instantiate ClassB. The trace immediately after this instantiation does not appear. Regards Sajid On Wed, Sep 2, 2009 at 8:06 AM, Muzakp.ginnebe...@telenet.be wrote: Works fine here: ClassA extends ClassC ClassB extends ClassC ClassC extends ClassD ClassD extends MovieClip // ClassA package { import flash.events.Event; public class ClassA extends ClassC { public var b:ClassB; public function ClassA():void { trace(ClassA ::: CONSTRUCTOR); addEventListener(ClassC.MOVE_UP, moveUpHandler); } protected function moveUpHandler(event:Event):void { trace(ClassA ::: moveUpHandler); b = new ClassB(); trace( - instance 'b': , b); } } } // ClassB package { public class ClassB extends ClassC { public function ClassB():void { trace(ClassB ::: CONSTRUCTOR); } } } // ClassC package { public class ClassC extends ClassD { public static const MOVE_UP:String = moveUp; public function ClassC():void { trace(ClassC ::: CONSTRUCTOR); } } } // ClassD package { import flash.display.MovieClip; public class ClassD extends MovieClip { public function ClassD():void { trace(ClassD ::: CONSTRUCTOR); } } } In FLA: var a = new ClassA(); trace( - instance 'a': , a); trace( - disptaching MOVE_UP event on 'a'); a.dispatchEvent(new Event(ClassC.MOVE_UP)); //Output ClassD ::: CONSTRUCTOR ClassC ::: CONSTRUCTOR ClassA ::: CONSTRUCTOR - instance 'a': [object ClassA] - disptaching MOVE_UP event on 'a' ClassA ::: moveUpHandler ClassD ::: CONSTRUCTOR ClassC ::: CONSTRUCTOR ClassB ::: CONSTRUCTOR - instance 'b': [object ClassB] Exactly as expected. From what I can tell, it doesn't really matter which class extends which. The only thing that matters is that the MOVE_UP event handler (moveUpHandler) in ClassA gets called, which happens when I dispatch a MOVE_UP event on 'a' in the fla. regards, Muzak - Original Message - From: Sajid Saiyed sajid.fl...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tuesday, September 01, 2009 8:12 AM Subject: Re: [Flashcoders] Problem understanding Class heirarchy issue Ok, Here is a bit more information. ClassA (works pefrectly fine): --- package com.folder.subfolder { import flash.display.*; import flash.events.*; import flash.filters.*; import flash.utils.Timer; import com.folder.subfolder.*; public class ClassA extends ClassC { public var myMenu: ClassB; public function ClassA (){ addEventListener(ClassC.moveUP, someFunction); } public function someFunction(){ myMenu = new ClassB(); myMenu.name = mymenu; this.addChild(myMenu); } } } ClassB --- package com.folder.subfolder { import flash.display.*; import flash.events.*; import flash.filters.*; import flash.utils.Timer; import com.folder.subfolder.*; public class ClassB extends ClassC { public function ClassB (){ // This is not getting called. } } } Does this explanation help a bit?? Am I looking at the right place for the problem or the problem could be somewhere else? Thanks Sajid On Mon, Aug 31, 2009 at 10:46 PM, jonathan howejonathangh...@gmail.com wrote: Are you defining a subclass constructor and then failing to explicitly call the super() (superclass's constructor)? On Mon, Aug 31, 2009 at 8:37 AM, Sajid Saiyed sajid.fl...@gmail.com wrote: I am already importing all the classes in the package. Still cant seem to get my head around this. Maybe later today I will post excerpts of my classes here. That might help. Regards Sajid On Mon, Aug 31, 2009 at 6:14 PM, Corc...@chello.nl wrote: Not knowing what you are trying to do, you have to import ClassB to instantiate it in ClassA. HTH Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sajid Saiyed Sent: maandag 31 augustus 2009 12:06 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Problem understanding
[Flashcoders] Problem understanding Class heirarchy issue
Hi, I have following Class structure: ClassA extends ClassC ClassB extends ClassC ClassC extends ClassD ClassD extends MovieClip Now, If I instantiate ClassB from ClassA, the constructor does not execute. note: Inside ClassB, I am instantiating another ClassE which extends MovieClip Is there something I am doing wrong? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Problem understanding Class heirarchy issue
I am already importing all the classes in the package. Still cant seem to get my head around this. Maybe later today I will post excerpts of my classes here. That might help. Regards Sajid On Mon, Aug 31, 2009 at 6:14 PM, Corc...@chello.nl wrote: Not knowing what you are trying to do, you have to import ClassB to instantiate it in ClassA. HTH Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sajid Saiyed Sent: maandag 31 augustus 2009 12:06 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Problem understanding Class heirarchy issue Hi, I have following Class structure: ClassA extends ClassC ClassB extends ClassC ClassC extends ClassD ClassD extends MovieClip Now, If I instantiate ClassB from ClassA, the constructor does not execute. note: Inside ClassB, I am instantiating another ClassE which extends MovieClip Is there something I am doing wrong? ___ 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] CLICK event not getting fired
Hi, Although a bit late, I am making a move to AS3 and facing some issues. After banging my head around a bit, I would like to ask for some help :) My CLICK event is not getting detected from withing my class file. In the code snippets below, the reportClick function is not getting triggered when I click my mouse in stage. Here is how the files are setup: ** MyGesture.as package Gestures { import flash.display.*; import flash.events.*; import flash.filters.*; public class MyGesture extends MovieClip { public function MyGesture(){ addEventListener(MouseEvent.CLICK, reportClick); } function reportClick(e:Event) { trace(reportClick); //dispatchEvent(new Event(MyGesture.clickOK)); } } } ** Mediaplayback.as (This is my Document Class) package Gestures { import flash.display.*; import flash.events.*; import flash.filters.*; import Gestures.MyGesture; public class Mediaplayback extends MovieClip { private var my_gesture:MyGesture = new MyGesture(); public function Mediaplayback(){ addChild(my_gesture); } } } Can someone tell me what I am doing wrong? Thanks a lot Sajid ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] CLICK event not getting fired
HI, I did this: public function MyGesture(){ this.buttonMode=true; } but it still does not fire... Any idea what might be causing this problem? The MyGesture class is instantiated from Mediaplayback.as (which is my document class). Could this nesting be the problem? Sajid On Mon, Aug 17, 2009 at 10:44 AM, Latchospamtha...@gmail.com wrote: try a 'this.buttonMode=true' on MyGesture class Latcho Sajid Saiyed wrote: Hi, Although a bit late, I am making a move to AS3 and facing some issues. After banging my head around a bit, I would like to ask for some help :) My CLICK event is not getting detected from withing my class file. In the code snippets below, the reportClick function is not getting triggered when I click my mouse in stage. Here is how the files are setup: ** MyGesture.as package Gestures { import flash.display.*; import flash.events.*; import flash.filters.*; public class MyGesture extends MovieClip { public function MyGesture(){ addEventListener(MouseEvent.CLICK, reportClick); } function reportClick(e:Event) { trace(reportClick); //dispatchEvent(new Event(MyGesture.clickOK)); } } } ** Mediaplayback.as (This is my Document Class) package Gestures { import flash.display.*; import flash.events.*; import flash.filters.*; import Gestures.MyGesture; public class Mediaplayback extends MovieClip { private var my_gesture:MyGesture = new MyGesture(); public function Mediaplayback(){ addChild(my_gesture); } } } Can someone tell me what I am doing wrong? Thanks a lot Sajid ___ 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] CLICK event not getting fired
Ok, I should have given a bit more background. I am trying to detect a CLICK anywhere on the (blank) stage. Only when the user clicks somewhere on stage, I want to show something. How can I do this? Do I still need to draw something? Sajid On Mon, Aug 17, 2009 at 11:50 AM, Latchospamtha...@gmail.com wrote: Are you sure there is a graphic in the myGesture movieclip ? You need something to click on. Do you see the handcursor with buttonMode = true ? Otherwise try this as a test in the MyGesture constructor asn make sure you see a square, then check for handCursor, then click it. Mind that the the square is a background graphic so children of MyGesture can overlap this.buttonMode = true; this.mouseEnabled = true; this.mouseChildren = false; this.graphics.beginFill(0xFF00FF,1); this.graphics.drawRect(0, 0, 100, 100); this.graphics.endFill(); Sajid Saiyed wrote: Hi Anna, Thanks. Forgot to mention that I tried MouseEvent as well and no luck :( Seems so strange I am sure I am missing something basic here. Sajid On Tue, Aug 18, 2009 at 11:23 AM, Annavean...@gmail.com wrote: On Mon, Aug 17, 2009 at 9:32 PM, Sajid Saiyed sajid.fl...@gmail.com wrote: Hi, Although a bit late, I am making a move to AS3 and facing some issues. After banging my head around a bit, I would like to ask for some help :) My CLICK event is not getting detected from withing my class file. In the code snippets below, the reportClick function is not getting triggered when I click my mouse in stage. Here is how the files are setup: ** MyGesture.as package Gestures { import flash.display.*; import flash.events.*; import flash.filters.*; public class MyGesture extends MovieClip { public function MyGesture(){ addEventListener(MouseEvent.CLICK, reportClick); } function reportClick(e:Event) { trace(reportClick); //dispatchEvent(new Event(MyGesture.clickOK)); } } } Can someone tell me what I am doing wrong? Sajid, Try changing function reportClick(e:Event) to function reportClick(e:MouseEvent) In my understanding, AS3 treats Event and MouseEvent differently. Hopefully, this helps. Regards, Anna ___ 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] Dynamically changing FLV framerate
Hi, Does anyone know a way to dynamically change the framerate of a FLV file? I want to simulate fast forward and rewind (with different speeds). I am able to change the framerate of the flash movie but that does not affect the FLV thats playing in the Video component :( Any suggestions please? -- sajid ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] html text in two columns
Hi, Here is a hack or a workaround to achieve it: http://www.ssdesigninteractive.com/ssdesign/?p=91 Regards Sajid On 1/4/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote: Hi to all Is it possible to show html text in columns if text has more than one line? content.html=true; content.wordWrap=true; content.multiline=true; content.autoSize=left; content.condenseWhite=true; content.htmlText='TEXTFORMAT tabStops=[140]block1TAB block2 headerbr block2 long text/TEXTFORMAT' with this example block2 header has indent but block 2 text does not have it. Thank you for any help. ___ 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] html text in two columns
Or else, try this: content.html=true; content.wordWrap=true; content.multiline=true; content.autoSize=left; content.condenseWhite=true; content.htmlText='TEXTFORMAT tabStops=[140]block1TAB block2 headerbrTABblock2 long text/TEXTFORMAT' You had to add a Tab before block2 long text. Regards Sajid On 1/4/07, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi, Here is a hack or a workaround to achieve it: http://www.ssdesigninteractive.com/ssdesign/?p=91 Regards Sajid On 1/4/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote: Hi to all Is it possible to show html text in columns if text has more than one line? content.html=true; content.wordWrap=true; content.multiline=true; content.autoSize=left; content.condenseWhite=true; content.htmlText='TEXTFORMAT tabStops=[140]block1TAB block2 headerbr block2 long text/TEXTFORMAT' with this example block2 header has indent but block 2 text does not have it. Thank you for any help. ___ 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] Alternate row color (Modulo Operator)
Hi, I have a question about using Modulo Operator. I can easily do an Odd / Even using i%2 !=0 Where i can be any supllied number. My question is, I have a list of movieclips (arranged one below another). I want to use 4 different colours to differentiate them. So, list items 1, 5, 9, ... will have Color-1. items 2, 6, 10, ... will have another Color-2. items 3, 7, 11, ... will have third Colou-3. items 4, 8, 12, ... will have fourth Color-4. And so on Can someone point me to the right direction as to how I should use the moludo? Wether modulo operator is the right way to do this? 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
Re: [Flashcoders] Best Flash data access way opinions
I prefer PHP with Flash. I find many PHP functions very easy to do the job that could take a while doing within Flash. I also feel PHP has a much larger support community. -- Sajid On 6/22/06, Merrill, Jason [EMAIL PROTECTED] wrote: I thought Bank of America was a flagship CF environment! Bank of America has over 172,000 employees - so you can imagine we have more than one server and more than one server admin. :) I haven't heard CF mentioned once, but I've only been here 2 months. You sent those Adobe links - that doesn't necessarily mean we are a CF Flagship it just means somewhere in the company they are using it and Adobe got wind and worked on some marketing with us. Large companies use a LOT of different technologies as you can imagine. We're all .NET over here in the group I am in, but I was also speaking more to my last job working with Govt. Clients in D.C. for the past 5 years. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions ___ 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] Alternate row color (Modulo Operator)
Perfect, Mike this worked. Thanks a lot. On 6/23/06, Mike [EMAIL PROTECTED] wrote: In a class, like so: public static var ITEM_COLORS:Array = [0xFF, 0x00FF00, 0xFF, 0xFF]; // (or whichever colors) // assuming property countItem is the number of items // and the method getItem retrieves an item with a color property private function colorItems():Void { for (var i:Number = 0; i countItem; ++i) { getItem(i).color = ITEM_COLORS[i % ITEM_COLORS.length]; } } Note that in this scheme the index number starts at 0, not 1. That's a better practice in general. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sajid Saiyed Sent: Thursday, June 22, 2006 10:54 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Alternate row color (Modulo Operator) Hi, I have a question about using Modulo Operator. I can easily do an Odd / Even using i%2 !=0 Where i can be any supllied number. My question is, I have a list of movieclips (arranged one below another). I want to use 4 different colours to differentiate them. So, list items 1, 5, 9, ... will have Color-1. items 2, 6, 10, ... will have another Color-2. items 3, 7, 11, ... will have third Colou-3. items 4, 8, 12, ... will have fourth Color-4. And so on Can someone point me to the right direction as to how I should use the moludo? Wether modulo operator is the right way to do this? 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@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] Overflowing dynamic text fields
Hi, Can someone show me an example of this? I am still struggling to get this work :( Any help or suggestion appreciated. thanks --sajid On 5/24/06, Arul Prasad [EMAIL PROTECTED] wrote: Sajid, how about this: Keep adding text in parts into the textfield, and everytime check its scroll property. The moment value of scroll property changes, stop and put the rest into the next textfield. what say ? ~Arul Prasad. On 5/24/06, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi, Was wondering if anyone has tried tis defore. Most of the magazine layouts are multi-column. LIke two column vertical or three column vertical. Is there a way in Flash to create two vertical dynamic text fields and get content from external file and when the text reaches the end of the first box, it gets cropped and overflows to the secont text field. Looking for some hints to achieve this. 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@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] XML load and Draw line problem
Hi All, I am faced with a strange problem. I have a XML which I am loading into the Flash movie and then iterate through it and store values in an array. Then I run through the array and want to drag BOXES using the drawing api. Here is my Flash Code: - //-- CODE START -- // RootNodes = []; SubRootNodes = []; tempArray = []; LoadXML(layout.xml); function LoadXML(myXMLPath) { var layout_xml:XML = new XML(); layout_xml.ignoreWhite = true; layout_xml.onLoad = function(success:Boolean) { trace(success: +success); trace(loaded: +layout_xml.loaded); trace(status: +layout_xml.status); if (success) { nodeLen = layout_xml.firstChild.childNodes.length; trace(nodeLen : +nodeLen); for (var i = 0; inodeLen; i++) { RootNodes.push(layout_xml.firstChild.childNodes[i].nodeName); var node_xml = layout_xml.firstChild.childNodes[i].childNodes; rootnodeLen = node_xml.length; for (var j = 0; jrootnodeLen; j++) { tempValues = []; for (var k = 0; knode_xml[j].childNodes.length; k++) { tempValues.push(node_xml[j].childNodes[k].firstChild); } tempArray.push(tempValues); trace(); } } tracer() } }; layout_xml.load(myXMLPath); } function tracer() { num = 0; for (var i = 0; itempArray.length; i++) { trace(Array trace: +tempArray[i]); var Name = tempArray[i][0]; var Width = tempArray[i][1]; var Height = tempArray[i][2]; var XPos = tempArray[i][3]; var YPos = tempArray[i][4]; num++; trace(WIDTH: +Width+ HEIGHT: +Height+ XPOS: +XPos+ YPOS: +YPos); var newMC = _root.createEmptyMovieClip(box+num, _root.getNextHighestDepth()); trace(New MC: +newMC); newMC.lineStyle(5, 0xff3300, 100); newMC.moveTo(XPos, YPos); newMC.lineTo(Width, YPos); newMC.lineTo(Width, Height); newMC.lineTo(XPos, Height); newMC.lineTo(XPos, YPos); } } //-- CODE END -- // Here is my layout.xml XML file: --- //-- CODE START -- // root LayerOne asset namesomename0.bmp/name width100/width height20/height xPos50/xPos yPos30/yPos /asset asset namesomename1.bmp/name width200/width height10/height xPos50/xPos yPos70/yPos /asset /LayerOne LayerTwo asset namesomename2.bmp/name width150/width height30/height xPos50/xPos yPos100/yPos /asset /LayerTwo /root //-- CODE END -- // The problem is, All the traces are coming fine but the movie does not draw anything :(( Any idea why its behaving like this? Is the XML causing the problem or the createEmptyMovieClilp() causing this problem. I also tried: trace(success: +success); trace(loaded: +layout_xml.loaded); trace(status: +layout_xml.status); /// Everything looked OK. Any suggestion or pointing to an error in my code is appreciated. 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
Re: [Flashcoders] XML load and Draw line problem
Hi, I figured out that if I hardcode the values things work, but if I use values from variables, nothing works. When I trace the variable values, they trace properly, then why cant I use them dynamically??? Thanks for any help. Sajid On 6/12/06, Sajid Saiyed [EMAIL PROTECTED] wrote: Ok, I had forgotten ingoreWhite, but still the code is not drawing anything :( Sajid On 6/12/06, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi Abdul, Thanks for your reply. I am still stuck because after trying your suggestion, if I do: layout_xml.firstChild.childNodes.length I get 5 instead of 2. Here is my revised code: /// RootNodes = []; SubRootNodes = []; tempArray = []; LoadXML(layout.xml); var layout_xml:XML = new XML(); layout_xml.onLoad = mx.utils.Delegate.create (this, onXMLLoad); layout_xml.load(layout.xml); function onXMLLoad (success:Boolean) { trace(layout_xml.firstChild.childNodes[0]); nodeLen = layout_xml.firstChild.childNodes.length; trace(nodeLen : +nodeLen); for (var i = 0; inodeLen; i++) { RootNodes.push(layout_xml.firstChild.childNodes[i].nodeName); var node_xml = layout_xml.firstChild.childNodes[i].childNodes; rootnodeLen = node_xml.length; for (var j = 0; jrootnodeLen; j++) { tempValues = []; for (var k = 0; knode_xml[j].childNodes.length; k++) { tempValues.push(node_xml[j].childNodes[k].firstChild); } tempArray.push(tempValues); trace(); } } tracer(); } function tracer() { num = 0; for (var i = 0; itempArray.length; i++) { trace(SAJID: +tempArray[i]); Name = tempArray[i][0]; Width = tempArray[i][1]; Height = tempArray[i][2]; XPos = tempArray[i][3]; YPos = tempArray[i][4]; num++; _root.createEmptyMovieClip(box+num, _root.getNextHighestDepth()); if (num == 1) { trace(SAJSA: +_root[box+num]); _root[box+num].lineStyle(5, 0xFF00FF, 100); _root[box+num].moveTo(XPos, YPos); _root[box+num].lineTo(Width, YPos); _root[box+num].lineTo(Width, Height); _root[box+num].lineTo(XPos, Height); _root[box+num].lineTo(XPos, YPos); } } } Thanks Sajid On 6/12/06, Abdul Qabiz [EMAIL PROTECTED] wrote: It's scope issue? I guess, tracer () is not found or executed in wrong scope. Use Delegate to fix this:- layout_xml.onLoad = mx.utils.Delegate.create (this, onXMLLoad); function onXMLLoad (success:Boolean) { ... } Check, if that fixes the problem. -abdul On 6/12/06, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi All, I am faced with a strange problem. I have a XML which I am loading into the Flash movie and then iterate through it and store values in an array. Then I run through the array and want to drag BOXES using the drawing api. Here is my Flash Code: - //-- CODE START -- // RootNodes = []; SubRootNodes = []; tempArray = []; LoadXML(layout.xml); function LoadXML(myXMLPath) { var layout_xml:XML = new XML(); layout_xml.ignoreWhite = true; layout_xml.onLoad = function(success:Boolean) { trace(success: +success); trace(loaded: +layout_xml.loaded); trace(status: +layout_xml.status); if (success) { nodeLen = layout_xml.firstChild.childNodes.length; trace(nodeLen : +nodeLen); for (var i = 0; inodeLen; i++) { RootNodes.push (layout_xml.firstChild.childNodes[i].nodeName); var node_xml = layout_xml.firstChild.childNodes[i].childNodes; rootnodeLen = node_xml.length; for (var j = 0; jrootnodeLen; j++) { tempValues = []; for (var k = 0; knode_xml[j].childNodes.length; k++) { tempValues.push (node_xml[j
Re: [Flashcoders] XML Parsing
Hi, My data is not this simple or static. I gave this sample XML just to explain the structure. The XML is going to be dynamic, hence I need to parse it using something like XPATH (I suppose). Regards On 6/5/06, Weldon MacDonald [EMAIL PROTECTED] wrote: If your data is that consistent and all you need is to transfer it to arrays, then why do you need xpath, you could write your own parser, using while loops, to do this in very little time. I'm not an experrt, but it seems to me that xpath is more useful for dynamic access to the xml. Is that not correct? If I am correct, an interesting question is; what is more efficient, transferring to arrays and using the arrays, or dynamically accessing the xml directly? On 6/5/06, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi, I have an XML like this: root totalLayers number5/number /totalLayers LayerOne asset namesomename0.bmp/name width20/width height10/height xPos50/xPos yPos30/yPos /asset asset namesomename1.bmp/name width20/width height10/height xPos50/xPos yPos30/yPos /asset /LayerOne Layertwo asset namesomename2.bmp/name width20/width height10/height xPos50/xPos yPos30/yPos /asset /LayerTwo /root I want to use XPATH or something similar to create dynamic arrays/string and store values respectivele like this: String: totalLayers = 5; LayerOne and LayerTwo will be a multidimentional array LayerOne[[asset[name,width,height,xpos,ypos]][asset[name,width,height,xpos,ypos]]...] LayerTwo[[asset[name,width,height,xpos,ypos]][asset[name,width,height,xpos,ypos]]...] etc... Any hint or suggestion...? ___ 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 -- Weldon MacDonald ___ 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] XML Parsing
Hi Ron, I can modify the XML structure and will not be a problem , I will try your suggested solution. Merill, I am trying to use XPATH feature built in Flash8. I will try your suggestino as well. Hope to get to a solution soom, but the discussion is surely helping me right now. Sajid On 6/5/06, Merrill, Jason [EMAIL PROTECTED] wrote: I believe it used to be, but anymore the difference is negligible. In my experience, on small data sets, it makes little difference. However, using attributes over nodes can in some cases decrease the actual size of the XML file or string by a factor of 3 or 4, do this can make a difference on larger data sets, especially the more complex ones. Jason Merrill Bank of America Learning Technology Solutions ___ 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] Overflowing dynamic text fields
Hi, Was wondering if anyone has tried tis defore. Most of the magazine layouts are multi-column. LIke two column vertical or three column vertical. Is there a way in Flash to create two vertical dynamic text fields and get content from external file and when the text reaches the end of the first box, it gets cropped and overflows to the secont text field. Looking for some hints to achieve this. 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] Flash Layout Manager
I am looking for some hints at creating a layout manager in Flash which will allow me to drag and drop movieclips on stage and at the same time, reposition other movieclips. Something like what you see at www.gtalkr.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] Flash Layout Manager
Hi Lee, Thats a pretty nice component but how do I use it to manage layout? I can slace movieclips with it, but didnt quiet get how to rearrange the layout. Hope you can share something on this. --sajid On 4/26/06, Lee McColl-Sylvester [EMAIL PROTECTED] wrote: Seriously though, I've built something similar. An admin system for a pageable kiosk app. It lets you reposition, resize, recolor, format text etc, though the actual adding of items is set in a .NET app. The core functionality behind it is a resizer class I built, which just so happens to be a tutorial component on the macromedia exchange website. Do a search in exchange for DR-Resizer or Lee McColl and you'll find it. Regards, Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sajid Saiyed Sent: 26 April 2006 12:04 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Flash Layout Manager I am looking for some hints at creating a layout manager in Flash which will allow me to drag and drop movieclips on stage and at the same time, reposition other movieclips. Something like what you see at www.gtalkr.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@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] Assigning actions to dynamic movieclips
Hi, Trying to figure this out. I want to create dynamic movieclips within a for loop and assign actions to each created movieclip. When I try to do it this way, it does not seem to work: if (screen_Name == Tab) { _root.depth++; var Tab_Int_MC = mainMC.createEmptyMovieClip(TabMenu_Int, _root.depth); for (var i = 0; i3; i++) { _root.depth++; Tab_Int_MC.attachMovie(GR_BG_TAB_icon_unselect_theme1, GR_BG_TAB_icon_unselect_theme1_+i, _root.depth); this[Tab+i] = Tab_Int_MC[GR_BG_TAB_icon_unselect_theme1_+i]; this[Tab+i]._x = 35*i; this[Tab+i]._y = 19; _root.depth++; Tab_Int_MC.attachMovie(GR_BG_TAB_icon_select_Theme1, GR_BG_TAB_icon_select_Theme1_+i, _root.depth); this[TT_hlt+i] = Tab_Int_MC[GR_BG_TAB_icon_select_Theme1_+i]; this[TT_hlt+i]._x = 35*i; this[TT_hlt+i]._y = 19; this[TT_hlt+i]._visible = false; this[Tab+i].onRollOver = function() { this[TT_hlt+i]._visible = true; drawOutline(this[Tab+i], TL); }; this[Tab+i].onRollOut = function() { this[TT_hlt+i]._visible = false; removeOutline(this[Tab+i]._parent.Highlight); }; this[Tab+i].onRelease = function() { DisplayData(this[Tab+i], xPos, yPos, width, height, left); }; } So I tried it this way also and it didnt work: if (screen_Name == Tab) { _root.depth++; var Tab_Int_MC = mainMC.createEmptyMovieClip(TabMenu_Int, _root.depth); for (var i = 0; i3; i++) { _root.depth++; Tab_Int_MC.attachMovie(GR_BG_TAB_icon_unselect_theme1, GR_BG_TAB_icon_unselect_theme1_+i, _root.depth); TT = this[Tab+i]; TT = Tab_Int_MC[GR_BG_TAB_icon_unselect_theme1_+i]; TT._x = 35*i; TT._y = 19; _root.depth++; Tab_Int_MC.attachMovie(GR_BG_TAB_icon_select_Theme1, GR_BG_TAB_icon_select_Theme1_+i, _root.depth); TT_hlt = this[TT_hlt+i]; TT_hlt = Tab_Int_MC[GR_BG_TAB_icon_select_Theme1_+i]; TT_hlt._x = 35*i; TT_hlt._y = 19; TT_hlt._visible = false; TT.onRollOver = function() { TT_hlt._visible = true; drawOutline(TT, TL); }; TT.onRollOut = function() { TT_hlt._visible = false; removeOutline(TT._parent.Highlight); }; TT.onRelease = function() { DisplayData(TT, xPos, yPos, width, height, left); }; } Can someone help me debug this? 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
Re: [Flashcoders] Assigning actions to dynamic movieclips
HI all, I modified it and now its working. Here is the revised code: if (screen_Name == Tab) { _root.depth++; var Tab_Int_MC = mainMC.createEmptyMovieClip(TabMenu_Int, _root.depth); var temp_Array1 = []; var temp_Array2 = []; for (var i = 0; i3; i++) { _root.depth++; Tab_Int_MC.attachMovie(GR_BG_TAB_icon_unselect_theme1, GR_BG_TAB_icon_unselect_theme1_+i, _root.depth); TT = this[Tab+i]; TT = Tab_Int_MC[GR_BG_TAB_icon_unselect_theme1_+i]; TT._x = 35*i; TT._y = 19; _root.depth++; Tab_Int_MC.attachMovie(GR_BG_TAB_icon_select_Theme1, GR_BG_TAB_icon_select_Theme1_+i, _root.depth); TT_hlt = this[TT_hlt+i]; TT_hlt = Tab_Int_MC[GR_BG_TAB_icon_select_Theme1_+i]; TT_hlt._x = 35*i; TT_hlt._y = 19; temp_Array1.push(TT); temp_Array2.push(TT_hlt); temp_Array2[i]._visible = false; //trace(TT); } for (var j = 0; jtemp_Array1.length; j++) { trace(J: +temp_Array1[j]); temp_Array1[j].me = temp_Array1[j]; temp_Array1[j].partner = temp_Array2[j]; temp_Array1[j].onRollOver = function() { //trace(this.me); this.partner._visible = true; drawOutline(this.me, TL); }; temp_Array1[j].onRollOut = function() { this.partner._visible = false; removeOutline(this.me._parent.Highlight); }; temp_Array1[j].onRelease = function() { DisplayData(this.me, xPos, yPos, width, height, left); }; } Sajid On 4/7/06, Arul Prasad [EMAIL PROTECTED] wrote: i tried picking up the for loop from ur code and trying it out, and am am able to see the rollOver fn being triggered. Not sure why it isnt working for u. If your mcs are not getting attached at all, probably u have to check if ur _root.depth variable has been initialized. ~Arul Prasad. On 4/7/06, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi, Trying to figure this out. I want to create dynamic movieclips within a for loop and assign actions to each created movieclip. When I try to do it this way, it does not seem to work: if (screen_Name == Tab) { _root.depth++; var Tab_Int_MC = mainMC.createEmptyMovieClip(TabMenu_Int, _root.depth); for (var i = 0; i3; i++) { _root.depth++; Tab_Int_MC.attachMovie(GR_BG_TAB_icon_unselect_theme1, GR_BG_TAB_icon_unselect_theme1_+i, _root.depth); this[Tab+i] = Tab_Int_MC[GR_BG_TAB_icon_unselect_theme1_+i]; this[Tab+i]._x = 35*i; this[Tab+i]._y = 19; _root.depth++; Tab_Int_MC.attachMovie(GR_BG_TAB_icon_select_Theme1, GR_BG_TAB_icon_select_Theme1_+i, _root.depth); this[TT_hlt+i] = Tab_Int_MC[GR_BG_TAB_icon_select_Theme1_+i]; this[TT_hlt+i]._x = 35*i; this[TT_hlt+i]._y = 19; this[TT_hlt+i]._visible = false; this[Tab+i].onRollOver = function() { this[TT_hlt+i]._visible = true; drawOutline(this[Tab+i], TL); }; this[Tab+i].onRollOut = function() { this[TT_hlt+i]._visible = false; removeOutline(this[Tab+i]._parent.Highlight); }; this[Tab+i].onRelease = function() { DisplayData(this[Tab+i], xPos, yPos, width, height, left); }; } So I tried it this way also and it didnt work: if (screen_Name == Tab) { _root.depth++; var Tab_Int_MC = mainMC.createEmptyMovieClip(TabMenu_Int, _root.depth); for (var i = 0; i3; i++) { _root.depth++; Tab_Int_MC.attachMovie(GR_BG_TAB_icon_unselect_theme1
[Flashcoders] named anchor with dynamic text field - Possible?
Hi, Is it possible to create named anchors in dynamic text field? Something similar to HTML named anchors where a link in the text jumps to another position with that anchor name. I searched the archives but could not get an answer. -- Sajid ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML Driven Application Driving me crazy :)
Do you need all the data beforehand? If not, Do paging with data by getting data in chunks from your DB. or As you mentioned, get data on demand. Thats how I recently solved a similar issue. -- Sajid On 1/31/06, Ing. Mario Falomir [EMAIL PROTECTED] wrote: Hi, I need some advice from you guys :) I have an XML Driven FLash APP, basically it's a tool that displays charts and data in grids, containers, etc...that my client will handout in CDs. So at the beginning of the development process I thought XML would suit perfectly in the purpose of this app. But it happened that the DB used to generate the apporpiate XML files that my app consume had grown amazingly so eventually my app (exclusively the part that searches for an specific registry entry) turns very slow and sometimes (rarely but happens) it crashes due to the exhaustive loops and interations i do in order to the search/display data of an specific registry and filtering functions. So i thouhgt, upon your experience, to ask how would you do to optimize this thing or what its the best way to do the queries to an XML in order smooth things a little bit more :) Or what approaches (or guidelines ) do you use when you have to develop an app. that will have XML to serve as its DB. Do you load everysingle XML at once ? on demand ? etc ? Thanks in advanced! Mario ___ 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] named anchor with dynamic text field - Possible?
ok that sounds reasonable. Any idea on how to call the asfunction to scroll a MC in scrollpane to scroll to that position? thanks -- Sajid On 2/1/06, Michael A. Jordan [EMAIL PROTECTED] wrote: It may be possible with XPath, using CSS to style your text, so that Flash doesn't muck up your html with TextFormatting tags. You could create and array of the links and split the html into separate textFields contained within a MovieClip in a scrolling pane. Then replace the # hrefs with asfunctions to call a function in your swf that scrolls the position of the referenced textField in the pane. I've done something similar to that to add keyboard access to links in textFields. This may help get you going down that path: http://www.majordan.net/test/flashlinks/ -- Michael -Original Message- From: Sajid Saiyed [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 1:33 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] named anchor with dynamic text field - Possible? Thanks Miles, That saves me from trying :) If there is any workaround, I would be interested. -- Sajid On 1/31/06, Miles Thompson [EMAIL PROTECTED] wrote: At 08:45 AM 1/31/2006, Sajid Saiyed wrote: Hi, Is it possible to create named anchors in dynamic text field? Something similar to HTML named anchors where a link in the text jumps to another position with that anchor name. I searched the archives but could not get an answer. -- Sajid No -- tried last fall, was hoping to link a list of headlines to stories. Links can be used to trigger asfunction() or to do something in the browser. Miles -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.375 / Virus Database: 267.14.25/246 - Release Date: 1/30/2006 ___ 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] Preloading dynamic XML file using XMLConnector
Hi, I am storing my data in MySql database and using PHP to generate XML file on the fly which is then read by flash using XMLConnector. Now as long as the XML file is small, or is generated quickly by PHP, Flash displays the data in the datagrid properly. When there is a slight delay in generating the file (fraction of a second maybe) then the Datagrid remains empty. I tried running just the PHP script alons in the browser, all the results are coming fine. I am using on(result) on the XMLConnector to make sure that the next script is executed only after all the data has been loaded. But I dont think on (result) is working. My question is, is using on(result) {} the right way to do what I am trying? Is there any other way to check preloading of the XMLConnector content? Thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Displaying special characters in Datagrid
hi, anyone was able to look at this? thanks On 12/6/05, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi, The datagrid is not able to display special characters: The ç character in that name Françoise is displayed as Square block. Is there a solution to this? Thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Displaying special characters in Datagrid
Hi, The datagrid is not able to display special characters: The ç character in that name Françoise is displayed as Square block. Is there a solution to this? Thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash PHP XML problem
Hi friends, I am facing a new challenge (maybe not new to others here) I have this application where I am searching MySql database and returning the results in an XML format using PHP. I have some 600 records in the database (Which I feel is not too big.) Now, some of the results are showing up on screen and others are not. If I directly try to access the URL, i can see that the XML is generated correctly. I am also using on(result(){ } On the XML Connector to wait till the data loads. So my question is, is there some safe limit to the number of records in XML for the XML connector and Dataset to work properly? Since the data is sensitive, I am not able to show you the working link. Ask me if you need more clarity on the issue. Thanks for your help. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] How to use XPATH in a Class?
Hi, I am trying to create a Class which will take a XML file path as input and then using XPath, return required results. Does anyone know any documentation of example where I can see how this can be achieved? thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How to use XPATH in a Class?
Hi, Thanks for your help. Now I get a better picture. Taking your suggestion, I tried this: //-- // My Class //-- import mx.xpath.XPathAPI; class FlashCoders { private var someXML:XML; public function FlashCoders(path:String) { someXML = new XML(); someXML.load(path); } public function getSomeValue(someXML){ var nodes:Array = XPathAPI.selectNodeList(someXML, /FlashBlog/PostMain/Post/*); trace(nodes[0]); } } //-- //-- actionscript //-- var a:FlashCoders = new FlashCoders(main.xml); a.getSomeValue(); //-- The trace is coming as UnDefined. I am sure I am doing something wrong here as I am new to writing classes. On 12/2/05, Pete Hotchkiss [EMAIL PROTECTED] wrote: Something like import com.xfactorstudio.xml.xpath.*; class FlashCoders { private var someXML:XML; public function FlashCoders(path:String) { someXML = new XML(); someXML.load(path); } public getSomeValue():String { var nodes:Array = XPath.selectNodes(someXML, /some/xpath/String); return nodes[0].attributes[someAttribt) } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sajid Saiyed Sent: 02 December 2005 13:58 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] How to use XPATH in a Class? Hi, I am trying to create a Class which will take a XML file path as input and then using XPath, return required results. Does anyone know any documentation of example where I can see how this can be achieved? thanks ___ 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] Re: Loading multiple images inside dynamic text field
Still does'nt work. Has anyone tried loading multiple images in one dynamic textfield? I am stuck here. Gregory, I tried using HSPACE as u mentioned and u can see the result here. http://www.ssdesigninteracative.com/flashBlog.html Scroll down a little to find an entry with images. HSPACE spoils the layout. VSPACE also does the same. Thanks for any help. Sajid On 11/27/05, Gregory_GOusable [EMAIL PROTECTED] wrote: Sajid, You need to add br tag instead of p AND hspace/vspace attributes to your IMG. Current html: img alt=kp.jpg src=http://www.ssdesigninteractive.com/blog/archives/kp.jpg; width=450 height=348 / p img alt=amit.jpg src=http://www.ssdesigninteractive.com/blog/archives/amit.jpg; width=450 height=348 / Need: img alt=kp.jpg src=http://www.ssdesigninteractive.com/blog/archives/kp.jpg; width=450 height=348 / br img alt=amit.jpg src=http://www.ssdesigninteractive.com/blog/archives/amit.jpg; width=450 height=348 hspace=180 / I think this should help. -- Best regards, Gregory_GOusable http://GOusable.com Flash components development. Usability services. Fri, 25 Nov 2005, Sajid Saiyed wrote: still noone? --Sajid On 11/25/05, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi, Was anyone able to look at this question. Any feedback is appreciated. Thanks On 11/25/05, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi, I was surprised to see this result. I have a Dynamic text field on stage. I am loading some XML data which contains HTML formatted text inside CDATA tag. The content of CDATA is something like: img alt=kp.jpg src=http://www.ssdesigninteractive.com/blog/archives/kp.jpg; width=450 height=348 / p img alt=amit.jpg src=http://www.ssdesigninteractive.com/blog/archives/amit.jpg; width=450 height=348 / Now when I run the movie, the two images load BUT the spacing between the two images is just a line break given by p. Also the images overlap each other. I expected the two images to load in line one fter another. Anyone faced this problem before? *** note: If you want to look at the actual problem, try this URL. Scroll down a bit to the post called FRIENDS AT MACROMEDIA . http://www.ssdesigninteractive.com/flashblog.html This is my flash frontend for Wordpress, The archives and search links are not working currently but you can explore otherwise. Thanks ___ 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] Re: Loading multiple images inside dynamic text field
Sorry the link had a spelling mistake: It should be http://www.ssdesigninteractive.com/flashBlog.html Sajid On 11/28/05, Sajid Saiyed [EMAIL PROTECTED] wrote: Still does'nt work. Has anyone tried loading multiple images in one dynamic textfield? I am stuck here. Gregory, I tried using HSPACE as u mentioned and u can see the result here. http://www.ssdesigninteracative.com/flashBlog.html Scroll down a little to find an entry with images. HSPACE spoils the layout. VSPACE also does the same. Thanks for any help. Sajid On 11/27/05, Gregory_GOusable [EMAIL PROTECTED] wrote: Sajid, You need to add br tag instead of p AND hspace/vspace attributes to your IMG. Current html: img alt=kp.jpg src=http://www.ssdesigninteractive.com/blog/archives/kp.jpg; width=450 height=348 / p img alt=amit.jpg src=http://www.ssdesigninteractive.com/blog/archives/amit.jpg; width=450 height=348 / Need: img alt=kp.jpg src=http://www.ssdesigninteractive.com/blog/archives/kp.jpg; width=450 height=348 / br img alt=amit.jpg src=http://www.ssdesigninteractive.com/blog/archives/amit.jpg; width=450 height=348 hspace=180 / I think this should help. -- Best regards, Gregory_GOusable http://GOusable.com Flash components development. Usability services. Fri, 25 Nov 2005, Sajid Saiyed wrote: still noone? --Sajid On 11/25/05, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi, Was anyone able to look at this question. Any feedback is appreciated. Thanks On 11/25/05, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi, I was surprised to see this result. I have a Dynamic text field on stage. I am loading some XML data which contains HTML formatted text inside CDATA tag. The content of CDATA is something like: img alt=kp.jpg src=http://www.ssdesigninteractive.com/blog/archives/kp.jpg; width=450 height=348 / p img alt=amit.jpg src=http://www.ssdesigninteractive.com/blog/archives/amit.jpg; width=450 height=348 / Now when I run the movie, the two images load BUT the spacing between the two images is just a line break given by p. Also the images overlap each other. I expected the two images to load in line one fter another. Anyone faced this problem before? *** note: If you want to look at the actual problem, try this URL. Scroll down a bit to the post called FRIENDS AT MACROMEDIA . http://www.ssdesigninteractive.com/flashblog.html This is my flash frontend for Wordpress, The archives and search links are not working currently but you can explore otherwise. Thanks ___ 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] Re: Loading multiple images inside dynamic textfield
Hi Enrico, I put the BR tags, I also added some TEXT between images. You can see the results, its putting the text on the right hand side of the image. I tried looking at the supported HTML tgas and it says, I can only ALIGN to LEFT OR RIGHT. Thats strange, no option for CENTRE align an image. Since my image is smaller then the textfield width, the spacer text i am putting is getting wrapped to the right side of imge and making my image load over the other image. To look at the problem i am talking about, go to the link and scroll down to the blog entry caalled, FRIENDS AT MACROMEDIA. Thanks. Sajid On 11/28/05, MetaArt [EMAIL PROTECTED] wrote: At the page you wrote the the url, I can't find any image... I just see text, with empty row after any text row... However, to load many images into a dynamic textfield, you must take care only of few rules: - put a br tag before and after the img tag - set the width of image always more smaller than textfield width - leave always some rows of text between two images Try this rules, and post again if don't work. Remember, the rules 2 and 3 mean much: you must place the images inside the text, so this can flow around image itself, and therefore set the width of images with an enough difference to textfield width; at last, this difference must leave space for 10/15 characters (this just for good reading reason). Enrico Tomaselli + web designer + [EMAIL PROTECTED] http://www.metatad.it ___ 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] Re: Loading multiple images inside dynamic textfield
Hi, There is a thin scrollbaar onthe right hand side. Maybe its too small to be noticed. You can scroll down to see the images. Sajid On 11/28/05, MetaArt [EMAIL PROTECTED] wrote: When I go to the page, just two blog are showed: Flash Blog is ready to view, and Flash Blog based on Wordpress. However, you must put enough text between the two images, so it flow on right side of first image, therefore fill one or two rows of entire width of thexfield, and therefore put the second image. I know, its a very bad bug, like other that you remark, the impossibility to center images, while for text you can do. We can just hope that in the next future Macromedia (or Adobe?...) solve this. Enrico Tomaselli + web designer + [EMAIL PROTECTED] http://www.metatad.it ___ 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] Re: Loading multiple images inside dynamic textfield
vspace works fien with images. But it will spoil my layout becaause vspace gets applied to both, the top and bottom of an image. So So show the second image, I have to give vspace to the second image just a little more then the first image height, this places the image correctly, BUT, it also adds extra space equal to the vspace at the bottom of the second image which is not required. Looks like we need some more features here :) Wonder if many people face this issue. Sajid On 11/28/05, MetaArt [EMAIL PROTECTED] wrote: ok, I see it... well, how I wrote, you have no enough text between the two images. The text that flow on right side is just five rows, when you need about 18/20 only for get the high of first image... Take a look at this demo: http://www.viawebinstitute.com/demo.php As you can see, many images are inside the textfield, but need to be placed with some text in the middle of images. About tips of Gregory, if you use hspace, this have no result, and vspace work just with text, not with images. Enrico Tomaselli + web designer + [EMAIL PROTECTED] http://www.metatad.it ___ 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] foldable content ?
Hi, You can use some tree components available on the web. You can search places like flashkit.com / kirupa.com / actionscript.org etc Then use V2 scrollpane and attach your movieclip to scrollpane. By default, the scrollpane will show or hide a scrollbar as your movie size changes. Hope that helps. Sajid On 28 Nov 2005 20:20:44 -, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Has anyone come across some component that can hide/show content and resize the area like you can with div tags and javascript ? I'm doing something right now in javascript/dhtml and would rather do it in flash but don't have the time to write the component, I was considering doing a tree with a custom cell renderer but it also looked like more work than I have client budget for. here is an example of the dhtml/javascript notice the scroll bar when the content exceeds the divs contraints http://bluetubecom.web123.discountasp.net/clients/amvescap/jan.html Cheers Grant ___ 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] Loading Text Dynamically - Any Good Wasy or Tutorials?
For loading content using PHP and MySql, you can refer to my tutorial here: http://www.macromedia.com/devnet/flash/articles/flash_xmlphp.html I wonder what you searched for on the web because there are numerous tutorials on the web about loading content dynamically in flash. Just randomly picking links I got after i searched google for flash dynamic load text: http://www.informit.com/articles/article.asp?p=174349seqNum=7rl=1 http://www.actionscript.com/index.php/fw/1/loading-dynamic-content-in-flash/ http://www.kirupa.com/developer/mx/externaldata.htm http://www.peachpit.com/articles/article.asp?p=28510seqNum=5rl=1 These are not the only once. Sajid On 11/29/05, Nicholas Chhabra [EMAIL PROTECTED] wrote: Hi Guys, Sorry to ask such a noobiful question but I've searched the web and haven't found many good flash tutorials covering dynamically laoding text/xml or whatever into a dynamic text box - if this is the right way to do things :-) , does anyone have a walkthrough or tutorial they could point me at or if this is the wrong way, what is the right way to dynamically load text (and if someone had a tutorial on loading text from a mySQL database it would be muhc appreciated!). Thanks in advance! ;-) ___ 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] Extract Attribute values using XPATH
Hi, Is it possible to extract attribute values with XPath? using the syntax: /Nodename/[EMAIL PROTECTED] I am able to select the node that contains an attribute, but then how do I extract the value of that attribute? thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Extract Attribute values using XPATH
The attribute value i want to extract is here: Nodename Node attribute=sometext / /Nodename On 11/26/05, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi, Is it possible to extract attribute values with XPath? using the syntax: /Nodename/[EMAIL PROTECTED] I am able to select the node that contains an attribute, but then how do I extract the value of that attribute? thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Loading multiple images inside dynamic text field
Hi, Was anyone able to look at this question. Any feedback is appreciated. Thanks On 11/25/05, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi, I was surprised to see this result. I have a Dynamic text field on stage. I am loading some XML data which contains HTML formatted text inside CDATA tag. The content of CDATA is something like: img alt=kp.jpg src=http://www.ssdesigninteractive.com/blog/archives/kp.jpg; width=450 height=348 / p img alt=amit.jpg src=http://www.ssdesigninteractive.com/blog/archives/amit.jpg; width=450 height=348 / Now when I run the movie, the two images load BUT the spacing between the two images is just a line break given by p. Also the images overlap each other. I expected the two images to load in line one fter another. Anyone faced this problem before? *** note: If you want to look at the actual problem, try this URL. Scroll down a bit to the post called FRIENDS AT MACROMEDIA . http://www.ssdesigninteractive.com/flashblog.html This is my flash frontend for Wordpress, The archives and search links are not working currently but you can explore otherwise. Thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Loading multiple images inside dynamic text field
still noone? --Sajid On 11/25/05, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi, Was anyone able to look at this question. Any feedback is appreciated. Thanks On 11/25/05, Sajid Saiyed [EMAIL PROTECTED] wrote: Hi, I was surprised to see this result. I have a Dynamic text field on stage. I am loading some XML data which contains HTML formatted text inside CDATA tag. The content of CDATA is something like: img alt=kp.jpg src=http://www.ssdesigninteractive.com/blog/archives/kp.jpg; width=450 height=348 / p img alt=amit.jpg src=http://www.ssdesigninteractive.com/blog/archives/amit.jpg; width=450 height=348 / Now when I run the movie, the two images load BUT the spacing between the two images is just a line break given by p. Also the images overlap each other. I expected the two images to load in line one fter another. Anyone faced this problem before? *** note: If you want to look at the actual problem, try this URL. Scroll down a bit to the post called FRIENDS AT MACROMEDIA . http://www.ssdesigninteractive.com/flashblog.html This is my flash frontend for Wordpress, The archives and search links are not working currently but you can explore otherwise. Thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Loading multiple images inside dynamic text field
Hi, I was surprised to see this result. I have a Dynamic text field on stage. I am loading some XML data which contains HTML formatted text inside CDATA tag. The content of CDATA is something like: img alt=kp.jpg src=http://www.ssdesigninteractive.com/blog/archives/kp.jpg; width=450 height=348 / p img alt=amit.jpg src=http://www.ssdesigninteractive.com/blog/archives/amit.jpg; width=450 height=348 / Now when I run the movie, the two images load BUT the spacing between the two images is just a line break given by p. Also the images overlap each other. I expected the two images to load in line one fter another. Anyone faced this problem before? *** note: If you want to look at the actual problem, try this URL. Scroll down a bit to the post called FRIENDS AT MACROMEDIA . http://www.ssdesigninteractive.com/flashblog.html This is my flash frontend for Wordpress, The archives and search links are not working currently but you can explore otherwise. Thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] browsing Flashcoders archives on local PC
Download Google Desktop search. Its the best way to search your PC as far as I know. --Sajid On 11/25/05, Gregory_GOusable [EMAIL PROTECTED] wrote: Hello Flashcoders, I'm preparing for MM certification and would like to refresh my Flash MX 2004 knowledge by reading Flashcoders archives (2003-2005). They are downloadable as huge (4-5mb per month) text files. Does someone have experience/tricks/ideas of how to browse them on local PC (or Mac)? -- Best regards, Gregory_GOusable http://GOusable.com Flash components development. Usability services. ___ 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] Dynamically create named anchors
Hi, Is it possible to dynamically create named anchors as a user navigates through a website? So that the Back button can work as it does in any dynamic HTML website? Thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Loading multiple images inside htmlText field
Hi, I am trying to load Multiple imges inside a dynamic text field. The images load BUT They are all placed one above the other, the vertical space between two images is just equal to the a line break. Can anyone throw light on why this happens? Is it because the time taken to load the images is more and hence the height of the images is not known? Here is how the html data is stored in the XML: data![CDATA[ pI got some of these funny photographs from a collegue./p pSome of them will really make you laugh, but to me, some of the concepts are really thought proviking./p pThe specific once I liked are, #8220;Butter Slick#8221; and #8220;Umbrella#8221; pHere they are for you to enjoy!!/p pimg alt=japan1.jpg src=http://www.ssdesigninteractive.com/blog/archives/japan1.jpg; width=592 height=315 //p pimg alt=japan2.jpg src=http://www.ssdesigninteractive.com/blog/archives/japan2.jpg; width=296 height=470 //p pimg alt=japan3.jpg src=http://www.ssdesigninteractive.com/blog/archives/japan3.jpg; width=346 height=505 //p pimg alt=japan5.jpg src=http://www.ssdesigninteractive.com/blog/archives/japan5.jpg; width=430 height=443 //p pimg alt=japan6.jpg src=http://www.ssdesigninteractive.com/blog/archives/japan6.jpg; width=500 height=366 //p pimg alt=japan7.jpg src=http://www.ssdesigninteractive.com/blog/archives/japan7.jpg; width=505 height=496 //p pimg alt=japan8.jpg src=http://www.ssdesigninteractive.com/blog/archives/japan8.jpg; width=455 height=469 //p pimg alt=japan9.jpg src=http://www.ssdesigninteractive.com/blog/archives/japan9.jpg; width=342 height=468 //p pimg alt=japan10.jpg src=http://www.ssdesigninteractive.com/blog/archives/japan10.jpg; width=550 height=432 //p pimg alt=japan12.jpg src=http://www.ssdesigninteractive.com/blog/archives/japan12.jpg; width=301 height=450 //p pimg alt=japan13.jpg src=http://www.ssdesigninteractive.com/blog/archives/japan13.jpg; width=503 height=293 //p ]]/data Any clue? Sajid ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders