can I somehow create logical groups of objects without actually combining them into symbols which would appear in the libraryI was thinking of this approach
ActionScript Code:
var vertFloatGroup:Object = new Object(); // the logical object
vertFloatGroup.addChild(splashPhoto); // splashPhoto is an existing instance on stage
vertFloatGroup.addChild(nav); // same for nav
interact with the group as a whole this above tells me that addChild is not a function...
I got the following code from Adobe's 'Serverside ActionScript Language Reference'. Here it is:
myLoadVars = new LoadVars();myLoadVars.onLoad = function(result){ trace("myLoadVars load success is " + result);}myLoadVars.load(http://www.someurl.com/somedata.txt);
My questions is, if the purpose of the onload event handler is to confirm if the load operation is a sucess,than should it not be placed after the load command? In the above code, the onload event handler appears before the load and yet it works.
I posted this in another forum, no response yet, so I thought of posting it here as well. I got the following code from Adobe's 'Serverside ActionScript Language Reference'. Here it is:
Code: myLoadVars = new LoadVars(); myLoadVars.onLoad = function(result){ trace("myLoadVars load success is " + result); } myLoadVars.load("somedata.txt");
My questions is, if the purpose of the onload event handler is to confirm if the load operation is a sucess,than should it not be placed after the load command? In the above code, the onload event handler appears before the load and yet it works
I've made a mailform and having probs with te textfields.Somehow when I use the tab it selects the left textfields from top till bottom, then the textfields that are layed out to the right. How can I amke sure the tab makes the logical order when someone whants to fill the form.
I already used setfocus to the first textfields so the cursor starts with the first to fill in textfield.
How tab form let's say tekstfield name to adres to email(variables).
I got the following code from Adobe's 'Serverside ActionScript Language Reference'. Here it is:
Code: myLoadVars = new LoadVars(); myLoadVars.onLoad = function(result){ trace("myLoadVars load success is " + result); } myLoadVars.load("http://www.someurl.com/somedata.txt");
if the purpose of the onload event handler is to confirm if the load operation is a sucess,than should it not be placed after the load command? In the above code, the onload event handler appears before the load and yet it works.
When the feed truly fails, then onXmlLoad never runs (or it breaks; not sure which; either way I don't have an issue). However, when the feed doesn't fail, both catchHttpError AND onXmlLoad run which creates a problem. I want to set this up so that its either one OR the other.
As I was looking into the properties of HTTPStatusEvent.HTTP_STATUS, I noticed that I can check status, but the problem is that status can either be 200 or 0 and this is not exclusive.
I have completely hit a wall. Here's what I'm after. I have two sets of radio buttons, each of which controls what loaded swf appears on stage. Then, depending on which button is clicked in group one and which button is clicked in group two, a third swf appears. I can access the value of each radio button, and I'm passing it into a variable (I think - the trace command works) but when I drop it all together into an if/else statement, no data is passed.
Here's the code: //printArea is a movie clip on stage, which has dynamic mc's attached via code var thisFront; //function for what happens when fronts radio buttons clicked frontListener = new Object(); frontListener.click = function(evt) { [Code] .....
I'm trying to create an XML driven menu for my portfolio site. I'm basing the code concept off Senocular's tutorial on this site, but I'm basing the aesthetic/operational idea off portfolio menus such as those seen on [URL] and basically every other portfolio site that uses small thumbnails as icons to present larger versions of the work.
Functionally, I think I've got it down (it's basically the tutorial code with the submenu functions stripped out), but I'm struggling with trying to figure out how to display my attachMovie'd items in a logical row/column fashion... i.e. if I had 7 items in my XML file and wanted the row to exist in threes, I'd have two rows of three and one row of one.
I'm sure there's a very simple solution to this that I'm simply overlooking. I was just thinking about trying to implement this via some type of counter/multiplier for the _y property.
I've messed around a bit in Java and Visual Basic. For our class we've been assigned to make a flash game in groups, and our group has decided they want to do a base defense game. I've been looking hard for open source/tutorial versions of a simple base defense game, but all I've found are tower defense games.
I've noticed recently (the last week) that when I open Flash CS4, the Tools panel and the Actions/Timeline/Compiler Errors/Output panel group are not automatically open, like they always were before. Does anyone know of anything I could have changed by accident?
At the same time this started happening, I have a file that has a moving hot spot that is set with keyframes (depending where the active button is on the bitmaped screen capture behind the button). Even though the button's onRelease handlers are advancing the timeline correctly, my button is not in the right place in the runtime version. If's still fine in the development environment. It's like the layers are out of sync with each other.
I am trying to automatically resize the children within an s:Group. The children are another s:Group and a H:Group. Each have a percentage width of 10% and 90% each. The problem is that when one of the groups is resized (using a transition and rotation combination in the Skin), the other group does not automatically resize to fill the space?
Shouldn't Flex do this automatically? or do I have to code this?
I've built a simple file to demonstrate what I'm trying to do (it's all dynamic, with AS3, no physical assets). Basically I've created 3 groups of objects via AS3: squares, circles, and triangles. I've placed 3 menu buttons on the side of the stage. I added all objects to the stage just so you can see them. Ideally I'd like to have each button call one of the groups to the stage and begin the tween that is assigned to the object. In this case I've made all the tweens 'alpha' for simplicity. So for example if the '1' button is clicked, it will add the group of squares to the stage and initiate their alpha tweens so that they fade in. Then when the '2' button is clicked, the squares will be removed and the circles will be added and their tweens initiated. I've never seen a tutorial on this so I'm not quite sure how to proceed. What I'd imagined is to group the objects into arrays then add the arrays to the stage with addChild?
I'm using this as a simple model to build a website where I'm going to be calling the content of each section of the site dynamically with menu buttons, instead of using the timeline at all. This is the next step in my actionscript evolution.
Using the Radio button component and I have 10 groups of buttons. Each group has a group name of g1, g2, etc for each yes/no button. I want to determine which button was clicked. When I run the code below I only get the first one and then each other button clicked I don't get a trace statement back.
var rbListener:Object = new Object(); rbListener.click = function(evt_obj:Object) { trace("The selected radio button group name is "+evt_obj.target.groupName); }; for (rb=1; rb<=10; rb++) { _root["g"+rb].addEventListener("click",rbListener); }
Load data on demand (lazy load data ) for groups in advanced data grid control.When the user expands a node the flex component can make a webservice calla and retrieve data for this group.
ignoring the webservie part, I am trying to figureout how to do the UI part in AdvancedDataGrid ?
I am trying to extend the DataGrid to allow headers for different groups of rows. However, I cannot figure out which method to extend from DataGrid that would allow me to accomplish this. I do not want the headers to be included in the dataProvider, only the rows. I want to specify indexes to insert the headers at using a property of the custom datagrid. Here is a quick photoshop showing what I am trying to do: Is there any custom component already built that will do this?
I don't know anything about regular expressions and I don't really have the time to study them at the moment.I have a string like this:test (22/22/22)I need to capture the test and the date 22/22/22 in an array. the test string could also be a multiple words string:test test(1) tes-t (22/22/22)should capture test test(1) tes-t and 22/22/22I have no idea how to get started on this. I managed to capture the date string with the parentheses by doing:(.*)but that really doesn't get me anywhere.
I've been trying to customize each cell in a ComboBox using a custom CellRenderer class, as instructed on this article. [URL]. However, my problem is I am trying to customize *only* two cells in the dropdown list. And the dropdown is populated by an XML feed so I cannot hardcode which ones to stylize beforehand. In other words, I want to make it look like an HTML dropdown. So, I have been looking for an alternative...maybe a property that I can use or another ComboBox component that can support option groups, like HTML dropdowns.
I am working on a website that will show a portfolio of pictures. I would like to have a scrolling bar at the bottom, similar to what I have seen in this thread by rhamej. This would be perfect for my needs, but I need something that I can put into a movie clip or load in my current swf. Also, I need to be able to have the scrollbar images load up galleries.
For instance, , the image scrollbar scrolls through 15 pictures, starteding with a parrot, then a boat, a cat, a dog, lizards, etc.. When you click on the image of a parrot it will load up a larger pic of that parrot, then will slowly cycle through other pics of parrots. I don't need to see every other parrot pic in any other location, only just as it's cycling through them, nor do I need to be able to physically cycle back and forth
A gallery that loads up a cycling view of each subject, and one that i can include into an existing SWF, not a standalone. I've searched high and low, and everything i found will only do one thing or another, not everything.
I have some radio buttons that are all created dynamically and range from maybe 1-4 or more. Is there a way when I click submit button I can wipe out all of those buttons?
I am currently working on a tile based game in Flash, so im working with a two dimensional Array containing the data for the map the player can jump around in. The script is already able to find all the groups within the Array. In the following example Array it groups the left ones and the right using the zero tiles to divide them:
[1,1,0,0], [1,0,0,1], [1,0,0,1], [1,0,1,1]
I am already able to get the corners of the groups, but still they are not in the correct order. As well some corners exist twice.
get the corners in the correct order and how to get rid of the doubles?
I have about 5 layer groups in Photoshop and in each of the groups/folders there are some layers with some text and other layers with isolated images and also layers with some layer styles. When I import this file into Flash I need each of the layer groups to be imported as a flattened bitmap image. I don't want any of the text to be editable or to have any of the layer styles intact. So if there are 5 layer groups in Photoshop, I just need five bitmap images in flash. I've tried doing this but it still imports the layers separately. I know I can flatten the groups in Photoshop but I want to keep this file editable.
I have the following set up: 6 text input areas when button 1 is pressed these numbers are copied to 6 text areas these 6 (user input) with text areas appear and when button 2 is pressed a further 7 (result) text areas that appear to a timer and contain randomly generated numbers to string I need to compare these two groups of text areas in a way that treats the 7th text area as a special excluded case:
I'd like to hear some opinions about using NetGroups VS. using direct p2p connections between everybody, considering there would either be 2,3 or 4 people max in the group.
I have a tile based game à la Scrabble where tiles are placed on the board.. during the game the tiles must all be touching, and there should be no groups of tiles anywhere else on the board..I can find single loose tiles and check for surrounding tiles easily enough but how would I go about checking if every tile is touching on a horizontal or vertical axis and if there are loose groups of tiles on the board ??
Are there any libraries for animation groups of objects in as3? I need something like this: for example, I specify an array of images and creates the animation of all objects in the array - fireworks, the spiral vortex, 3D rotation, undulating, etc. Tweenlite and other libraries not fit, because there is no pattern complex motion.
I need to quickly apply complex animation paths to the set of objects.
I need to display my content in groups of 9 (3 rows, 3 columns). The content is listed in an XML doc. I load my XML and then (here's where I would like your thoughts):
1. I will create a loop to assign an int. for each XML sibling (the content that will be displayed).
2. I will create an empty MC for each int.
3. Display each int.'s corresponding content into the MCs.
4. Display each MC on the stage.
** displaying my MCs on the stage in 3 rows and 3 columns is also confusing me... but this is another thread for later.