ActionScript 3.0 :: Comand Specific Child From Xml?

Sep 30, 2009

I'm trying to call a child from an xml to perform a function, which is seperate from the functions of all the other children. this is merely a test in learning as3 and i'm using this gallery as an example.

At the moment, I'm trying to call the second thumbnail of the gallery to react differently to the other thumbnails when clicked. So there is the "onClick" mouseevent for all thumbnails, but "onClick2" for just "thumb2".[code]...

View 3 Replies


Similar Posts:


6 Buttons, 6 Lights - Using The Gotoandstop Comand To Go To A Specific Frame Based On The Button Press

Feb 9, 2010

I am trying to make a light comparison chart where the lights can be turned on inividually by the user and one can be compared to another depending on which of the 6 lights you want to view.So far i have managed to make this work with 5 lights over 33 layers and diffferent buttons and different handlers for each of the buttons on each layer but as soon as the 4 and 5 light come into play everything slows down struggles and sometimes gives up.Is there a simple way of doing this which i am unaware of.I am currently using the gotoandstop comand to go to a specific frame based on the button press.

View 8 Replies

ActionScript 3.0 :: Flash Selecting A Specific Child By Mouseclick, Turning Off A Child Within All Non Selected?

Mar 19, 2011

I've used this site as a resource leading up to this, not particularly sure if I worded this correctly I have a class "Block" which is just a square (will be something else later on in the process) I want each block to have controls to add an additional block in either direction so I have another class BlockButtons which has my buttons for each direction.

And another class GlobalVar where I keep all my variables for funsies

[Code]...

View 1 Replies

ActionScript 3.0 :: Use GotoAndPlay Comand With Multiple Buttons?

Oct 15, 2009

How do I use gotoAndPlay comand with multiple buttons.
 
WORKS:

AA.addEventListener(MouseEvent.CLICK, release);function release(evt:MouseEvent):void {gotoAndPlay(5);}
 
DOESN'T WORK:

AA.addEventListener(MouseEvent.CLICK, release);function release(evt:MouseEvent):void {gotoAndPlay(5);}
BB.addEventListener(MouseEvent.CLICK, release);function release(evt:MouseEvent):void {gotoAndPlay(10);}

View 4 Replies

ActionScript 3.0 :: Making A Little Gamewhere On A Certain Point The Comand Mc.y=mouseY?

Mar 21, 2012

I have the problem that i am making a little gamewhere on a certain point the comand mc.y=mouseY is used but further in the program this need to be disabled how can i do that because everything i try the movieclip wil keep following my mouse.

View 2 Replies

ActionScript 2.0 :: Call Upon Javascript Functions From Flash Using FS Comand?

Mar 26, 2003

Does anyone know how to call upon Javascript functions from Flash using FS comand, here's an example of it in action though I'm not looking to do anything quite as elaborate, I simply want to instruct the browser window that's holding the flash file to close at a predetermined point on the timeline.

View 2 Replies

ActionScript 3.0 :: Add Child To Specific Frames?

Sep 16, 2009

I have a need to add an object to the display list at a specified frame number. Something equivalent to addChildAtFrame(mc, 100).

I know I could achieved this by creating a layer within the fla, making a new frame at the desired location, and placing a blank movieclip within the frame in order to have a target displayObject to addChild to but I would prefer to do this via code.

Is there anyway to accomplish this dynamically?

View 2 Replies

ActionScript 3.0 :: Remove Specific Child?

Oct 14, 2009

I have constant series of movieclips moving across the stage, and i want the specific one to be removed when it is hit by something. (hitTestObject, i know). I have tried a lot of things but i keep getting errors.

View 2 Replies

ActionScript 3.0 :: Refering To A Specific Child?

Feb 1, 2010

In my program, I have multiple children of the same movie clip. Each movie clip has a text field inside it which shows data relating to that movie clip. However, I need some way to update that data at run time to reflect changes that may be taking place. My problem comes to, how am I supposed to target that specific child of this movie clip since there are around 40 of them on the stage at the same time?

View 3 Replies

ActionScript 3.0 :: Call On A Specific Child In A Container?

Nov 4, 2010

I am loaded images into a container that is being displayed on a map.  I've created a string of my images names and am looping a loader to load each image and add them to the container.
 
var overlays=["compsmall.png","compsmall3.png","compsmall3.png","compsmall4.png"]
var overlay_container:MovieClip= new MovieClip();
function calloverlays():void

[Code]....
 
Once all of my images are loaded into the container overaly_container how can I call on a specific child of the container?  For example how can I call on compsmall2.png once its been loaded into overlay_container?
 
I place these images onto a map by placing the whole container at the correct location.  I then turn layers on/off by adding and removing the children within the container.  This is why I'd like to specify a specific object in the parent.

View 3 Replies

Actionscript 3 :: Using Arrays To Delete A Specific Child?

Nov 25, 2011

I am creating a game in which bubbles with simple math equations are falling from the top of the screen, and you have to enter in the answer to make the specific bubble disappear. The only problem is that I need a system that can delete the bubble(s) corresponding to the answer. I'm using an Actions-Frame code and a mathBubble AS class. I will show the frame code first.

stop();
var cooldown:int = 200;
var cooldownMax:int = 200;
inputAnswer.restrict = "^A-Za-z";

[Code].....

Reading the code is not completely necessary, I was just wondering if anybody could explain how I could use arrays to remove every child with the same answer as the randomized answer each child contains through variables "mathAnswer" and "mathAnswerString"

View 1 Replies

ActionScript 3.0 :: Adding A Child At A Specific Frame?

Jan 14, 2011

I've got a MovieClip that has 3 frames with different text content. I made another MovieClip and within its class I defined this code:

//this is the class of a MovieClip with a human face
if (something happens)
{
var dialogueBox = new DialogueBox();
this.parent.addChild(dialogueBox);
this.parent.dialogueBox.gotoAndStop("dialogue_info _01");

[Code]....

View 2 Replies

Actionscript 3 :: Calling Specific Child - Shows Pins On A Map

Nov 5, 2010

I am making a small program which shows pins on a map. The information about the pin comes from XML file including price. When a price button is clicked, lets say $900, only the pin with 900 needs to enlarge. All the pins are store inside a pinContainer_mc (blank container to put all the pins) Pin heretics pin class which has enlarge method.

[Code]....

View 1 Replies

Flash - Get All Child Ids Of MyCanvas1.Also For A Specific Mxml Tag Say <mx:Move />?

Apr 25, 2011

How to get all child ids of myCanvas1.Also for a specific mxml tag say <mx:Move /> how to get its id from action script

<?xml version="1.0" encoding="utf-8"?>
<mx:Application layout="absolute" xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[

[code]....

View 2 Replies

ActionScript 3.0 :: Multiple Buttons To Open Child Swfs Then Be Able To Close The Child From Within The Child?

Mar 25, 2009

I have a picture on the stage that has multiple items that have hotspots/links over them that should open a child swf on top of the background and show details about the items. then have a button in the child swf itself that removes the child from over the background so the user can click on another item etc.I found this code in someone's post and I am trying to modify it so that works for multiple swf files...it currently works for a single swf.I wan to pass the name of the button in front of the .swf in the URLRequest to have the same name as the instance name of the referring button. But I can't figure it out. Here is the code I am using on the stage

View 2 Replies

ActionScript 2.0 :: Make A Specific Thing Happen While Clicking A Specific Button

Jan 17, 2006

What I want is a hint how to make a specific thing happen while clicking a specific button. Like "if I click button 1, do this". Would like to use this script though I'm gonna add buttons over time and this is an easy way to have the functionality working.

Here's the code:

Attach Code

function hitButton(btn) {
btn.onRollOver = function() {
this.colorTo (0xC4006A);

[Code]....

View 4 Replies

ActionScript 2.0 :: Change The Colour Of A Graphic In A Specific Movie In A Specific Frame

Mar 31, 2006

i need to change the colour of a graphic in a specific movie in a specific frame. if i have a movie clip instance-named "sidetext" thats 15 frames long, and i want a graphic in the movie, called "letterp" to change to one of four colours that i want it to randomly at frame 10 and stay that colour uintil frame 15, how can i do this?

View 2 Replies

ActionScript 3.0 :: Loop A Specific Bit Of My Movie Until A Specific Link Is Clicked?

Mar 29, 2010

how I can loop a specific bit of my movie until a specific link is clicked?

View 5 Replies

Flash 10 :: Export Specific Frames Not All Frame - Specific Timeline

Sep 15, 2010

how do i export specific frames not all frame. ex: if flash has 1 to 200 frames. here i want to export 51 to 150 frames as a movie. if there is any command or plugin to export movie like this.

View 0 Replies

ActionScript 2.0 :: Read Specific Field In XML If Press A Specific Buton?

Mar 7, 2011

so i need to make a flash that will do the next things.if user press button "x" on the next frame should display "x" text from a xml.if user press button "y" on the next frame should display "y" text from a xml.

View 1 Replies

Target A Specific Frame In Specific Movie Clip?

Dec 3, 2009

I have been doing really well figuring everything out up until now.[code]How it stands, what is this link pointing to? Can I make it target a specific frame in a specific movie clip?And if someone would be so kind and explain what this is saying in 3rd grader terms.

View 3 Replies

ActionScript 2.0 :: Loading Specific Frames Within Specific Movies

Dec 5, 2004

cutting to the chase, Basically im loading a movie externally using this code...

Code:

on (release) {
if (S_Init == Number(S_Init)) {
loadMovieNum("s_menu.swf", _root.S_Init);

[Code].....

View 4 Replies

ActionScript 2.0 :: LoadMovies When Specific Clips Are In Specific Positions

Feb 18, 2005

I have a sliding menu, and need to loadMovies when specific clips are in specific positions. For gallery, for example, the code I'm using is:

if (xTargetSLI = 350){
loadMovie ("gallery.swf", 1);
}

But with that code, gallery.swf loads by itself, regardless of the position of SLI.

View 7 Replies

ActionScript 2.0 :: Click On A Specific Image And Set Specific URL-address?

Aug 4, 2009

would like to be able to click on a specific image and set specific URL-address. Here is my code so far;

HTML Code:
function loadXML(loaded)
{[code]....

View 1 Replies

ActionScript 3.0 :: Load Specific SWF At Specific Frame By Default?

Sep 21, 2009

Basically once my animation loads I want to pull in an external SWF at a specific frame, basically like the "home page" swf that will display first. Underneath that I will have "About Us, Contact, etc..." and those will each load an external SWF into my movie clip. My movieclip right now is called mcHolder. Here is the code I am currently using for the buttons:

Code:
//About Us Button
function test2(evt:Event):void{

[code].....

View 1 Replies

ActionScript 2.0 :: Loading Specific Frames Within Specific Movies?

Dec 5, 2004

cutting to the chase, Basically im loading a movie externally using this code...

Code:
on (release) {
if (S_Init == Number(S_Init)) {

[code].....

View 4 Replies

ActionScript 1/2 :: Specific Frame On A Specific Movieclip?

Sep 1, 2010

I'm trying to get the following movieclip smallbutton to link to frame 5 on movieclip cont.The way the timeline is built is as so:content_mc > cont > (more mcs) > smallbuttonThis seems to be an issue from every answer I've tried so far since the movieclip "cont" is not being called in the main timeline; first there's content_mc and then comes cont.How would I go about getting the movieclip "smallbutton" to link to the 5th frame of movieclip "cont"?This is for AS 2.0So far I'm at:on (release) {  _root.gotoAndPlay("cont");  _root.smallbutton.gotoAndPlay(5);

View 7 Replies

Flex :: SWFLoader - Child Apps Couldn't Access Certain Objects That Were Instantiated By Another Child App?

Aug 23, 2010

i have problem with swfLoader in flex, when i close following code in click method i can easly add many swf to main application

<mx:VBox id="content" width="100%" height="100%" ></mx:VBox>
public function doIT():void
{[code]....

when i close adding those swfs in loop i have the same error, it looks like child apps couldn't access certain objects that were instantiated by another child app, so what can i do?

View 1 Replies

ActionScript 3.0 :: Can't Swap Child For New Class Instance IF Child Is Exported For Action Script?

Aug 18, 2010

I have a movieClip with one frame on the timeline containing one child whose instance name is "myContent"I am using this function to swap "myContent" with any number of possible class instances.

Code:
function setContentAsClass(c:Class)
{

[code].....

View 2 Replies

Flex :: ViewStack.addChild Adding Multiple Child And Only The Last Child Is Visible?

Mar 10, 2010

var viewStack:ViewStack = new ViewStack();
viewStack.percentWidth = 100;
viewStack.percentHeight = 100;

[Code]....

Its only displaying canVas3 contents not canVas1 and canVas2

View 1 Replies







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