I am creting an application that containts 3 seperate slideshows inside movie clips, when one slideshow finishes the other starts. I do this by triggering the function inside the other movieclip slideshow ( _root.slideshow2.startSlideshow(); ) and stopping the currently running function startSlideshow = null; inside existing slide. It works until it gets to the 3rd slideshow and than everything freezes because all the functions where deleted
The problem is I can't see how to get "loadFile" function to return the value because I have to use that event listener function to tell when the load is complete, then I can't return from inside the listener function... how can this work?
I've got a problem. Function newPage loads Pages. I can click on each of buttons and Pages are loading into stage.But if i click on button second time, Page is not loading into the stage.
in "on_loaded" function we compare "tn < total " (total is 24) if it's true goto and run "load_tn" function, but there is something that i can't understand when i debug it in first time when tn<total program goto and run load_tn but in second time it go to and continue and third time it goto and run load_tn and fourth time it continue and so on why first time it load_tn() and second time it continue and third time it load_tn() and fourth time it continue and so on.
ActionScript Code: function load_tn():void { var pic_request:URLRequest=new URLRequest(folder+filename_list[tn]); var pic_loader:Loader = new Loader();
I'm trying to make a function to load videos at the end of a tween using Tweener but its just not working..Here's the code the set up the video objects:
Code: var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null);
I am struggling trying to put together two or three tutorials in order to make a photo gallery with numbers as the navigation to work. I am almost there, the problem is that in addition to the numbers as navigation I also wanted to have the option to change the images using a previous and next button. Here is a link of what I am trying to do:
[URL]
The reason the previous and next buttons don't work is because their functions are within a main function that is called onRelease of one the number buttons. Once you click the numbers, the previous and next start to work.
My question would be if there is a way to auto execute the function DisplayInfo as the XML file loads. See code Below:
Code:
var item_spacing = 20;// how far menu items are spaced vertically var item_count = 0;// counts menu items as they are added from the XML function loadXML(loaded) {
So lets say I have a online game where I will have everything that is going on in the game, assigned to variables. I want people to play the game from their own computers through the website and I want them to be able to save and load their place in the game.f this is the first time they have saved, it will ask them to make a login and a password.ll of the data should be stored on my server
I'm using load() to load a local txt file. The content in my txt file is as follows:
a1=message a2=text
The problem is that, instead of identifying that as 2 different variables, flash returns a1 as:
message a2=text
and, of course, a2 isn't even read b/c it's a 'part' of a1. How do I tell the load function to stop reading a1 at the end of the line, and to read a2 as well? I tried a semicolon ; and it still didn't work. Instead it returned:
I have some buttons in the scene (inside the .fla) that change a variable "counter" after being clicked. In a separate class there is a function "showPage" that loads a xml-file according to the value of the variable "counter". My problem is, that I dont get the variable "counter" from the fla-file into the function of the .as-class.
Here is my code:
Inside mcMain.as
Code: class mcMain extends MovieClip { //public var counter:Number = 1; //Das hier soll durch den Button getan werden :(
I am trying to make a subclass of flash.display.Loader, which should do something when the loader completes loading the content. So I do addEventListener(Event.COMPLETE, onComplete) on my loader subclass. But this Eventlistener is never called. Is this supposed to happen? Can't I use an Eventlistener on the class that dispatches the event? My code looks like this: public class MyLoader
im trying to load some HTTP URL from a xml file into a actionscript function..Its xml gallery i was successfull in loading the pics the description but im stuck at the url....The XML file is structured this way....
<Node myURL="images/cow.jpg" myTitle="Cow" myDesc=" libero sed dapibus aliquet, quam risus luctus lacus, vitae tincidunt dui diam dictum mauris. Morbi tempor, Nunc eleifend sapien ut odio pharetra eu aliquet eros fermentum. Proin et nisi vel risus eleifend pulvinar. "myThumb="images/thumbs/cow_thumb.jpg" onlinelink="http://vaughntucker.com/exflowers/"offlinelink="projects/web.swf"/>
I need to place the on and offline links into a onclick button fuction in flash.so i imported the xml data it works fine for the title so i used the same code for the url
here it is... allOnlinelink.push(element .@onlinelink); allOfflinelink.push(element .@offlinelink); the next function pulls the url of the current index var currentWeb:String = allOnlinelink[currentIndex]; var currentCD:String = allOfflinelink[currentIndex];
I'm working on a function that checks for 2 things to pull up the correct .swf file. I have to check for 2 things ·_global.theYear ·_global.theDate
Is there a different way I could write this function to say something like: checkAll(_global.theYear, _global.theDate) = function(){ loadMovie(_global.theYear,_global.theDate".swf", 1); }
So when a button is pressed, it runs the function above and fills in the variable. Names in the .swf name, does that make any sense, am I on the right track? Because all the .swf file names are all consistent such as 2009_18.swf, 2007_5.swf., etc. The only problem I see is there are 2 sets of buttons, one when you press it sets the _global.theYear variable and the other sets the _global.theDate variable.
So would one button look like this: mybtn.onPress=function(){ checkAll(2008,_global.theDate); } And the _global.theDate would be set with what the current var is set at as?
I know I'm giving only one error. But this multiplies by 3 and they are al the same.So the swf works but the don't show up.
Here is my AS code: playclip._visible = false; menu.button_mc1.title_txt = title1; menu.button_mc2.title_txt = title2; menu.button_mc3.title_txt = title3; menu.button_mc4.title_txt = title4;
i got a basic problem with loading a Bitmap from a URLRequest.The problem is, that loading a Bitmap is to much code to write it every time I want to load an Image. So i thought about some function:
var bitmap1:Bitmap = bitmapForURL("test1.gif"); var bitmap2:Bitmap = bitmapForURL("test2.gif"); function bitmapForURL(url:String):Bitmap
I have 8 sprites and I want to load png for my buttons but I don't want to have to type all that loader stuff 8 times, so i wanted to try to create a loop with it.
Hopefully that makes sense, This is me trying to do it with just two but the plan is to have 8 buttons.[code]...
I want to use loadMovieNum('platformer4.swf', 0);to reset all my variables, but then I want to call a load function after to load the users data. How can I do this?
I am working on flash application that uses Slideshow screen, now i am trying to call a function when a screen loads; what this function does is it create a focus on one the movie clip.
I tried using the 'onClipEvent(onload) ' - it does call the function but does not set the focus on it; however if i code setfoucs ( selection.setfoucs) on key handler it sets the focus.
I am trying to make a button that when clicked on loads an external text file into a dynamic text box.
I can make it work when I use it specifically - but I can't make it work when I want to use it as part of a generic 'button function'.
Basically I have a .txt file "mycontent.txt" which is called using the Load Vars function inside a generic function (tab_grow) i created to managed the behavior of the 12 tabs that are the navigation for the movie. For now i'm just focusing on ONE of the tabs. Basically the tabs move when a user hovers over them and when they mouse off. When they click it should call the external text file. The section in the .txt i'm calling is called 'mega_data'.
This is what I have right now:
HTML Code: function tab_grow(mov, file) { mov.onRollOver = function() { mov.onEnterFrame = function() {
[Code].....
BUT then I can't change which section of the .txt file I pull up for different tabs - which is the whole point of the function!!
I have a slight problem with serching datagrid, the thing is that i load xml to datagrid it works but when i filter i get an error msg. The code looks like this:
I finally finished my game and now whenever my game communicates with my php file/mysql database it fails when the file is being run off the server, but somehow it works fine when played locally.
Here is some sample code:
(This works locally, hence the full url for the load function. But it does not work on the server which I thought was strange.)
Code: startupvars = new LoadVars(); startupvars.load("http://alexville.com/alexvillenetwork/startup.php"); startupvars.onLoad = function(success){ if(success){