IDE :: Flash Xml Load Function (\serverfolderfile.xml) Don't Work
Mar 19, 2009I am calling a xml file from intranet by using
xmlLoad("\serverfolderfile.xml")
i am building a application for local intranet.
I am calling a xml file from intranet by using
xmlLoad("\serverfolderfile.xml")
i am building a application for local intranet.
I have developed a game in flash and I am trying to get a save and load function so that the user can come back to the game that they were playing. Can this be done using the Shared Object....
View 2 RepliesI want to load XML in Flash only ONCE and then work with it...
View 8 RepliesSo I'm making a music box in flash, I've programmed the forward button just fine so if I press the next_mc it skips to the next song, but my prev.mc is an issue! I only have 6 songs.
[Code]...
i want when press a button on that flash header the test.php is redirect to another php page without the flash header be reloaded , and i actually made it but with form buttons and ajax ofcourse , so all i need is when the flash button is clicked a javascript function in the test.php work ?? --> here is my try : i passed a url variable from flash to the same page to say which button is pressed through this code
ActionScript Code:
var vars:URLVariables=new URLVariables();
var url:URLRequest=new URLRequest("test.php");
[code]......
I have a set of Cue Points in an FLV I'm playing. It's an interactive quiz, so the idea is that flash will change a variable, theAnswer, to a different letter depending on which question it is. The answer to question 1 is B, question 2 is D, etc. Either the cue point event listener isn't working, or else it is working and Flash isn't declaring the variables. 1120: Access of undefined property theAnswer. I literally can't find a single problem with my code. I have an almost identical Event Listener further down which works.
[Code]...
I am working with AS3 to build a very simple mp3 player on my site. So far the play and pause button work fine, but when I try to move the slider then click the pause button, it doesn't pause, and then clicking the play button again causes it to play a new file.I'm assuming that for some reason when I call the playMp3 function from my MouseEvent, it's within an object or something and not at the root, so it's like loading a new sound file, but I don't know how to fix that.URL...
View 2 RepliesThe problem I have is simple: the play and load functions doesn't work in flash CS4 as defined in the documentation: URL...So to speak, I can only define like this: URL...My flash player version on all 3 fla files that I use is set to 10.And now with the GREAT issue I can't set startTime for the video and this is just GREAT.
View 6 Replieshaving an issue with some mouse events I have. If you go here you can see what I mean.When you mouse over one of the thumbnail images, a title pops up. If you click one of the thumbnails, the group shifts to the right. (This is making room for what I'm working on right now, it's not just random ) If you then navigate to "About" or "Contact" then back to "Works" neither the mouseovers nor the clicking on the thumbnails works.That middle section is one object called "images" with three frames, each labeled and then navigated to inside the buttons with gotoAndStop(frame#).Here is my code for the buttons and mouseovers:
Code:
//Navigation links
var navTween:Tween
[code].....
Im just wondering is there a way I can load flv's externally into flash and then move them around like a drag and drop function?
View 4 RepliesWhen page is loaded I can scroll it with mouse, But when I load first external movie clip the mouse scrolling function disappears. Is there anything I can do? I have search in flash mx 2004, and tryed to use // Mouse.onMouseWheel but nothing
View 14 Replieshow do use a function from a doc class.... to call a function to work on in
[Code]...
I've written the function below which is called when a button is clicked. I want to change the character image being displayed and change the number_txt variable each time the button is clicked.This works in the first instance (if char 1 is visible it hides it, makes char 2 visible and changes the variable as required). But having done this it wont work the other way (hide char 2, make char 1 visible, change the variable as required)I can only assume I'm missing something in the way the Else IF function should work? If there is a better way of scrolling through 4 or 5 'character' images and updating the variable each time.[code]
View 2 RepliesI've got a Vector of ViewToActionMap objects, which have following constructor:
public function ViewToActionMap(_forModule:eModule,
_forAction:eViewAction,
_toFunction:Function,
[code].....
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="[URL]"
xmlns:ns1="com.something.*"
creationComplete="init();">
<mx:HBox>
<ns1:MyButton label="ok" click="ok_()" id="OKBtn"/>
[Code] .....
this is my code..RollOver and Out works great, but I can't seem to get function DOUBLE_CLICK to work.
home_mc.doubleClickEnabled=true;
home_mc.useHandCursor = true;
home_mc.buttonMode = true;
this.home_mc.addEventListener(MouseEvent.DOUBLE_CLICK, click_home_mc);
[code]...
When I tell Flash to go back frames the buttons cease to work, in other words, the button only works once. I've tried tracing it to find the problem and when I tell it to go back frames it won't run the function. I'm using actionscript 3 on Flash CS4.[code]
View 5 RepliesI try to get the addCallback function to work but I don't get a working result. I allways get a js error 'callback is not a function'. I tried to put it on my local-webserver, to fake a domain name (www.localhost.de in hosts file).
Here is my code (the move has the textfield
import flash.events.Event;
import flash.events.MouseEvent;
import flash.external.ExternalInterface;
[Code]....
For some reason my TweenLite function won't work. Doesn't give any errors, but it just doesn't do anything and thus the onComplete function won't work to continue the script.
[Code]....
The Function is:
Code: Select allfunction Click_Die () {
this.gotoAndStop(die111+die11+die113);
[code].....
I was reading Kirupa Chinnathambi's function tutorial and I was trying to make my own function, but it's not working! Here it is:[code]
View 9 Replieshive just started actionscripting instead of tweening so be gentle. i use mx 2004 but i cant get the trace function to work.., here is the code form a kirupa tutorial...
_global.myvar=5;
trace (_global.myvar);
why does this not work?i thought it shud display 5.
By chance does anyone know if there is a way to make a set function for my class that will run regardless of what variable is being set? like if someone does..anInstanceOfMyClass.anyVariable="whatever";it will always run function X.I want my code to have a function that runs every time someone tries to set the value of a variable in my class, or create a new variable that does not even exist yet in the class.
View 8 RepliesI tried using this code because I need some mc to scale, others to fade, and others to move; but it won't work. It only allows the last function to work (in this case alpha).
[code]...
I have a flash movie that loads an external image into a movieclip with the following code:
Code:
//Load image
loadMovie("myimage.jpg",_root.moviebox.picturebox);
[code].....
I'm making an educational software by AS3.I call "part1Act()" from frame1 and everything works very well.But when I call the same "part1Act()" from the frame 58, flash throw me this error.
TypeError: Error #2007: パラメータ child は null 以外でなければなりません。 at flash.display::DisplayObjectContainer/addChild() at L_oni_fla::MainTimeline/loadSnd()[L_oni_fla.MainTimeline::frame2:699] at L_oni_fla::MainTimeline/part1ActT()[L_oni_fla.MainTimeline::frame58:6 7]
I only called the same function from different time frame.The script I wrote is following.
//--------------------- code ---------------------------------//
var progressBar:progressBarL=new progressBarL();
var context:LoaderContext = new LoaderContext();context.applicationDomain=appDomain;var ldSnd0:Loader = new Loader();var ldSnd1:Loader = new Loader();var ldSnd2:Loader = new Loader();var ldSnd3:Loader = new Loader();
[code]....
I am trying to link a button via AS but I need to use a function that is on a different time line for it to work. I have no idea how I am going to do.
[Code]...
I am trying to use the "var flvControl" but that function is located on a different timeline.
When you are dragging a movieClip on the stage, it generally works fine. But if you are performing some calculation or hitTest while you dragging, the location of the cursor and the movieClip starts to go unsynched. For example, in the following code, I am running an ENTER_FRAME handler while you drag a box, and this onEnterFrame_Box method contains a bogus for loop to slow down the process. The drag & drop works snappy if you comment out that for loop... But if you bump up that 100 to something like 200, Flash Player runs quite slow, and the location of the box won't match where your mouse cursor is...
ActionScript Code:
var box:Sprite = new Sprite();
box.graphics.clear();
box.graphics.beginFill(0xCCCCCC, 1);
box.graphics.lineStyle(1, 0x999999);
box.graphics.drawRect(0, 0, 100, 100);
[Code] .....
Lets say that I got movieclips A,B,C,D in my scene and E,F which only come into scene when A hitTest B and C hitTest D.I was able to make the A+B and C+D hitTest functioning properly. But when E,F came into the scene, I tried to make E to hitTest F to get something else function but they won't work.# note that there is some short animation before E & F come into scene.I am pretty sure all the instance names are named properly.
View 5 Repliesmy problem is that my onPress function doesn't want to work. Here�s the script: PHP Code:
[Code]...
the hilite function should let the buttons disable or not, but it just will not work.....