Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Expand / Drag


Hi All,
I'm having trouble getting a response in the Flash MX forum... my post can be seen at

http://www.actionscript.org/forums/s...d.php3?t=72499

Sorry - this is probably illegal, but I would desperately like a response please!
Thanks all.




ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 04-26-2007, 05:41 PM


View Complete Forum Thread with Replies

Sponsored Links:

Drag To Expand
I want to make a selection box that will expand when dragging(like the selection marquee in windows explorer)
but I can´t seem to find any tutorials or sources relating to it...
I don´t know what to begin with, how can I make it?

View Replies !    View Related
Drag To And Expand Menu
hello,
newbie here

Alright i know how to drag, how to keep it in bounds, i want to learn how to drag an object and have it expand when it gets to a certian location a la http://www.trollback.com/ (top scroll menu)

View Replies !    View Related
How To Expand A Swf?
I have a liquid layout with external swfs loading into holders. however the holders are a dynamic size depending on the size of the stage. this means that depending on if the user is in a 4:3 display or a 16:9, it may get skewed (16:9) display. I was wondering if there was a way to tell flash to expand the background color of the eternally loaded swf, but keep the content placed in the center?





























Edited: 06/07/2008 at 10:51:58 AM by mlebrun

View Replies !    View Related
Expand Box With AS
Hi Everyone,

I'm trying to create and expand a simple empty box (hairline perhaps) with an Action script to create the same effect as a shape tween. Why not shape tween?! Well I've tried that and the shape tween messes up the rendering. see picture....

I appreciate your thouthts,

thx,

mucho

View Replies !    View Related
Expand Box With AS
Hi Everyone,

I'm trying to create and expand a simple empty box (hairline perhaps) with an Action script to create the same effect as a shape tween. Why not shape tween?! Well I've tried that and the shape tween messes up the rendering. see picture....

I appreciate your thouthts,

thx,

mucho

View Replies !    View Related
Expand Button
Hi There!
Does anyone knows where i can find a tutorial to make buttons like these:

http://www.flashkit.com/movies/Inter...00/index.shtml

View Replies !    View Related
*.swf - To Expand With Browser
Hi
I wish to make include a *.swf on a web page and I want it to expand and contract to fit the browser. Ie if the user minimises the window the .swf with shrink down and if the user maximised the movie expands accordingly. I wish to center the movie in the middle of the page. Any ideas?
Thanking you
Miffy

View Replies !    View Related
How To Expand Movie In Web?
Hi

I'd like to know how to expand the swf (in web document), when the browser window is resized. Like in this site. (I guess its javascript who do that !?)

http://md.lv

Thank you.

View Replies !    View Related
Expand Banner....
Hi,

Expand banners in Flash...flash banners are now days or dynamic when you mouse over they will expand(dropdown)with more description or details about the advert and when you mouseout they will be standard size banners.

Similar kind of banner i have to do so anyone can help

View Replies !    View Related
Expand Submenu
Hi...

Somebody knows how can i make a menu that when i put the cursor over the buttom (an item) expands othe itens (submenus)

Thanx

View Replies !    View Related
Expand & Contract
I have 8 navigation buttons arranged horizontally.

The up state for all the buttons is the same. It's 2 arrows... like this >>

The over state for each button is different.

Thoughts on scripting the buttons to move to the left and right of when one of the buttons is 'moused-over'??

I've had limited success....since the 'hit' area is only the size of the arrows and the link text is larger than this area....


Thoughts? Examples?

Thanks a ton,
Blue

View Replies !    View Related
Expand Contract
Imagine you have a grid of movieClips on the stage. When mousing over any one of the mcs, that mc will expand it's x&y scales to be a bit bigger. The effect i am looking for is getting the other mc's to pull away or make room around that expanding mc, and then to contract back to their original positions. I have the retraction to original positions down (simply assigned original x&Y to each mc class, and a bit of ease on the way back in), but the expansion is random at best. At present, i have mcs moving everywhere and i can not seem to nail down the trig on this. Can anyone give a good direction to go with this method? Is there a common name for this effect which i can google?

View Replies !    View Related
+ - Expand/collapse
ok in bringing XMLtext in to Flash, you know how when you view XML in IE it is collapsable and expandable (like windows explorer etc)
is it possible to achieve this result in flash so it pushes the text below it down when it is expanded?
thanks
Dan

View Replies !    View Related
Cannot Expand Movieclip Any More
I have a movie that I inherited that I think was made with Flash 5. I am working on a movie clip in it that scrolls almost 40 thumbnail images (now) horizontally using < > buttons. That's all good. I was adding thumbnails one by one and the movie clip area would expand to include them each time, until now. I have about 3 more to add and the movie clip won't expand any more. I can expand how far the 'scroll' will go to well beyond where the thumbnails end, but I can't physically add them any more. The properties box for the movie clip won't allow me to make the width larger either, but I think it would just stretch the symbol anyway, distorting it.

I had posted this problem in an other area yesterday and someone wanted to see the .fla file. I didn't know how to attach that. All I see is the Attach Code button below and that doesn't sound appropriate. So if someone wants to see it, please let me know how to do that.

Thanks,
Sue

View Replies !    View Related
ComboBox Expand Up?
I was wondering if there's a way to have a ComboBox component expand upward rather than downward. Many thanks for any input.

View Replies !    View Related
Expand Menu
Anyone know how to make navigation bar like
www.seraph.nl (its the site of the week)

Or link to the tutorial anywhere on the net.. i've searched and i couldnt find one..

View Replies !    View Related
Expand Shape?
Hey guys, I had a technique question, I have a graphic of a long rounded rectangle, and its a photoshop-produced graphic so its fancy and nonvector and all that.

I also have a squareish version of it (still rounded corners, but L and W are same, as opposed to being a rectangle) and I'd like to know how to expand the squarish one to form the original rectangle graphic

Let me know on your techniques =D

View Replies !    View Related
Possible To Expand The Height Of An Swf On The Fly?
Hi

Is there any function that allows to do this? Say I have an swf that is 400 pixels high and i add some content into it that is say 600 high, can I expand the whole swf's height to fit this new content or is using a scrollpane or something the only way this can be done?

Phil

View Replies !    View Related
Expand/contract
Ive got a menu that expands when you click it once, but I don't know how to make it contract when you click it the 2nd time. Plz help

View Replies !    View Related
XML Menu Expand Up
I need to get this to expand UP.

PHP Code:



/* LOAD XML NAVIGATION */////////////////////////////////////////////////////////// ************ Configuration *********************** //// general // main buttonsvar mainX = -759.3;var mainY = 10;var mainBtnSpacing:Number = 1;var mainBg:Number = 0xEBEAEA;var mainText:Number = 0xD5D5D5;var mainActiveText:Number = 0x499FD8;// sub buttons var slideInSpeed:Number = 0.5;var slideOutSpeed:Number = 0.5;var subMenuX:Number = 161;var subBg:Number = 0x000000;var subActiveBg:Number = 0x1A1A1A;var subBtnSpacing:Number = 34;// ************ End of Configuration *************** //////////////////////////////////////////////////////////// import needed classes import mx.transitions.Tween;import mx.transitions.easing.*;// set scope to this to avoid path issues var scope:MovieClip = this;scope.createEmptyMovieClip("mainMenu",2);// postion menumainMenu._x = mainX;mainMenu._y = mainY;// set the mask to hide menu when it goes past top level buttons//var mask:MovieClip = mainMenu.attachMovie("mask", "mask", 100);mask._width = 50; //Stage.width;mask._height = 50; //Stage.height;mask._y = Stage.height-50;//mask._alpha = 0;//mainMenu.setMask(mask);// used in createSubMenu function to choose which sub menu to closevar switcher:Boolean = true;// Load XMLvar menuXml:XML = new XML();menuXml.ignoreWhite = true;menuXml.onLoad = buildMenu;menuXml.load("content/xml/menu.xml");//menuXml.load("http://192.168.134.90/JoomlaEcom/read/index.php?action=top_level_cats");// Build Menufunction buildMenu(success:Boolean):Void {    if (success) {        button = this.firstChild.childNodes;        var i:Number;        for (i=0; i<button.length; i++) {            var mainBtn:MovieClip = mainMenu.attachMovie("mainBtn", "mainBtn"+i, i+500);            mainBtn.btnName.text = button[i].attributes.NAME;            mainBtn.link = button[i].attributes.LINK;            mainBtn.subMenu = button[i].childNodes.length;            // positon top menu buttons            mainBtn._x += mainMenu["mainBtn"+(i-1)]._x+mainMenu["mainBtn"+(i-1)]._width+mainBtnSpacing;            // hide overMc            mainBtn.overMc._alpha = 0;            // if menu has sub menus            if (mainBtn.subMenu) {                mainBtn.subbutton = button[i].childNodes;                mainBtn.createSubMenu = function():Void  {                    // choose which menu to close                    var subMenu:MovieClip = mainMenu.createEmptyMovieClip("subMenu", i);                    // set current sub menu                    currSub = subMenu;                    var j:Number;                    for (j=0; j<this.subMenu; j++) {                        // create subBtns                         var subBtn:MovieClip = subMenu.attachMovie("subBtn", "subBtn"+j, j+9000);                        // slide in sub menu                        slide(subBtn,currSub._y,subBtn._height-subBtnSpacing*(j),slideInSpeed+j*0.4,"_y",Elastic.easeOut);                        //slide(subBtn,0,subBtn._height+subBtnSpacing*(j),slideInSpeed+j*0.4,"_y",Elastic.easeOut);                        subBtn.btnName.text = this.subbutton[j].attributes.NAME;                        subBtn.link = this.subbutton[j].attributes.LINK;                        // set sub bg color                        var subBgColor = new Color(subBtn.bg);                        subBgColor.setRGB(subBg);                        // position subBtns                        subBtn._x = activeMain._x;                        // sub button events                         subBtn.onRelease = function():Void  {                            /* Links are set in the xml (the FILE LINK attribute) and are accessible by                             using "this.link" so you might want to do something like:                             scope.createEmptyMovieClip("placeholder", 2000);                            loadMovie(this.link, placeholder);                            if you want to open a http:// link try:                            getURL(this.link, "_blank");                            */                            trace(this.link);                        };                        subBtn.onRollOver = function():Void  {                            var subActiveColor = new Color(this.bg);                            subActiveColor.setRGB(subActiveBg);                        };                        subBtn.onRollOut = function() {                            var subNormalColor = new Color(this.bg);                            subNormalColor.setRGB(subBg);                        };                    }                    /* hit zone is used to create an area that if rolled over closes the menu.                    we use the mask mc again to save file size                    */                    var hitZone:MovieClip = scope.attachMovie("mask", "hitZone", 1);                    hitZone._x = mainX+currButton._x-50;                    hitZone._y = currButton._y-999;                    hitZone._width = subMenu._width+100;                    hitZone._height = subMenu._height+subBtnSpacing+mainY+1000;                    // comment this line out if you want to see where it is positoned                    hitZone._alpha = 0;                    hitZone.useHandCursor = false;                    hitZone.onRollOver = function() {                        slider.stop();                        closeMenu();                    };                };                mainBtn.onRollOver = function():Void  {                    slider.stop();                    currButton.overMc._alpha = 0;                    this.overMc._alpha = 100;                    if (activeMain != this) {                        activeMain = this;                        activeStates(this.btnName);                        // build subs                         currButton = this;                        this.createSubMenu();                        stopQuick(hitZone);                    }                };                //  events for buttons without subMenus            } else {                mainBtn.onRollOver = function():Void  {                    currButton.overMc._alpha = 0;                    this.overMc._alpha = 100;                    if (activeMain != this) {                        activeMain = this;                        activeStates(this.btnName);                        closeMenu();                        currButton = this;                    }                };                mainBtn.onRollOut = function():Void  {                    this.overMc._alpha = 0;                    activeStates(null,null);                    activeMain = null;                    currButton = null;                };                mainBtn.onRelease = function():Void  {                    if (activeMain != this) {                        /* Links are set in the xml (the button LINK attribute) and are accessible by                         using "this.link" so you might want to do something like:                         scope.createEmptyMovieClip("placeholder", 2000);                        loadMovie(this.link, placeholder);                        if you want to open a http:// link try:                        getURL(this.link, "_blank");                        */                        trace(this.link);                    }                };            }        }    } else {        trace("XML Failed to Load");    }}// timer to keep sub openfunction stopQuick(button) {    time = getTimer();    scope.onEnterFrame = function() {        time2 = getTimer();        if (Number(time2-time)>2000) {            button.enabled = true;            delete scope.onEnterFrame;        } else {            button.enabled = false;        }    };}// close menufunction closeMenu():Void {    currButton.overMc._alpha = 0;    slide(currSub,currSub._y,-currSub._height,slideOutSpeed,"_y",Strong.easeOut);    //slide(currSub,currSub._y,currSub._height,slideOutSpeed,"_y",Elastic.easeOut);    activeStates(null,null);    activeMain = null;    currButton = null;}// set/remove active statesfunction activeStates(txt):Void {    // set active state     txt.textColor = mainActiveText;    // remove active state from former    currButton.btnName.textColor = mainText;}// slide tweenfunction slide(who:MovieClip, startvalue:Number, endvalue:Number, y_speed:Number, prop:String, ease) {    slider = new Tween(who, prop, ease, startvalue, endvalue, y_speed, true);}// ------------------------------------------------------- // 





Code:
<?xml version="1.0" encoding="UTF-8"?>
<MENU>
<BUTTON NAME="About Us">
<SUB NAME="Submenu Link 1" LINK="sub1.swf" />
<SUB NAME="Submenu Link 2" LINK="sub2.swf" />
<SUB NAME="Submenu Link 3" LINK="sub3.swf" />
<SUB NAME="Submenu Link 4" LINK="sub4.swf" />
</BUTTON>
<BUTTON NAME="News" LINK="news.swf">
<SUB NAME="Submenu Link 1" LINK="sub1.swf" />
<SUB NAME="Submenu Link 2" LINK="sub2.swf" />
<SUB NAME="Submenu Link 3" LINK="sub3.swf" />
</BUTTON>
<BUTTON NAME="Services">
<SUB NAME="Submenu Link 1" LINK="sub1.swf" />
<SUB NAME="Submenu Link 2" LINK="sub2.swf" />
<SUB NAME="Submenu Link 3" LINK="sub3.swf" />
<SUB NAME="Submenu Link 4" LINK="sub4.swf" />
<SUB NAME="Submenu Link 5" LINK="sub5.swf" />
</BUTTON>
<BUTTON NAME="Contact" LINK="contact.swf"/>
</MENU>

View Replies !    View Related
ComboBox Expand Up?
I was wondering if there's a way to have a ComboBox component expand upward rather than downward. Many thanks for any input.

View Replies !    View Related
Expand Menu
Anyone know how to make navigation bar like
www.seraph.nl (its the site of the week)

Or link to the tutorial anywhere on the net.. i've searched and i couldnt find one..

View Replies !    View Related
Expand Out Of Bounds
Given a flash file with dimensions, like 300x400 embedded on an xhtml page, is there a way to allow the content to spill out of the box and over other elements? Ive seen this done on ads, but I want to use it for a navigation. Does anyone know how they do it?

View Replies !    View Related
Flash Expand Banner
Hi all, How to expand banner in browser, using flash banner..anyone can help

View Replies !    View Related
Graphic Expand On Rollover
Has any one seen the http://www.airforce.com web page.

If so you will see some very fast and very smooth expanding interface graphics.

I have a client that has requested this type of interface.

So far I have been able to actionscript a prototype that totally works using flash MX (exported as flash 4)...

But it runs slower and slightly more jerky than the air force site. I have tried cranking up the frame rate and using more frames, and also using less frames to no avail.

FYI: I am the serious artist/profectionist type. The difference in playback speed is small (My client probly wouldn't care)
but it annoys me.

If anyone has ideas for a Flash/Actionscript development direction for me that would be great.

Don

View Replies !    View Related
Image Shrink & Expand
Hello all. I'm a little unsure what is causing my image to 'shrink' & 'expand' when I have not transformed the image in any way.

Here is what I did: I stared with an image, converted it into a symbol. Then I changed the alpha 0% to 100% and back....all with the motion tween.

http://216.197.105.184/flash/my_first_tween.html (look closely at the center of the image)

Does anyone know what would cause this, or how to correct the problem?

Thanks!

View Replies !    View Related
Expand Text Box To Fit Content?
Hi,
I am loading various external text files with html formatting.
I have the textbox set to dynamic, multiline, render as html, characters embedded.
My text shows up fine, except it does not fit in the box.
As I do not know how much text is going to be loaded, I was hoping the text box would just expand to take whatever was loaded?
is that possible?

plus for some calculations I am getting the height of the mc containing the text box, which is not changing of course

mark

View Replies !    View Related
Click, And Expand Menu, PLEASE HELP :)
I am trying to learn the technique necessary to make a menu similar to this idea:

www.24-7media.de, where there are tabs on the SWF. Then when someone clicks them, the menu exapnds showcasing the content. Any help would be greatly appreciated.


Pleeeeeeeeeeeeeease
Thanks.

View Replies !    View Related
How Can I Expand This Function To Include X And Y
I want to add the ability to dictate where this clip goes on the x and y..... How would I do it?

Thanks.


[as]
function scaleTo(movie, targetScale, speed, tolerance) {
movie.createEmptyMovieClip("scaleControl", 1);
movie.scaleControl.targetScale = targetScale;
movie.scaleControl.speed = speed;
movie.scaleControl.tolerance = tolerance;
movie.scaleControl.onEnterFrame = function() {
this.currentScale = this._parent._xscale+(this.targetScale-this._parent._xscale)/this.speed;
if (Math.abs(this.targetScale-this._parent._xscale)>this.tolerance) {
this._parent._xscale = this.currentScale;
this._parent._yscale = this.currentScale;
} else {
this._parent._xscale = this.targetScale;
this._parent._yscale = this.targetScale;
this.removeMovieClip();
}
};
}
//then you only need to write
scaleTo(movieName, 300, 3, 1);
//whenever you want to scale something.

View Replies !    View Related
Expand Textinput Component
Is there any way you can expand a text input component to a fixed size when the user clicks on it? Or popup an input text box you can type into. I'm trying to create a form and need to save space so I was hoping there would be a way to just have the textinput component small but once they click on it, a box comes up where they can type more. They would need to be able to close the new box but I don't want to use popups.

View Replies !    View Related
Making A Line Expand
Hey im just having some simple trouble with lines. I wan't to say before i proceed that i learnt this thing by myself but the problem im having is that i can't remember how to do it. It goes like this:
Lets start with a round cirkel (draw it up and place it), then i want it to expand to a line so it looks almost like a writing effect, like im drawing with a pencil. Like this: (Phase 1) - (lets say that line is the dot) and it expands to: -----------. The line where it began doesnt move its stays, i just want it to expand forth or follow the guidlines i assign it to. I remember only using guidelines and morphing, more than that i dont know so pls help me :'(

View Replies !    View Related
[F8] Expand Button Range
Hello
I have a series of buttons that load text from an external file. Right now it is set for 7 buttons. But I want to expand it to over 100 or so. How would I do that wit this script. I believe it has something to do with the last line ("(-1)-1]") but I don't really understand this script. Can some one show me how to expand it to a larger number of buttons pleas.

Thanks. Code follows


stop();

var my_array=new Array();
dtext.html = true;

var buttonText:LoadVars = new LoadVars();
buttonText.onLoad = function(success) {
if (!success) {
dtext.htmlText = "<b>FAILED TO LOAD</b>";
} else {
for(var i=1; i<7; i++) {
mc=eval("this.button"+i);
my_array.push(mc);
_root["mcbutton"+i].onRollOver = function(){
this.gotoAndPlay(2);
assignText(this);
}
_root["mcbutton"+i].onRollOut = function(){
this.gotoAndPlay(21);
dtext.htmlText = "";}
}
}
};
buttonText.load("buttonText.txt");

function assignText(who){
dtext.htmlText = my_array[who._name.substr(-1)-1];
}

View Replies !    View Related
Expand Box And Push Out Movieclip
Hey guys

I have a gray box in my left side of my movie
a menu in the buttom and the site content to the right of the gray box

When i click the menu i want the gray box to expand and push the site content out and drag in new content.

Wich metode should i use to do this.
I think ill put the page content in a movieclip.

I hope you understand what i mean

/Try

View Replies !    View Related
[F8] Expand Stage Size
What is the best procedure to adjust the vertical height of the stage to accommodate a text field based on dynamic content? If I have a text field that has several paragraphs of text, can I just set the scale of the stage to move accordingly?

-gl

View Replies !    View Related
[CS3] Shrink/expand Not Quite Working
I have a small but frustrating issue with my portfolio.
If you go to this link > www.onemorechris.co.uk < and click on the photo section, then one of the items on the menu, it preloads an external SWF and expands on screen nicely, click again and the SWF unloads and shrinks back into place.

The issue is that if you try and click on the same item again, it doesnt perform the rollover,rollout or release functions. Only when you select another item does the first item "reset" itself and become clickable again.

Heres the offending blocks of code (please forgive my slopyness, i am a designer, not a developer):

//this code is in the main swf
#include "mc_tween2.as"
import mx.transitions.Tween;
import mx.transitions.easing.*;

var mcs:Array = new Array (mc01,mc02,mc03,mc04, mc05, mc06, mc07, mc08, mc09, mc10);
var titles:Array = new Array ("MC Skibadee at Digital, Brighton", "Crowds at Devotion, Brighton", "MC Bruno at Concorde 2, Brighton","Dubpressure, Concorde2, Brighton", "Slash and Velvet Revolver","Brandenburg Gate, Berlin 2008","Flower City LTD, 'Abandoned' series","Crypt doors, 'Abandoned' series");
var ext:Array = new Array ("pic1.swf","pic2.swf","pic3.swf","pic4.swf", "pic5.swf", "pic6.swf", "pic7.swf", "pic8.swf", "pic9.swf", "pic10.swf");

var mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
//listener.onLoadStart= function (alvo:Object) {
//alvo._parent.pct_txt.alphaTo(100,0.5)
//};
listener.onLoadProgress = function (preLoader:Object, bLoad:Number, bTotal:Number) {
lProgress = Math.round (bLoad / bTotal * 100);
_root.preLoader.gotoAndStop(2);
_root.preLoader.preloaderText.text = lProgress;
alignFunction();
};
listener.onLoadComplete = function (alvo:Object) {
leftPanelTween = new Tween (_root.leftPanel, "_x", Regular.easeOut, _root.leftPanel._x, 48, 15, false);
rightPanelTween = new Tween (_root.rightPanel, "_x", Regular.easeOut, _root.rightPanel._x, 264, 15, false);
rightPanelTween2 = new Tween (_root.rightPanel, "_y", Regular.easeOut, _root.rightPanel._y, aligner, 15, false);
mcs[itemSelecionado].fd_mc.tween(["_width","_height"],[748,497],0.5,"easeOutExpo")//pushes items down
_root.preLoader.gotoAndStop(1);
};
listener.onLoadError = function () {
trace ("load error");
};
mcl.addListener (listener);
//
_global.fechaMenu = function() {
for (var a=0; a<mcs.length; a++) {
if (a != itemSelecionado) {// Selecionado = selected item
mcs[a].bt_mc.enabled = true;
mcs[a].bt_mc.useHandCursor = true;
mcs[a].titleMC._y = (mcs[a].fd_mc._height);
mcs[a].fd_mc.tween(["_width","_height"],[120,80],1,"easeOutExpo")
mcl.unloadClip(mcs[a].alvo_mc)
}
}
}

for (var a:Number = 0; a < mcs.length; a++) {
mcs[a].a = a;
mcs[a].titleMC.titleText.autoSize = "left";
mcs[a].titleMC.titleText.text = titles[a];
//
mcs[a].bt_mc.onRollOver = function(){
this._parent.fd_mc.tween(["_width","_height"],[150,100],0.3,"easeOutBack")
_global.itemSelecionado = this._parent.a;
}
mcs[a].bt_mc.onRollOut = function(){
this._parent.fd_mc.tween(["_width","_height"],[120,80],0.5,"easeOutBack")
}
mcs[a].bt_mc.onRelease = function(){
delete _root.the_arrow.onEnterFrame; //stops scrolling
this.enabled = this.useHandCursor = false//no idea
mcl.loadClip(ext[this._parent.a],this._parent.alvo_mc)//loads swf from array into alvo_mc
fechaMenu();
_global.itemSelecionado = this._parent.a;
}
}

---------------------------------------------

//this code is on a button in the external SWF that is loaded EG: pic1.swf
on (release) {
arrowScroller();
reCenterPanels2();

this._parent.fd_mc.tween(["_width","_height"],[120,80],0.5,"easeOutExpo")
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.unloadClip(_parent.alvo_mc)//unloads alvo_mc
_global.itemSelecionado = this._parent._parent.a
}

----------------------------------------------

Im pretty sure its a very small thing I've missed and I would really like some help.

View Replies !    View Related
[CS3] Shrink/expand Not Quite Working
I have a small but frustrating issue with my portfolio.
If you go to this link > www.onemorechris.co.uk < and click on the photo section, then click one of the items on the menu, it preloads an external SWF and expands on screen nicely, click again and the SWF unloads and shrinks back into place.

The issue is that if you try and click on the same item again, it doesnt perform the rollover,rollout or release functions. Only when you select another item does the first item "reset" itself and become clickable again.

Heres the offending blocks of code (please forgive my slopyness, i am a designer, not a developer):

//this code is in the main swf
#include "mc_tween2.as"
import mx.transitions.Tween;
import mx.transitions.easing.*;

var mcs:Array = new Array (mc01,mc02,mc03,mc04, mc05, mc06, mc07, mc08, mc09, mc10);
var titles:Array = new Array ("MC Skibadee at Digital, Brighton", "Crowds at Devotion, Brighton", "MC Bruno at Concorde 2, Brighton","Dubpressure, Concorde2, Brighton", "Slash and Velvet Revolver","Brandenburg Gate, Berlin 2008","Flower City LTD, 'Abandoned' series","Crypt doors, 'Abandoned' series");
var ext:Array = new Array ("pic1.swf","pic2.swf","pic3.swf","pic4.swf", "pic5.swf", "pic6.swf", "pic7.swf", "pic8.swf", "pic9.swf", "pic10.swf");

var mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
//listener.onLoadStart= function (alvo:Object) {
//alvo._parent.pct_txt.alphaTo(100,0.5)
//};
listener.onLoadProgress = function (preLoader:Object, bLoad:Number, bTotal:Number) {
lProgress = Math.round (bLoad / bTotal * 100);
_root.preLoader.gotoAndStop(2);
_root.preLoader.preloaderText.text = lProgress;
alignFunction();
};
listener.onLoadComplete = function (alvo:Object) {
leftPanelTween = new Tween (_root.leftPanel, "_x", Regular.easeOut, _root.leftPanel._x, 48, 15, false);
rightPanelTween = new Tween (_root.rightPanel, "_x", Regular.easeOut, _root.rightPanel._x, 264, 15, false);
rightPanelTween2 = new Tween (_root.rightPanel, "_y", Regular.easeOut, _root.rightPanel._y, aligner, 15, false);
mcs[itemSelecionado].fd_mc.tween(["_width","_height"],[748,497],0.5,"easeOutExpo")//pushes items down
_root.preLoader.gotoAndStop(1);
};
listener.onLoadError = function () {
trace ("load error");
};
mcl.addListener (listener);
//
_global.fechaMenu = function() {
for (var a=0; a<mcs.length; a++) {
if (a != itemSelecionado) {// Selecionado = selected item
mcs[a].bt_mc.enabled = true;
mcs[a].bt_mc.useHandCursor = true;
mcs[a].titleMC._y = (mcs[a].fd_mc._height);
mcs[a].fd_mc.tween(["_width","_height"],[120,80],1,"easeOutExpo")
mcl.unloadClip(mcs[a].alvo_mc)
}
}
}

for (var a:Number = 0; a < mcs.length; a++) {
mcs[a].a = a;
mcs[a].titleMC.titleText.autoSize = "left";
mcs[a].titleMC.titleText.text = titles[a];
//
mcs[a].bt_mc.onRollOver = function(){
this._parent.fd_mc.tween(["_width","_height"],[150,100],0.3,"easeOutBack")
_global.itemSelecionado = this._parent.a;
}
mcs[a].bt_mc.onRollOut = function(){
this._parent.fd_mc.tween(["_width","_height"],[120,80],0.5,"easeOutBack")
}
mcs[a].bt_mc.onRelease = function(){
delete _root.the_arrow.onEnterFrame; //stops scrolling
this.enabled = this.useHandCursor = false//no idea
mcl.loadClip(ext[this._parent.a],this._parent.alvo_mc)//loads swf from array into alvo_mc
fechaMenu();
_global.itemSelecionado = this._parent.a;
}
}

---------------------------------------------

//this code is on a button in the external SWF that is loaded EG: pic1.swf
on (release) {
arrowScroller();
reCenterPanels2();

this._parent.fd_mc.tween(["_width","_height"],[120,80],0.5,"easeOutExpo")
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.unloadClip(_parent.alvo_mc)//unloads alvo_mc
_global.itemSelecionado = this._parent._parent.a
}

----------------------------------------------

Im pretty sure its a very small thing I've missed and I would really like some help.

View Replies !    View Related
[CS3] Shrink/expand Not Quite Working
I have a small but frustrating issue with my portfolio.
If you go to this link > www.onemorechris.co.uk < and click on the photo section, then click one of the items on the menu, it preloads an external SWF and expands on screen nicely, click again and the SWF unloads and shrinks back into place.

The issue is that if you try and click on the same item again, it doesnt perform the rollover,rollout or release functions. Only when you select another item does the first item "reset" itself and become clickable again.

Heres the offending blocks of code (please forgive my slopyness, i am a designer, not a developer):


PHP Code:




//this code is in the main swf
#include "mc_tween2.as"
import mx.transitions.Tween;
import mx.transitions.easing.*;

var mcs:Array = new Array (mc01,mc02,mc03,mc04, mc05, mc06, mc07, mc08, mc09, mc10);
var titles:Array = new Array ("MC Skibadee at Digital, Brighton", "Crowds at Devotion, Brighton", "MC Bruno at Concorde 2, Brighton","Dubpressure, Concorde2, Brighton", "Slash and Velvet Revolver","Brandenburg Gate, Berlin 2008","Flower City LTD, 'Abandoned' series","Crypt doors, 'Abandoned' series");
var ext:Array = new Array ("pic1.swf","pic2.swf","pic3.swf","pic4.swf", "pic5.swf", "pic6.swf", "pic7.swf", "pic8.swf", "pic9.swf", "pic10.swf");

var mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
//listener.onLoadStart= function (alvo:Object) {
    //alvo._parent.pct_txt.alphaTo(100,0.5)
//};
listener.onLoadProgress = function (preLoader:Object, bLoad:Number, bTotal:Number) {
    lProgress = Math.round (bLoad / bTotal * 100);
    _root.preLoader.gotoAndStop(2);
    _root.preLoader.preloaderText.text = lProgress;
    alignFunction();
};
listener.onLoadComplete = function (alvo:Object) {
    leftPanelTween = new Tween (_root.leftPanel, "_x", Regular.easeOut, _root.leftPanel._x, 48, 15, false);
    rightPanelTween = new Tween (_root.rightPanel, "_x", Regular.easeOut, _root.rightPanel._x, 264, 15, false);
    rightPanelTween2 = new Tween (_root.rightPanel, "_y", Regular.easeOut, _root.rightPanel._y, aligner, 15, false);
    mcs[itemSelecionado].fd_mc.tween(["_width","_height"],[748,497],0.5,"easeOutExpo")//pushes items down
    _root.preLoader.gotoAndStop(1);
};
listener.onLoadError = function () {
    trace ("load error");
};
mcl.addListener (listener);
//
_global.fechaMenu = function() {
    for (var a=0; a<mcs.length; a++) {
        if (a != itemSelecionado) {// Selecionado = selected item
            mcs[a].bt_mc.enabled = true;
            mcs[a].bt_mc.useHandCursor = true;
            mcs[a].titleMC._y = (mcs[a].fd_mc._height);
            mcs[a].fd_mc.tween(["_width","_height"],[120,80],1,"easeOutExpo")
            mcl.unloadClip(mcs[a].alvo_mc)
        }
    }
}

for (var a:Number = 0; a < mcs.length; a++) {
    mcs[a].a = a;
    mcs[a].titleMC.titleText.autoSize = "left";
    mcs[a].titleMC.titleText.text = titles[a];
    //
    mcs[a].bt_mc.onRollOver = function(){
        this._parent.fd_mc.tween(["_width","_height"],[150,100],0.3,"easeOutBack")
        _global.itemSelecionado = this._parent.a;
    }
    mcs[a].bt_mc.onRollOut = function(){
        this._parent.fd_mc.tween(["_width","_height"],[120,80],0.5,"easeOutBack")
    }
    mcs[a].bt_mc.onRelease = function(){    
        delete _root.the_arrow.onEnterFrame; //stops scrolling
        this.enabled = this.useHandCursor = false//no idea
        mcl.loadClip(ext[this._parent.a],this._parent.alvo_mc)//loads swf from array into alvo_mc
        fechaMenu();
        _global.itemSelecionado = this._parent.a;
    }
}







---------------------------------------------


PHP Code:




//this code is on a button in the external SWF that is loaded EG: pic1.swf
on (release) {
    arrowScroller();
    reCenterPanels2();

    this._parent.fd_mc.tween(["_width","_height"],[120,80],0.5,"easeOutExpo")
    var mcl:MovieClipLoader = new MovieClipLoader();
    mcl.unloadClip(_parent.alvo_mc)//unloads alvo_mc    
    _global.itemSelecionado = this._parent._parent.a
}







----------------------------------------------

Im pretty sure its a very small thing I've missed and I would really like some help.

View Replies !    View Related
Expand Effect In Flash
I have a basic general knowledge of flash. Im trying to get back into it and learn more for work. Im fooling around with the expand effect for text. I think Ive got a pretty good handle on it, but I would like more options on the controls. Currently its blowing apart the text well, but the letters on the ends are blowing apart farther then the letters in the middle. I would like ALL letter to blow apart so that the same amount of space is between them at the end.
Currently my settings in the expand dialog box are as follows...
Effect Duration: 10 frames
Expand
shift group center by:
x:0
y:0
Fragment offset: 10
Change fragment size by:
height:0
width:0

Im thinking this is probably the easiest way to get the effect im looking for but its blowing apart the wrong way.

If anyone has ANY suggestions I would be VERY grateful!
Thank you in advance

View Replies !    View Related
On Roll Over I Want An Mc To Expand Smoothly, And
i used to have a cool component that helped me to do this. I'd prefer to do it with code, and have easing involved, rather than on the timeline.

Do you know of an efficient way to achieve this rather basic effect?

I'd ideally like to control the speed with a variable perhaps.

thanks.

View Replies !    View Related
Expand And Squeeze Button... But How ?
there are many sites with that kind of menu. When you rollover a button, it expands and squeeze the others and keeping the same space between the buttons. I am trying to create this effect, but I can't find a way. Here is the beginning of my script :


Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var buttonInit:Object = new Object();
var posX:Number = 50;
var posY:Number = 50;
var spaceBut:Number = 5;
var xScaleOver:Number = 120;
var xScaleOut:Number = 100;
buttonInit.onRelease = function() {
trace(this._name);
};
buttonInit.onRollOver = function() {
var locX:Number = this._x-((((this._width*xScaleOver)/100)-this._width)/2);
var xScaleTween:Tween = new Tween(this, "_xscale", Strong.easeOut, this._xscale, xScaleOver, 1, true);
var locXTween:Tween = new Tween(this, "_x", Strong.easeOut, this._x, locX, 1, true);
};
buttonInit.onRollOut = function() {
var xScaleTween:Tween = new Tween(this, "_xscale", Strong.easeOut, this._xscale, xScaleOut, 1, true);
var locXTween:Tween = new Tween(this, "_x", Strong.easeOut, this._x, this.posX, 1, true);
};
for (var i:Number = 1; i<4; i++) {
var newName:String = "but"+String(i);
var newDepth:Number = this.getNextHighestDepth();
var newButton:Object = this.attachMovie("button", newName, newDepth, buttonInit);
newButton._x = posX;
newButton._y = posY;
newButton.posX = posX;
posX += newButton._width+spaceBut;
}
here is a link : http://www.e-novative.ca/menu/test.html

View Replies !    View Related
Expand Image And Add Textboxes?
Hello,

I have a question, but I don't really know how I can handle the job with actionscript.

For example, when there is an image consisting of 4 dots. 2 above and 2 below.
Now when I click this image, it has to expand (which I can handle, that's no problem).. But there also has to become a textbox to every dot, where I can type the name of the dot, f.ex "dot1".

When I click the image, it has to go to the normal size again. And when I point over the dot, it has to show the name I just typed.

But I don't really know how to handle the Image vs. the separte dots. How can I handle this?

Thank you at advance,
Alexander

View Replies !    View Related
Expand Dynamic Textfield?
Is there a way to get a dynamic textfield's height to expand with the amount of text that is loaded into it? I'd like to load different amounts of text dynamically and have the box expand in height, rather than have to setup a scoller if the text loaded is too long to fit into the field that was created.

Or is there a way to create an empty dynamic textfield that just automatically adjusts to the height of the text loaded?

Any help would be appreciated.

View Replies !    View Related
Expand Fill Problems
does anyone have any idea why when i try and expand the fill on broken up text, i get gibberish?

i've tried this on a system wih an athlon and another with a pentuim and i still get this.

any ideas?

RoninSamurai

View Replies !    View Related
Shrink/expand Almost Works
I have a small but frustrating issue with my portfolio.
If you go to this link > www.onemorechris.co.uk < and click on the photo section, then click one of the items on the menu, it preloads an external SWF and expands on screen nicely, click again and the SWF unloads and shrinks back into place.

The issue is that if you try and click on the same item again, it doesnt perform the rollover,rollout or release functions. Only when you select another item does the first item "reset" itself and become clickable again.

Heres the offending blocks of code:
//this code is in the main swf

PHP Code:



#include "mc_tween2.as"
import mx.transitions.Tween;
import mx.transitions.easing.*;

var mcs:Array = new Array (mc01,mc02,mc03,mc04, mc05, mc06, mc07, mc08, mc09, mc10);
var titles:Array = new Array ("MC Skibadee at Digital, Brighton", "Crowds at Devotion, Brighton", "MC Bruno at Concorde 2, Brighton","Dubpressure, Concorde2, Brighton", "Slash and Velvet Revolver","Brandenburg Gate, Berlin 2008","Flower City LTD, 'Abandoned' series","Crypt doors, 'Abandoned' series");
var ext:Array = new Array ("pic1.swf","pic2.swf","pic3.swf","pic4.swf", "pic5.swf", "pic6.swf", "pic7.swf", "pic8.swf", "pic9.swf", "pic10.swf");

var mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
//listener.onLoadStart= function (alvo:Object) {
//alvo._parent.pct_txt.alphaTo(100,0.5)
//};
listener.onLoadProgress = function (preLoader:Object, bLoad:Number, bTotal:Number) {
lProgress = Math.round (bLoad / bTotal * 100);
_root.preLoader.gotoAndStop(2);
_root.preLoader.preloaderText.text = lProgress;
alignFunction();
};
listener.onLoadComplete = function (alvo:Object) {
leftPanelTween = new Tween (_root.leftPanel, "_x", Regular.easeOut, _root.leftPanel._x, 48, 15, false);
rightPanelTween = new Tween (_root.rightPanel, "_x", Regular.easeOut, _root.rightPanel._x, 264, 15, false);
rightPanelTween2 = new Tween (_root.rightPanel, "_y", Regular.easeOut, _root.rightPanel._y, aligner, 15, false);
mcs[itemSelecionado].fd_mc.tween(["_width","_height"],[748,497],0.5,"easeOutExpo")//pushes items down
_root.preLoader.gotoAndStop(1);
}; 
listener.onLoadError = function () {
trace ("load error");
};
mcl.addListener (listener);
//
_global.fechaMenu = function() {
for (var a=0; a<mcs.length; a++) {
if (a != itemSelecionado) {// Selecionado = selected item
mcs[a].bt_mc.enabled = true;
mcs[a].bt_mc.useHandCursor = true;
mcs[a].titleMC._y = (mcs[a].fd_mc._height);
mcs[a].fd_mc.tween(["_width","_height"],[120,80],1,"easeOutExpo")
mcl.unloadClip(mcs[a].alvo_mc)
}
}
}

for (var a:Number = 0; a < mcs.length; a++) {
mcs[a].a = a;
mcs[a].titleMC.titleText.autoSize = "left";
mcs[a].titleMC.titleText.text = titles[a];
//
mcs[a].bt_mc.onRollOver = function(){
this._parent.fd_mc.tween(["_width","_height"],[150,100],0.3,"easeOutBack")
_global.itemSelecionado = this._parent.a;
}
mcs[a].bt_mc.onRollOut = function(){
this._parent.fd_mc.tween(["_width","_height"],[120,80],0.5,"easeOutBack")
}
mcs[a].bt_mc.onRelease = function(){    
delete _root.the_arrow.onEnterFrame; //stops scrolling
this.enabled = this.useHandCursor = false//no idea
mcl.loadClip(ext[this._parent.a],this._parent.alvo_mc)//loads swf from array into alvo_mc
fechaMenu();
_global.itemSelecionado = this._parent.a;
}





//this code is on a button in the external SWF that is loaded EG: pic1.swf

PHP Code:



on (release) {
arrowScroller();
reCenterPanels2();

this._parent.fd_mc.tween(["_width","_height"],[120,80],0.5,"easeOutExpo")
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.unloadClip(_parent.alvo_mc)//unloads alvo_mc    
_global.itemSelecionado = this._parent._parent.a





Im pretty sure its a very small thing I've missed and I would really like some help.

View Replies !    View Related
Expand Loader From Center
is it possible?
talking about this loader:
var loaderName:Loader = new Loader();
I have an image inside of it and when i try to scale its width and height its scales from the top left.
how can i make it scale from the center?

View Replies !    View Related
Expand Article, Push Everything Down
I have a news module that I am creating using XML that looks like this right now:


When the user clicks on an article, I want the article to expand downwards pushing anything below it down too. How could I do that dynamically?

I guess its kind of like an accordion.

View Replies !    View Related
How To Expand Flash To Fit The Browser?
I ran across this web site http://www.sb-architects.com/ and some others that are using this feature. I was wondering if anyone knows how this is done. Basically what it does is that when you expand the browser a part of the flash expands with the browser too. Thanks for the help.

View Replies !    View Related
Collapse/Expand Menu
Hello, i searched long time but i found only menu creator softwares.
Do you know any tutorial about expand menus?

View Replies !    View Related
Want To Fully Expand Window For A CD
What's the best way to expand a movie I made for a cd?

The movie is 716 X 359. I want the .exe to launch from the CD, and expand the a colored background full screen.

Would this be an FS command? If so what is it and where would I put it?

Also what is the command to exit completely (when the movies done), and can I put that on a button?

THANK YOU FLASHERS!

: grey :

View Replies !    View Related
Expand / Collapse Navigation.
Ello -

I'm wanting to create an expand/collapse style navigation like the one found here: http://www.24-7media.de/

Using the tutorial found here: http://actionscript.org/tutorials/a...ted/index.shtml - I've gotten a bit of a start on it. But I'm not that familiar with functions in Flash so I'm a bit stuck. I've attached my .fla file. Any help you could give me would be greatly appreciated.

View Replies !    View Related
Links Expand Text...
If someone could point me to a good tutorial on this, I'd be most grateful. I've tried searching, but maybe I'm not using the right keywords...

Anyhow, what I want is to have a dynamic text box which loads text...say it's for journal entries, but all the user sees is the dates of entry, which are links. When the user clicks on a date, the text entry for that day expands. Make sense? Not sure what this is called, but any help would be appreciated.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved