Professional :: Create A Map That Has Attributes That Need To Be Individually Made Visible Or Not?
Feb 5, 2011
What would be the best approach to create a map that has attributes that need to be individually made visible or not.For instance a map of a state and want to be able to click one button to make cities visible and another to see highways, and turn them on and off separately.
I have set up a single, one-page resume/portfolio website, but I'm having difficulty finding a way to get the 2 individual movie clips to play individually - not at the same time.Everything is set up on a time line. Each movie clip has it's own layer with it's own button via Code Snippets as follows:
CArrow1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_15); function fl_ClickToGoToAndStopAtFrame_15(event:MouseEvent):void {
How do I create an array with actionscript if I'm not Using attributes in my XML file. Code: <?xml version="1.0" encoding="iso-8859-1"?> <portfolio><books name="Livros"><image> <thumb>photos/livros/livromisterioth.jpg</thumb> <source>photos/livros/livromisterio.jpg</source> [Code] .....
This is what I would use to create some Array of attributes: Code: var nArray = new Array(); for (var i = 0; i<gallery_xml.firstChild.childNodes[0].childNodes.length; i++) { nArray.push(gallery_xml.firstChild.childNodes[0].childNodes[i].attributes.title); } But how do I extract all the <title> info into the nArray from the XML file above?
Anyone let me know wether if pixel calculations are made swf files and when they r made to fullscreen wether they will remain the same in any monitor size?
I am dynamically creating a number of objects (movieclips) which all have a number of attributes.[code]and so on. i.e sub attributes. I don't think this is possible? Only sprite and movieclips can have dynamic attributes so unless atrbY is a movieclip (which it isn't, it's a string) it isn't allowed?Each object can have suboptions with further attributes associated with the chosen suboption.Later in the program I will manipulate, read and interact with the objects and they have text display behaviours dependent on the suboption chosen. That part (should) be straightforward! heh. One the object has the attributes attached in a usable format, accessing them should be simple.This will be for a store. i.e t-shirt1 has size small, price 10, size medium, price 12, size large, price 14. t-shirt2 has size medium, price 35, size large, price 40 and so on.[code]
This format of the XML can be adjusted if it would make the parsing easier.I am currently reading the XML in, stepping through, grabbing the individual parameter such as category and then adding it as an attribute of the object and it works fine. i.e. I end up with obj.category = 'catname'. However, on suboptions I am having a problem.Should I put all the suboptions in a multidimensional array and use nested loops to apply them to the object?I would still have the problem of objX.suboptionarray[Y].suboptionprice which isn't allowed? In the above XML case Y would be 0,1 and 2 giving 3 suboptions to objX and each suboptions would hold attributes such as pvid associated with that suboption.I could go down the horrible route, obj1.suboption1subptionprice ; obj1.suboption1suboptionpname; obj1.suboption1suboptionvalue; obj1.suboption2suboptionprice; obj1.suboption2suboptionpname and so on and so on for each suboption which could be five options (small,medium,large,x-large, xx-large) and which would "work" but would be bad programming and involve splicing names to get say, the "third" suboptions' price and pvid e.t.c
Going down the route of mutidimensional arrays sounds good except that on say 50 objects I would have stacks of arrays which I'm guessing isn't great in terms of resources?.Just to add, the number of suboptions varies between object, every object has a minimum of one suboption (default option) but can have as many as needed (unlikely to be more than 5 but should be scalable). i.e some t-shirts only come in medium whereas some have many sizes.I have a fair amount of leeway on the format of the XML which I generate from the database so the formatting of that could change to make the parsing easier.
I recently started working with adjusting a template with flash 8. Everything went smoothly except for one thing. I changed one certain symbol in my libray and when i exported the movie (after changing) i dont see the changes in my website. Other buttons, symbols etc immediatly show there adjustments and this just keeps on remaining the same?
i developed a social network using flash (actionscript 3) , php and mysql and it interest in some fields of science.i would like from you to test it (if you find any mistake please tell me)
I'm trying to create a menu, where some buttons becomes visible when the user "rollOver" a box the buttons is beneath. Look at http://www.grupotecnimede.com/ menu system, at the main page. I place my buttons within a MC, and gives the MC this AS:
[code]...
But when I move the mouse over the buttons, they aren't enabled, probably because flash got the idea that the MC is above the buttons, and that the MC is a button.
So I'm trying to create this website in which the first page is made in Flash and the rest are made in Dreamweaver. how to actually connect them so that works? I know how to put something made from Flash into a Dreamweaver page; should i just do the same thing?
I know there is a new grounds link about setting your publishing settings to get animated gifs to work with flash. I am using CS4 and when I go to publish the gif works in the html document. But when I export to an animated gif it is still a still picture. I have also tried to export to a quicktime file and it's is a still picture there too and distorted. Should exporting to png or gif sequence work as well?
Built a nice Flash page and exported it to use as a web page (didn't export to HTML just exported image to SWF). Plunck it into DW CS5 and test in FF & it looks great. Try it in IE8, only get a white page, same in Chrome & Opera. What gives?
so i am making a website in Dreamweaver cs5 and i am going to be importing a .swf animation for the menu bar i made in Flash. how do i make an action in Flash direct to a page of my website in Dreamweaver for example the index.html file of my web page.right now i have an actions layer with a stop(); command on the last frame of the animation i want to add a command under that, that will take the user to the index.html page of my website when the button is clicked. I have the button already made as well as the animation all i am missing is the code to go to the index.html page.
I'm making a first-person adventure game where I have the different frames in the root movie be the various locations that the user can interact with. I want to have fading transitions between the scenes and I was wondering if this was possible in flash. What I've tried for now is to create an array with all the current children then when the frame is changed I add those objects on top of the new frame and use a (alpha) Tween object to fade them out. This doesn't seem like a good idea and feels very hackish, so I had a few questions:
1. Is there an event that is called when a frame is changed (Event.FRAME_CHANGE doesn't exist ) since the way I'm doing it now is to have a local variable which I compare with this.currentFrame.
2. This may sound weird, but is there a way to create a screenshot of the current visible area and use that as one would any other visible object? This would allow me to Tween that one out instead of the array of children that I'm using now. I know it's possible in OpenGL, to render the current view scope to a texture array, but does Flash have this capacity?
PS: This is all done inside a separate class, in case that matters (I am very noobish).
I would like to integrate mp3 sound file into web-page using Flash, just to play it if some event occurs. It seems to me, the easiest way to do that is to integrate a small swf file into web-page and send path to mp3 file as parameter in element. So basically swf gets path to mp3 file and plays it.
Is it possible to make flash element (swf file) without a picture or without scene? It looks like, flash element always need to have a visible screen, but I don't need it because my flash component doesn't need to show anything to a user.
I am trying to create a button that when pressed will make an movie clip visible and set it to a specific position on the screen. When this same button is pressed a second time the movie clip will become invisible.
I have my preloader which seems to be working correctly, however it only becomes visible as around 80%. So the page is blank up until then, then after that the loading bar is finishing and then goes to the rest of the site.
Just got started with Flash again after several years of not using it. I am familiar with the layout when I set it to "classic" but for some reason I can see the timeline area, but it is grey and I cannot create any frames or click anything in that area.
the first thing I am doing is to draw a shape. Object Drawing is selected. I have clicked the rectangle shape tool, have selected a color and fill. I drag across the stage and a rectangular line appears, but when I let off the keys, it dissapears. No shape, no stroke, no fill.Invisible, gone, disappeared.What the heck am I doing wrong?
I have an external swf that contains a button that controls my main swf's timeline.I can get it to navigate fine, but as soon as it navigates, my external swf disappears, because my main swf is no longer on the frame my external swf was imported on.How do I get the external swf to stay visible along all the frames of my main swf's timeline?Here's the code I use to import the external swf:[code]
I just need to work on a roll out effect, I have it so if the mouse rolls of the button before the second image is up, it fades out. That is good. But when the second image IS up, the mouse rolls off the button and then the 2nd image fades out, but the 1st images shows up and also fades out. How can I prevent this from happening so it is always only the visible image that will fade out.
I've got two movieclips box and box2 and I've place them in the same layer because I couldn't get each box to move individually in seperate ones I've placed this code on the frame
Now I've got both movieclips shaking but they're on top of each other rather than in the places I want them. I'm sure its a case of changing something but what?
I've got an fla with over two thousand movieclips in one frame. Each movieclip does not have an instance name. way to control each movieclip individually? For example, rotating all movieclips 45 degrees?
I've adapted the xml photogallery on this site to preload the image, but I would like to also be able to preload thumbnails (individually) Here's the code so far:
I have 2 text boxes in my scene and I want to be able to scroll both of them individually. I tried using the scrollbar component but I can only get it working on 1 text box.
I have some dynamic text I want to change the attributes of. For instance, I would like the first few words of each paragraph to be BOLD and to be a different color. But when I select those words and change it to bold it makes ALL the text in the text box change to BOLD.
I'm trying to allow all things oitside of the stage peramiters to be visible in the browser screen so certain elements can be longer than the stage and still be shown Can't remember if it's a flash thing or an html thing.
I have one button, that when clicked should display several images, one at a time. At the minute they are all just coming on together, how do i seperate the functions so they come on individually, for example like bullet points, e.g click once and image1 appears, click again and image2 appears etc... so eventually all of the images are on screen, but they don't all just appear together, if that makes sense!