ActionScript 3.0 :: Loaded External MP3 Player, StartDrag Not Working

Oct 23, 2010

all of the other buttons on an external movie are workign but the volume slider is not...

when i load the external file (the mp3 player) it works fine.

Code:
/* volumeStartDragging(event:MouseEvent):void
* Returns a mathematical value that we can use to adjust the volume
* the value is the relation of the volume ball to the line

[Code].....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: StartDrag Not Working Within A Loaded Swf?

Oct 14, 2009

I'm trying to work with a movie clip that I am loading into my main SWF. When run alone the draggable rail works fine but once loaded into the actual main SWF it won't drag. I put an on EnterFrame on it so that when I click it reads out some data and that still works within the main swf. Is there some sort of restriction on what loaded content can do?

import flash.display.MovieClip;import flash.events.MouseEvent;
var upper_left = rail.x;var upper_top = rail.y;var travel = rail.height-handle.height;

[Code].....

View 12 Replies

ActionScript 3.0 :: StartDrag() Not Working When Loaded Into A Bigger Movieclip?

Oct 8, 2010

I am working on a simple drag and drop game which works fine by itself.

But the problem is that when this slide is loaded into a bigger gameloader swf. The x axis does not update itself.

Thus when the draggerable gets drag, it moves in relative to gameloader's stage size instead of its own stage size..

Is there any ways that I can lock coordinates of the X and Y axis to that of the game instead of the gameloader?

View 0 Replies

JavaScript :: External Interface On Flash Player Not Working On CDN

Oct 5, 2010

I have a flash player with an external javascript interface: reloadData() I'm calling that function via Javascript when editing information on the page - basically to keep data on the page and in the player in synch. The reloadData() function works fine when the player is hosted locally. When we move it to the CDN (Amazon Cloudfront), the player loads successfully, but the external javascript interface no longer works - console.log(player) reveals the following:

<object type=,"application/x-shockwave-flash" data="[our_cloudfront_url].swf" width="920" height="404" id="player" style="visibility:visible;">
Uncaught TypeError: Object #<an HTMLObjectElement> has no method 'reloadData'

I know there are a lot of things that behave differently when working with items on a CDN, but we're using a CNAME to point to the cloudfront distribution
(buildid.ourdomain.net => distributionid.cloudfront.net)

View 1 Replies

ActionScript 3.0 :: External As3 Swf Loaded As Amv1movie In Flash Player 10.1.53.64.2

Jul 15, 2010

I've got a  problem with new flash player 10.1.53.64.2 (activex component) on  windows 7 and windows XP (vista was not tested) no matter x86 or x64.  This problem doesn't not appear on previous versions of player such as  10.0.42.34 and lower 9.0.45. The problem is: when I load external movie  it loads as amv1movie thought both swf's are in ActionScript3.

[Code].....

View 2 Replies

ActionScript 3.0 :: StartDrag In 3D Not Working?

Apr 1, 2010

The Language Reference states:
 
"Three-dimensional display objects follow the mouse and Sprite.startDrag() moves the object within the three-dimensional plane defined by the display object. Or, if the  display object is a two-dimensional object and the child of a three-dimensional object, the two-dimensional  object moves within the three dimensional plane defined by the  three-dimensional parent object."
 
However, this does not seem to be the case.  I have a 2D object which is the child of a 3D object, but startDrag will not work on the child.  If I remove any tweens in code from the parent's rotationY then startDrag will work.    If I have any reference to rotationY it will not work, even if it is set to 0.

[Code]...

View 4 Replies

ActionScript 3.0 :: Can't Get StartDrag Working

May 20, 2009

I have a MovieClip with other MovieClips inside of it. On each of the MovieClips inside, I have added a MOUSE_DOWN event and in the handler, I call e.target.startDrag(false, null);

But it doesnt seem to work :/

I have traced out the target name. I have tried current target and traced out it's name. THey both trace correctly. The target is being reached and it is the corect target. But the startDrag function doesnt make the MovieClip draggable.

View 6 Replies

ActionScript 3.0 :: Scrollbar Not Working When Loaded Into External Swf?

Apr 13, 2010

I recently purchased a scrollbar from the exchange marketplace and it works beautifully within it's own swf but as soon as I load it into a second swf (the main "start movie") it doesn't work. When I click on it to scroll, the tracker sticks to my pointer (like a mouse follower) and won't release until I click on a button leading me into another movie. The scrollbar component came with an external caurina file which is where I think the issue is coming from. I think it's having trouble finding the associated code when inside the second movie.  I've tried all sorts of parent vs root scripts to try and get it to jump a level to recognize the source of the original code.

View 5 Replies

ActionScript 3.0 :: Banner Ad Not Working As External Loaded Swf

Feb 10, 2011

I built a banner ad which works fine when I test it in flash. I then put it inside another flash movie in which it is loaded as an external swf ,my portfolio, and it it loads and only runs the 1st line of code animation and I can see the text that is waiting (outside the visual dimensions of the banner) I am also getting this error....what is going on?

[Code]...

View 3 Replies

ActionScript 2.0 :: External Links Within A Loaded SWF Not Working?

Aug 18, 2009

I have my parent swf created with the external swfs loading properly.once they are loaded, the links within the externally loaded swf's are not working. Here is the code I am using:

on (release) {
//Movieclip GotoAndStop Behavior
this.gotoAndStop("first");
//End Behavior

[code]....

View 3 Replies

ActionScript 3.0 :: StartDrag() Not Working For Child?

Jan 20, 2011

I have a movie clip that I want to drag, but it gives odd behavior. If I add the MC using:addchild(MC)it works fine. The problem occurs when I try to add it as a child of another MC:base.addchild(MC)When I do it like this the drag does not work (nothing happens). If I drag the parent, the child drags with it, but attempting to drag the child on its own does not work.  The function used is:

function pickUp(event:MouseEvent):void {
if (drawMode == NONE) {
event.target.startDrag();

[code]........

View 11 Replies

ActionScript 3.0 :: StartDrag Within A Loaded SWF

Jun 16, 2011

I have an index file in which I load my external .swf. One of the external .swf has a drag and drop quiz. And as you can guess, the startDrag doesn't work! In fact, when I publish within Flash it works just fine, but when played within the index file, it stops working!

For your information : all my files are in AS3.
 
So here's a bit of my code.

var interbouton : Number = 10;
//I have 7 items that I can dragfor(var i:Number=0; i<7;i++){ var dragBtn :MovieClip = new Drag();

[Code]....

View 2 Replies

ActionScript 3.0 :: Form And Buttons Within External SWF Not Working When Loaded?

Oct 20, 2010

I'm currently working on a flash site, which consists of a "Main" SWF file that has buttons to load external SWF files. I figured out how to make the external SWF files show on its own layer below other layers on the main time line of the Main SWF. I created a blank movie clip file on it's own layer of the main time line and used this to call out to it:This worked perfectly. The website so far works perfectly with each page of the website being an externally loaded SWF. The problem I came across today though, is that buttons and text fields within the external SWF files don't work when they are loaded onto the "Main" SWF. They only work when I open the external SWF files individually. I really need to figure out how to make buttons and the text fields within the external SWF files when loaded onto the "MAIN" SWF.

I first came across this problem when I tried adding a form that I created to one of the external SWF files called guestlist_page_swf.swf. The form works on its own when I open that SWF individually, but when I try to load that SWF file with the form as a page on my "Main" SWF, the mouse doesn't even recognize that the submit button is a button, and it doesn't allow me to click on the text fields. Here is the link to the site I am having the problem with:

processing_mc.visible = false;
// Clear the form fields
first_name_txt.text = "";

[code]....

View 2 Replies

ActionScript 2.0 :: Button Stopped Working On Loaded External Swf?

Feb 17, 2011

the swf that I am loading has a button in it that when I click on it, it will print the screen and it will email it to an email address.Everything works perfectly fine if I use the application(swf) on its own.however, I created a swf file that will load the above swf file in it when a button is clicked. the loading part is fine and it works as it should be. but the button for printing the screen stops working once the swf has been loaded!

View 3 Replies

Actionscript 3.0 :: Form And Buttons Within External SWF Not Working When Loaded

Oct 20, 2010

I'm currently working on a flash site, which consists of a "Main" SWF file that has buttons to load external SWF files. I figured out how to make the external SWF files show on its own layer below other layers on the main time line of the Main SWF. I created a blank movie clip file on it's own layer of the main time line and used this to call out to it:

this.mySWFLoadingClip.addChild(loader);

This worked perfectly. The website so far works perfectly with each page of the website being an externally loaded SWF. The problem I came across today though, is that buttons and text fields within the external SWF files don't work when they are loaded onto the "Main" SWF. They only work when I open the external SWF files individually. I really need to figure out how to make buttons and the text fields within the external SWF files when loaded onto the "MAIN" SWF. I first came across this problem when I tried adding a form that I created to one of the external SWF files called guestlist_page_swf.swf. The form works on its own when I open that SWF individually, but when I try to load that SWF file with the form as a page on my "Main" SWF, the mouse doesn't even recognize that the submit button is a button, and it doesn't allow me to click on the text fields. Here is the link to the site I am having the problem with, and the problem page is the Guest List page:
[URL]

Below is the code from my Main SWF file and the External SWF file with the form on it:

MAIN SWF:

var Xpos:Number = 0.0;
var Ypos:Number = 192.5;
var swf:MovieClip;

[Code].....

View 5 Replies

ActionScript 3.0 :: Enterframe StartDrag Not Working With RotationX?

Jun 10, 2009

I created a full flash template website loading external swf's.Lately, I managed to add a fake3D rotation with AS3 and CS4 to this global template with enterFrame.Problem : some of my external swf use a vertical scroller also using an enterframe function based on a startDrag bar with the x / y position of the mouse, the scroller dont work anymore.

View 8 Replies

Flash :: Canvas Moved On StartDrag() Without Calling Set X / Y Or Move() - How Does StartDrag() Exactly Work In As3 / Flex

Feb 11, 2011

i have an .as class that extends mx.containers.Canvas (it's a draggable border of a resizable component), it becomes draggable on MOUSE_DOWN and stops being draggable on MOUSE_UP, MOUSE_OUT and ROLL_OUT. before calling startDrag() i create a Rectangle to define the drag area, i also have a _dragging: Boolean variable to control if it's draggable at the moment. the problem is that when i click this border it jumps to a negative coordinate without calling startDrag or switching _dragging to true.

i've overriden get x, set x, get y, set y and move() methods in order to solve it but the only thing i got was the fact that position changes without calling coords setters or move(), but at the moment it's changed a getter is called and returns new (negative) value so my question is what happens on startDrag() and how to filter unwanted incoming coords values?

View 3 Replies

Actionscript 3 :: Flash - StartDrag() Within StartDrag() On Child MovieClip

May 19, 2011

as you can see, I have a container MC which I have added to the stage. I set its drag constraints using a Rectangle(). I then add the 'cat' child movieclip to the container, and I want this to be dragable too. However, as soon as I click on my cat when testing the MC. It shoots to point x=0 y=0 on the stage and doesn't move.

The container MC can be moved without any trouble.

If I remove the rectangle bounds from the containers startdrag() function. both MC's can be dragged without any issue.

//panning ability
my_x = 800 - myImage.width;
my_y = 480 - myImage.height;

[Code]....

View 3 Replies

Actionscript 3 - Flash Player Is Not Working In Domain / But Working If I Provided IP

Oct 14, 2010

I have developed a player in AS3. It is working if i provide the IP of the website. But, it is not working when i provide the full domain name. Even, i provide the crossdomain.xml for global access.

View 1 Replies

ActionScript 3.0 :: Flash - Access Player.x And Player.y From External Class?

May 8, 2011

I am trying to put together a simple game and have been doing really well until I decided I am going to have to create a new class to handle enemies.What I have so far is a player walking around on random terrains and I am up to the point where I have placed x amount of enemies on stage at appropriate times. I have written their class which will hopefully eventually handle their behavior and it outputs simple trace("BOO!").

Where I face the problem is that I obviously would like to make these enemies follow the player to attack. But when I try to access the .x or .y attributes of the player, it throws an error: 'call to a possibly undefined property with static type Class'?I have tried accessing the .x using the following ways (where badger is my player instance and Main is my class definition within the properties of the FLA):

Main.badger.x
Main(root).badger.x
Stage.badger.x

I have also tried to access other vars and still nope..My class code is this:

Code:
package
{
import flash.display.MovieClip
import flash.display.Stage

[code]....

View 1 Replies

ActionScript 3.0 :: Loaded Swfs Not Working When Loaded Through Xml?

Jun 10, 2010

I have a "photo" gallery that loads numerous SWFs through xml, one by one on click. All works fine. All my SWF work fine stand alone. But when I load them into the player, many swf dont work properly.in example, I have textinput textfields in many of the swfs, which work fine on their own but not when loaded into the player. Then I have a word search game that works fine when alone, not when in player. I can see there is something as my mouse cursor changes into the "button finger", but nothing visual.

All drag and drop assigments work fine etc. I have no idea whats up. I have receantly switched to as3 and in as2 there was _lockroot declaration that solved similar problems, but now in as3 (where it supposedly should be automatic) it doesnt work. As it seems that it cannot recognise it own stage value, or selection_focus when loadedinside another swf through xml.Using cs4, as3.

View 4 Replies

ActionScript 3.0 :: External XML Works Loaded Offline Not Loaded Online?

Apr 15, 2009

Code:
var slideNo:Number;
slideNo = 0;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);

[code]....

View 3 Replies

ActionScript 2.0 :: Flash Player 6 Code Not Working In Flash Player 10?

Mar 16, 2009

I would like to know how the following ActionScript, that only works in Flash Player 6, can be updated to work in a Flash Player 10 file.[URL]As it says, "On Publish Settings set Flash Player version on Flash Player 6, or this movie will not work."It works fine published as FP6 but not as FP10 as I need it to be. This AS is added to a movie symbol that contains a button for a rotating menu effect.

onClipEvent (load) {
hx = 300/2;
hy = 400/2;
r = 100;

[code]....

View 3 Replies

ActionScript 3.0 :: Unloading A Loaded External SWF With A Close Button On The External SWF To Unload?

Aug 15, 2011

[URL]I have: main.swf (a menu) and I have module.swf (content)If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent. So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.below is the code I used to load the file but I cant, for the life of me, find a way to unload it. 
 
var bigboreLoader:Loader = new Loader();btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
function bigborecontent(event:MouseEvent):void{var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf"); bigboreLoader.load(bigboreRequest); stage.addChild(bigboreLoader);
 
I am certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. I found the code below:
 
Main FLA: 
function removeF() {
removeChild(bigboreLoader);
}

[code]....

View 10 Replies

Flash :: Loading / Unloading External SWF Using Buttons From Loaded External Files

Feb 23, 2011

I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:

[Code]....

View 1 Replies

Mp3 Player Not Working After Being Embedded?

Apr 11, 2009

I have a player for sound files (Fabricio Zuardi) which is very nice, easy to work with and easy to texturize. It works with a xml list.  What I did was to load the swf file of the player into my main file of the website (also flash). The thing is that i can see the titles of the songs but the player won't work. Here's the as file.

repeat_playlist = true;//playlist_size = 3;//player_title = "customizeable title test"//song_url = "media/Akropola.mp3";//song_title = "Imperial Teen - Ivanka";autoload=trueautoplay=trueplaylist_url = "playlist.xml"//info_button_text = "Buy Album"//playlist_url = "http://hideout.com.br/shows/radio-test.xspf";

[Code].....

View 11 Replies

ActionScript 1/2 :: Load An External Xml In An External Loaded .swf

Jul 24, 2009

I've got a small (more than 100 hours of thinkwork up till now!) problem I can't seem to solve:

I want to populate an external loaded swf with an dynamicly loaded xml fil (loaded from my config.xml).

[Code].....

how do I get the external xml into the external swf as a variable for the actionscript in the external loaded swf (So I just want to put the path in the script in my external swf...).

View 5 Replies

Flash Player Not Working Under Xvfb?

Apr 6, 2011

Flash player not working in firefox (centos 5.5 x64) that run with selenium under XVFB. I'm getting just black screen in place where flash should be visible.

Tried both 32 and 64 versions.

View 1 Replies

Flex :: Youtube Api Player Not Working On IOS?

Jan 20, 2012

I'm using the YouTube API in my flex app to play videos and it works fine running on my computer and android, but I'm getting an issue when I try to use it on iOS, I just get a black screen!

View 2 Replies

ActionScript 2.0 :: MP3 Player Not Working In Server?

Jul 25, 2009

I just created a flash audio player.. It running properly in localhost, But if i host it into the server, Its not running when i play MP3s but some of the mp3s running well.

Here I have given the demo link... [URL]

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved