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




FL8: Cannot Place Components Within MovieClip, Why?



Top of the mornin' to ya'll,

I've got a lame situation. I need to utilize Kirupa's tutorial of scrolling for a visual playback. Problem is, I need to have multiple UI Combo Boxes components within the necessary contentMain_mc.

When I make a movie clip with components inside it, their label display no longer functions or displays.

Any ideas around this?

Thanks,

Rick

Problem File



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 11-10-2006, 01:45 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Where Is A Good Place To Search For Components?
Where is a good place to search for flash components?

I'm looking for a component which will let me create a gallery, which once an item is selected from the gallery the mainscreen of the browser has a transparency come over it, and the images appear on top of the original page. in the style of the gallerys from designrelated.com

thnx!

Place A Movieclip
How can I place a movieclip on the stage using actionscript?

as quesiton

Movieclip In The Wrong Place
Why is my movieclip at top right corner? It needs to be in the middle of the stage. I have the following code place on the movieclip:

Code:
onClipEvent (load) {
loadMovie("AutumnRetirementVillage.swf", 20);
}

Please Help Place Movieclip Above Others On Same Layer...
Hi,

I have a flash movie with a number of objects movieclips that can be dragged and dropped onto target movieclips.

The object movieclips are all on the same layer and therefore when dragging some appear above and some appear below each other.

I want whichever object movieclip is being dragged to appear above the others.

Can I do this with _levels or is this just for external swf files? Is there a way to tell the movieclip to move up a layer?

I'm really stuck ont this so any suggestions would be greatly appreciated

Thanks,
Rik

Please Help Place Movieclip Above Others On Same Layer..
Hi,

I have a flash movie with a number of objects movieclips that can be dragged and dropped onto target movieclips.

The object movieclips are all on the same layer and therefore when dragging some appear above and some appear below each other.

I want whichever object movieclip is being dragged to appear above the others.

Can I do this with _levels or is this just for external swf files? Is there a way to tell the movieclip to move up a layer?

I'm really stuck ont this so any suggestions would be greatly appreciated

Thanks,
Rik

[F8] Place The Movieclip In The Centre
I have a Movieclip that I like to place in the centre of the flash.
Even if I change the size of the flash I like to have that in the centre.

The movieclip is 200x200 but I can't make the movieclip in the centre


Code:
Stage.scaleMode="NoScale";

setProperty(mctest, _x, (Stage.width-100)/2 );
setProperty(mctest, _y, (Stage.height-100)/2 );

var resizeListener:Object = new Object();
Stage.addListener(resizeListener);

resizeListener.onResize = function () {
setProperty(mctest, _x, (Stage.width-100)/2 );
setProperty(mctest, _y, (Stage.height-100)/2 );
}

/EDIT
I have maybe found the problem
If I use mctest._width and mctest._height insted of 100 it work
The flash is now 800x600 but I maybe going to change the size later.

I going to have a movieclip in the centre and one in the bottom right.

Moving A Movieclip From A Place To Another
Hello,

First, let me tell you that in actionscript I'm a beginner. I do know flash - but mostlly for animation and other similar stuff.

Recently I have decided that is time to learn actionscript, searched on the net and I have found this site - great one (especially for tutorials). i have learned some stuff and now I'm trying to build a whole web site using Flash MX, having as a model this: click here.
This is a tutorial for Flash MX 2004 (link) - using tweens, but I'm trying to re-create the whole thing in Flash MX (since I can't afford to upgrade my Flash MX yet ).

Where I am stuck?

Well ... making stuff moving around ("with ease in" too) is quite simple. i got that.

However ... I can not suceed in keeping the last coordinates of the buttons (_x and _y), so I can make the buttons move from the last place where they were.

To make it a little bit more clear ... on the "home" label, the buttons are comming on the stage from the corners down to the middle of the scene. Once you click on the test button, then they move up-left (on the "tools" label). If you click on Home again, that it will take you back on the "home" label and it will make the buttons move from the top-left corner back to the middle again.

But for me doesn't really work like that - and I am killing myself to find ways to get the last coordinates takes so I can make them move from there.

Any help will be greatlly apreciated - and hopefully someone will understand my sorry English .

Thank you!

How To Stop Movieclip On Particular Place
Hi everyone

i want to be stopped my movieclip on particular place.

here given code


onClipEvent(enterFrame)
{
this._y -= 2;
}

this code helps me to move movieclip. its ok but when it reaches 20 then i want to be stopped how can i do so ?

Please help me.

thanx in advance
waiting

Panning A Movieclip Then Stopping It In A Certain Place.
Hi, I am working on a project where I have a large map of a city that is too big to fit on screen so I need to be able to pan it north south east and west using buttons placed at the different compass points. I will use a mask to only show the relevant portion of the map on screen. How can I get the map to pan using these four buttons. This is the code I am using under one of the buttons (East):

on (press) {
map._x += 10;
}

A feeble effort I know, but all this does is make the map 'jump' 10 pixels to the right, and I want it to scroll smoothly.

My second problem is that I need the map to stop scrolling when it reaches a certain point, I imagine this can be achieved in the form of an if statement (i.e. if map reaches this point then stop). I know this is probably a walk in the park for most of you guys, but I'd appreciate the help as I'm a relative newcomer to AS.

Cheers.

Movieclip Appearing In Wrong Place
I am currently making a simple flash game in flash 8. Its a basic game where the player controls a character walking around and can move to a different areas. Each area is a different frame.

The problem Im having is that on the move to the latest area Ive done the player movie clip is always starting on the left side of the stage reguardless of where ive placed it myself, ive not had this problem with other areas and done (where the player is always starting on the right side)All the actionscript is the same for each frame so i am totally lost. This is the first game I have attempted to make in flash

Link Inside Movieclip Goes Wrong Place
Hi,

I'm using Flash MX and I've got an issue with my menu. The thing is, when you put the mouse over the menu, it rolls out (see code on screenshot #1)... but when I make more than one button in that movieclip, it all goes to the same place. So if I got one button linked to "one", and a different button linked to "two", they both end up going to "one"... see my case?


I would be most grateful for any help. Please look at the screenshots.



Screenshot #1 Screenshot #2



Cheers!

[F8] Attach Movieclip In Same Place On Button Press. HELP
Hello.

I am creating a game with alot of minigames. In the minigame I am currently creating, I am doing a "Spot 6 differences" question.

I have 2 pictures on stage and on the second picture I have 6 buttons on the picture which are differences because something is added to the picture.

Example:
Picture 1: there is 1 cloud
Picture 2: there are 2 clouds

The second cloud that was added is a button for the player to click on because it is a difference. Get it?

Anyways, I have 6 buttons, the instance names for these 6 buttons are "diff1", "diff2", "diff3", "diff4", "diff5", and "diff6".

When the player clicks a difference, I want it so that it gets circled so I have the exact same button in the library except it has a circle around it. The names of these movieclips are "diff1_2", "diff2_2", "diff3_2", "diff4_2", "diff5_2", and "diff6_2".

I want it so that when the person clicks the button it attaches a movieclip it it's exact spot.

Example:
There is a button on stage - instance name: "diff1".
The player clicks "diff1".
"diff1_2" is attached to the main stage exactly where "diff1" was/is.

The same thing should happen for the other buttons ("diff2", "diff3"... "diff6").

Another thing that I need is that when all 6 buttons have been replaced with the movieclips, (they all have circles around them) then it should move to another scene.

Please help me with this issue.

Early thanks to whoever replies.

Place Multiple Images Into Movieclip Dynamicly
Hello professional actionscripters. I'm trying to make a series of circles, or rings, which thumbnail images rotate around, kind of similar to a carousel, but not all 3d and stupid web 2.0 looking. Anyway, I have the rotating part working with multiple movieclips attached, but I don't know how to place different images into a single movieclip so that every thumbnail is a different image. I would like to do this by having all my images within my library, since its a small site. THe


var numOfItems:uint = 2; // number of Items to put on stage
var radiusX:uint = 75; // width of carousel
var radiusY:uint = 75; // height of carousel
var centerX:Number = stage.stageWidth / 2; // x position of center of carousel
var centerY:Number = stage.stageHeight / 2; // y position of center of carousel
var speed:Number = 0.02; // initial speed of rotation of carousel


init();

// place Items on stage
function init():void {
for(var i:uint = 0; i < numOfItems; i++) {
var item:Item = new Item();
// public var angl:Number; is in Item class.
// Item class extends ItemInner in FLA library.
item.angl = i * ((Math.PI * 2) / numOfItems);
item.alpha = 1;

addChild(item);
item.addEventListener(Event.ENTER_FRAME, enterFrameHandler);

}
}

// position Items in elipse
function enterFrameHandler(event:Event):void {
event.target.x = Math.cos(event.target.angl) * radiusX + centerX; // x position of Item
event.target.y = Math.sin(event.target.angl) * radiusY + centerY; // y postion of Item


event.target.angl += speed;


}



this is a class I'm using called Item



package {

public class Item extends ItemInner {

public var angl:Number;


}
}


ItemInner is the moveclip I need to place on the rings, and it is also a class for that clip. If you have any ideas please let me know. Thanks

Change Variables(size,place Etc) Of A Movieclip
Hi,
Im working on the following code and i need some help to change part of the code:
The code is a slider to view pictures loaded from external file. I changed the size of the stage(1000x1000), the big pictures are displayed above(1000x400) and i would like to do 3 things:
1.The slider has the size(400x50). I changed  its size(500x80), the thumbnails move but at some point the slider remains half empty and then fills up again. This happens when i have small amount of pictures. I would like not to double but treble the No of the thumbnails so the slider wont remains empty.
2.Move the thumbnails on the right-half  part of the stage. When i only change the coordinates(x,y) of the slider it doesnt work.They r loaded on the right part, but when placing the cursor above they disappear.
3.Is it possible when placing the cursor over a thumbnails to show text(small description of each pic)????
Heres the URL of the code working: http://www.flash-creations.com/notes/dynamic_slidingviewer.php
Thanks
Theo
Heres the code:
/*********  DECLARE AND INITIALIZE VARIABLES  **************************/
// names of folder and pictures, in the order to put them into the slider
var picnames:Array = [
    "flower_orange",
    "flower_yellow",
    "flower_pink",
    "flower_red",
    "flower_purple"
    ];

// constants
var PICPATH:String = "flowers/";    // folder with jpgs
var NPICS:Number = picnames.length;    // number of pictures to load
var PICX:Number = 10;               // x loc of big picture
var PICY:Number = 10;               // y loc
var THUMBHOLDERX:Number = 0;        // x location of thumbnail holder movieclip
var THUMBHOLDERY:Number = 240;      // y location
var THUMBW:Number = 72;             // width of each thumbnail
var THUMBH:Number = 40;             // height
var MARGIN:Number = 10;             // margin between thumbnails
var TOTALBYTES:Number = 212000;     // approx sum of bytes in all jpgs (x 2)
var MAXPIXELS:Number = 12;          // max number of pixels to move slider per frame

// mask definition; mask is assumed to cover some part of the thumbnail slider (here the numbers
// were chosen so that there are margins between the mask and the right and left edges of the movie
// (which is 420 x 290), and enough space above and below the thumbs to show them when they 'grow'
// on mouseover
var MASKX:Number = 10;                // start x location of mask
var MASKW:Number = 400;                // mask width
var MASKY:Number = 230;                // start y location of mask
var MASKH:Number = 60;                // mask height

var totalloaded:Number = 0;         // running tally of bytes loaded from all pics

// index into pictures array, used for loading
var ipic:Number;

// set up loader, an instance of MovieClipLoader
var loader:MovieClipLoader = new MovieClipLoader();

// use the main timeline to listen to and respond to loader's broadcast events
loader.addListener(this);

/*********  DEFINE FUNCTIONS, INCLUDING INIT FOR MOVIE SETUP  **********/
// thumbnail rollover handler

function grow() {
   this.onEnterFrame = function() {
      if (this._width < THUMBW * 1.2) {
         this._x -= this._width * .025;
         this._y -= this._height * .025;
         this._width *= 1.05;
         this._height *= 1.05;
      } else delete this.onEnterFrame;
   };
}

// thumbnail rollout handler

function shrink() {
   this.onEnterFrame = function() {
      if (this._width > THUMBW) {
         this._width /= 1.05;
         this._height /= 1.05;
         this._x += this._width * .025;
         this._y += this._height * .025;
      } else delete this.onEnterFrame;
   };
}

// function to move thumbnail slider ("this" = thumbs_mc)

function sliderControl() {
   var w:Number = this._width/2;
   var hw:Number = mask_mc._width/2;
   var npixels:Number;
   // only do when mouse over slider mask
   if (_ymouse > mask_mc._y && _ymouse < mask_mc._y + mask_mc._height) {
      // mouse over left half of slider:
      if (_xmouse > mask_mc._x && _xmouse < mask_mc._x + hw) {
         npixels = (hw - _xmouse) / hw * MAXPIXELS;
         this._x += npixels;
         if (this._x >= 0) this._x = this._x - w;
      // mouse over right half of slider:
      } else if (_xmouse > mask_mc._x + hw && _xmouse < mask_mc._x + mask_mc._width) {
         npixels = (_xmouse - hw) / hw * MAXPIXELS;
         this._x -= npixels;
         if (this._x <= -w) this._x = this._x + w;
      }
   }
}

// thumbnail click (onrelease) handler

function openPic() {
   pic_mc.loadMovie(PICPATH + picnames[this.i] + ".jpg");
}

// assign event handlers (called when all jpgs are loaded)

function setupHandlers() {
   pct_txt.removeTextField();        // don't need loading indicator any more
   thumbs_mc.onEnterFrame = sliderControl;
   for (var i:Number = 0; i < NPICS*2; i++) {
      thumbs_mc["mc"+i].onRollOver = grow;
      thumbs_mc["mc"+i].onRollOut = shrink;       
      thumbs_mc["mc"+i].onRelease = openPic;
   }
}

// listener function for broadcast 'done' message (for each pic)
// onLoadInit gets executed when the movieclip has been loaded into _mc AND
//   its width and height data are available.
//   (_mc = the movieclip being loaded into)
// this routine sets the size and position of each thumbnail clip as its jpg
//   is loaded and starts the next one loading.  When all have been loaded,
//   a random picture is loaded into pic_mc and setupHandlers is called to
//   assign handlers to each thumbnail movieclip

function onLoadInit(_mc:MovieClip) {
   // this gets done when the jpg is completely loaded:
   _mc._width = THUMBW;
   _mc._height = THUMBH;
   _mc._alpha = 99;        // for image clarity
   // give the movieclip a property to remind it who it is
   // (used by openPic to know which big picture to open)
   _mc.i = (ipic >= NPICS ? ipic-NPICS : ipic);
    
   // add picture size to totalloaded variable
   totalloaded += loader.getProgress(_mc).bytesTotal;

   // now load the next one (if there are more) or set up handlers if done
   ipic++;
   if (ipic == NPICS * 2) {
      // start with a random photo displayed when all thumbs loaded
      pic_mc.loadMovie(PICPATH + picnames[Math.floor(Math.random()*NPICS)] + ".jpg");
      setupHandlers();
   } else if (ipic >= NPICS) {
      // load jpg into duplicate thumbnail (will already be cached)
      loader.loadClip(PICPATH + picnames[ipic-NPICS] + ".jpg",  thumbs_mc["mc"+ipic]);
   } else {
      // load jpg into thumbnail
      loader.loadClip(PICPATH + picnames[ipic] + ".jpg",  thumbs_mc["mc"+ipic]);
   }
}

// listener function to handle broadcast progress messages
// make pct_txt show cumulative loading progress

function onLoadProgress(_mc:MovieClip, loaded:Number) {
   var loadedsofar:Number = totalloaded + loaded;    
   pct_txt.text = Math.floor(loadedsofar / TOTALBYTES * 100) + "%";
}

function init() {
   // create holder for pictures
   createEmptyMovieClip("pic_mc", 1);
   pic_mc._x = PICX;
   pic_mc._y = PICY;

   // create (and draw) holder for thumbnails
   createEmptyMovieClip("thumbs_mc", 2);
   thumbs_mc.beginFill(0, 100);    // black
   thumbs_mc.moveTo(0, 0);
      thumbs_mc.lineTo(2 * (MARGIN + THUMBW) * NPICS, 0);
   thumbs_mc.lineTo(2 * (MARGIN + THUMBW) * NPICS, THUMBH);
   thumbs_mc.lineTo(0, THUMBH);
   thumbs_mc.endFill();
   // drawing the thumb holder at 0, 0 and then moving it makes its reg point = upper left
   thumbs_mc._x = THUMBHOLDERX;
   thumbs_mc._y = THUMBHOLDERY;

   // create, draw and enable mask over thumbs (could use different variables to define mask
   // if desired)
   createEmptyMovieClip("mask_mc", 3);
   mask_mc.beginFill(0x0000cc, 100);
   mask_mc.moveTo(0, 0);
   mask_mc.lineTo(MASKW, 0);
   mask_mc.lineTo(MASKW, MASKH);
   mask_mc.lineTo(0, MASKH);
   mask_mc.endFill();
   mask_mc._x = MASKX;
   mask_mc._y = MASKY;
   thumbs_mc.setMask(mask_mc);

   // create loading textfield indicator
   createTextField("pct_txt", 4, 200, 100, 40, 100);
   var tf:TextFormat = new TextFormat();
   tf.align = "center";
   tf.size = 12;
   tf.font = "Verdana";
   tf.color = 0xFFFF00;
   pct_txt.setNewTextFormat(tf);

   // make empty movieclips in thumbs_mc for each pic to go into
   // make double the number so the slider can move continuously and show content
   for (var i:Number = 0; i < NPICS * 2; i++) {
      var mc:MovieClip = thumbs_mc.createEmptyMovieClip("mc"+i, i+1);
      mc._x = i*(MARGIN + THUMBW);
      mc._y = 0;
   }
    
   // set the pointer to the first jpg in the array picnames
   ipic = 0;
   // start loading jpgs (ipic is initialized to 0)
   loader.loadClip(PICPATH + picnames[ipic] + ".jpg", thumbs_mc["mc"+ipic]);
}

/*********  CALL THE INIT FUNCTION TO START THE MOVIE  *****************/
init();

How To Place Image On Stage, Inside Movieclip?
I want to animate a PNG image using the visual controls: The toolbox, the timeline, etc -- not through actionscript (I already know how to do it using actionscript). I want to add squash and strecth it, rotate it, etc.

My issue is that I don't know how to place my PNG image inside the movieclip -_-. I can't drag it from my project window onto the stage.

Thanks for the help in advace.

What Code To Place In A Movie To Detect If It Has Been Loaded Into A Movieclip?
Could anyone tell me, please, what Actionscript to put in a movie to detect whether that movie has been loaded into another movieclip?

In case that isn't clear: movie A loads movie B into a myMovieClip. What code can I put in movie B to detect that it is now a child of myMovieClip, or indeed any movie?

Thanks

This Logic Works When Place On MovieClip But...onEnterFrame Doesn't...any Ideas Why?
Hello,

I have this little logic which works without any issues when placed on MovieClip like this:

onClipEvent(load) {
speedX = 5;
}

onClipEvent(enterFrame) {
this._x += speedX;
if (this._x >= Stage.width) {
speedX = -speedX;
}
}

Now if I place the Movie Clip on the stage and clip this action with ONENTERFRAME, it works but the movie clip doesn't reverse after reaching STAGE.WIDTH OR 550:



var moveMe:Function = function(clip:MovieClip,speed:Number) {
clip._x += speed;
if (clip._x >= Stage.width) {
speed = -speed;
};
};
//Calling Function:
onEnterFrame = function() {
moveMe(this,5);
}



Appreciate any help. THX

AddChild For MovieClip With Components
I have a MovieClip full of scripted components that is triggered with an ON_ACTIVATE event. If I place this clip on the stage manually there is no problem, the components will initialise and run, however if I try to add it to the stage with addChild() it throws null reference errors for the components.

What causes this and how can it be resolved?

Adding Components To A Movieclip. How?
I am trying to get my head around MovieClips, UIObject and components and have got completely confused. Hopefully someone here can explain where I'm going wrong.

First what I am trying to do is really simple. I want to add a button dynamically to a MovieClip. I want to do it in pure ActionScript (ie I'm using the FlashDevelop IDE and have no .fla file).

So I started by looking at the MovieClip class. This has no "add a component" method. So I looked at the UIObject class. This does have a method for attaching a component. Great. But now I'm stumped. I do not have an instance of a UIObject; I have an instance of MovieClip. According to the documentation, UIObject extends MovieClip, but neither class seem to provide the means to create an instance of UIObject that wraps an existing MovieClip or to add an existing UIObject to a MovieClip. So I have two halves of the solution with no way of plugging them together.

I'm guessing I've missed something obvious here. What is it?

Using Components In A Masked Movieclip
I have a form that is in a masked movie clip. Because of this, none of the dynamic content in the form is visible and you can't enter anything into the fields.

Is there any way to get around this?

Thanks,
~Oni.





























Edited: 11/18/2006 at 05:40:41 PM by OniLink

How To Place Different MC's On A Static Place (keeping X,y Coordinates From Main Mov)
When I start to work in my MC's the rulers and x,y coordinates change.
This is really costing me so much time when I have to make sure they are placed correctly
Is there anyway I can make the cooridnates stay the way they are in the main moivie or does anyone have any other idea that could help me.

Paste In Place Between Movie Clips Is Not In Place Re The Stage
Hi,

I realize that pasting in place between movie clips is referening the registration point in each separate movie clip and that is why they don't align to the stage properly. So is there any way to turn this off?

Can I make my shapes align to the document stage size no matter what movie clip I'm in? Also, can the paste in place be made to paste in place always relative to the stage?

Thanks,
Stan

Attaching User MovieClip Components
I've created componetn which inherits from MovieClip. I use this lines to attach it the empty root movie:

attachMovie("FComp", "comp", 10);
trace(comp);

Nothing happens and trace thorws 'undefined'.
But when I attach one instance of this componenet manualy, then when I run the movie, everything is OK, and the second instance is attached by above line.
Of course I can set _visible property of this manualy added componet to false and everything is like it schould be, but I want to do it right.
Can anyone help me with this?

Adam

[F8] Draggable Movieclip Is Leaving Components Behind
So I have a movieclip and inside it are a few dynamic text fields and graphics.

The problem is that when I load the html page with the embedded swf, the first time I try to drag the movieclip the movement is jerky and the text fields keep getting left behind. The second time I cick and drag the movieclip everything is perfectly synchronized and the movement is smooth.

The only script I'm using is:

on(press) {
startDrag(_root.quad_window,false);
}

on(release) {
stopDrag();
}

Any ideas?

I can get around this problem if I click somewhere else in the flash movie once to give it focus. Is there a way I can assign focus to an embedded object via javascript/html?

This problem doesn't occur if I run the swf on its own, only when embedded inside an html document.

How To Get At MovieClip Components From A Class? (Kind Of Urgent)
If I have an Action Script class that is linked to a MovieClip, and that MovieClip has a Loader called photoLoader, how can I get photoLoader to load a photo from within that class?

Here is my .as class

import mx.controls.Loader;


Code:
class Photo extends mx.core.UIObject {

function Photo(){
}

function loadPhoto(url){
//This is what I would do, but doesn't work
photoLoader.contentPath = url
}

public function onPress(){
this.startDrag();
}

public function onRelease(){
this.stopDrag();
}
}


I would do photoLoader.contentPath = url or _parent.photoLoader.contentPath but both don't work. I also need to be able to alter the size of the Loader dynamically. There must be a way?

The catch is that Photo is created from another .as object called Page using attachMovie("Photo", "_photo1", getNextHighestDepth())
I don't know if this matters. Note that the above code has a lot chopped out of it at the moment.

Any help that leads to some success would be met with a dozen beer if you happened to live in Auckland.

Access From External .as File, Components Placed In A Movieclip
I am making a "setup box" for my game where players can choose the number of players, assign a color to each player and give each player a name. I had this working when I had the code in the timeline, now I want to see if I can make the same thing using OOP.

The setup box contains several components. One is a numeric stepper. When the numeric stepper changes I want the number of diferent players shown to adjust according to the number picked. I easily did this with code on the symbol with listeners. But how do I have my class know that the numeric stepper on the symbol that it is linked to, has changed (and get it's value), is this possible? Am I going at this the wrong way? Thanks.

Problem With Components Inside Movieclip<->Graphic
Hi.
I'm using Falsh CS3 and
I got problem with components.
If I create New Symbol and inside it I put controls for example Text Input and Button. And then in Properties I made this symbol as a Movie Clip. When I test my movie I see these controls blur. But when I set in the properties as a Graphics they appears normal.
Could anyone can say why this happens?
I made test project to show this problem http://rs248.rapidshare.com/files/128124499/test.swf

Place, Rotate And Check If The Place Is Free
hi,

I want develope a mini game like:

www.medienanfall.de/mix.swf

most important thing is in this game to place the elements in a free space so I have to check if the place is free or full. another problem is if I found a free place for the card I have the possibilty to rotate the card but only if the places on left,right,top or bottom are free. I believe this is the most diffulcult thing in my application.

I hope I could explain it with my terrible english.


I am looking for some tuts or inspirations. could somebody tell me
where I can find somthing similar?

Why Doesn't ActionScript 3.0 Language And Components Reference Mention Movieclip As Being One Of The Classes
hello;

at http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/index.html why is 'movieclip' not listed in either the 'Top Level' or as a member of 'fl' or 'flash'??

likewise, why isn't 'sprite' listed?

thanks
dsdsdsdsd

How To Zoom In And Change From Place To Place
Hello, im fairly new to flash MX 2004 and i am currently working on animations.

Feel free to explain it to me in Actionscript or any other way. Here is my question:

For example. A man is walking in a town. This man then reaches the end of the stage (in your fla. work place), what is a way to show the new backround? make a new keyframe right after with a new background? or is there an easier way.
Another thing, how can i have like im a camera type view, and move around showing diffrent things in the backround (while moving left lets say)

Last thing.. zooming in, how can i do it with a picture backround from the internet?

thanks

Sending A Shape From Place To Place
How would i send a shape or movie clip from its current position into a specified place in another movie clip somewhere?

basically i want to make it so that if you click a circle, it will disappear and get sent into a movie clip at this destination: _root.skillsanditems.slot1

any ideas?

How To Load Data From One Place To Other Place
Hello Friends

Can any one help me how to move Some files Such as .JPEG,.MP3,.Swf Files from one directpry to the other directory by Renaming

Throug Flash as a Front end

Plz let me know soon

Use FCS Components In Flash MX 2004. Components Already Installed. Help
Hi,

I have Flash communication server 1.5 insatlled and Flash MX 2004 too. When I create new fla file and want to use Flash components, I don't find them to use. I dont see any panel etc to use them. Some one tell me how to list the components to add them in my Flash fla file please

Thanks

Removing Components From The Components Panel
This seems like a stupid question, but I can't seem to get my old components out of my Components panel!

I put some custom made components, just for a try, into the folder

C:Program FilesMacromediaFlash MX 2004enFirst RunComponents,

found them in the Components Panel, but wanted to get rid of them immediately. Deleted the components from the folder, but they don't seem to disappear from the panel! I have no idea where they come from, since I should not have them even on my hard disk anymore!

Cheers!

Flash Components Vs. Flex Components
I know almost nothing about Flex. Just wanted to establish that at the outset.

A client sent me an API component - an swc file - to use in a project I'm doing. I installed it in my Flash folders, but it didn't show up in the Components panel when I launched Flash. When I queried the client about it, he said that it was actually a Flex component.

My question is, what's the difference between a Component written for Flex and one written for Flash ? Can a Flex component be adapted for use in Flash ? In that what I received is a .swc, I'm assuming it has to have been written in ActionScript.

Any help would be hugely appreciated. Many thanks.

CS3 Missing Components Or How To Use Flex 2 Components In CS3
Does anyone have a good resource for how to use Flex2 components in CS3?
I found an install that said it would install Flex2 components in CS3, but all it added waas the UIMovieClip for packaging Flash MC in swc's for Flex.

Right now I am specifically trying to solve the missing dateField component in CS3.

But I would like to find out if anyone has found a good resource for alternatives to all missing components in CS3.
I'm hoping the answer is not to build them from scratch.

Thanks,

Hunter

Components Inside Components (Flash 8)
Hi,

I have an Accordion component which needs to contain a number of small forms, each of which is built as a MovieClip containing TextInput, Button, ComboBox, etc.

So, I build my little forms in Flash, make them into MovieClips, give them a linkage identifier and assign them the AS2 class "mx.core.View", as the documentation says.

Then I use ActionScript to attach these to my Accordion control, using my_accordion.createChild(). OK, fine. Works nicely.

The problem is that in the next few lines of code I also want to be able to populate the TextInput and ComboBox components which reside inside my accordion. I can't do it. Trying to do so fails silently. Tracing out the path to the Components shows that they are "there", but if i put some content into, say, one of the TextInputs up-front (i.e. in the Properties panel inside Flash) and then try to trace... my_acc.my_form.my_textInput.text... i get undefined.

So, it looks like the components inside the form inside the Accordion aren't yet "initialised" when I am trying to get/set their values. I've seen similar behaviour before, but it's not clear in the documentation how to get around it.

Anyone help? What is the correct way to use components inside components like this? I don't want to have to call a second function or put any code on the timeline or anything like that!

Many thanks,

Andy

Components Inside Components (Flash 8)
Hi,

I have an Accordion component which needs to contain a number of small forms, each of which is built as a MovieClip containing TextInput, Button, ComboBox, etc.

So, I build my little forms in Flash, make them into MovieClips, give them a linkage identifier and assign them the AS2 class "mx.core.View", as the documentation says.

Then I use ActionScript to attach these to my Accordion control, using my_accordion.createChild(). OK, fine. Works nicely.

The problem is that in the next few lines of code I also want to be able to populate the TextInput and ComboBox components which reside inside my accordion. I can't do it. Trying to do so fails silently. Tracing out the path to the Components shows that they are "there", but if i put some content into, say, one of the TextInputs up-front (i.e. in the Properties panel inside Flash) and then try to trace... my_acc.my_form.my_textInput.text... i get undefined.

So, it looks like the components inside the form inside the Accordion aren't yet "initialised" when I am trying to get/set their values. I've seen similar behaviour before, but it's not clear in the documentation how to get around it.

Anyone help? What is the correct way to use components inside components like this? I don't want to have to call a second function or put any code on the timeline or anything like that!

Many thanks,

Andy

Flash Components Vs. Flex Components
I know almost nothing about Flex. Just wanted to establish that at the outset.

A client sent me an API component - an swc file - to use in a project I'm doing. I installed it in my Flash folders, but it didn't show up in the Components panel when I launched Flash. When I queried the client about it, he said that it was actually a Flex component.

My question is, what's the difference between a Component written for Flex and one written for Flash ? Can a Flex component be adapted for use in Flash ? In that what I received is a .swc, I'm assuming it has to have been written in ActionScript.

Any help would be hugely appreciated. Many thanks.

Communication Components Do Not Appear In Components Panel
Hi! I've installed Flash MX and Flash Media Server. I would like to use the communication components in flash MX however, I can not see it in my communication components panel in flash MX. I've already added the communication components.fla to my ---Flash MX/First Run/Components directory under the
Macromedia Flash MX installation directory and updated the ASC files
in my /scriptlib/ directory.. But after adding this, only four components (audio conference, av presence, chat and connection light) appeared in my component panel. I need to use other components but its not available. What should I do? Any help will be appreciated.Textcommunication components

Add On To Using New Built Components Or For Building Components?
My version of Flash won't even let me use components created by other people... Is there a plug-in or an add-on that I have to get to use components that didn't come with Flash? Is there something else I need to get to build my own components? If so.. Where can I get it? Is there a homepage I may purshase it from? Where? How much?

Can Components Be Put Inside Components?
Does anyone know if components can exist and function properly within other components??

For example, I have a large form with radio buttons and checkboxes that is in a movie. This movie then shows up in a scrollpane and doesn't function at all.

Just curious if that is a limitation.

Thanks.

MX Components V MX2004 Components
Appreciate any help to this problem.

I'm working on a project using MX2004 and my business partner is working on the same project using MX only. I design and he codes. He has created a form in MX using a few components such as the Combo Box. However, when I recieve it, although it works fine I cant seem to swap the components to MX2004 - when I try I get a blank box/boxes!

Is this a known issue? He can't afford to upgrade to MX2004 at this stage or else we probably wouldn't have this problem!

Thanks, Steve

FMX Components Vs. FMX2K4 Components
Hi,

I would like to export movie clips as components and let other developers use those to create applications.

I have very little experience with components; I did use FMX components in the past.

I would like to let users change the components features, for instance, totally redo the animation of a button's components rollover effect.

1.Can this be done with FMX2k4 components (I think not).
2.Can this be done with FMX components?
3.Can I export FMX components with FMX2k4 IDE?
4.What effect will components have on file size and performance?

Thanks in advance,
DMZ

UI Components V/s Flash MX UI Components
I am having a problem with traceing a combobox using UI Components. I am tracing the value of the selected combobox using a combobox with the UI Components. I prefer the UI Components because they have the glow, rounded corners and are more attractive. the code works fine with the Flash MX UI Components. However, when I use the UI components it doesnt. The combobox populates however I can not trace. Does anyone have any suggestions? I use the following code to trace the value of the combobox:

myCombo.setChangeHandler("myFoo");
myFoo = function(myCombo){
trace(myCombo.getValue());
I also used this code:

myCombo.setChangeHandler("myHandler");

function myHandler(obj)
{
trace (obj.getValue());
trace (obj.getSelectedItem().label);
}

The code for the entire section is:

function getStateArray(){
myStates ="AL,AK,AZ,AR,CA,CO,CT,DE,FL,GA,HI,ID,IL,IN,IA,KS,KY,LA,MA,MD,ME,MI,MN,MO,MS,M T,NC,NE,NV,NH,NJ,NM,NY,NC,ND,OH,OK,OR,PA,RI,SC,SD,TN,TX,UT,VT,VA,WA,WV,WI,WY";

myStatesArray = new Array();
myStatesArray = myStates.split(",");
return myStatesArray;
}
myArray = getStateArray();
myArray.unshift("--");

myCombo.setDataProvider(myArray);
myCombo.setChangeHandler("myHandler");

function myHandler(obj)
{
trace (obj.getValue());
trace (obj.getSelectedItem().label);
}
Please help. Thanks in advance for any help.
Justice

Components Inside Components
I have built a custom component which I call 'VComboBox'. This component is composed of a single label and an instance of Macromedia's builtin ComboBox 'FComboBoxSymbol'. I named the instance of the FComboBoxSymbol to 'comboObject'.

Now when I drag a copy of my component onto the stage and in ActionScript I use the following code:

_root.myVComboInstance.comboObject.addItem("red", 0);

It works and adds the item into the combo box inside my custom component. However when I dynamically create an instance of my VComboBox it does not work at all, like below:

_root.attachMovie("VComboBox", myNewCombo, depth++);
_root.myNewCombo.comboObject.addItem("red", 0);

The combo appears but however no item is added. And when I click on the arrow for the combo to drop-down nothing happens. I am trying to find out what I am doing wrong? Is there a way to make this work? Also why is my custom component acting completely different based on whether it was created at design-time, or whether it was created dynamically at run-time? Any assistance would be greatly appreciated.

Not Sure If This Is The Right Place But Here Goes
Ok i have been looking at the tutorials on here for scrolling text boxes and im not to kean on them. Does anyone have a clue where i can get some real good tutorials for this cause i need to conquer this problem.
Second thing can you also point me in the right direction to some tutorials on how to publish your flash movies and embed them into html and then centre them and so on. I no this may not be the right place to post this but i thought i would ask anyway.

Thanks.
Mentaly Insane

IS THERE A PLACE
where you can find movement algorithms online for flash?

Best Place To Buy Mx On The Net
is there someone out there in cyberland who can tell me the best place to buy MX professional version on the net?
i've seen a few on ebay going for around US$400 but am a wee bit iffy on using ebay.

thanks in advance

Copyright © 2005-08 www.BigResource.com, All rights reserved