Help Locating A Mc
i have this function.
function CreateNews(news_xml) { var items = news_xml.firstChild.firstChild.childNodes;
for (var i = 0; i<items.length; i++) {
var date = items[i].firstChild; var news = items[i].firstChild.firstChild;
var item_mc = home_mc.content_mc.attachMovie("news_content", "item"+item_count, item_count); item_mc._y = item_count*item_spacing; item_count++;
item_mc.date_text.text = date.attributes.day; item_mc.content_text.text = news.firstChild.nodeValue;
}
}
basically attaches the textfields to item_mc.
I want to .visible false at the beginning. which i can do within the function. however, within home_mc i want to have the .visible true at the end of the animation. The problem is it wont work, i tried _root. but it cant find item_mc.
where is it located? I can only control it from the function itself.
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 12-02-2007, 09:31 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Locating Rotation?
hi,
how do i locate at wat degree i ended up using this code
onClipEvent (load) {
var speed = 10;
}
onClipEvent (keyDown) {
if (Key.getCode() == Key.LEFT) {
this._rotation -= speed;
}
if (Key.getCode() == Key.RIGHT) {
this._rotation += speed;
}
}
and then how can i get my character to go in the direction of the degree when i press the up arrow using this code
if(Key.isDown(Key.UP))
{
/guy:_x -= 5;
/guy:_rotation="this is where i ended rotating";
}
i just need help to get my character to move foward in the direction he is looking this is my swf as u can see u can't move up cause i need help, use left and right arrows to turn to the sides...Help me!!!!
http://www.angelfire.com/sk3/slabs/Streetfusion.swf
than in Advanced,,,,
Advancedsky::.
Locating A File
Hello everybody !!
Does anybody know how I could browse the files located in my computer using flash MX???
thx
Locating Files Please Help
hi, i want to burn files from th harddrive of my computer on to a cd...so that it can be viewed as such
the folder containing the files is called
design intro cd (contains the htm docs and the final folder that contains the swfs.)
FINAL (contains the swfs)
i have currently placed this actionscript in the homepage swf which is embedded in a htm doc.
but it does not call up a screen ...
the window i receive says no file exists (but test2.swf is in the final folder) can anyone tell me where i havegot this actionscript wrong) help please....
javascript:NewWindow=window.open('file:///design%20Intro/FINAL/test2.swf','newWin','width=800,height=600'); NewWindow.focus();
Locating A Movieclip
Is there a way in which you can use actionscript to locate a particular point of a movieclip?
I cant use the ._x or ._y locations. I need to be able to refer to say the top corner of a rectangle without either point being there.
Possible?
Locating The Web Root.
I'm using LoadVariables to pull in information from an .asp page that is in the web root, but my .swf is several directories down from the root. Does anyone know how I code the location of my .asp page without giving an absolute path name?
In otherwords, the I want it to always look towards the web root no matter what server it is on.
From tech note 15427, it looks like I should just be able to use: LoadVariables("/page.asp"), but that doesn't seem to be working. Any suggestions?
Locating A Font
Hello,
I have a font that appear in FlashMX font listbox but it does not appear in my WINDOWS XP font directory.
Can anyone tell me where else could fonts be hidding on my system. I did a font search on all drive and still didn't locate the font?
Thank you
iaustin
Locating A Font
Hello,
I have a font that appear in FlashMX font listbox but it does not appear in my WINDOWS XP font directory.
Can anyone tell me where else could fonts be hidding on my system. I did a font search on all drive and still didn't locate the font?
Thank you
iaustin
Locating XMl Slideshow
Hello,
Still learning more about actionscript, i have an XML slider and want to locate in a certain place and size on the stage. Is there code i can add to the script to allow this?
Hope you can Help, Thanks!
Locating A Swf File
Hi all,
I've tried a few things. I'm trying to make a button, that's loaded into seperate swf file and level to goto a different frame in a movie clip instance located in a different swf and level.
SED
Help Locating X N Y Coordinate
i have a flash movie that search the body of the person. i already tried locating the x and y axis thrue entering the exact x and y coordinate.
what i want to do now is create a text box that locate the ear, nose and etc.. what i understand is i have to instantiate the nose= x,y , ear=x,y and etc.. the provlem is i dont know how to star it. and i watn more dynamic.
thanks in advance.
sample code is very much apprediated!
Locating Center Of Swf
I have a group of images, 8 wide, 5 high, totalling 40 ( ) .
what I want to happen:
On RollOver, load MyFile.jpg into target a ...
this I can do. However, here is where Gen2 was easy, MX will orient the jpg by it's upper right corner. This won't work, since I don't know the orientation (landscape or portrait) because they will be dynamic...
any idea how to load into a target and orient to the center of the loaded image?
thanks in advance,
Rev
Help Locating X N Y Coordinate
i have a flash movie that search the body of the person. i already tried locating the x and y axis thrue entering the exact x and y coordinate.
what i want to do now is create a text box that locate the ear, nose and etc.. what i understand is i have to instantiate the nose= x,y , ear=x,y and etc.. the provlem is i dont know how to star it. and i watn more dynamic.
thanks in advance.
sample code is very much apprediated!
Locating Attached Mc
I am able to use addChild() in replace of attachMovie(), but I can't seem to path it after i attach it?
Code:
var name_array:Array = new Array("Ryan", "Kristen","Steve", "Kieth");
for (var i = 0; i<name_array.length; i++)
{
var temp:item = new item();
temp.name = "n"+i;
temp.txt.text = name_array[i];
temp.y = i*25;
this.addChild(temp);
}
trace(this.n0);
should be a simple fix...
Locating External Image
Hi guys,
I'm pretty new to Flash and here's what I want to do. I want to load external images, but not to load them in line, I don't want to use a scroll option. Let say you have a bacground picture 200 x 200. In the left bottom corner is where I want to be the original image after user click the small image. Small images are all around and they musn't touch each other. How can I make this? How can I define where each snall image can load? How can I define how many images are in a external file where are loaded from?And then automaticly add the same number of "loading places"?
THX for all the help
Trouble Locating Actionscript
I'm a bit confused with this one.
I downloaded a movie from flashkit. In the debugger dropdown menu it says:
--------------------------------------------------------------------
Actions for [no instance name assigned] (menu_button_open)
on (release) {
if (_name == 'Menu1') {
_root.Menu_Blok_Text = _root.t1;
}
if (_name == 'Menu2') {
_root.Menu_Blok_Text = _root.t2;
}
if (_name == 'Menu3') {
_root.Menu_Blok_Text = _root.t3;
}
if (_name == 'Menu4') {
_root.Menu_Blok_Text = _root.t4;
}
if (_name == 'Menu5') {
_root.Menu_Blok_Text = _root.t5;
}
_root.Menu_Item_Opened = true;
// _root.Timer.gotoAndPlay("Menu_Closer");
newTextBlok = "TextBlok_New";
duplicateMovieClip ("_root.TextBlok", newTextBlok, 345);
this.gotoAndStop("Menu_Open");
}
-------------------------------------------------------------------
The action script I want to edit is in there, but I can't actually edit it. And in the library, under menu button open, it has no actionscript assosiated with it? "Current selection cannot have actions applied to it". How do I get to where this action script is so I can mess with it?
Here is the link to the file:
http://www.flashkit.com/movies/Inter...8685/index.php
P.S. I'm using cs3
Locating Words In Textbox.
Is there a way of locating a specific word in a input textbox?
Let's just say that i press a button, and then a function matches the words in the box to reply with a sentence stored in an array.
To make it more precise, it would be great if there would be a way of locating, by the amount of matched words, witch sentence in the array that would fit best to the text.
thankful for answers.
Trouble Locating New Movieclip
Hi everyone,
I have a problem when I'm trying to locate a movieclip. It's generated in this code (I did not write myself)
Code:
class Shape {
//
private var clip:MovieClip;
//
private var surfaceArray:Array;
private var pointsArray:Array;
//
private var perspective:Number;
private var scale:Number;
private var DEGtoRAD:Number = Math.PI / 180;
private var depth:Number = 0;
public function Shape(mc:MovieClip, scale:Number, points:Array) {
this.clip = mc;
this.scale = scale;
this.surfaceArray = new Array();
this.pointsArray = points;
}
public function setNewSurface(points:Array, lineThickness:Number, lineColor:Number, lineAlpha:Number, fillColor:Number, fillAlpha:Number):Void {
var storemc:MovieClip = this.clip.createEmptyMovieClip("surface" + this.depth++, this.depth);
this.surfaceArray.push({points:points, lineT:lineThickness, lineC:lineColor, lineA:lineAlpha, fillC:fillColor, fillA:fillAlpha, mc:storemc});
}
it's the var storemc which PROBABLY creates the movieclip surface1 , surface2 until all 6 sides of the cube are generated.
The code is in a seperate actionscript file called 'Shape.as' and the flash file is called kubus.fla
Thanks for your help!
Locating Hidden MovieClips
hey guys,
i'm working on a movie done by somebody that worked here before me but i'm having trouble....
there's a background element that doesn't appear in the library anywhere but shows up on the @#$!@#$ stage!! i've tried the movie explorer - is there any other way to find a mystery element?? i'm using mx2004 - are there any new tools to locate stuff like that?
- gonna smash something soon,
monkeybrainz
Having Problems Locating Files
Hey guys,
Im working with a flash program using actionscripts, the program does this, once I press an area of the graphic it loads up a profile from a html file on my server. Different areas of graphic bring up different html files. I now have a new file and location but I cant find where I am supposed to put in the new file location in the JavaScript, basically I want to edit it so that I an just change this one part and have it load up the new files.
Any help would be appreciated
Locating Text In A .fla File
I have a Flash movie which is a series of tabs. I want to edit the text of the tabs. The problem is that when I open the .fla file, I see only the first tab. How can I find where the text of other tabs is? It does not even show up in the library for some reason.
I am using Macromedia Flash Professional 8.
Locating A File Through Action Scripts…
I want to locate a text file on the local drive c: called "wigits.txt" and play a frame if the file exist... How do I perform this task with the action scripts...?
Any help would be very appreciated…
Locating Syntax Tutorial Website
I'm not sure if this is the place to post this but I saw general so... anyway. A while back I went to ShockAnime.com and they had this awesome tutorial using flash syntax for games. Well the site went down and I was wondering if anyone has the tutorial or knows where I could find it. Thanks in advance.
Help Identifying And Locating Event Sub Properties
how can i find (possibly with flash help) the listing of sub properties for events?
i would not know if sub properties even exist for an event if i'd not done a tutorial stating so.
for example.
var listenerObject:Object = new Object();
listenObject.cuePoint = function(evtObj){
trace(evtObj.info.name); //how do i find out if such sub properties exists for events?
trace(evtObj.info.time); //how do i find out if such sub properties exists for events?
}
please help
Having Trouble Locating Action Script
I'm a bit confused with this one.
I downloaded a movie from flashkit. In the debugger dropdown menu it says:
--------------------------------------------------------------------
Actions for [no instance name assigned] (menu_button_open)
on (release) {
if (_name == 'Menu1') {
_root.Menu_Blok_Text = _root.t1;
}
if (_name == 'Menu2') {
_root.Menu_Blok_Text = _root.t2;
}
if (_name == 'Menu3') {
_root.Menu_Blok_Text = _root.t3;
}
if (_name == 'Menu4') {
_root.Menu_Blok_Text = _root.t4;
}
if (_name == 'Menu5') {
_root.Menu_Blok_Text = _root.t5;
}
_root.Menu_Item_Opened = true;
// _root.Timer.gotoAndPlay("Menu_Closer");
newTextBlok = "TextBlok_New";
duplicateMovieClip ("_root.TextBlok", newTextBlok, 345);
this.gotoAndStop("Menu_Open");
}
-------------------------------------------------------------------
and the action script I want to edit is in there, but I can't actually edit it. And in the library, under menu button open, it has no actionscript assosiated with it? " Current selection cannot have actions applied to it". How do I get to where this action script is?
Here is the link to the file:
http://www.flashkit.com/movies/Inter...8685/index.php
Locating Countries Using Flash Scripts
Am familiar with flash even though am still beginner in flash action script.I wan to know how i can make flash application. just like this url
http://www.geodiswilson.com/en/About_Us/Locations/
If any one know how to do this please help me..
prinujith k
Locating A Frame Label (or Playhead)
Hi, it's me again
when a button is released is it possible for it to figure out where the play head is in a separate movie clip.
I want my button to find out which frame label ( or frame ) my mcBoarders is at so that I can tell it to stay there or move to and play a different frame label.
Thanks
With Command, Not Locating Correct Object
I am using the "with" command, and it tells me that the object I am calling isn't specified. I have the same "instance" name throughout the code. I have played with this many different ways and keep getting the same result. Take a quick look at the .fla and let me know what you find.
OVERVIEW.FLA
Problem Locating External File
Hello,
I am using the 'load' function to load an external XML file.
xml.load("list.xml");
However, when I test the movie, this error appears
Error opening URL "file:///C|/Documents%20and%20Settings/Donald/Desktop/The%20Website%20%26%20Animations/Stuffs/undefined"
NOTE: This is the correct location of 'list.xml'
I am so confused. It appears that I have not defined a file withing the folder 'Stuffs', but I have.... havn't I?
Thanks
Help Identifying And Locating Event Sub Properties
how can i find (possibly with flash help) the listing of sub properties for events?
i would not know if sub properties even exist for an event if i'd not done a tutorial stating so.
for example.
var listenerObject:Object = new Object();
listenObject.cuePoint = function(evtObj){
trace(evtObj.info.name); //how do i find out if such sub properties exists for events?
trace(evtObj.info.time); //how do i find out if such sub properties exists for events?
}
please help
Locating Specific Points On A MovieClip
Hi everyone
So I've got a rectangle movieclip, and it's registration point is the top left corner, let's call it point A. Now let's define the top right hand corner of the rectangle as point B. Now writing a function which rotates the rectangle about point A (its registration point) at the touch of a button is easy.
However, I would also like the same function to rotate the object about point B when a different button is pressed, so I need to know a way to locate point B, regardless of the current orientation of the rectangle.
I can't simply rotate about the point rec.x + rec.width as the rectangle might have already been rotated before I wish to rotate about this new point.
I have a class which allows me to rotate about any point, it's just writing the code which will always find this point B that I'm having trouble with.
Any help would be greatly appreciated
Regards
Stonehambey
Locating Sound Button MC With Actionscript?
Ok, I've managed to create a working On/Off Sound button (in a separate file) using this tutorial here.
However, when I've tried to adapt the same scripting to the music button in my interface (located within an MC on the main timeline), I can't get it to work.
I've applied exactly the same code the new button, and got the sound playing alright, but the button doesn't stop the sound or show the "off" state once clicked...It just dissapears, then shows button again and plays another instance of the sound over the top of the existing sound when clicked again. I've tried applying the "Tell-Target" command to locate the frame labels within the MC, but still no luck!
Code: Frame 1:
Code:
my_sound = new Sound();
my_sound.attachSound("music");
my_sound.start(0,1000);
gotoAndStop("play");
Original Code: Play Button (Frame 1).
Code:
on (release) {
_root.my_sound.start(0,1000);
_root.gotoAndStop("stop");
}
Adapted Code: Play Button (Frame 1):
Code:
on (release) {
_root.my_sound.start(0, 1000);
tellTarget ("_root.speaker") {
gotoAndStop("stop");
}
}
Can anyone please tell me what I'm doing wrong? Am I on the right track at least?
Cheers,
DC.
Locating Image Sliding Scripts
I posted this in the DHTML forum and was adivised to post here, however, i ws not aware that the site in question was using any form of Flash. If someone could please point me in the right direction I would be grateful. Here is the post:
I have an art site and would really like to have a design similar to http://www.rijksmuseum.nl/index.jsp?lang=en. Would anyone here know of some scripts that could help me out, or am I out of lucK? I am not trying to plagiarize thier site, I just want to be able to add some cool picture sliding effects with my own paintings like they have on their index page and work from there. Thanks for any help.
Help Identifying And Locating Event Sub Properties
how can i find (possibly with flash help) the listing of sub properties for events?
i would not know if sub properties even exist for an event if i'd not done a tutorial stating so.
for example:
Code:
var listenerObject:Object = new Object();
listenObject.cuePoint = function(evtObj)
{
//how do i find out if such sub properties exists for events?
trace(evtObj.info.name);
//how do i find out if such sub properties exists for events?
trace(evtObj.info.time);
}
please help
Help Identifying And Locating Event Sub Properties
how can i find (possibly with flash help) the listing of sub properties for events?
i would not know if sub properties even exist for an event if i'd not done a tutorial stating so.
for example.
var listenerObject:Object = new Object();
listenObject.cuePoint = function(evtObj){
trace(evtObj.info.name); //how do i find out if such sub properties exists for events?
trace(evtObj.info.time); //how do i find out if such sub properties exists for events?
}
please help
Locating X-Y Coordinates, Then Animate To Specific Location
Here's my dilemma...
I have action script code that bounces a ball around the stage. This animation is fine and works like a charm. What I would like to do is at a specific point in the movie have the ball move to a specific point on the stage and remain static.
I have tried different action script methods that move the ball to a specific distance but I cannot figure out how to move the ball to it's final resting place. If I tell Flash to animate to point 475 which is the _x center point of my movie the ball will move forward from it's current location 475 pixels instead of moving to point 475 on my stage. I.E. - If the ball is located at point 600 I can get it to move 475 pixels forward to point 1075. I don't want this... I want the ball to move backwards to point 475 even though it's current location is at 600. If the current location is at point 100 I want it to move forwards to 475. If the current location is at point 900 I want it to move backwards to point 475.
I think what I need to do is locate the X and Y coordinates of the ball at that specific moment in time AND then using those captured values animate the ball to it's final resting place. Unfortunately, I don't know how to accomplish this.
Please help.
Prevent A Object Locating On An Occupied Target
Hi i have created a drag and drop template (code included as a .txt), however I am looking for a way to make a drag object locate to empty targets only. If a target is already occupied by a drag object I do not want another drag object to be able to locate on it. I hope that makes sense....Any ideas, help would be very much appreciated. Thank you.
Locating Frames When Reading Swf File In Binary
Hello,
I'm trying to see if this is some how possible.
I'm trying to take a shockwave file (parent) where I have a start frame and and end frame - say start_frame = 2, end_frame = 8. I'm trying to make another shockwave file (child) w/ just these 6 frames and their content. I'm trying to do this by reading the binary data of the swf file using the PHP fread() function.
I know PHP has a whole slew of shockwave functions to create SWF files on the fly.
If I could isolate the specific frames from the binary read, I could rewrite the file w/ just those isolated frames.
Am I crazy?
Thanks,
Clem C
Locating Frames When Reading Swf File In Binary
Hello - it's me again w/ more crazy questions.
I'm trying to see if this is some how possible.
I'm trying to take a shockwave file (parent) where I have a start frame and and end frame - say start_frame = 2, end_frame = 8. I'm trying to make another shockwave file (child) w/ just these 6 frames and their content. I'm trying to do this by reading the binary data of the swf file using the PHP fread() function.
I know PHP has a whole slew of shockwave functions to create SWF files on the fly.
If I could isolate the specific frames from the binary read, I could rewrite the file w/ just those isolated frames.
Am I crazy?
Locating Frames When Reading Swf File In Binary
Hello,
I'm trying to see if this is some how possible.
I'm trying to take a shockwave file (parent) where I have a start frame and and end frame - say start_frame = 2, end_frame = 8. I'm trying to make another shockwave file (child) w/ just these 6 frames and their content. I'm trying to do this by reading the binary data of the swf file using the PHP fread() function.
I know PHP has a whole slew of shockwave functions to create SWF files on the fly.
If I could isolate the specific frames from the binary read, I could rewrite the file w/ just those isolated frames.
Am I crazy?
Thanks,
Clem C
Locating Frames When Reading Swf File In Binary
Hello,
I'm trying to see if this is some how possible.
I'm trying to take a shockwave file (parent) where I have a start frame and and end frame - say start_frame = 2, end_frame = 8. I'm trying to make another shockwave file (child) w/ just these 6 frames and their content. I'm trying to do this by reading the binary data of the swf file using the PHP fread() function.
I know PHP has a whole slew of shockwave functions to create SWF files on the fly.
If I could isolate the specific frames from the binary read, I could rewrite the file w/ just those isolated frames.
Am I crazy?
Thanks,
Clem C
Locating A Clip's Position & Controlling Multiple Movie Clips
I'm using Flash MX and attaching a Movie Clip (Directions_mc) into my main time line. There is also another movie clip existing on my timeline (ntr). Later I want to stop the play of both movie clips from a button within an attached Movie (swf) file. This stop action needs to be able to occur at any point in my movie.
My code to attach the movie is:
DirText = new Object ();
DirText._x = 430;
DirText._y = 250;
attachMovie("Directions_mc", "Directions", 1, DirText);
I've also tried to specify a level at the beginning of the attachMovie
portion of the code as follows:
DirText = new Object ();
DirText._x = 430;
DirText._y = 250;
_level5.attachMovie("Directions_mc", "Directions", 1, DirText);
My code on my button is:
on (release) {
_level0.ntr.stop(); //this code stops an instance of another movie clip on my main movie timeline
_level0.Directions. stop();
}
If I specify a level in the attachMovie command, my movie clip does not display. It displays fine without it.
My button stops one movie clip (ntr) but will not stop my attacheMovie clip from playing at all.
I've also traced my clip that wont stop using the following command:
trace (typeof(_level0.Directions)); //
The trace results are "undefined".
It looks like I have no idea where this clip is living.
Anyone have any suggestions?
|