I am a having a MovieClip on the stage , instance name "photo"
-width 1500 px -height 100px;
and main scene width & height 400px;Now when i take mouse on the left side of the main scene, the "photo" MovieClip should move on the right side and when i take my mouse on the right side of the scene the "photo" MovieClip should move on the left side. Maintaing the exact ration from left and right side.
im trying to make a mc start playing by moving the mouse (_xmouse) of to the right side.. I need to make the mc paly without the use of a rollover button when the mouse passes over a the last 100 or so pixels to the right.. i been trying to modify this scrip to do the job but it currently plays the mc with every little move of the mouse.
var mouseListener:Object = new Object(); mouseListener.onMouseMove = function() { if (root._xmouse, true) { mymovieclip.play(1);
I was wondering if any one knew how to create a menu similar to the MacOS X dock or like the green text column here URL...i made one but it goes really weird and jumpy after certain numbers.i made a MC in an MC on the stage with the MC code:[code]i put some restraits on it, so it doesnt go extrememly small, but anyways any suggestions?
Is there a way to store your xml files somewhere? If I load my XML into the flashmovie, I can use it while I'm parsing it, but later on if I want to use the info / data I stored (or thought I stored) it's just gone.
I'm trying to create an interactive flashmovie, where you can open three different categories of pictures. Inside each category there are three thumbnails, and by clicking on them there opens a big version of the picture, above the thumbs.
I wan't to load a jpg from the server into the flashmovie. How can this be done? I tried using the Loader component = don't get it to work. Tried attachMovie = don't get it to work.
I'm trying to figure out if there is a way to control a flash movie from a HTML menu(anchors or buttons) without having the page reload.What I want is a flashmovie and some sort of list with links, and when a link is clicked on the movie changes its contents. There are reasons as to why I want the menu to be written out in HTML and not included in the flash movie. Can I pass information into the movie after it has been loaded?
I wan't to load a jpg from the server into the flashmovie.I tried using the Loader component = don't get it to work.Tried attachMovie = don't get it to work.
I'm working on a page that contains links to different videos and plays the videos in a swf.I've gone through a tutorial and created the flash video player and have successfully got it on the page working and playing. Now I need the links on the page to tell the flashplayer which flv file to play.not sure if it's what I need but it'sI'm a designer who thought he would be doing only graphics and css, my coder backed out on me and I'm in a crunch.
I want to know any actionscripts that could work on a button that could send what it is on your screen (flash movie) to someone else. I am working on this particular project in Flash 2004 and its got some photos, illustration, and of course text and I want to make a button which could send the whole look to whoever I want to send this out to.
In a drop down menu I have the links as texts in an array. right now it works like this..
links[2]="http:[url].....
Whant is to change the link to open a .swf file in tha same flashmovie. I normally use this script when I use buttons. Is ther any way I can connect this script to the link..
I have a problem with scroll panel. If the flashmovie is visualize in a browser, there are no problem, but if we viuzalize it in a *.exe format the text is out of borders.
i have a heavy flash movie (10mb) and im trying to play it with VB. when i run it with VB, the flash movie became slow, when playing it with flash movie alone, it's good. is there any way to play flashmovie in Visual basic keeping the quality 100%?is there any visual basic.net version tutorials around?
I have problem with obtaining variables from php script. Here is my php script <?php echo "&Files=1,2,3"; php>
And now in the actionscript 2.0 var GVars:LoadVars = new LoadVars(); var Pictures:Array = new Array(); GVars.onLoad = lVars; GVars.load("[URL]"); function lVars(){ trace("Files: " + this.Files); Pictures = this.Files.split(","); } trace("Array: " + Pictures.length);
Here is the output in the trace window Array: 0 Files: 1,2,3,
As you can see the first is Array:0 which means that actionscript ran first trace ("Array: " + Pictures.length); End then lVars function. I cannot load variables from php in correct order.
Situation:I've got 2 swf files,1 is a preloader which loads the 2nd swf file, my site.Both of them, if started separately,work correctly.Problem:when I put the files together,linking the site's swf to the preloader,I get a null element error and the site loads no correctly.What I've understood :The preloader is ok, because I can remove the error message working on the site's swf AS code.In the preloader's code I have some lines to center its animation on the stage, I do that like this:
import flash.display.Stage; var myStage:Stage = this.stage;
then using myStage.stageWidth and myStage.stageHeight I calculate the clip position
Also on the site's code I do the same to center a movieclip using exactly the same code, but it doesn't work and I've found that the problem is the myStage variable, not because it has the same name as the variable on the other file (I've tried to name it myFrame).It looks that on the site's swf the myStage variable can't be assigned and then results to be null.
Question: How can I obtain the stage's height and width since var myStage:Stage = this. stage; doesn't work?
I need to get the fillcolor from a legendItem, howerver doinglItem.getStyle("fill") returns a different color than the actual legendItem marker color. Any pointers on what am I doing wrong here?
Can I get the obtain the size of the browser window in AS3?
The best method I've found is to get the size with Javascript and send it to Flash as a FlashVar. One limitation of this method is that it doesn't give the current size if the window is resized.
I want my flash to obtain the following effect.There are two buttons and a dynamic text box in my flash.The two buttons are start and end button. When you click the start button,you will find the random data in the dynamic text box changing constantly until you click the stop button.
my mission is to select an item in a DataGrid instance with nothing but the coordinates on screen.
We are implementing right-click functionality in our Flash application, with the goal of being able to right-click a DG row, which would select that row plus show a popup window containing some context commands.
I have managed to get the right click event into my Flex app with the help of this site.
Further progress so far has been to obtain the DataGrid instance via
var objects : Array = this.getObjectsUnderPoint(new Point(this.mouseX, this.mouseY));
and then to investige each of the array's items, for one of those 'parent.parentList' refers to the DataGrid instance.
I couldn't find any point-to-item converter function or anything.
PS: Using the standard Flash ContextMenu is, unfortunately, not an option.
The company I work for has their own Flash based video player and the question I get from our execs is "Can we tell what website our player is embedded on?"At first, I hypothesized I could use Apache mod_rewrite, extract the HTTP_REFFER, and append it to the end of the requested URL. So as the browser gets http://.../viewer.swf, I could slap on ?However, I don't think our CDN will cater to our htaccess file. Plus, mostly all the access_log entries show a dash rather than the domain.So I'm casting this question our here to see if I catch any ideas or solutions. Currently, everything points to 'not possible'.
today I'm trying to get the URL where my Flash movie is sitting on.
I found a similar question here, which was answered with a link to Flash's LoaderInfo method, but I'm not sure I'm using it correctly as the textField in my test movie here: [URL] does not display the URL
Updated! WORKING CODE
All I needed was this: stage.loaderInfo.url :) package { import flash.display.Stage;
In the advanced search page you can specify 'near' a specific location and this 'near' parameter shows up clearly in the query string.However, Twitter does not support the use of 'near' in the public search api.Apparently you need to supply a geocode value.Can anyone suggest the best way for obtaining a geocode in Flash?
Is it possible to obtain a Class reference to a Vector.<T>? I tried the following code:var cls : Class = Vector.<int>;But it fails with a coercion error, presumably because Vector.<T> is also a global function. Is there a simple way around this?