ActionScript 2.0 :: Loading A Swf. Into A Specific Location
Mar 27, 2002I'm trying to load my movie into a specific location...I got the code to load it properly, and now I need to know how to load it to specific X and Y positions.
View 3 RepliesI'm trying to load my movie into a specific location...I got the code to load it properly, and now I need to know how to load it to specific X and Y positions.
View 3 RepliesIs there any way to get the top most UI element in a specific x,y location?
View 1 RepliesI'm trying to load an SWF file into antother SWF file.But I dont have a lot of experince with flash!I want the SWF file to load in the top right corner!
View 3 RepliesI've a flash AS3 based application that provides option to play/pause/record FLV files from flash media server. These files are only audio files. Now, I want to add a new functionality of inserting audio at a specific location.Like if the already recorded file is of five minutes duration, and I want to record 1 minute audio after third minute, the end result should be a six minute file with the new audio added from 3rd to 4th minute.
View 1 RepliesI have 4 movieclips that are animated around the stage and a basket movieclip button as the home button in the far left corner. When I click the basket I would like to have actionscript animate those 4 movieclips into the basket with an acceleration in 20 frames. This I can easily do without acceleration as I can find out the current location of the movie clips, find out the distance between it and the basket and then divide it by the number of frames I need, and then use that as the speed. But to be honest I am not sure where to begin when I include acceleration. I have dabbled with acceleration in the past but not with a specific number of frames in mind.
View 2 RepliesWell, I am working on motion detection in AS3.
I already understand how it works, now in this swf what happen is there are filters added to the video(output) to make the motions color white. I will put the files here.
The swf is inside the bin folder. (this is made by soulwire) Here is his site/blog
[URL]
I am trying to mod it to improve it. Well you can study code if you want to
But what I want to do with getColorBoundsRect is:
- Having only one source to detect the color "WHITE". But having multiple "getColorBoundsRect" detecting white on that ONE source but on DIFFERENT regions.
Lets say this M1(colorboundsrect) will only detect the first part of the source) and M2 will be detecting on another region of SAME source.
1 source, but multiple getColorBoundsRect on different regions of that 1 source
I have a Spark TextArea:
<s:TextArea id="editor">
<s:textFlow>
<s:TextFlow id="_tf" >
<s:p>Lorem ipsum etc.</s:p>
[code]...
But still no joy in inserting into the middle. Also, the above code wouldn't replace highlighted text, but that's not the real concern here.Based on Eugene's link the key to this is EditManager.The following code represents the working updated function:
protected function imageBtn_clickHandler(evt:MouseEvent):void {
var em:EditManager = editor.textFlow.interactionManager as EditManager;
em.selectRange(editor.selectionAnchorPosition, editor.selectionActivePosition);
[code]...
If you load up a FLVPlayback component in Flash or VideoDisplay in Flex and try to seek to a specific location or set playheadTime to a specific location, the movie always rounds up or down by very large amountsIn flash, drag a FLVPlayback component to stage and set source to Then try to video.seek(6) or video.playheadTime = 6;It will just goto 10. Likewise if you use their built in scrubber the only intervals are 0, 5, or 10. So at most the scrubbing frame you see is 3Here is an example of flex with the same result.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:media="com.synapsegroup.media.*">
[code].....
I am trying to attach a movie clip at a specific location on the stage using the following code:attachMovie("plane_mc", "mc", 1, {x:50} );The statement above does attach my MC called plane_mc onto the stage but it won't attach it at the location where I want it to. The x parameter doesn't seem to have any effect whatsovever on the stage location.
View 2 RepliesI have a question about movie clips. I have about 20 MC-s in my flash. Is it possible for me to duplicate one of them multiple times in specific location? I mean if I have button that says "DOG" and I press it, then new dog appears on screen. And I need to do it for like ten times or so
View 8 RepliesI recently created a web site that has a popup window with a Quicktime .mov embedded in it. [URL] The popup has parameters set so that it has no borders, scroll bar or address field. It looks fine on my PC in IE, however... on my clients iMac, the popup opens with an address (location) field. Needless to say, this is unacceptable to my client. Is there a parameter specific to Macs that excludes the location bar? Or a resource that lists the window parameters for all browsers and OSs?
View 1 RepliesI have a movie clip within another movie clip and I want one of the objects in the embedded movie clip to end at a particular spot on the main stage.
View 1 RepliesIssue: I need to move a rectangle (that has only sides and no fills) to a specific location on the animation, what happens is that if the user enters some info (through HTML form processed by PHP and sent to the movie through FlashVars), this info should then me find the x and y coordinates of a button that should then be overlapped by this said rectangle.Code:
Code:
if (_root.signUp == 1){ // the FlashVar variable flag
var buttoSym= "_root.thumbMain.thumbSymbol.b" + _root.signNumber
[code]......
I have an object inside my flash file and i want to lock the object on 0 x-axis 0 y-axis but when i re-size my SWF file my object's location changed to another location how can i fix that?
View 1 Repliesi want a thumb image to play an embed video in a specific location
View 1 RepliesWhen I click on the button, it should bring me to a specific location which is inside the MovieClip, and that works. However, from inside that MC, I want to click on the same button, it should bring me on the main time line. How to do that? I am making of a variable (boolean) here. Is there something wrong in my code? (see path.fla)
(b) How do I remove a movie clip? (see path2.fla) When I clik on the square_btn, it brings me to a location inside that movie clip where there is an oval button. When I reach that oval button, I want the square_btn to me temporarily removed on that page.
I want to download a file from the server and save it in a particular location of the disk without user interaction. All this I want to do it in Flex.
View 1 RepliesHow can I check if the stage contains a movieclip on a specific x and y location on the stage?I'm building a colour-guessing game. The purpose is to walk a path through a generated field of hexagons, each assigned a random colour (yellow, red, blue or green), based on what soundfile you hear. So if you hear "yellow", you have to click a yellow tile etc.But because I want it to be a path, and the colours of the tiles are randomly generated, I have to check which colours border the currently active tile. I literally have no idea how to do this. I thought this might work but it doesnt:
if ((this.tile.y == (event.currentTarget.y - 64)) != null) {
//add the colour of this tile to array
}
[code].....
cutting to the chase, Basically im loading a movie externally using this code...
Code:
on (release) {
if (S_Init == Number(S_Init)) {
loadMovieNum("s_menu.swf", _root.S_Init);
[Code].....
cutting to the chase, Basically im loading a movie externally using this code...
Code:
on (release) {
if (S_Init == Number(S_Init)) {
[code].....
Does someone have a working fla to illustrate how to load an external movie and zoom and pan to specific location of this movie (with easing)? With actionscript, not necessarily with a control for the user. I am looking for it for some time and unfortunately my programming abilities are not yet sufficient to find it out from scratch (but I am working on it).
View 2 RepliesI have been working with xml sheets to load a menu and in order to load a submenu or to go to a submenu of a submenu, I was wondering if it is possible to load a variable location for an xml.
For example, if I had the variable xmllocation which was a string that said where in an xml a certain menu was, is it possible to use the xmllocation variable for something like this:
( if xml.xmllocation.length() > 0 ) do something;
whenever I tried messing around with it, it would actually go to look for "xmllocation" in the xml instead of check what the string is. So what I guess I am really asking is, is there a way to tell it not to be so literal?
when loading a movie into the main timeline is there a way to tell the movie to load into the center? instead of a set x,y postion? im sure its just a few extra lines of math..
View 10 RepliesWhat I am trying to do is create a movie clip that will load an external swf then control it from the _level0 movie. The problem I am running into is loading it into the right location.
Code:
duplicateMovieClip(this.option,this.menu[context+"_"+optionnumber],this.getNextHighestDepth());
trace(this.menu[context+"_"+optionnumber])
this traces out "undefined"
I know this.option has been loaded correctly
I know this.menu exists as an empty movieclip
[context+"_"+optionnumber] traces out as expected
It Works fine as an attachment from library using attachMovie, if I convert that library item to an external SWF then try to duplicate the movieclip into the same location it dosnt work. Does duplicateMovieClip not support what I am trying to do? Is there another way to acomplish this?
I'm trying to access a flv file on a remote server from swf. It works perfectly from my local machine going to the remote folder. But, when I upload it to my web host, it doesn't load the remote flv. I'm guessing there's some kind of permission issue on my web host. I have a crossdomain.xml file in the root dir with the following:
<?xml version="1.0" encoding="utf-8"?><cross-domain-policy><allow-access-from domain="*" /> </cross-domain-policy>
So I have a .swf file that loads in xml and such. Now I want to have a flash file load that into it, but when I do the loaded .swf loses the location of its files to load?
So.
File A - the loader
File B - load swf
File C - load swf xml file
All sit in the same folder
if I open file B, it reads file C no problem
if I open A that loads in B, it loses location of C and it dont load the xml? I am on access network files.
Quick question here about variables in flash..Im loading the location of an XML file via FlashVars in my html document (I'm using the SWFObject to render the flash by the way). Anyhow I can pick up the variable on my root timeline and have it displaying in a dynamic text box but I need to get it inside a movieclip which is where my code is for the xml and I can't work out how to get the variable from the root timeline to the movieclip?
View 1 Repliesi have some problem...how can i load location from var in html?this is the html code that load the flash
Code:
<div align="center" id="flashcontent" class="virtual">This content requires <a href="http://www.adobe.com/go/getflashplayer/">Adobe Flash Player 9</a> and a browser with
[code]......
How do I go about loading a movie from another location within a flash document?
View 14 RepliesSpecifically, the developer of a web service I'm trying to call has installed a cross-domain policy file on his server at:[URL] So, in my SWF, I'm calling this:
[Code]....
Of course, it's not there, so it fails to load. (If the developer could install the file at the root, I wouldn't have this problem, so I wouldn't be using System.security.loadPolicyFile in the first place). It's not just in the IDE - when I test the app in Firefox with Firebug, I can see that the SWF is attempting to load the policy file from [URL].
I've stripped down the SWF so that it does nothing else but attempt to load the policy file from the subdirectory, and it still fails. So, I don't think this has to do with any idiosyncrasies of my specific app. Bottom line - does the System.security.loadPolicyFile work? Is there something else I need to do in conjunction with that call to get it to work? Or, is there something I'm doing wrong?