Actionscript 3 :: Find Out Full Path Of An Object?
Jan 12, 2011How to find out targetpath of a movieclip or a textfield.? i need to get full path of a movieclip like Object(root).moviclip1.movieclip2.textfield
View 4 RepliesHow to find out targetpath of a movieclip or a textfield.? i need to get full path of a movieclip like Object(root).moviclip1.movieclip2.textfield
View 4 RepliesI need to get the full path of an object, and I don't know how to do that at all... I tried searching forums and google, but all found was something about nativePath, and all I get from this is "undefined". To sum the whole thing up, I need to pick up an object from the main stage on MouseEvent, and put it elsewhere. Then, by another click on the object (in the new location), I want it to go back to where it was in the first place. I cannot take the absolute path of the object, as I will have several objects and need to put this in a function..
Here is my function, for the moment :
Code:
function inventaire(evt:MouseEvent){
var chemin=evt.currentTarget.nativePath;
trace(chemin);
[Code]....
The targeted object is inside a movieclip, which is inside another movie clip...
The aim is to remove the object from the "popup" and have it return in it's place.
get the target path of an object.So that i can give properties/methods to that object.Actually i need the target path when an event occurs.like on click/keyup/enterframe..and so on.
var curinstance:Object = ev.target.valueOf();
In the above code i get the instance name of the particular object i cant give properties and methods to it.
Whats the parameter in Filerequest that gives the full path of the object selected in the browser?
I want to display the image selected in a loader.
I was wondering if it possible to write up some AS that will take line paths that you have drawn and convert them into a Path object? For example say you drew a jagged line from left to write, would there be a way to have AS convert that into a Path object.
View 11 RepliesNow yes i'm getting started to AS3 but I still have a lot of blanks in my mind.For example in as2
ActionScript Code:
trace(this);
// Outputs : _level0.myMc.theContent.instance15.instance36
But in AS3 i'm getting just the ".name". Ex:
[code].....
I plan to run my App off a thumb drive, and I need to be able to find the full filepath of my Flash app at run time, so I can then point to an xml folder on the hard drive. I need it to work on Windows or Mac, so it needs to find the full path of the running file, then append the "xml" folder onto the end.
View 10 RepliesWhere can I find the path to the Flex SDK? Last time I embeded metadata, Flash CS5 automatically found it for me. This time its not working. I get this message in the output window:You have used a feature that requires the Flex SDK:"Embed" metadata Please set the Flex SDK path if necessary and add it to the library path for this file. The Flex SDK folder contains the bin, frameworks, lib and other folders.
View 3 RepliesIs there a way to get the path to the movieClip I'm clicking?
e.g. event.currentTarget.path? (This doesn't work but I'd like something like it!)
Is it necessary to use the full url path to call an external jpg or is it possible to have a relative url?
View 1 Repliesfirst I need to know if I can get the full path of a file from fileReference or by other way by without using xml file.Second, I have a movie clip and I want to apply two event Listeners to it (mouseEvent.CLICK, mouseEvent.DOUBLE.CLICK) together but only .CLICK one is executed twice when I Double click the movie clip.
View 2 RepliesI have used the script from this link:
[URL]
The swf file works correctly, but when it is published, the images to not load. Do I need to have the full path listed for the array?
this.pathToPics = "flashimages/";
I am trying to build a .xml image scroller using the scroll pane component in CS4.I choose Actionscript3. Drag the component to the stage. Give it an instance name.Then I look for the Parameters that used to be in the properties panel in CS3. Not there anymore.I find that the Components Inspector has Parameters in there now.OK.I need to use ContentPath to tell the component where the .xml file is so it can find the images for the scroller.Can't find 'ContentPath'.How can I point the component to a .xml file?Is there a way of getting Parameters back in with properties - it was so much easier.
View 5 RepliesI am currently looking at a way of visualising data and a part of the algorithm needs something 99% the same as A* Path Finding but I cannot wrap my head round it fully. I know it will be a fairly simple modification. (specific cost instead of least cost)
Basically I need to plot a path (2D Grid, no Diagonals) from point A to point B in X number of steps.
E.g. If the start and end points were right next to each other and I needed the path to be 3 steps it would have a tiny loop. (moves: up, right, down). Is there a known name for this algorithm or is the use of this so rare it's uncommon? I am currently looking at this AS3 Librbay for modification as it is apparently very fast and seems clean and simple to me:[URL]..
How do I actually remove the full path as in C:program filesappfilename.jpg so that the only left is filename.jpg? Substr or Substring can be use in this case to remove after detecting the first occurrence or / by looping from the string end position.
View 1 Repliessay, user created a xml file by an AIR application and this file has been saved in certain location of his machine. If user enters second time in that application, the content of that XML file, should be displayed without prompting him. application should read file silently and display the content.In this scenario, i thought that when user will save that file, the entire file location will be saved in cookie. If user enters second time in that application, the file path will be available from cookie. user will not be prompted.[code]How can I get that full qualified path of saved file?
View 1 RepliesI am finding this task challenging in AS3.if I am missing something basic/simple or some builtin method which can do this. I am not well versed with RegExp.I have a DYNAMIC string representing full file path which looks exactly like "d: empabc.doc". I want to extract the filename part from complete string e.g. abc.doc.I am aware of techniques like using "fullPath.lastIndexOf("\")" or regular expressions. The problem is it doesn't seem to work if you have "" in your path. It works with "/". The path being dynamic can't be manipulated to replace "" with "/" or any other delimiter. My interpretation is that since "" is used to escape characters - ANY character appearing AFTER "" is ignored by actionscript. e.g.[code]
View 3 RepliesCurrently, I have a requirement need to get the full resource path in runtime, IF POSSIBLE.Here is an example: I have a action script and using a MovieClip resource. Now, I have a action script variable ctrlVar that is pointing to a child control , whose id is, for example, contorl1. And the real path I can find from fla file should be, for example, parent1.parent2.parent3.control1. And every parentX is a id ( not a type ).
View 1 RepliesI have a path drawn in the flash IDE, accessible as a MovieClip.
With AS3 I need to find the closest point lying on this path to another point.
i want to find the windows path on hard! it may be c:windowsor e:folderwindowshow can i find this path with AS2?
View 1 RepliesI'm using the code below to allow a user to download a file.The problem I am having is that, if the file is located at/images/english/and I say I want to download it to myDocuments instead of having an images saved in MyDocuments /MyDocuments/1.gif.it creates the same folder structure as the file that was downloaded and saves it here:/MyDocuments/images/english/1.jpg.This isn't the whole code, but I think I included all the stuff relating to downloading files
View 1 RepliesI am in the process of writing a custom script for our internal SharePoint system that will allow for multiple file uploads on list items. In order for this to happen, I was wanting to use a flash file input (to select multiple files at the same time) and then pass an array of file paths (local to the user) into my ASP page to do the actual uploading.Does anyone know of a SWF multiple upload plugin that allows this? I've looked at Uploadify and cannot find what I need there.
View 2 RepliesHow can I find the path to the user's temp folder (e.g. C:UserslisnilAppDataLocalTemp) from Flash/AS3? It needs to work on any version of Windows, at least XP, Vista and 7.
View 1 RepliesI can fade the video in?
I have set: netStream.bufferTime = 10;
and when that buffer is first achieved I want to fade in the video like so:
TweenLite.to(videoSprite, 2, {alpha:1});
the only way I could think of right now is like [code]...
I just created a 448x380 SWF with the following code:
[Code]...
Why doesn't that load a video? The skin partially appears, but the video does not. Hitting "Play" gives a server error, even though I'm testing locally. Does FLVPlayback need the full MACHINE PATH -- file:////blah blah blah -- to access that local file? You'd think not.
Is there any way to get full path of a file which the user selects after clicking the browse button... ive read somewhere that using the FileReference in ActionScript we can pop up the browse dialog box by using the
FileReference.browse();
is there any way to extract the file path from this?Actually i need to use that path to Load the image later in the APPLICATION..
who wants to build a flash application to find the shortest path using ant algorithm. but i have not the refferrence about that?
View 5 RepliesI am currently trying to create an app using flash AIR.I would like to find some more information on how to make an object snap to another ojbect then follow its path, eg. a person object is already on the stage, then drag an arrow to the object which snaps to it, then on play button it follows the arrow path. all in pure actionscript, no guide layers.
View 1 RepliesI'm trying to trace the path of an object by using setPixel on the object's position every frame in a BitmapData/Bitmap pairing. These pixels aren't showing up normally and I suspect I have a fundamental misunderstanding of the BitmapData class. Here's what I'm doing:
public var contrailBase:BitmapData;
public var contrail:Bitmap;
private var contrailColor:uint;[code].....
Using this code, the red pixels don't show up. If I initialize contrailBase to 0xFF000000 instead then I get a black screen on which the red pixels DO draw, but I need the bitmap to be transparent except for the contrail. What am I doing wrong?
I am working with Flex, Flash, Action Script and I want to browse the local machine file system using Operating System's file browse window and select a file then i want to get the full path of the selected file. How can I do this?
View 3 Replies