Jump to content
Search Community

copperjohn

Members
  • Posts

    10
  • Joined

  • Last visited

copperjohn's Achievements

0

Reputation

  1. Hi Zync, Thanks for the reply, but nothing to do... I have tryed to give the initial position to the LiquidArea using the real "0" of the stage in Gaia (when centered)s : var currentX:int = Gaia.api.getSitePosition().x; var currentW:int = Math.round(960 + currentX*2); var area:LiquidArea = new LiquidArea(this, -currentX, 0, currentW, 30, 0xffc700); this seems ok when i reload the page, but when i resize... NOTHING the left corner doesn't adjust its position!!! I have tryed to add this liquidArea directly on the stage (stage.addChildAt(area, 0) and it works but i would like it to work in the Gaia siteview Thanks!
  2. I post an image to explain better the issue the area expands on the right but on the left it remains at the "0" point of stage.... The site is in Gaia I create liquidstage istance after setting stage.scalemode to topleft The site is vertically centered
  3. mmm, I changed the position of the liquidstage declaration and now the behaviour has changed.. the area height is ok eccept that now it doesn't have the same width as the stage. It starts from 0 and ends where the browser ends..
  4. Hi Everyone, I'm doing this: var ls:LiquidStage = stage.getChildAt(0)["myLiquidStage"]; // don't mind this line... var area:LiquidArea = new LiquidArea(this, 0, 0, 960, 30, 0xffc700); area.pinCorners(ls.TOP_LEFT, ls.TOP_RIGHT); // in questo modo impedisco alla barra di modificare la propria altezza area.preview = true; (my stage is 960, 550 and liquidStage is the same) i want my area to stay at 30pixel height but whe i resize the browser the area goes upwards Thanks
  5. Hi I'm experiencing very weird time with timelinelite.. it seems it changes behavior every time I compile... Hi have a clip on stage -> this clip has 3 movieclip inside : -> _sfondo ->_testo ->_highlight I have exported this mc and on propertye I have linked with a custom class in this custom class i do this: package com.aktivo.afterpixel { import flash.display.*; import flash.events.*; import com.greensock.*; import com.greensock.easing.*; import com.greensock.plugins.*; public class bottoneTondoOne extends MovieClip { public var _sfondo:MovieClip; public var _testo:MovieClip; public var _highlight:MovieClip; var _timeline:TimelineLite = new TimelineLite(); public function bottoneTondoOne():void { //this.mouseChildren = false; this.useHandCursor = true; this.buttonMode = true; this.addEventListener(MouseEvent.CLICK, onRollover); _timeline.append(new TweenLite(_sfondo, 1, {scaleX:1.6, scaleY:1.6, ease:Elastic.easeOut})); _timeline.insert(new TweenLite(_testo, 1, {tint:0x000000})); _timeline.insert(new TweenLite(_highlight, 1, {x:250})); _timeline.append(new TweenLite(_sfondo, 1, {scaleX:1, scaleY:1, ease:Elastic.easeOut})); _timeline.insert(new TweenLite(_testo, 1, {tint:0xFFFFFF}), 0.5); _timeline.insert(new TweenLite(_highlight, 1, {x:-250})); _timeline.stop(); } private function onRollover(event:MouseEvent):void { _timeline.restart(); } } } _highlight DOESN'T MOVE!!! (.. just sometimes and I don't know why) _testo goes black (0x000000) the first time i click on the mc but then it remains white... please help Francesco
  6. Hi, and thanks. What I'm trying to do is "a bar snap to the bottom of the screen and stretch horizontally to fill the width of the stage" then I need to put things inside that bar somethings need to align left and other on the right... so can you help me to understand how to do it with liquidstage or liquidArea ??? THANKS
  7. Hi I have a new issue i Made a new liquid Area inside a Sprite (that is attached to another liquidArea on the stage) all items inside that sprite scale themselves even if i punt ScaleMode.NONE why ? Thanks CopperJohn AktivoDock.graphics.beginFill(0x000000); AktivoDock.graphics.drawRect(0,0, 960, 30); AktivoDock.graphics.endFill(); AktivoDock.alpha = 0.9; addChild(AktivoDock); var ls = stage.getChildAt(0)["myLiquidStage"]; // just getting the liquidstage instance from GAIA var area:LiquidArea = new LiquidArea(this, 0,470,960,30, 0xFF3366); area.attach(AktivoDock, ScaleMode.WIDTH_ONLY, AlignMode.CENTER, AlignMode.BOTTOM); //area.preview = true; // nested liquid area var DockArea:LiquidArea = new LiquidArea(this.AktivoDock, 10,0,930,23, 0xFF6699); //DockArea.preview = true; AktivoDock.addChild(dock001); DockArea.attach(dock001, ScaleMode.NONE, AlignMode.LEFT, AlignMode.BOTTOM); AktivoDock.addChild(dock010); DockArea.attach(dock010, ScaleMode.NONE, AlignMode.RIGHT, AlignMode.BOTTOM); // the clips dock001 and dock010 do scale!!!!!! why???
  8. Hi, Inside my swf I have set a liquidstage and a liquid area to make a bar at the bottom of the stage. the bar stretches in scalemode WIDTH_ONLY. Now I want to put an object inside that bar and i want it pinpointed to the BOTTOM_RIGHT point. Here I get a strange behaviour: 1 - if the object is a textfield (dynamic) its distance from the pinpoint grows proportionally with the browser width 2- if I break a part the texfield so its a graphic it scales! (like the liquidarea) if i put the object outside the bar everything works great but i don't want to... please help.. here is my code.. /* the bar */ var AktivoDock:Sprite = new Sprite(); AktivoDock.graphics.beginFill(0x000000); AktivoDock.graphics.drawRect(0,0, 960, 30); AktivoDock.graphics.endFill(); AktivoDock.alpha = 0.8; addChild(AktivoDock); var ls = stage.getChildAt(0)["myLiquidStage"]; // ok this is beacause I'm in GAIA var area:LiquidArea = new LiquidArea(this, 0,300,960,500); area.attach(AktivoDock, ScaleMode.WIDTH_ONLY, AlignMode.CENTER, AlignMode.BOTTOM); //area.preview = true; // dock010 is my textfield dock010.x = 730; dock010.y = 7; AktivoDock.addChild(dock010); // when i do this the textfiled distance from the pinpoint changes proportionali //addChild(dock010); // if i do this the texfield stays attached to the pinpoint ls.attach(dock010, ls.BOTTOM_RIGHT); TweenMax.to(area, 1.5, {y:0, delay:.7});
  9. Hi All, I tryed liquidstage for the first time today and managed to make it work. I didn't yet realized if to use liqudArea is necessary to istantiate liquidstage. Thanks Copperjohn
  10. HI all I'm tryng to make something similar istantiate the liquidstage in main.swf in GAIA (i put all the code but just look at two lines) package { import com.gaiaframework.core.GaiaMain; import flash.display.StageScaleMode; import flash.display.StageAlign; import flash.events.Event; import com.greensock.layout.*; public class Main extends GaiaMain { public var myLiquidStage:LiquidStage; public function Main() { super(); siteXML = "xml/site.xml"; } override protected function onAddedToStage(event:Event):void { stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE; super.onAddedToStage(event); // HERE i ISTANTIATE THE LIQUIDSTAGE CLASS myLiquidStage= new LiquidStage(this.stage, 960, 500, 960, 500); } } } but then when i try to acces it on nav.swf i get an error (impossible to find the property myliquidStage on pages.IndexPage .. (why indexpage gaia??) code on nav.swf private function initAktivo():void { var ls = Gaia.api.getPage("main").content.myLiquidStage; trace(ls); }
×
×
  • Create New...