I am trying to run a function of the main class, but even with casting it does not work. I get this error
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at rpflash.communication::RPXMLReader/updateplaylist()
at rpflash.communication::RPXMLReader/dataHandler()
at flash.events::EventDispatcher/dispa...
I need to implement a drag and drop functionality, where I can define and constraint the route of the draggable object.
Like in http://www.kirupa.com/forum/showthread.php?t=330302 , only that i have the paths designed and not calculated by a math function. So, in fact, as mouse moves I need to tell the object to follow the custom path/mo...
To move the MC, using arrow keys I used the following and it worked:
var timer:Timer;
var direct:String;
initStage();
function initStage() {
stage.addEventListener(KeyboardEvent.KEY_DOWN,startMove);
}
function startMove(e:KeyboardEvent):void {
switch (e.keyCode) {
case Keyboard.RIGHT:
direct = "right";
...
Hey all. I'm working on an application that was originally intended for HTML, but I've recently concluded that the best thing to do for my purposes is to do it in Flash instead.
One of the big things I need is to be able to bring in movieclips from external files and add them to my main movie at runtime (dynamic number of elements, skin...
I am having trouble figuring out how to build a console for my application so i can send msgs to it from any class in the package.
i tried to send a generic Event, but I cannot find a way send a msg together with the event, or at least a reference to the object which is dispatching the event.
what approach would you suggest?
...
Does anybody know a way for a swf file to communicate with the site its placed in. What I mean is I have a flash file with a start up screen in it, which has a tick box saying "Don't show this screen again" which skips to the sites content when tick, the same as what some adobe applications have when first started up. I think this might ...
Hi, we have build live chat application with Flash/FMS front and ASP.NET/MSSQL backend. All the changes sent via http GET to certain page which updates MSSQL status.
My questions are :
1.What reason to use webservices instead of simple GET requests and Response.Write() ? Why it is easier and in what it is better ?
2.How to prevent fro...
I'm a total beginner at Flash and I've been given the task of creating a new version of a flash component we use in house. The current version uses a shared library of objects in a separate .swf file.
One of my tasks is to copy the items from the shared library into this new version so only the one .swf file is needed for everything to ...
I have bought a flash template in an online store. There are different buttons on it and some of them link to existing local html files from the pack - index-1.html, index-2.html etc. There are also some buttons that don't go anywhere right now but they are intended to be linked to some urls too. They react with animation on mouse rollov...
There's an variable in my swf I want to receive XML. It's an integer value in the form of an equation. How do I receive the XML value for 'formatcount'?
My Variable
//Variable I want to grab XML<br>
//formatcount=int('want xml value to go here');
formatcount=int(count*count/100);
Path
formatcount = myXML.FORMATCOUNT.text()
My XM...
I am using http://www.jcupload.com/ (basic) to upload files. I am considering having a friend write a more custom version or to do magic with ajax; so the solution should be able to work without that.
With jcupload i include css, a script and write <div id="jcupload_content"></div> in my html and i am done. Problem is, with no flash i g...
On our own website, it's easy to protect against direct links to our video content by grabbing a token through AJAX and verifying the token through PHP before the file download is started.
However I'm also researching how I could provide an embed feature, like YouTube or vimeo etc., without compromising this security feature.
The probl...
I have a bunch of classes that are to be serialized. flash.net.RegisterAlias() makes this easy, but I'd rather not have to make a list of the classes to register. I'd rather have an autodiscovery mechanism that will find all the classes to register and do so.
Is there a good way to implement autodiscovery of this kind in as3?
...
Hi everyone,
I'm creating a website that allows kids to designs a tshirt. I will have four section, colour, graphic, text and print.
I have created these sections on demos and they are all working.
I now need to properly create them all on one movie clip.
I'm having problems with it, when i select the chosen tshirt colour and move o...
Hi,
I'm using the same code I always use for preloading another swf but it's not working this time. The problem this time is that when the loading bar gets to 16% every time you can hear the movie I'm loading playing in the background. I can just add a stop to the first frame of the movie I'm loading ("trial_1.swf") but how do I tell it ...
I'm not sure how to describe this, but basically I have a PHP class file:
class HelloHello {
public function getSomeData($input_parameter){
// code to retrieve data from the database
}
public function deleteSomeData($input_parameter){
// code to delete data from the database
}
}
This class is on the server and ...
I'm writing a MS Paint like simple program in Flash with pure ActionScript 3.0
A toolbar that allows you to select what shape (star, heart…) you want to draw
Another toolbar for color options, where each button is a color (red, green). there are 10 colors total.
Then there's the canvas, its where the shapes will be drawn when clicking....
Here is the problem I have: after I change the index of one movieclip using this code
oldIndex=getChildIndex(DisplayObject(e.target));
setChildIndex(DisplayObject(e.target), numChildren - 1);
when I give the object its old index
setChildIndex(DisplayObject(e.target), oldIndex);
and go to another frame of the movie, this element I ha...
How do you make a Flash movie (using Haxe, or Actionscript code rather than the IDE) that supports multiple languages?
Can you detect the browser's language?
Are there utility classes for managing the strings and selecting the appropriate one based on language?
...
I am using swfupload to upload files on a website, the problem that every time the user open the page which contains the upload button, the page loads completely then the flash file start loading from scratch every time the user visit the page with no cache.
Is there a way to preload and cache .swf files in my asp.net page?
...