ActionScript 3.0 :: Why Menu Loses Dynamic Positioning

Jan 10, 2011

I am dynamically centering my menu movieclip using the code

Code:
top_menu.y = 0;
top_menu.x = top_menuXPos / 2;

[code].....

View 1 Replies


Similar Posts:


Dynamic Text Loses Format

Nov 5, 2009

I'm having some serious problems with my dynamic text fields. The case is, I format the dynamic text fields to have character spacing and line spacing both equal to 1. Everything seems fine in the SWF when the text is actually typed INTO the dynamic text field, but when I make it fetch text from Actionscript or an external XML file Flash player renders the text as if it had 0 character spacing and 0 line spacing.

View 1 Replies

ActionScript 2.0 :: [FMX] Dynamically Created Menu Positioning?

Aug 30, 2003

I want to be able to use it in another movie, in a specific location.I think the way I've made it means that I can't position it anywhere i want in the other movie..... because placement is described fairly absolutely......

View 6 Replies

ActionScript 2.0 :: Top Right Dynamic Positioning?

Mar 8, 2007

how would you go about positioning a MC in the top right hand corner - a few pixels. And How to get it to stay even on Resize? to get it to stay in that corner so it moves with the screen resize?

View 2 Replies

ActionScript 2.0 :: Positioning The Dynamic MovieClips?

Jan 9, 2009

Been working w/ Flash for some time now, but mainly on the timeline and only a bit with AS. I am working w/ a tutorial:

[URL]

This particular portion of code is supposed to center the movieClip to the stage, but it is not working for me

target_mc._x = (Stage.width - target_mc._width)/2;
target_mc._y = (Stage.height - target_mc._height)/2;

I added some animation to it as well here:

var xScaleT:Tween = new Tween(movieClip, "_xscale", Elastic.easeOut, 50, 100, 3, true);
var yScaleT:Tween = new Tween(movieClip, "_yscale", Elastic.easeOut, 50, 100, 3, true);

And added this part just in case the tween was affecting it:

var xPosT:Tween = new Tween(movieClip, "_x", 0, (Stage.width - target_mc._width)/2, 3, true);
var yPosT:Tween = new Tween(movieClip, "_y", 0, (Stage.height - target_mc._height)/2, 3, true);

But it only fixes the centering on the y-axis.

View 3 Replies

ActionScript 2.0 :: Mac IE And Dynamic Image Positioning?

Nov 24, 2004

I'm using MX 2004 for a photographic portfolio project. The site seems to work fine on 99% percent of systems. Unfortunatley a strange error occus when viewing the site with IE on Mac OSX.I a dynamically loading images using LoadMovie and repostioning them so that they are centred. Sometimes with Mac IE the image doesn't get centred and is loaded with the top left corner in the centre of the screen as it would had the repositioning not happened.

This only happens sometimes and only with some images and with different images each time. I can reproduce the effect on my Mac but am stumped as to why it happens. I have ruled out the flash player version (it happens with them all) and have tried numerous export settings.Here's the code for the loading and repositioning and the link,

if (_root.image1loaded == false) {
//load image to empty movie clip
_root.images.createEmptyMovieClip("holder1", 1001);[code]...

View 5 Replies

ActionScript 2.0 :: Mac IE And Dynamic Image Positioning?

Nov 24, 2004

I'm using MX 2004 for a photographic portfolio project. The site seems to work fine on 99% percent of systems. Unfortunatley a strange error occus when viewing the site with IE on Mac OSX.I a dynamically loading images using LoadMovie and repostioning them so that they are centred. Sometimes with Mac IE the image doesn't get centred and is loaded with the top left corner in the centre of the screen as it would had the repositioning not happened.

This only happens sometimes and only with some images and with different images each time.I can reproduce the effect on my Mac but am stumped as to why it happens.I have ruled out the flash player version (it happens with them all) and have tried numerous export settings.Here's the code for the loading and repositioning and the link,

_root.images.createEmptyMovieClip("holder1", 1001);
_root.images.holder1.loadMovie("flashimagesmac/mike.jpg");
//loader[code]....

View 5 Replies

ActionScript 2.0 :: Dynamic Positioning Only Working After Resize

Jul 7, 2009

URL...Its a dynamic positioning template, basically.I'm importing docked_icons.swf onto the stage via the holder movie clip (at the end). However, the position is messed up until I resize the window. From there, it's perfect. How do I set the initial position to be correct?[code]

View 1 Replies

ActionScript 2.0 :: AttachMovie Dynamic Positioning Within A CreateEmptyMovieClip

Sep 2, 2009

In the current project for my schools interactive yearbook(new development). Im trying to create a grid table within a createEmptyMovieClip, by attaching a movie clip from the library, and populating it with an external xml, that i populate a few arrays too.

As of now im just trying to get the basic portion of it down. I see it as if i can create a "page" without having to dublicate the page, then i can easly do it with the multipul pages.

In a nut shell, when i publish my fla, i only get 2 images, when i should have 23, which is the number of childNodes that are in the external XML file...

Im going to attach my souce, and i'll point out the portion that im having issues with:

stop();
import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;

[Code].....

View 0 Replies

ActionScript 2.0 :: Dynamic Positioning Kills Timeline Tween?

Jan 20, 2009

I'm working on a banner ad project where we're trying to send dynamic variables from one of our servers to position a movieclip that simply slides in from offstage and then does a little bounce. My AS2 frame script at the beginning of the tween sets the _x and _y properties of the clip successfully. But that seems to destroy all the movement of the tween. In other words, when I set those two positioning properties on the clip, it just sits there and no longer slides in or bounces. I've tried a lot of different values, but they all seem to kill the movement of the tween.

View 0 Replies

ActionScript 3.0 :: Flash XML Array / Dynamic Text Box Positioning?

Jun 24, 2010

I am loading an XML file into several textboxes. Each group of textboxes is contained in a movieclip. There is a textbox in each group that varies in height and I want to put each movieclip underneath each other. So I need to get the height of the previous mc in my for loop so I can set the y position of the next mc. I am not quite sure how this is done, but here is my as3:


[code]...

View 1 Replies

ActionScript 2.0 :: Dynamic Positioning Of The Rollover Images In A Movie Clip?

May 10, 2006

i have a movie in which i have 50 thumbnails dynamically added to a mc and i have a scroller to scroll the mc which works fine.. on each thumb i have a rollover image (which is a bigger image of the thumb) which works fine but i want the rollover image to be shown within the area of mask area which is not happening now..

View 4 Replies

ActionScript 2.0 :: Sliding Menu - Create A Menu With The Number Of Rows Dynamic?

Mar 29, 2007

I have created a sliding menu. But that is static( the number of rows are fixed). i want to create a menu with the number of rows dynamic.I have attached the fla file here.

View 10 Replies

ActionScript 2.0 :: Dynamic Menu / Every New Duplicated Mc Contains Dynamic Text Area As A Label

Oct 14, 2009

i have a problem with my flash menu. It's simple menu that contains one MC at start that works as button, u can edit size of the menu from external .txt file by changing the value of menu length. All that works fine , my problem is that every new duplicated mc contains dynamic text area as a label. Labels are also loaded from that .txt file , but that works only for the 1st mc because the newly created text areas in mc's dont have Instance Name set. How can i assign them from as?

View 2 Replies

C# :: ASP .NET Loses Session Between Pages

Apr 20, 2011

I encountered a weird error, I lose sessions when moving between pages.

I lose Sessions because i use Flash (swf) menu to navigate between pages.

So when i navigate to a page using the Flash menu, I lose the session.

It doesn't let me answer my own question so here is the answer:

Thx for answering, but the problam wasn't the flash..

I just found out that the session was opened on http://WebSite.com/ And the flash was redirecting to http://www.WebSite.com/

So the session losts between domains, and not between pages because of flash :) I just made all my site use the www domain .

View 3 Replies

IDE :: Png Loses Transparency When Published As Swf?

Dec 22, 2008

I'm working on a project where I want to use a transparent png, and when authoring in Flash CS3 (using actionscript 2.0) the png image appears transparent just as it should. However when I test it the .swf file loses the transparency entirely. The png image was saved for web from photoshop as png-24.

View 1 Replies

Text Loses Style When Published?

Jul 10, 2009

I have a project that consists of 11 invisible buttons laid over a map of a building; when the user mouses over a "room," the name of the room appears. The building map is on an angle so I rotated and skewed the button text to match the map. All the text looks fine within each button symbol, but when published 4 or 5 of them lose their skew...the rotation seems to still be intact.

View 1 Replies

ActionScript 3.0 :: Loaded Swf Loses Its References?

Nov 6, 2010

I'm trying to get some things done but run once in a while, well at least, into some issues.Here is one:

I have an swf that is an image viewer/browser that has references on same level, an ImageProperties.xml and some folders full of small jpeg tiles.I actually have a few of these, each in its own folder.Above these folders I have another swf that is the main one, and I am loading from there the other ones with the code pasted at end of this post.

This works if I replace the URLRequest by just the name of the swf to load and I put the main swf with the loader function and the loaded one at same level. But if I leave URLRequest going one level deep "16/xxx.swf" and have the loader swf one level up then it loads the viewer but doesn't show the image.

[Code]...

View 6 Replies

ActionScript 2.0 :: SWF Loses All Interactivity When Loaded

Nov 9, 2004

My interactive .SWF that is called loses all interactivity when loaded, however, the .SWF works perfectly on its own. The .SWF that is called basically has 4 buttons that moves a set of 4 images 50 pix to left so it can be viewed when button is pressed.

View 1 Replies

IDE :: Disabled TextInput Loses TextFormat?

Mar 20, 2009

I have TextInput with formatting applied. I want the TextInput disabled after the user enters an answer. But disabling the field causes the formatting to disappear. Is there a way to maintain text formatting and still disable the input

Code:
import fl.controls.TextInput;
var myTextInput:TextInput = new TextInput();

[code]......

View 4 Replies

ActionScript 2.0 :: .SWF Loses ALL Interactivity When Loaded?

Nov 9, 2004

my interactive .SWF that is called loses all interactivity when loaded, however, the .SWF works perfectly on its own. The .SWF that is called basically has 4 buttons that moves a set of 4 images 50 pix to left so it can be viewed when button is pressed.

View 1 Replies

ActionScript 3.0 :: XMLSocket Loses Connection After 3 Seconds?

Oct 29, 2009

am getting now really crazy over this.I wrote a shockwave application that connects to a server (this one I wrote in PHP) via XMLSockets. My problem now is that exactly after 3 seconds the client disconnects automatically from the server.Maybe some of you could review my code to give me a hint where the problem is located - note that I use ExternalInterface and call the functions with JavaScript.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="setup();">

[code]......

View 3 Replies

Professional :: Roll Over Button Loses Some Of The Letters?

Feb 13, 2010

I included two images attached to this post to explain.I have a few buttons on my webpage that lose part of the letter when I roll over them. I am using a glow effect when I roll over the buttons and the buttons were not "broken apart" before I made them buttons, I dont know if that makes a difference.

[Code]...

View 5 Replies

Flash :: Swf Quicker Loses Sound When Exporting?

Feb 21, 2012

I am using SWF Quicker to edit a flash swf file, but whenever I export it, all the sound is gone. Even if I export it without making any modifications, all the sound disappears. I have tried using different versions of ActionScript (1.0, 2.0, 3.0) and different Flash Player formats, but every time there is no sound

View 1 Replies

ActionScript 3.0 :: External Swf Loses All Instance Names?

Aug 10, 2009

I load an external swf with some buttons into another swf.Now the buttons have lost their original instance names. A trace reveals their new names to be "button1", "button2", etcetera. If I run the external swf on its own, the same trace displays the original instance names.

View 7 Replies

ActionScript 3.0 :: Loading SWF File In XML - Loses Location?

Nov 24, 2009

So I have a .swf file that loads in xml and such. Now I want to have a flash file load that into it, but when I do the loaded .swf loses the location of its files to load?

So.
File A - the loader
File B - load swf
File C - load swf xml file

All sit in the same folder
if I open file B, it reads file C no problem
if I open A that loads in B, it loses location of C and it dont load the xml? I am on access network files.

View 0 Replies

ActionScript 2.0 :: Picture Loses Quality On Fullscreen?

Jan 2, 2010

using fscommand("fullscreen","true") in flash 8 I make my window switch to fullscreen mode, the problem is when in fullscreen mode some picture in the stage actually is trying to get bigger so it gets pretty ugly and loses quality, I want to make my whole window fullscreen but I want my images keep their sizes and not resize,what should I do?

View 1 Replies

ActionScript 2.0 :: Hitting TAB Loses Focus To The Browser?

Jun 8, 2010

Creating a flash project where I need to hit TAB in order for the playhead to go forward a frame. Then I need the user to hit a letter (for example hit 'a') to move forward again. Hitting the above keys is working,

As soon as the user hits TAB, flash seems to lose focus to the browser, and the user has to click on the swf on the screen before they can proceed.

View 0 Replies

ActionScript 3.0 :: Flash Loses Focus - How To Regain It

Sep 15, 2009

i have this problem. ive made this simple animated menu for a webpage, buttons do stuff on ROLL_OVER, and everything is great, but when menu is scrolled of screen and then goes back it loses focus and ROLL_OVER doesnt work until i click anywhere on my menu gotta finish this quick or they might want their money back

View 3 Replies

ActionScript 1/2 :: Orderform Loses Values On Extended Timeline

Apr 27, 2009

I am trying to create an orderform - only 5 products in it the outcome works nice but I want to check if an email address is correct and than I loose the values.The form is made in 5 frames.The first should say how to pay the second to fill in the order the third to fill in the adresss and email details than a process to check the email in PHP and when correct it should say - order send correct and when incorrect it should go back to frame 3 the outcome is in frame 2 were its hidden underneath -  to 4 in the timeline but when I hit the sendbutton and it does the check the values are not there any more.[code]

View 7 Replies







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