ActionScript 3.0 :: Browse Through Same Named Children?
Feb 7, 2010how do i browse through all the children with the same instance names from a movieclip?note: this movieclip has some children with other names as well.
View 2 Replieshow do i browse through all the children with the same instance names from a movieclip?note: this movieclip has some children with other names as well.
View 2 RepliesI'm making a OSX-finder-type file browser in CS4.The Structure for the folder and files is being generated by a PHP in a XML, heres an example:(sorry the xml is not sorted, but the command i'm using in php doesn't sort it)
Code:
<root>
<dir name="images">
[code]....
here is my new code that works for PART of my movie. i have two dynamic text boxes, one named "item" and one named "ssnumber" ssnumberNode works fine but itemNode does not. i bolded the parts that i think are relevant to the problems
[Code]...
In this game attached I need the old Children (rats) to hurt the character when he walks into them, however only the most recently added Child is active in that way... also the rats seem to appear above the character instead of below, is there any way to resolve these issues??
View 4 RepliesI have a Sprite called pageContent. Inside pageContent are 12 more Sprites with unique names, a couple of Buttons, and some TextFields. Inside each of the 12 Sprites I have either one or two TextFields and one TextInput. My question is, since they are children inside a child of pageContent, how can I access them? Here is how I am trying to do it:
[Code]...
In my mind, this should totally work. But surprise, surprise, it doesn't. I have debugged it and it works fine for the first two lines, but when it tries to get numChildren of a Child of pageContent (line 3), I get this error: PHP Code: 1119: Access of possibly undefined property numChildren through a reference with static type flash.display:DisplayObject.
I want to have a rollover effect of a movieclip (mo1) inside a movieclip (mo) of another movieclip (popup1).Is it possible to do that? I try calling it using this code in the frame 1 of my flash, am i doing wrongly?
Code:
popup1.mo.mo1.onRollOver = function() {
popup1.mo.mo1.gotoAndStop(2);
[code]......
Newbie to XML here and I have what I *hope* is an easy problem, but I just don't know the answer. And as I have to try and show this by Monday, I'm sort of stuck. I am trying to pull in information about houses via an xml file. Each house has 1 address, 1 owner, 1 description, and about 6 photos. I have no problem accessing the address, owner, etc, and I can always access the first photo, but whenever I cycle through the photos, I seem to cycle through the first photo for every house, not every photo for each house.
Basically, I need the children <images> to go up by one, without the the parent going up by 1. I am hoping I am describing this well. My code looks like this:
[Code]...
I have a Canvas which has many components inside it and those again, have many components inside them.
getChildren() returns only the top level children. What is the best way to retrieve all the children (children of children of children and so on).
Well, I sorta know how to do this by iterating through the children, but the code is really messy. I'd prefer to use a nice recursive function. Has anyone written this before? Or is there a Util class to do this?
I am trying to pull in information about houses via an xmlfile. Each house has 1 address, 1 owner, 1 description, and about 6photos. I have no problem accessing the address, owner, etc, and Ican always access the first photo, but whenever I cycle through thephotos, I seem to cycle through the first photo for every house,not every photo for each house.Basically, I need the children <images> to go up byone, without the the parent going up by 1. I am hoping I amdescribing this well.My code looks like this:
total = xmlNode.childNodes.length;
totalb =
xmlNode.childNodes[0].childNodes[5].childNodes.length;
[code].....
I have an ArrayCollection that is read to generate containers in an accordion programmatically:
<s:ArrayCollection id="_ac_ps">
<fx:Object label="Block and lot" data="_blocklot" searchType="districtblocklot"
info="" />
[code].......
for some reason STORAGE[0].getChildAt(0) works whereas liner.getChildAt(0).getChildAt(0) does not. STORAGE is a movieclip and a child of liner. the error is something about not being able to use getChildAt on a display object. what's wrong? is there any other approach i could use? PS: liner.getChildAt(0) works and does indeed seem to refer to STORAGE[0]
View 2 RepliesI am trying to call the browse() method of the FileReference class from JavaScript (a user clicks on a text that uses the ExternalInterface to call a method in Flash).Unfortunately, I receive an error that tells me it has to be a direct action of the user (like clicking a button). I have searched through Google and realized this is a new security feature in Flash 10.The only solutions I could find was to put a Flash button or to have a hidden flash button over the text, that will call the browse() method.I wanted the browser only to show JavaScript and all the Flash code only called from JavaScript.
View 1 RepliesI have a requirement to select a file from fileReference.browse(), but I want to browse a file to specific location say D:Dirfile instead of the OS specific (The dialog box is native to the user's operating system).
View 2 RepliesI am using FileReferenceList browse method. the window opened shows the following title:"Select file(s) to upload by ".
View 1 RepliesI'm looking to get/display the key name of an object in AS3.[code]...
View 1 RepliesI want to browse or list the directory present in my system and display those dirs graphically.
View 9 RepliesI'm having troubles with a contact form containing two file uploads (two buttons with Filereference.browse()-call). On all of my computers, the form works fine (Mac + PC); my client, however, reports a 20-second delay on opening the second browse dialog box (the first one opens right away). Client is on a Mac with latest Flash player version. If he double-clicks it, there is no delay. If he first clicks the second button, the delay is on the first.
[Code]...
I have created an image cropper application that upload an image, crop it and generates an jpg to server.BUT, this works perfectly well locally at my Mac at work, online on the server, but not locally at my laptop at home???Why and what the *** can I do?Everything seems fine. I click browse, and the fileReference opens the finder dialog box. But whatever I press, doubleclick the image, press select etc, flash tracks this as if I clicked cancel. The fileRef.onCancel activates, insted of the onSelect???Could it be something wrong with my flash program? Is it anything I can do to fix this (change somthing in the preferenced etc.)?
View 0 RepliesI am using a filereference.browse box so that users can upload images.although the browse box has a cancel button on it, I am also creating an mc_cancel button ( just in case the user's OS's browse does something funny ).currently, when mc_cancel is pressed, I call my_file_ref.cancel() ... but it doesn't actually close the box ... is it supposed too?
View 2 RepliesI'm making a small back-end system, and I would like to know if it's possible to integrate a browse button...I did already soms "research"...
I pass a var from flash to javascript
//***FLASH
_root.hitme_mc.onRelease = function()
[code].....
Is anybody able to figure out what's wrong with this (or specifically why it doesn't work in mac browsers)?
[URL]
I've tried lots of different options including the yamago component [URL]. The yamago component works but I don't like the complexity of the code, it's difficult to edit. It also doesn't work in safari on a MAC.
My example above is the simplest version I've been able to get working but unfortunately only on PC.
I was wondering if there is a way to do a browse button for a field in flash, a la php where you click it, you can navigate a file you want to upload, and it populates the file in the text field (basically a file upload type of thing). i know that you will need to use php/mysql to go along with it
View 3 RepliesI'm actually having problems with some AS code. I have a news ticker successfuly adapted from this site, and it's working okay. But I have to add some features I cannot solve by myself, so I 'm asking some help here. My problem is the following :
By what means can I force the Setinterval to be "skipped" (I'd like to add a fast forward/rewind buttons) with a simple MC ? I know a bit about the clearInterval function, but this leads to an akward behaviour of my flash movie (once skipped, the XML is not read in a chronological order� and so on).
The trick is that I I have differents controls type :
- a simple combo previous/next + play-pause buttons
- 4 areas that lead to a particular node (which works partially)
Instead of posting the whole code here, I attach my source .fla + XML (to be renamed as .xml extension is not recognized in the attachments) for you to see how messy is my code (more than partially adapted from the news_ticker.fla used on the tutorials here)
Id like to know how to make a very simple script that uploads files to a server.The file should be accessed by a "browse"-button in the .swf-file, and then put into a folder.
View 5 RepliesI have a contact from on a website i am making in flashCS4, i have the PHP script written for me and i have the Action Script to submit this information. i am now looking to add a browse and a upload form.
View 4 RepliesI'm making a small back-end system, and I would like to know if it's possible to integrate a browse button...I did already soms "research"...I pass a var from flash to javascript
//***FLASH
_root.hitme_mc.onRelease = function()
{fscommand("filechooser", "")}
//*** JAVASCRIPT
[code]....
With this you select a file and the path will appear as a string in the textfield. Now the thing I want is to call the function, when I click a button in Flash, that chooses a file and passing the string back to flash, to put it there in a textfield. But how do you call that function?
Is anybody able to figure out what's wrong with this (or specifically why it doesn't work in mac browsers)?
[URL]
I've tried lots of different options including the yamago component [URL]. The yamago component works but I don't like the complexity of the code, it's difficult to edit. It also doesn't work in safari on a MAC.
My example above is the simplest version I've been able to get working but unfortunately only on PC.
Can you by any means of java script or anything else get a browse window to pop up from within flash? Return the selected file, or even get a php script to upload it?
View 4 RepliesI manage to get fileRef.browse working locally to load some picture but it only works for pictures in same folder/directory as the .swf.
View 8 RepliesI am trying to get my application to load images from my local hard drive. I browse to the image files (no problem so far) by when I select the file to load I get an input/output error. I CAN load images successfully if they are in the same folder (directory) as the Flash application I am creating. Is it possible to load image files selected from folders other than the active application folder?
View 17 Replies