ActionScript 2.0 :: Vertical Portfolio Viewer - Position New SWF With Same Height?

Aug 11, 2009

I'm building a vertical portfolio viewer which uses the below code to create my gallery. I'm loading the data externally via xml (which loads fine, so no problems there). The data which loads is a set of separate .swf files all of different sizes in height. The only thing I can't do is position the newly created .swf file right underneath the last one in the array, based on the height of said last .swf file. The only way I can do it at the moment is per below, which duplicates my project clip (the clip which the .swf's load into) and places the next one right underneath the height of the actual project clip, not the height of the .swf being loaded into it. How I can target the height of the external .swfs, and position the next one in the array right underneath the last one, based on the height of that last .swf, (so if at anypoint in the future the height changed, it would psition itself correctly).

code:
// set up gallery...
setGallery = function () {
// Builds gallery projects menu based on XML Data...
for (i=0; i<total; ++i) {
// Build arrays...
image[i] = xmlNode.childNodes[i].attributes.Image;
[Code] .....

View 9 Replies


Similar Posts:


ActionScript 3.0 :: Coding A Easily Updated Portfolio Viewer

Oct 19, 2009

so I'd like to get some input on how exactly to go about coding this thing in the most efficient manner..i have 4 portfolio galleries im trying to display (web design branding motion)and the thumbnails for each of my projects are going to be displayed on a grid of 50x50px squares.id like to dynamically populate these 50x50 squares with thumbnails pulled from a folder and then populated into the grid sequentially then when an individual square is clicked have a full size version of the image (also pulled from the folder) populated in the same manner.

View 1 Replies

IDE :: Vertical Menu Of Questions The Viewer Clicks On?

May 12, 2010

So I have an animation I'm working on, its dialog driven and I want a vertical menu of questions the viewer clicks on. When its clicked it plays a specific sequence of animation, that part I have covered. Depending on the question clicked however, I want the menu to update with follow up questions.

-several menu items need to open up new menu items.
-the new menu items appear beneath the previous item.
-each new menu item needs to highlight text.
-each used menu item needs to dim text.

I'm mostly a script kiddy, I find stuff similar to what I need and take it apart and rebuild it to my needs. But I haven't found anything of this sort. The closest thing I have is creating a menu with an array.

I thought to assign the initial array values to questions as they would appear on a complete list. The idea is at the end of a string of dialog to run a check on a specific array value, if it comes up false, create that value and hence the new menu item is in it's proper place on the list (including appropriate highlight/dim text color). The problem is that when I run a trace I get a bunch of undefined values in-between. I don't want a menu with "undefined" text labels/buttons, is there a way to run a check for undefined during the menu loop and tell it to skip to the next value?

is this the best way to handle this project? I'd rather not create a complex movie clip of every possible menu configuration and run a ton of value checks with goto frames.

View 3 Replies

ActionScript 3.0 :: Move The Vertical ScrollBar Position Of The ScrollPane To Top/initial Position

Jun 30, 2009

I am using a ScrollPane in my application(viz., instance name is: myScrollPane). When I view the contents of the ScrollPane, it shows them perfectly. My issue is: When I try to view data present inside the ScrollPane, if I move the Vertical-ScrollBar of the ScrollPane to middle(or somewhere from top to down) and then click on Submit button(viz., instance name is: submit_btn), then its Vertical ScrollPosition must be reset from middle(or any position where we leave it before) to top(or initial position). Hence, I need to move the Vertical ScrollPosition of ScrollPane to top (or) initial position. Everytime, I need to refresh the VerticalScrollBar Position when I click on the submit button. How to do it?

View 1 Replies

ActionScript 2.0 :: Vertical Position Of Text In A Textfield?

Nov 9, 2005

What I'm trying to do is to position the text in the top part of a combo box vertically. I need to make the height of the textfield section a minimum amount because of touchscreen considerations. It's taller than appropriate for the font size I've chosen.

I know how to reference the textField element of the combo box, so my actual question is can I position the text so that it is centered vertically in a textField? I've seen several of the formatting options, but just haven't stumbled across a setting that allows me to change the default "top justification" that textFields get for their text.

View 2 Replies

ActionScript 2.0 :: CS3 : Vertical Scroller Controlled By Mouse Position?

Aug 15, 2010

Using this code made by Genesis F5:

Code:
// EXAMPLE CREATED BY GENESIS F5 (www.flashkit.com)
stageheight = Stage.height / 2;
overhangy = ((stageheight * 2) - image._height) / 2;

[code]...

Basically, my problem is that i've got 15 buttons labeled Channel 1 to Channel 15, but when the page first loads up, it skips down showing the very last button at the bottom, rather than the very first button at the top. The top button is off the screen.

View 9 Replies

IDE :: Stop On Rollover This Endless Vertical Slider In Fixed Centered Position?

Mar 13, 2009

how to stop on rollover this endless vertical slider in fixed centered position?

[Code].....

View 2 Replies

ActionScript 2.0 :: Change The Claudio Scroller So That It Will Scroll Ease Depending On The Vertical Mouse Position?

Jun 9, 2005

Does anyone know what I can do to change the claudio scroller so that it will scroll ease depending on the vertical mouse position?

View 4 Replies

Flash :: Cannot Position MovieClips Loaded With Images Based On Their Height

Aug 1, 2011

I use the following code to load some banners: a "banner" is a clickable PNG image. I get the URL it must point to through a parameter of the AdLoader class.

package
{
import flash.display.MovieClip;
import flash.display.Loader;

[Code].....

In practice, I create some MovieClip containers (loader_1, loader_2, etc.) and in each container I want to load one image.

What happens: when the images are loaded I want to position each image at the y+10 pixel of the preceding, so if the first is at y:0 and its height is 140, I want the second image at y:150 (and so on). I can't understand what it happens but sometimes the code works, while most of the time it doesn't.

View 1 Replies

ActionScript 3.0 :: Position Text From Xml List Based On Textfield Height?

Dec 5, 2009

I have text that loads into a dynamic text field that is on the stage. The movie clip("tile" in code below) in which the dynamic text field resides is placed on the stage via loop function.I can load the text from the xml file just fine.However, since each text field in loop autosizes, which is what I want, (in height only-width is fixed), I want the next text in the loop to load in a Y position based on the previous text box height including a "cushion" of my choosing. I'm very close, but can't seem to get the math right that is needed for the tiles Y position...

Here it is:

Code:
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("faq.xml"));
xmlLoader.addEventListener(Event.COMPLETE, onXMLLoad, false, 0, true);

[code]....

View 3 Replies

ActionScript 2.0 :: Setting Final Mc Position Depending On Text Height?

Jun 1, 2003

I have an empty mc called "attachmcextra".Into this empty mc is attached another mc called "mcnote" that contains a texto box named "loadnote". So it`s path would be:_root.attachextra.mcnote.loadnoteThe following code is set to the mc "attachextra":

onClipEvent (load) {
//set inicial position
this.posY = 20;

[code]....

View 1 Replies

ActionScript 3.0 :: Position Text From Xml Based On Autosize Textfield Height?

Dec 5, 2009

I have text that loads into a dynamic text field that is on the stage. The movie clip("tile" in code below) in which the dynamic text field resides is placed on the stage via loop function.

I can load the text from the xml file just fine.However, since each text field in loop autosizes, which is what I want, (in height only-width is fixed), I want the next text in the loop to load in a Y position based on the previous text box height including a "cushion" of my choosing.

I'm very close, but can't seem to get the math right that is needed for the tiles Y position...I'm thinking this should be simple

Here it is:

Code:
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("faq.xml"));
xmlLoader.addEventListener(Event.COMPLETE, onXMLLoad, false, 0, true);

[cod].....

View 5 Replies

ActionScript 2.0 :: EmbedFonts Makes Text Disappear - Dynamic Text Vertical Position?

Aug 7, 2003

I have the following code:

Code:
this.createTextField ("imageText",2,95,0,390,96);
imageText.multiline = true;
imageText.wordWrap = true;[code].....

The problem:If I uncomment either of the imageText.embedFonts lines, my text will disappear... but the trace(imageText.text); will still return the correct contents. It's as though embedFonts causes the textField to disappear.Possibly related, (but maybe not), is the fact that the vertical positioning of the font is off. Even though I create the textField at Y = 0, the text writes somewhere around Y = 10. I suspect this is something else, but I thought I'd add it just in case.

View 3 Replies

Actionscript 3 :: Position Loaded Images From Loop Based On Image Height?

Jun 10, 2010

I'm trying to dynamically stack images that are being pulled in via an xml file. Below is what I'm doing, and it almost works. The problem is that it only seems to fire off the event complete function on the very last one, instead of going for all of them. Is there a way to make it run the even.complete function for each image?

function aboutfileLoaded(event:Event):void {
aboutXML = new XML(aboutTextLoader.data);
for(var l:int = 0; l < aboutXML.aboutimages.image.length(); l++)

[Code]....

View 2 Replies

ActionScript 3.0 :: Controlling Position Of Text Fields Based On Varying Height?

Jul 6, 2011

I am populating a textfield with text from XML files. I am wondering what the best way is to handle positioning the TF based on the number of lines of text. So if there is only one line, the textfield's 'y' position might be 100, but if there are 2 lines I want it to move to say 80.

View 1 Replies

Flex :: Align Vertical Axis Zero For Multiple Vertical Axis Chart?

Mar 22, 2011

Based on this Adobe multiple axis chart example: [URL]

Then I changed some data values to negative and my axis became not aligned anymore.

how to align vertical axis? Is this another Adobe bug or there is some property that aligns axis?

<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"

[Code]...

View 1 Replies

Actionscript 2.0 :: Get Vertical Dynamic Text Block By Setting To Vertical And Then To Dynamic

Jun 17, 2009

i found i can get vertical dynamic text block by setting to vertical and then to dynamic. But, then it ends up being horizontal, and if inside a clip, only the letters over another item in clip show. Like veritcal text on a vertical bar gives only the 1 or 2 letters that fit across bar, rest truncated. i've tried embedding text to get this far, but still doesn't work 'all the way' i see online they talk about all scripting for dynamic, vertical text; is that necessary, or am i missing something??

View 1 Replies

ActionScript 2.0 :: Change Widht, Height And Width/height Ration In An Flv Video File?

Mar 25, 2011

I would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?

View 3 Replies

ActionScript 3.0 :: Resizing A Movie Clips Height Automatically To Match The Height Of Some Dynamic Text

Jul 1, 2010

I am resizing a movie clips height automatically to match the height of some dynamic text that is displayed above it (will eventually be loading it from xml ). is there a way to keep a safe margin top and bottom? this is my code so far Text_Box_Graphic.height = Text_Box.height;

View 2 Replies

Bind A Flex Component's Height To Height Of Browser Window?

Nov 10, 2009

I want to constrain the height of a flex component to the height of the browser viewport.

The component's children are populated from a database table using a repeater, and are basic checkboxes. There are enough of them that the flex app ends up being about twice the height of the screen, which means some of the rest of the layout goes crappy on me. How can I force the component that contains these to limit itself to the size of the viewport?

View 4 Replies

Flex :: Setting Spark List Height To Its Content Height?

Apr 1, 2010

How to set a Spark List height to the height of its content?Tried this:

var lastRow:IVisualElement =
myList.dataGroup.getElementAt(myList.dataGroup.numElements - 1);
myList.height = lastRow.y + lastRow.height;

It works in case of a single item, but lastRow is null in case of more items.

View 5 Replies

Flex :: Layout - Set Height Of Accordion To Height Of Tallest Child

Apr 5, 2010

By default the height of an Flex Accordion container is the height of the initially selected child. I'd like to be able to set the height to the tallest child so that no resizing or scrolling is necessary when other children are selected. I do not want to use the resizeToContent property. I want the size of the container to stay constant no matter what child is selected.

My current thought is to extend the accordion class setting the creation policy to "all" and then override the measure function to loop through all the children and find the tallest one and use that for the height. This seems a little kludgy though, so I'd like to know if there is a better approach. Ultimately my question is: is there a way to set the size of an accordion container such that the container never resizes and scoll bars are never necessary to display any of the children?

View 1 Replies

Flash :: Symbol's Height (in Code) Seem Different Than Its Height (in Design)

Jan 11, 2011

I have a bit of graphical content inside a symbol that I've created in Flash CS5. Let's call it FunGraphics_Art, it's set to export, and it extends MovieClip.When I edit the symbol in Flash and I hit control-A, the properties panel tells me that all of the content has a height of 72 pixels, positioned at 0,0.The content consists of a few (classic) textfields, and a couple of Checkbox components and a few bits of vector art.All the content is on a single frame, no layers.So far, so good. I export my art as a .svc and am able to use it all in code just fine. However I then add the following bit of code to my .as file..[code]Somehow, there's something strange going on that's causing Flash to think my exported symbol is about 75 pixels higher than it actually is. I've looked around for invisible "blank" textfields, but haven't found anything yet.

View 2 Replies

Actionscript 2 :: Flash - Set Container's Height To The Height Of The Textfield

May 6, 2011

I've created a dynamic text field, and set autoSize to true, so it can grow was tall as necessary. I then want to use the _height value to size a container graphic (speech bubble). Here's the (simplified) code:

[Code]....

Returns 19.6 followed immediately by 35.2. It's as though reading txt._height causes it to recalculate, so it's correct the second time. I also tried the textHeight property, which also seems to get recalculated after _height is accessed. This sequence, for example:

[Code]....

View 2 Replies

Html :: <object> Height Ignores Parent Div Height?

Aug 9, 2011

I have a problem with an flash object. The object is an expanding topbanner, but when retracted, the on mouse over effect still appears on the invisible part of the banner. The code is the following:

<div id="exp_banner" style="width:930px; height:180px; overflow: hidden; position: absolute; z-index: 100;">
<object type="application/x-shockwave-flash" data="test.swf" width="930"

[Code].....

I have tried to add a style height to the object with an height of 180px, but then the banner scales down.

View 1 Replies

ActionScript 3.0 :: Height Of Scrollbar To Height Of Scrolling Content?

Nov 8, 2009

I made a scrollbar class that works pretty well. I'm trying to come up with an idea for how to set to the height of the scrollbar vs the height of the scrolling content. This is a standard thing that happen in the OS. Seems there should be a minimum number and the maximum value should be reached as the size of the content approaches the size of the visible area.

View 3 Replies

Flex :: Make Height Of SWF == Height Of Content?

May 26, 2009

I am going to embed a Flex app on an html page. The html page is already going to have a scroll bar to scroll up and down. The contents of the flex app are very dynamic, and I don't want to have an extra scroll bar when there is already one. So is there a way to make the height of the swf match the height of the contents of the swf?

View 2 Replies

ActionScript 2.0 :: Set Stage Height To Browser Height?

Oct 8, 2010

Is it possible to get the browser height via flash and set the stage height to that value? I know you can set the height to 100% in publish settings, however one of my scroller scripts needs the stage height to be exactly the height of the content area of the browser.

View 5 Replies

ActionScript 2.0 :: Trying To Be Clever With Portfolio

Nov 15, 2006

But need help at this point! Can't get both galleries to work in harmony they load in but only one functions properly Zipped up the source [URl]..

View 2 Replies

ActionScript 2.0 :: How To Make A Portfolio

Mar 31, 2007

how to make a portfolio like [URL] I really want to make a portfolio that I can upload easy with maybe just a couple of XML code or such.

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved