I have two questions about how the XML class in AS3 works.First, does the XML class care about the initial processing instruction when created from a string like this?:[code]Second, how can I add that procession instruction to an XML object that I am working with so that toXMLString() returns a string that looks like the above XML? (So that it includes the processing instruction.)
i made a class for connection with php-script, which handles sql-requests. it sends requests via URLLoader(), here is simplified code:
Actionscript Code: public class SQLWrapper extends MovieClip{ private var serverUrl:String = "http://192.168.177.128/";private var request:URLRequest; private var
i'm using "iloveitaly"s easing scrollbar class, and it works great. however, i added an effect that i want on my scrollbar, and it doesnt work quite how it should. what should happen is when u press the dragger, it should duplicate itself and then fade out, giving it kinda a "mouse trail" type effect i guess you can call it. anyway, here is the code for the part in the class that doesnt work:
This code works perfectly the way I want it to. However, I am having a very difficult time splitting this code up. What I want to do is take the function PlantGrass and place it in another action script file [URL] to help organize my functions and classes. I tried putting the PlantGrass function in the second file, but I can never get it to work.
I've built a class which extends MovieClip an works ok. In this class i'm creating some MCs.and this part works ok.Before i've built some prototypes which adds some methods to the MovieClip object I'd like to use these methods in the class i've created.
But using the include before the class statement throws an error during compile
How can i do to add the methods in the prototypes to my MCs in my class?
I have a question, I wrote the following test as a class: package { import flash.display.MovieClip; import flash.display.FrameLabel; public class FrameLabels extends MovieClip { public function FrameLabels () { [Code] .....
This works great in a document class, however, when I put it on frame 1 of my timeline, it crashes Flash. I have a stop action on the last frame so the playhead shouldn't be running the script over and over, is there any reason that this is crashing?
Timeline code: var labelsList:Array = currentLabels; for (var i:int = 0; i < currentLabels.length; i++) { if (currentLabels[i].name == "monday") { addFrameScript (currentLabels[i].frame-1, mondayHandler [Code] .....
I wrote earlier about this InterpolateColor class that I have just written... now I am wondering about why I seem to only be able to use it on one object at a time and not on two objects at the same time.I want to use it to increase the brightness on my background image, while at the same time decrease the brightness on my navigation link text. It works on either one if done alone but when they are done at the same time, only one executes.
This is simple, however I am having trouble. I am adding a swf to the stage in my Document class (Test.as) - it works. I am trying to add the same swf to the stage in a different class called Control.as, it doesn't work. Can someone please help and explain what I am doing wrong?
// Document class Test.as // Adding bg.swf to the stage - this works.... package ca.blah (
So I have a movie clip associated with an external class in the linkage dialog. I put that movie clip on the stage. I have another external class that contains some code (not for the movie clip but for the stage). When I access the custom properties of the class in the actual flash file (not the external code) everything works fine.For example.myMovieClip.explodeTheCode = true;works in the main movie. However, it doesn't work in the external flash file when I have a reference to that movie clip.myRefToCustomMovieclip.explodeTheCode = true fails!It throws an error. In java, I'd just import the custom class the movie clip is linked to and then I can call all the extra custom methods on the movie clip in the external class I want. However, this does nothing. I still can't access any properties.So my question is, how do I access the custom features of a movie clip (that is linked to a custom class) from an external code file. It works in the movie, but not in the external source code.
0: Its not rocket science, but my surname aint Oppenheimer either so... read on if ou dare.
1: this is my third attempt at mastering OO and flash CS5 so, i hope we can all have a laugh after.
2: In short.. I added a 64x64 tiled movie in flash. Read it out in an array, in a.. well original way(just to see if i could get it to work so stop lauging already), and tried to recreate them using a flash class.
2a: The recreate class works but shows the Tiles in a random order, every time a new one?! this is what happens..
I have a movie clip (with instance name rectangle_mc) on the stage. Within this movie clip there are two separation animations on the timeline. The ROLL_OVER animation starts on frame "over" and the MOUSE_OUT animation starts on frame "off." If I roll over the movie clip, the initial animation plays, and when I mouse out the other animation plays to restore it to it's initial state. However, once the rollover animation has played once, it will not play again when I roll over it again, but for some reason the MOUSE_OUT plays every time.
I'm having some problems importing a class, the message that Flash gives me is this; The class being compiled, 'ImageLoader', does not match the class that was imported, '[URL]'. The only line of code in my flash movie is this: import com.martijndevisser.*; And yes, the class is in that folder The class is from here: [URL] I've used the class before and it works fine, I just dont know what to do?
I'm new to Flash AS3. I started making a game and I am a bit confused. Let's assume that I want to create a game that has multiple levels/modes, how can I do this in an object orientated way?
When i create games in other languages e.g. XNA C#, i create a separate class then create an object of that class within the main class and run the game based on a simple statement.
I have some AS3 code that reads multiple xml files.On a Mac it runs fine.On a PC it runs in firefox and chrome, but not in IE9.It loads and hangs. The code is rather complex, so I'd rather avoid posting it.I'm just wondering if people have had this happen to them, and what the issue was so I can get some ideas of where to start looking?
The problem is that the buttons only work once, after that the event listener isn'ttriggered (I think) I have no removeEventListener in my code for those events so I'm totally lost as to why is this happening.
I've been working on a flash animation with some actionscript 3, which basically is the main.swf that calls upon 5 other swf and txt files that I am embedding into a web template. It all works fine on my mac but when I test on a pc I am able to call upon the other swfs and it pops up but the close button does not work. I assume that it has something to do with my actionscript with the children swf. But just in case I will show both.[code]
This should work! I cant figure out why it doesn't. Fortunatley I discovered that it worked perfectly in Flash Player 9. But I guess it must run on FP 10, snice I was thinking to implement this in an AIR for Android application. On the stage I got a button with the instance name of: submit. In the library I have a MovieClip with the linkage of: radioButton. This MovieClip is just to frames with different grafics. It is supposed to work like a checkbox or a radiobutton.
I finished my website and uploaded to internet. And when I showed friends that use IE7, Chrome or any other browser besides Firefox it failed to work. The SWF gets stuck at the preloader at a certain percentage but the animation of the preloader still runs. Here is the link (try to watch from different browsers): [URL]
I have created a program that pulls large amounts of data from an XML file. The program works absolutely perfect if I test it in Flash or open it in IE. The problem I have run into is that when I put the program into a webpage using the following code (neither one works), it no longer connects to the XML file. Am I missing something in the code?
I have a simple event listener which calls a functions which first uses a switch case statement to determine what evt.target was pressed by name so I can assign info there--presently I just have trace statements--the problem is that it only works once and then I just get instance29 and the switch case evaluates to the default.
Code: lifering1.addEventListener(MouseEvent.MOUSE_OVER, playSplash,false,0,true); function playSplash(evt:MouseEvent):void {
I can only run a timer.start(); command once, the second time it will only run once instead of the value of 10 repeat.
Code: var addTenPointsTimer:Timer=new Timer(500, 10); var currentScore = 0; score.text = "0";
[code]........
I want to be able to have the score add the ten points one at a time rather than all at once. It works fine the first time ten points are added, but the second, third, fourth, etc time it only adds one point then stops. How can I get the timer to work more than once?
In The Flash Application, my gallery is working as it is meant to. Yet, when I upload the swf to the live site, the first image, text and movie of my gallery works but it refuses to scroll to the next item in my XML.
I have given it an absolute path to that server which works in Flash but not when it is online.
OKay, I have a drop down menu. Around the menu I have a button surrounding the outside, so when I roll away from the drop down menu and roll over the outline button, it is coded with action script to make the drop down menu fade away.
Trying to recode map program to utilise modest map rather than original hand made map routines. Finished up yesterday and had squashed bugs pretty much(annoying flicker issue but that didn't appear on another web browser I figure it's flash/browser related issue). Then I realised I need to try this in IE as well. And it doesn't work. Map loads up so modest map code is working. What is NOT working is everything else. It's supposed to track locations and draw arrows to their positions.
It doesn't go to where it's supposed to initially. No arrows are drawn. No control buttons from HTML side work. Nothing. Zip. I have suspicion it could be the ExternalInterface which works differently on firefox and IE. Could that be reason? If so how does one go detecting what browser I am using and how does one need to take that into account? Or is there something else that's different between IE and firefox I need to take into account?
IE itself only gives rather mystified error message. Message: Unspecified error(my translation since original is in Finnish) Line: 49 Column: 5 Code 0: [URL] Funny thing is both php file and output html file is 37 lines long...
I would like to build an Android application with my game coded in ActionScript 2.0.The AS2 game is loaded by an AS3 loader and I build an APK with Flash CS5.The loader is displayed correctly but the AS2 doesn't work.
Play animation and after clicking the button once it no longer works. The button takes you to the frame labeled "shake". I want it to continue to take you to "shake" each time it is pressed but its not.I've got a button inside of a movie clip - actually its inside of 2. The first MC runs through and stops on the stop(); frame and than you click the button that sends the play head to the frame labeled "shake" which plays the next MC with the same button inside of it. I have put the button's action on its own layer on the first frame. The length of that buttons timeline starting from the first action keyframe is the length of the time of the other 2 MC's.
The Code mcButton.shakeButton.addEventListener(MouseEvent.CLICK, onClick); function onClick(event:MouseEvent):void{
If you go here and click on the animation link the skin at the bottom of the video is visible then fades away. If you navigate away from animation then come back the skin isn't there. I don't know why. Here's the code for the animation swf with the parts I think are relivern in bold: