Is there possible that through actionscript I click in a buttom and make an object (in this case my picture) leave the stage.... I�ve already did but using a mivieclip and the eventos "on release bla bla bla"....
Is there possible that through actionscript I click in a buttom and make an object (in this case my picture) leave the stage.... I�ve already did but using a mivieclip and the eventos .
How would I have to change the script so I can load more then 1 img within the same row. I also tried like that...but only first image is coming in both column of same row. I used like that: myDataGrid.addItem({Feature:FeatureList[i],data:"tick",data:"wrong"}); But in both column of that row same "tick" picture is coming,"wrong" pic is not coming...
How do I display an image and text on the stage, that I load from an XML?I already know how to display a single image if the path to it is hardcoded in AS3:[URL] works just fine. It shows how you can display an image on the stage, that is in the same file as the SWf-file.
But the tutorial above does not cover xml. Who can show me how I can display the image on the stage, by retrieving ist path from an xml document? how to retrieve data from xml but they forget to mention how to actually display them on stage!
Is it possible to make an image disappear from the stage every time I click in a button. I can do that by making the movies and make the work through "on release"... How can I do it without making the movies, just with actionscript.
I am somewhat stuck on building a specific layout in AS3 with data coming from an XML file. And I really didn't expect any problems with layout in Flash.A while ago I built a Flex banner, but due to performance and size issues I want to rebuild it in Flash/AS3.[URL]..My flash file is already parsing the XML and I have all the data I need available. But right now I only show it as text in a htmltext field.After a long time of googeling around, it seems there is no way to achieve the layout with a "classic text" field. Can I do it with a TLF field? It does not look like it.
Can I do it with some displayContainer tricks maybe? I am pretty new to Actionscript, so I can only hope some of you experienced devs can help me with a few hints on this.How would you build it? For every entry I basically need a two column header (left side a image, right side text. all fixed height) below that goes a textfield of "variable" height. And then below that the next entry block, and so on. Just like in the Flex banner. I found some frameworks, but they all want height values for all of the layout parts. Since I have a variable text height for each entry, I cannot use these frameworks. And because of size constraints I don't really want to use any framework if I can avoid it.
'm building a very dynamic app in flash that gets all UI values from XML. Everything's been working fine and then I start having trouble accessing an XML object that only contains attributes. For some reason I can only get it to work if the XML object has content within the opening and closing object tags.Here's the basic AS3 code:
ActionScript Code: this._uiXML = new XML(this._xml.elements('tag')); I've also tried...
I am trying to parse an some xml that is coming from a php file. I used the DOMDocument to write the xml and then echoed it back out. It's perfectly formatted I'm sure. When I load the php file from flash I don't get any errors but it won't trace the xml. I even have the header ("content-type: text/xml"); in the php file. Can flash pick up xml data from a php file assuming everything is done correctly?
This is probably a completely n00b thing, but I'm trying to get a preloader to work on a gallery I made. I'd already made the gallery, and now as an after though have attempted to add the preloader. As a whole it seems to be working, except the preloader keeps coming back on itself, so I can't actually every get round to seeing to gallery I've made. I think maybe there just needs to be some kind of "stop" action put into the ActionScript within the preloader scene, but to be fair, I really don't know what I'm doing. I've followed a tutorial to the every detail, but still it doens't work. The orginal Flash file can be grabbed here: [URL]
Im getting an error saying that the loader is null that i am trying to add to the stage. I dont know why. all I am trying to do is make a preloader, and its causing more of a headache than its worth All I want it to do is show the percentage of loaded. I have the event.complete listener there to go add the thumbnails once they are fully loaded.
I have a drag and drop game using a couple external ActionScript files .My game works and all..check there answers and correct ones go into place if they missed some.Now at the end I want a reset button..My movie is all in one key frame and all script are in my .as files How can I reload everthing as if they were just coming to the page..? with All drags enabled and eveything in is its correct.x and .y places...All var are equal to what they need to be equal to etc..
I'm loading a jpeg image from a sub doamin. Image is loading fine initially..But when i try to take the bitmap it's not coming. Here, swf is in one subdomain,image is in one subdomain-these two under the same main domain (Note:bitmap came when I used the same domain for both swf and image). I used "crossdomain.xml" in the subdomain root.(ie; i pasted the xml file where the image exist). It's not working. And I tried like this also - I placed the "crossdomain.xml" file in the main domain root also.
I added in flash file System.security.allowDomain("[URL]") System.security.loadPolicyFile("[URL]"); My image is in [URL] My swf is in [URL]
I'm missing a couple of bits somewhere. I'm trying to send and receive compressed binary data using AS and PHP, but I receive allways the error "Error #2058: There was an error decompressing the data". [code]...
have a project i am working on but i keep getting a 1009 error coming up that i cant figgure out.It happens when you go from the home page to the locations page -click a fish button -then click the ramps button to go to the ramps page - then try to scroll left or right using the direction buttons then boom 1009 error ! please help im very new to actionscript.The file is too big code is in the next post
I have a selection menu that I can select multiple items and item names are saved in an array. I also have a deselect button that delete all the items selected. To delete items, I have tried:
var errorSelected:Array = []; errorSelected.splice(0,errorSelected.length);
I can see them being deleted in trace, but whenever I click on the menu item again, the old list items come back everytime. Do I need something else to completely cleaning it up?
I'm working on a simple MP3 player and am having trouble getting ID3 tags to come back as anything other that "undefined" -- on test MP3 files that *do* have ID3 data. What am I doing wrong?
(I'm not a Flash programmer and the following code is hacked together from a variety of sources... reworked for my purposes... and with some bits created by myself.)
Note that the MP3 file to be played comes out of the URL, but in this test case it's manually set to a local file of shedrivesmecrazy.mp3 (Fine Young Cannibals).
When running this file, the following output is generated:
undefined undefined NOT AVAILABLE NOT AVAILABLE
Code: Select all// Setup sound object var s:Sound = new Sound(); s.setVolume(75);
I am trying to export a .swf file which plays video/sound so I can upload the file to a website (embedded). However, the sound does not want to play when in flash. It is basically of a person talking and lasts about 20 seconds. I have exported the file as a .mov using flash mx pro on mac. the .mov file plays in a quicktime but when imported into flash the sounds seems to disappear.
I have several external loaded swf's in my website.For example;When in home and clicking to contact. Then contact gets a little bit smaller.When clicking back on home, home gets smaller and so on..if i repeat this process everything gets smaller and smaller..
I am an html/css programmer and don't know much about Flash. I've just been asked to update this site which has many Flash elements. I just dissected the site but can't figure out where the slideshow is coming from on the home.html page. I opened the index.swf object and there are no images just a background. I believe the original designer used Flashbox for the slideshow and Flash as the backdrop? I think I have the other galleries (click View Rings portfolio or another portfilio) figured out.
It looks like it's pulling in a Flash file and the Flash file is pulling in images for the slideshow (at the bottom) from the images.xml file. I opened the Flash file (image gallery.swf) and the full pop up -- background and large photo and slideshow -- are included in the .swf file unlike the index.swf file. Am I correct? Not sure if a Flash file would pull in images from an images.xml file. How do I edit the Flash file if it's not pulling the images from the images.xml file? When I open the file it just shows me the .swf file in design view.Is this over my head and should I hire someone with Flash and Flashbox experience?
I'm using a Flash file to make a comments section for my website but every time I hit the button my query only outputs blank fields to MySQL throguh the PHP file.I'm wondering if it's my actionscript or PHP file... and I feel it may be my actionscript because all the rest of the SWL query I put in through PHP functions work.can anybody tell me what's wrong with the way I'm posting variables to my PHP/MySQL?[code]
Im building a website and i want it to look like there's water coming down the screen when it first loads but be transparent and see the website behind it... Is this possible? I am no expert at flash so before i dive into it I just want to know if this is possible
I need to sort an arraycollection. the problem is that my array is combined from two diffrent arrays, in one the age field is called "AGE", and in the other the age is called "MYAGE".
Now I need to sort the combined array according to age but I got two fields with diffrent names. I can go through the array and change all "MYAGE" to "AGE" but i was wondering if theres maybe a way to sort the array in its current status?
I am using the ._height of a movieclip in my AS and for some reason one of these is coming back incorrect.It is off by 3.4 pixels.I can't see anything in the movie clip that would cause this.