Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Search the Community

Showing results for tags 'as3'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

  1. Hi there. Can someone demonstrate how I would pass a numerical value to positioning setting such as x or y that is set in a variable from an array using Tweenlite if possible? (tweenmax?) For example, the Flash tween version: var myNumber : Number = 0; var myArray : Array [30, 20, 10]; new Tween(instance_mc,"x",Regular.easeOut,instance_mc.x,myArray[myNumber],1,true); Thanks for any help!
  2. hi everyone I use TweenLite and TweenMax in my animation code, but there's error, I don't know where the error located, can you help me to find that . here is my error info TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.greensock::TweenLite/init() at com.greensock::TweenMax/init() at com.greensock::TweenMax/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() TypeError: Error #1010: A term is undefined and has no properties. at MethodInfo-258() and for other clue here is my full code import com.greensock.*; import com.greensock.easing.*; import flash.display.MovieClip; import flash.events.MouseEvent; var tombolMenu:Array = [menu1, menu2, menu3, menu4, menu5, menu6, menu7, menu8, menu9]; var judulMateri:Array = [title_1,title_2, title_3, title_4, title_5, title_6, title_7, title_8, title_9] var isiMateri:Array = [materi_1, materi_2, materi_3, materi_4, materi_5, materi_6, materi_7, materi_8, materi_9] var jumlahFrame:Array = [10, 5, 6, 8, 4, 9,5, 5, 5]; TweenLite.from(bar_mc, 0.5, {x:5000}); TweenLite.from(subject_mc, 0.5, {delay:1, x:1000}); navi_mc.visible=false; for (var i:int = 0; i< tombolMenu.length; i++){ var gap:Number = i/4; var tombolMenunya = tombolMenu[i]; tombolMenunya.buttonMode = true; //muncul menu TweenLite.from(tombolMenu[i], 0.5, {delay:gap, scaleX:0, scaleY:0, ease:Circ.easeOut}); tombolMenunya.addEventListener(MouseEvent.CLICK, fl_menu_0); function fl_menu_0(e:MouseEvent):void{ TweenLite.to(bar_mc, 0.5, {delay:1,x:5000}); TweenLite.to(subject_mc, 0.5, { x:1000}); for (var i:int = 0; i<= tombolMenu.length; i++){ var gaps:Number = i/4; //menu hilang TweenMax.to(tombolMenu[i], 1,{delay:gaps,scaleX:0, scaleY:0, ease:Circ.easeIn}); //munculkan materi if (e.currentTarget == tombolMenu[i]){ trace(jumlahFrame[i]); navi_mc.visible=true; TweenLite.from(navi_mc, 1, {delay:4, y:700}); TweenLite.to(judulMateri[i], 1, {delay:3, x:89.45, y:36.45, ease:Back.easeOut}); TweenLite.to(isiMateri[i], 1, {delay:3.4, x:392.45, y:246.95, ease:Back.easeOut}); navi_mc.next_mc.addEventListener(MouseEvent.CLICK, fl_next); navi_mc.prev_mc.addEventListener(MouseEvent.CLICK, fl_prev); //navi_mc.home_mc.addEventListener(MouseEvent.CLICK, fl_home); navi_mc.prev_mc.alpha = 0.4; navi_mc.home_mc.alpha = 0.4; navi_mc.prev_mc.mouseEnabled = false; navi_mc.home_mc.mouseEnabled = false; //tombol next function fl_next(e:MouseEvent):void{ for(var i:int = 0; i<= isiMateri.length; i++){ isiMateri[i].nextFrame(); if(isiMateri[i].currentFrame == 2 ){ navi_mc.prev_mc.alpha = 1; navi_mc.prev_mc.mouseEnabled = true; } if(isiMateri[i].currentFrame == jumlahFrame[i]){ trace(isiMateri[i].currentFrame); navi_mc.next_mc.alpha = 0.4; navi_mc.next_mc.mouseEnabled = false; navi_mc.home_mc.alpha = 1; navi_mc.home_mc.mouseEnabled = true; } } } //tombol prev function fl_prev(e:MouseEvent):void{ for(var i:int = 0; i<= isiMateri.length; i++){ isiMateri[i].prevFrame(); if(isiMateri[i].currentFrame == 1){ navi_mc.prev_mc.alpha = 0.4; navi_mc.prev_mc.mouseEnabled = false; navi_mc.next_mc.alpha = 1; navi_mc.next_mc.mouseEnabled = true; } if(isiMateri[i].currentFrame==(jumlahFrame[i] - 1)){ navi_mc.next_mc.alpha = 1; navi_mc.next_mc.mouseEnabled = true; navi_mc.home_mc.alpha = 0.4; navi_mc.home_mc.mouseEnabled = false; } } } //tombol home } } } } thanks everyone, I really appreciate. thanks befor
  3. Hi there. This question isn't limited to Greensock but was hoping I could get a little help here. I have an image scroller that basically uses buttons to relatively position a movieclip containing a horizontal line of images. There is a mask over an area so that when you click a left or right arrow, it relatively positions the movieclip under the mask and reveals a section of the movieclip. I have this working fine, however the one functionality I'd like to add, is when the left or right border of the movieclip is reached, the appropriate button is disabled so that the movieclip isn't positioned outside of the mask. Or it loops back to the starting x position. Here is the code: import flash.display.MovieClip; import flash.events.MouseEvent; import com.greensock.*; import com.greensock.easing.*; function init():void { TweenLite.to(products_mc, 1, {x:696, alpha:1}); } init(); function productsLeft(events:MouseEvent):void { TweenLite.to(products_mc, .75, {x:"-255"}); } function productsRight(events:MouseEvent):void { TweenLite.to(products_mc, .75, {x:"255"}); } arrowL_btn.buttonMode = true; arrowL_btn.addEventListener(MouseEvent.CLICK, productsLeft); arrowR_btn.buttonMode = true; arrowR_btn.addEventListener(MouseEvent.CLICK, productsRight); if (products_mc.x == 696) { arrowR_btn.visible = false; arrowR_btn.buttonMode = false; } if (products_mc.x == -1086) { arrowL_btn.visible = false; arrowL_btn.buttonMode = false; } /* buttons */ arrowL_btn.doubleClickEnabled = true; arrowR_btn.doubleClickEnabled = true; arrowL_btn.addEventListener(MouseEvent.DOUBLE_CLICK, doubleClickHandler, false); arrowR_btn.addEventListener(MouseEvent.DOUBLE_CLICK, doubleClickHandler, false); function doubleClickHandler(evt:MouseEvent):void { evt.stopPropagation(); }
  4. Hi there. Is it possible to tween the kerning of a word via TweenLite in AS3? My search hasn't pulled up info on that. Apologies if I'm over looking something! Thanks!
  5. Hey everyone so maybe you can help I have created a game using Flash CS6 and Flash Develop. I have objects that are added to the stage by a timer Event named "_Obstacles". These _Obstacles are all added Randomly to the stage. Now they get pushed onto the stage like so: private function addObstacle(e:TimerEvent):void { _Obstacles = new mcObstacles(); stage.addChild(_Obstacles); aObstacleArray.push(_Obstacles); trace(aObstacleArray.length); //TweenLite.to(_Obstacles, 2.7, {x: - 300}); } In my _obstacle class I removed this: if (sDirection == "R") { //Move obstacle left this.x -= nSpeed; } and added the line as shown above to my Main Engine class instead but its still be controlled by the timer: TweenLite.to(_Obstacles, 2.7, {x: - 300}); Now this works fine and they move across the stage correctly. But I am still experiencing major lag. I dont understand why. So I was thinking maybe it could be the TIMER_EVENT that is causing the lag and if i figure out how to push out the random array of objects every 2.7 seconds and remove the TIMER_EVENT someo how it will stop the lag. My game is simple and i dont understand why its lagging this is the only thing i can think of. Its a basic player jumping over the obstacles added to the stage by the timer. So I'm sure that the timer is the corporate. Please help.
  6. Is it possible to use splitTextField with the Starling framework? Kind regards Simon
  7. Warning: n00b question! I'd like to use TimelineMax to animate clips along other clips. The examples I can find using MotionPath all utilize generated paths vs. hand drawn paths. Can I simply designate hand drawn paths (which are mc's) using MotionPath?
  8. So I was trying to find a nice way to make a lot of automatic tweens (for lack of a better term) and I found the bubble example from snorkl (http://www.snorkl.tv/2010/12/timelinemax-bubbles-play-pause-and-rewind-particle-systems/) I used his code and modified it to better fit my needs (took out a lot of the randomness and the buttons) but now the clips won't tween. They are placed on the screen, but don't move at all. Also, I already had my own randomRange function defined elsewhere in my project. Heres the code: import com.greensock.*; import com.greensock.easing.*; var tl:TimelineMax=new TimelineMax({paused:true,onComplete:done}); function createWords() { //create a word (attach symbol in library with Class Bubble) and position on stage var word:words = new words(); word.y=500; word.x=randomRange(100,400); word.alpha=1; addChild(word); //create timeline for each word var nestedTl:TimelineMax = new TimelineMax(); nestedTl.insert(TweenMax.to(word,17, {y:-50, ease:Linear.easeNone})); //append new timeline very close to when the previous one started //don't even ask about the offset...k? tl.append(nestedTl, 6); } function done() { trace("the party's over"); } function init() { for (var count:Number = 0; count<50; count++) { createWords(); } } init(); WordTest.fla.zip
  9. Hello Sirs & Ladies, I am an advanced Flex Developer and i am not a Flash Developer. I want to ask about Flex SDK 3.6.0 Alpha because it works for external swf applications. Spark Components won't work from external swf when i am using MDIWindow / MDICanvas than i call SystemManager with Object(sm_instance.application).variablename or Object(sm_instance.application).functionname() I have created flash-based Desktop with custom external swf application like our desktop loads same application example Notepad or TextEdit or GEdit and any programs. If you want check my post from stackflowover and adobe-forum spark component frameworks can not load which MDIWindow has components like TextArea or any components and event from external swf application was stopped and crashed and MDIWindow was nothing openned. MX Components work for external swf application fine. This is awesome. and it is very better than spark components. I tell my workstation with flash-based desktop: MainDesktop.swf <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:flexlib="http://code.google.com/p/flexlib/" creationComplete="creationCompleteHandler(event)" layout="absolute"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.events.FlexEvent; import mx.managers.SystemManager; [Bindable] private var extSM:SystemManager; [Bindable] private var extSM2:SystemManager; private var _externalSwfLoaded:Boolean; [Bindable] public function get externalSwfLoaded():Boolean { return _externalSwfLoaded; } public function set externalSwfLoaded(value:Boolean):void { _externalSwfLoaded = value; } protected function creationCompleteHandler(event:FlexEvent):void { var context:LoaderContext = new LoaderContext(); context.applicationDomain = ApplicationDomain.currentDomain; loader.loaderContext = context; loader.load("PropretiesApp.swf"); loader2.loaderContext = context; loader2.load("EditorApp.swf"); } protected function loaderCompleteHandlerFromPropreties(event:Event):void { extSM = loader.content as SystemManager;; // Set the swf loaded flag if you have the SystemManager if (extSM) externalSwfLoaded = true; } protected function loaderCompleteHandlerFromEditor(event:Event):void { extSM2 = loader2.content as SystemManager;; // Set the swf loaded flag if you have the SystemManager if (extSM2) externalSwfLoaded = true; } protected function loaderIoErrorHandler(event:IOErrorEvent):void { trace(event.toString()); Alert.show(event.type + ":" + event.text, "IO error occured"); } protected function openPropreties(event:MouseEvent):void { Object(extSM.application).openPropretiesWinCall(); canvas.windowManager.add(Object(extSM.application).propretiesWindow); } protected function openEditor(event:MouseEvent):void { Object(extSM2.application).openEditorWinCall(); canvas.windowManager.add(Object(extSM2.application).editorWindow); } ]]> </mx:Script> <flexlib:MDICanvas left="0" right="0" top="0" bottom="40" id="canvas"> <mx:SWFLoader left="0" right="0" top="0" bottom="0" id="loader" trustContent="true" complete="loaderCompleteHandlerFromPropreties(event)" ioError="loaderIoErrorHandler(event)"/> <mx:SWFLoader left="0" right="0" top="0" bottom="0" id="loader2" trustContent="true" complete="loaderCompleteHandlerFromEditor(event)" ioError="loaderIoErrorHandler(event)"/> </flexlib:MDICanvas> <mx:Button left="10" bottom="10" label="Open Propreties" click="openPropreties(event)"/> <mx:Button left="137" bottom="10" label="Open Editor" click="openEditor(event)"/> </mx:Application> EditorApp.swf ( Sub application ) <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundAlpha="0"> <mx:Script> <![CDATA[ import flexlib.mdi.containers.MDIWindow; [Bindable] public var editorWindow:EditorWindow; public function openEditorWinCall():void { editorWindow = new EditorWindow(); } ]]> </mx:Script> </mx:Application> for component EditorWindow <?xml version="1.0" encoding="utf-8"?> <ns:MDIWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:ns="http://code.google.com/p/flexlib/" xmlns:ns1="*" width="600" height="390" layout="absolute" title="Editor"> </ns:MDIWindow> And PropretiesApp.swf ( sub application ) <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundAlpha="0"> <mx:Script> <![CDATA[ import flexlib.mdi.containers.MDIWindow; import mx.controls.TextArea; import net.sourceskyboxer.PropretiesWindow; [Bindable] public var propretiesWindow:PropretiesWindow; public function openPropretiesWinCall():void { propretiesWindow = new PropretiesWindow(); } ]]> </mx:Script> </mx:Application> For component PropretiesWindow: <?xml version="1.0" encoding="utf-8"?> <ns:MDIWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:ns="http://code.google.com/p/flexlib/" width="340" height="340" doubleClickEnabled="false" horizontalScrollPolicy="off" layout="absolute" resizable="false" showControls="false" title="Propreties" verticalScrollPolicy="off"> <mx:Script> <![CDATA[ protected function donePropretiesClick(event:MouseEvent):void { this.close(event); } ]]> </mx:Script> <mx:Button right="5" bottom="5" label="Done" click="donePropretiesClick(event)"/> <mx:Form left="5" right="5" top="5" bottom="30"> <mx:FormItem width="100%" label="Name:"> <mx:TextInput width="100%"/> </mx:FormItem> <mx:FormItem width="100%" label="Icon:"> <mx:HBox> <mx:TextInput width="100%"/> <mx:Button label="..."/> </mx:HBox> </mx:FormItem> <mx:FormItem width="100%" label="Path:"> <mx:HBox> <mx:TextInput width="100%"/> <mx:Button label="..."/> </mx:HBox> </mx:FormItem> <mx:FormItem width="100%" label="Filename:"> <mx:HBox> <mx:TextInput width="100%"/> <mx:Button label="..."/> </mx:HBox> </mx:FormItem> <mx:FormItem width="100%" label="View:"> <mx:Label width="100%"/> </mx:FormItem> <mx:FormItem width="100%" height="100%"> <mx:Text width="100%" height="100%" text="Text"/> </mx:FormItem> </mx:Form> <mx:Button right="64" bottom="5" label="Verify"/> </ns:MDIWindow> and runs applications. Any pictures for example: Did you see any pictures? Is it good? But how do i use LoaderMax when i won't like add SWFLoader and SystemManager for next swf file than LoaderMax can work for SystemManager instance? But LoaderMax can use any different swf applications when i manage same openned MDIWindow ( sub application ) Is it possible for one or more swfs for one SystemManager? I would like to ask about Loadermax or SWFLoader? If i manage same sub apps ( example : PaintApp.swf, CalcApp.swf and any <name>App.swf on my MainDesktop than i don't need add line for AS3? And i am trying for creating shutcuts on MainDesktop like our desktop by any operating system? // Edit: If i don't need call any SystemManager Instance than i use only SystemManager like example Object(sm_instance.application).AppInitalize() for all external swf application which i click sub application and MainDesktop will open any application like i want...... Thank you for supports and improvements Regards and best greeting from Germany Jens
  10. Hello. I am checking out v12 AS3 Tweenlite for the first time. Previously I used 10 and 11 extensively. I see now there is a "greensock.swc" file. What do I do with this? I can't find reference to it in the "docs" nor when I search this forum.
  11. I was wondering if a version newer than v11 (as3) is best suited for iOS / iPhone ?
  12. Hello, I was wondering, is there a way not to increase the property value infinitely, but to reset it back to it's minimum value when it reaches its' maximum and continue tweening? Say, I have an object with a property which I would like to "throw" with my mouse. But the thing is, the valid values for the property are from 0 to 10. So, if the value during the tween exceeds 10, I want it to go back to 0 and continue tweening until it stops. Thanks in advance.
  13. Hello, I saw some animation done with greensock js flavor... http://codepen.io/nrose/details/KrnGq Is this possible with as3 version? How can I create a animation to simulate a flag? Thank you...
  14. Hi everybody, First of all, gratz for the amazing work you've done Jack, Carl and all the community's member who help the development of GreenSock. (and sorry for my bad English). i use TweenMax for 4 years in my projects AS3 in Flash and now i try to convert me to HTML5 with GSAP. I want to be able to convert all the work ive done for these 4 years in HTML5 and so ive decided to work with the more complex animation. The matter with this animation is the number of element animated (i join it to the message). I don't intend to declare all the element one by one, in CSS, this will be a wasted time I think. So, ive searched on the web but I found nothing that I can use. I work with Adode Design Premium CS5, so i can't use CreateJS as plugin for Flash and I haven't Edge Animate. I tried Swiffy but It doesn't seems to work. I tried to do something like this in Flash: function createCSS () { for (var i:int=0; i<numChildren-1; i++) { var mc:MovieClip = getChildAt(i) as MovieClip; tabMC[i] = mc; trace ('#'+mc.name+'{'); trace ('position:absolute;'); trace ('x:'+mc.x+';'); trace ('y:'+mc.y+';'); trace ('}'); trace (''); } } wich display a "potential" CSS style-sheets of all the elements but if I want it works, i will have to export each element in SVG with Illustrator with the same name used by Flash, and that also seems to be a wasted time. Is there another solution you see to do this ? I hope Ive been clear, my english is so bad. Thank you in advance for whatever help you can give me. Notice that the animation size is very low (52ko) i want to keep this size as lower as possible, even in HTML5. ps: attached file contains the .fla ATRT_anim01.zip
  15. Regards, Recently I am learning to use the GreenSock libraries and now I'm doing the animation of photographs column when clicking on a button that scrolls down. Apply a blur filter to give it a blur on the Y axis and I can not make this return to the original state, I mean, that would slowly diminishes blur filter and stops. I'm using TweenMax to animate with As3, the following piece of code is the one I use to make the animation, and the blur does stop abruptly and do not slowly returning to their original state. I hope I can help. thanks TweenMax.to(column, 2 {y:column.y ease:Quart.easeInOut, blurFilter:{blurX:0, blurY:20, remove:true}});
  16. Hi, I have been struggeling figuring out a simple slideshow using next and previous buttons. Currently I have a slideShow container with 4 movieclips arrranged next to one another. Essentially what I would like is have the slideshow cycle through the 4 slides in the slideshow container and have a next and previous button executable at anytime, but I have no idea on how to accomplish this. This is what I have at the moment: import com.greensock.*; import com.greensock.easing.*; var timeline:TimelineLite = new TimelineLite(); timeline.append( new TweenLite(slideShow, 0.5, {x:"0"}) ); timeline.append( new TweenLite(slideShow, 0.5, {delay:2, x:"-280"})); timeline.append( new TweenLite(slideShow, 0.5, {delay:2, x:"-260"})); timeline.append( new TweenLite(slideShow, 0.5, {delay:2, x:"-260"})); Any help is highly appreciated! Thanks, Dada
  17. Hi good people of the forum. I'm trying to animate an opening gift box with the lid popping of and the sides folding down. I was able to do a draft concept using shape tweens in Flash itself after struggling like hell trying to do it with TweenMax. (attached is the swf) I'm fairly familiar with TweenMax / TimelineMax. Something like TweenMax.to(mc, 2, {rotationY:90}) is easy but I quickly run into issues as far as the anchoring points go especially when it comes to the skewed sides. Anybody got some great ideas to get me going? Cheers gift box.zip
  18. Hello, I'm currently trying to implement a crop tool to our Application. My problem is that I keep getting indexOutOfRange errors from TransformManager.bringToFront either when clicking on the image I want to crop or when clicking outside to unselect it. The same application also gives me from time to time an "wrong parent" error when trying to remove the dummyBox, event though the instance passes the "_selection.parent == _parent" test just before (TransformManager.updateSelection). Both Errors seem very very weird as the range error is thrown even thought range is correct and the parent is ok. Does anyone have any clue on what I'm doing wrong ? Here's a sample app and my basic instanciation code : protected function application_creationCompleteHandler(event:FlexEvent):void { transformManager=new TransformManager(); transformManager.bounds = new Rectangle(0,0,955,600); imageCompo.image.source = "image.jpg" ; imageCompo.image.addEventListener(Event.COMPLETE,image_readyHandler); } protected function image_readyHandler(event:Event):void { trace ("complete"); // for some reason flex never tells you when the image is actually ready setTimeout(wtf_flex_handler,1000); } private function wtf_flex_handler():void { trace ("timer complete"); var crop:FlexCrop=new FlexCrop(imageCompo.image, transformManager); } and the imageCompo code : public class ImageComponent extends SkinnableComponent { [SkinPart(required="true")] public var image : Image; //...some basic stuff } Thanks in advance for any input that could help me, I'll give out anything I find if I do find something. proto-crop-greensock.zip
  19. Hi! I know there are some handy methods for naming and accessing tweens across object hierarchy, but I'm not sure about this... I have a pulsating yoyo tween on "MC" and i add a child to MC ( MC.addChild(IAmInsideMC); ) later in the app, but I want that child to ignore the pulsating Tween that is applied to it's parent... I realize that might be counter-intuitive, and there are certainly workarounds, but I'm wondering if there's a reasonable way to accomplish this? Thanks all!
  20. I have a project where most of the tweens last exactly 0.15 seconds. It may seem like an odd number, but it's what feels most pleasing to the eye for this project. My question is: is it more efficient to specify the tween duration in frames or in seconds? I assumed frames would be the most efficient, so I converted my code to be all frame based. I set the project at 27fps and have the animations set at 4 frames, which isn't exactly 0.15 seconds, but is pretty close. But I would like things to look just a hair smoother. To get up to the next number that divides evenly by 0.15, I would need to up the framerate to 40, which gives us an even 6 frames per animation. This makes me worry that the frame rate may be too high for less powerful computers, though. I could avoid all of this by simply using seconds instead of frames, which brings me back to the original question. tl;dr: Is it more efficient to specify the tween duration in frames or in seconds?
  21. Sometimes I need to execute code at a certain point in the timeline. The call() function works fine to call external functions. However, when the function isn't called more than once, an external function seems unnaccessary. Is there any way to execute an inline function? This doesn't work: myTimeline.call(function() { doThis(); doThat(); var myVar = new MovieClip(); etc. });
  22. I'm sure there's an error in my code, but when I do this ($event is a mouseEvent) TweenMax.delayedCall(_gameClickDelay,showDetailScreen,[$event]); when I get to showDetailScreen($event:MouseEvent) private function showDetailScreen($event:MouseEvent):void { $event.current is no longer the button on which I originally clicked, but instead Stage, the trace is: $event.currentTarget = [object Stage] and $event itself traces as "0". trace("$event = " + $event); TweenMax.delayedCall(0,function ($x:MouseEvent) {trace("delayed call? " + x)},[$event]); yields $event = [MouseEvent type="click" bubbles=true cancelable=false eventPhase=2 localX=49.72636795043945 localY=109.43730163574219 stageX=487.6 stageY=709.2 relatedObject=null ctrlKey=false altKey=false shiftKey=false buttonDown=false delta=0] delayed call? 0
  23. Hi, i'm creating a AIR app. The main functionality of the App is downloaded to "ApplicationStorage", and loaded by the "AIR-SWF" (The SWF that makes the AIR App, it's more or less empty, and just loads the main SWF) With LoaderMax i load a fontface class by loading a SWF and then using loader.getClass("myFontClass") to get the Class, then i use Font.registerFont(myFontClass) - It works fine when just running as normal "html/flash-web-app" The problem is when i load above functionality into AIR-SWF, it doesent work anymore. When trying to register the font it gives me: So somehow when in AIR, the getClass("myFontClass") does not return the FontClass So the subload scenerio that fails is abstraclty like this: - I've been doing AS2 for ages, but I'm relatively new to both AS3 and AIR, so any tips are welcome. Note: In publish settings of the loaded SWF's i've set communction to "Local", and i apply System.allowDomain("*") - also i get no security related issues in the process - in short it works, just not when loaded by the AIR-SWF Any help for an old newbie? =)
  24. Can anyone help me? How do I skip a tween using a button function. I want to skip to the end of a tween with a button click. Example if I click on button1 the mc will tween, but when I click button2 the mc will skip the tween. I'm totally new in using AS3 and I have no idea how to get this to work. Help me please.
  25. First, I want to be clear that I know that GS is highly optimized, and that in no way do I mean to imply there's any problem with the GS speed. I've never had one. I've been working on a large sectional project for 3 months where games are being run along with videos inside an external player. One of those games -- using rudimentary Flash 3D, etc and using a touchscreen for touch detection -- runs slower than the client wants. The issue is, of course, with the videos and the external player, and with the multitude of external videos being played. That having been said, is there anything I can do to turbo-charge GS — the game relies on many TweenMax's, TimelineMax's, etc -- to get some small performance boost? I was thinking of something along the lines of fine-tuning onUpdates, or something, perhaps make them check less often — grasping at straws here. We believe the fault is in the videos/player, again, but I thought I'd investigate all angles…
×