ActionScript 2.0 :: Convert Error And Swf Sizing
May 25, 2011
I only have some background on html and java. I made a website using a actionscript 1.0 template in cs5. I converted it to 2.0 and the mp3 player doesn't work properly with more than one track it was playing all 3 at once. I got it to work with one track messing around with files and coding but the buttons don't function properly. For example when I hit stop it will stop but then play button wont play track and the forward and back buttons don't change the tracks.My other issue is that after finishing my site I realized it wont upload to my host because it 18mb and the limit per file is 5mb. I read that there is a way to break it up into smaller files but I am unsure how to do this.
View 2 Replies
Similar Posts:
Mar 30, 2010
I've set the publish settings to 100% width and 100% height and have then added the 'noScale' function into the first frame of my timeline. Here is an idea of what I'm trying to create:
I have three movieclips that are touching the left side of the Stage and want them to touch the left side of the browser but centre vertically. I can do this by adding the 'Stage.align = LC' command, but not sure if this is the right way to go about it.
The movieclip that is on top contains a logo and I want it to have a fixed size. I called the instance name 'logo_mc'.
The movieclip below 'logo_mc' is called 'container_mc' and is a strip of photographs that I need to run from the left to the right side of the browser no matter what the browser size. I need this movieclip to scale proportionally up and down as they viewer resizes their browser so the first photo is touching the left side of the browser and the last picture is touching the right side (without distorting).
The final movieclip is called 'buttons_mc' and is right below the 'container_mc' clip. This movieclip needs to remain a fixed size.
Obviously when the 'container_mc' clip resizes I need the other movieclips to move up and down to stay the same distance above and below the 'container_clip'.
Example of what I am trying to create: [URL]
View 1 Replies
Oct 22, 2008
I want to put together a flash gallery of photography for my photography business. I am very good at Photoshop design, html, css, javascript but I am a novice with flash. I can use it and use some actionscripting but my knowledge is limited.
I see galleries like this one: [URL]
The images expand and contract perfectly as the browser is resized. I am used to having to size pics for the lowest res screens (I design for 1024 width resos's usually).
What size should I make pictures to work like this... Does flash scale them down / up / either... are there quality issues with letting flash manage the sizing.
View 0 Replies
Apr 19, 2009
I am getting a code error in my Actionscript 3.0 when trying to convert to .swf. I can't figure out what's wrong.
thumpy.addEventListerner(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void{ getURL("http://www.thumpersf.com", "_blank"); }[code]...
The purpose is that I am making a little slideshow in Flash where at some points, some Movie Clips have to be clickable.
View 5 Replies
Dec 9, 2010
I'm seeing this error pop up and I'm not sure why. Normally, I know what the problem is with this error, but this time it's saying it can't convert ClassX@221510d1 to ClassX, where ClassX is the same class.I've seen this pop up before, but I have no idea how to fix it since the class is the same. Does anyone know why Flash adds the @xxxxx? I'm assuming it's a memory address or something, but I still don't know why it can't make the conversion. Is it an application domain problem or something?
View 4 Replies
May 11, 2009
i have recently built a very small as3 portfolio site with 3d wall pro and a short flv here -i just bought a new mac pro and now i am getting this error on both firefox and safari -
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::AVM1Movie@14466481 to flash.display.MovieClip.
at umiNovember2008_fla::MainTimeline/fileLoaded()
[code]....
View 2 Replies
Jun 8, 2010
I took this code directly from [URL]. I changed the file type being loaded from and .xml to a .png and tried to addChild(loader.data);
Code:
package {
import flash.display.Sprite;
import flash.events.*;
import flash.net.*;
public class URLRequestExample extends Sprite {
[Code] .....
I get this error:
Code:
TypeError: Error #1034: Type Coercion failed: cannot convert "(STRANGE SYMBOL)PNG
View 3 Replies
Sep 9, 2008
- In the library, there is 2 different Sprite. These 2 Sprite has a different Class name and used the same Base Class.
- The Base Class is a custom Class
- The 2 Sprite will do exactly the same thing. The only difference is the content image and shape that differs. You can imagin a puzzle. All piece differ, but are use for the same thing.
- In each Sprite, there is another Sprite named Hitzone_inst on the stage MovieClip Name. The item is the shape of the puzzle part, so it is different shape in each.
- The custom Class I can then call the Hitzone_inst as the hitzone for the click
The problem is when I publish, the error appear: TypeError: Error #1034: Type Coercion failed: cannot convert Hitzone_inst_1@14b2c161 to Hitzone_inst_2. It's like I can't used the same Base Class for 2 different items with the same items structure and name inside.
View 15 Replies
Feb 19, 2011
I want to do is pass a variable (1) to a function in a different file...
[Code].....
And I get this error
Actionscript Code:
TypeError: Error #1034: Type Coercion failed: cannot convert 1 to makeWave. at main()
View 3 Replies
Jun 17, 2011
I'm trying to create something super simple, a couple of buttons in a movieclip. Inside the movieclip is the code below. I keep getting the error below when trying to publish this file. AS2 was so easy!! I have no idea what the heck TypeError: Error #1034 is and I did look this error up online.
Code:
var myRoot:MovieClip = MovieClip(root);
var mainmov:MovieClip = MovieClip(myRoot.parent.root);
//mainmov.rdcmndPause = 1;[code]....
ERROR when trying to publish: TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@30fb7089 to flash.display.MovieClip. at Playpausetest2_fla::test_1/frame1()
View 4 Replies
Jun 9, 2010
I try to load an as2 swf in my as3 code, but I get this error :
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::AVM1Movie@152e7301 to flash.display.MovieClip.
at MethodInfo-576()
when I remove all the as2 code in that swf and compile it as an as3movie, the error is gone... Is my loading code malicious?
this is my loader code :
ActionScript Code:
private function LoadAktie() {
swfloader.load(new URLRequest("slideshow.swf"));
[Code]....
View 3 Replies
Jan 8, 2009
i am trying to bring over some classes i made in as2 to as3. i've migrated everything appropriately but keep getting this error:
TypeError: Error #1034: Type Coercion failed: cannot convert
ball$ to flash.display.MovieClip. at
test_animateClass_fla::MainTimeline/frame1()
[Code].....
and the .fla loads an external class into it, Animate, which then tries to use addChild() to add a copy of 'ball' to the stage when it's created. a movieClip variable is passed into Animate() from the .fla, which in this case, is the movieClip 'ball'.
why does it have this error converting 'ball' to flash.display.MovieClip?? ball IS a MovieClip already..
View 21 Replies
Nov 17, 2009
I am trying to create an audio that only uses the first entry in an xml file. I have most of the things working but I keep getting an error related to the audio file. TypeError: Error #1034: Type Coercion failed: cannot convert "[URL]. at latestMessage_fla::MainTimeline/frame1()
I inserted the url for the file into error message so you can see if there is s problem with that. I was initially trying to use a variable to hold the url for me, because this xml file gets updated every week and I only want to access the most recent entry. This is my first attempt at making an audio player in flash, so I am sure I have made a simple mistake, but for the life of me I cannot figure out what it is.
One last question is in regards to using id3 tags versus xml tags to fill dynamic text fields in the player. Currently I am using the xml file to do this, are there any advantages one way or the other for this. The only reason I ask is that I am hoping to display an "album art" image from the id3 tag in the player. Would it be better to grab all of the information from the mp3 file?
View 1 Replies
May 23, 2009
Code:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.net::URLRequest@c846511 to flash.display.DisplayObject. at theSITE_fla::MainTimeline/movieClick()[theSITE_fla.MainTimeline::frame1:109]
line 109 Code: everything.moviesPage_mc.mainMovie_mc.mainMovieContainer_mc.addChild(newSWFRequest);whole code
PHP Code:
[Code]...
View 4 Replies
Feb 21, 2009
I have main swf that uses DocumentClass to which I load another swf that uses its own class. In main movie there are couple
of buttons that I want to use to load different xml files for external swf. When I tried a few suggestions from this forum I got this
Error #1034: Type Coercion failed: cannot convert Classes::SlideShow@3a49f239 to flash.display.MovieClip.
at Classes::DocumentClass2/onTravelClick()
View 4 Replies
Jul 26, 2009
I am fairly new to Flash and have been building a movie. The movie is working properly, but when I test the movie, I receive an error:
Error #1034: Type Coercion failed: cannot convert flash.display::MovieClip@2c882701 to fl.transitions.Tween.
If I ignore this, everything behaves as it should, and when exported to a swf and played through a browser, it works fine. But, when played in the flash player on it's own, the error pops up. If I dismiss the error, it continues to behave normally.I'm not sure what this error means and if there is a way to get rid of it.The swf on the web can be found here:
View 2 Replies
Apr 23, 2010
I am trying to get an external swf to display on the stage once you roll over a movie clip button.My code is below:
import flash.display.MovieClip;import flash.display.SimpleButton;import flash.events.*;import flash.ui.Mouse;import flash.display.Loader;[code].....
I am getting this error in output:TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::MouseEvent@f805299 to flash.ui.Mouse
View 1 Replies
Aug 15, 2011
I'm getting this error pop-out window when I pressed on a button. The button listener contains the following code:
btn_start.addEventListener(MouseEvent.CLICK, gotoStart);
function gotoStart(e:MouseEvent):void{
btn_start.removeEventListener(MouseEvent.CLICK, gotoStart);
gotoAndStop("START");
[code]....
View 3 Replies
May 5, 2009
From the book "AdvancED Actionscript 3.0 Animation" I fixed a problem in the code they give you that is using [Embed....] instead of using library objects with linkage names. I still have the error: TypeError: Error #1034: Type Coercion failed: cannot convert Tile_01@1bf93a61 to Class. at GraphicTest$iinit()
[Code]....
View 7 Replies
Jul 27, 2009
i have created a simple movie clip of a blue circle on my first layer but not given it an instance name. I am trying to tell Flash that the following method is legal for the main timeline in the actions panel and send the timeline to frame 20
[Code]...
View 4 Replies
Nov 18, 2009
I am getting this error TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::TimerEvent@2c7eba1 to flash.utils.Timer.
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()
Enemy.as contains
Code:
package
{
import flash.display.MovieClip;[code]...........
View 2 Replies
May 3, 2011
I keep getting output errors in my fla file, at first it was: TypeError: Error #1009: Cannot access a property or method of a null object reference.and now it is: TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event@3916d151 to flash.events.MouseEvent.
at flash.display::DisplayObjectContainer/removeChildAt()
at Project3_fla::MainTimeline/ongoPage2()[Project3_fla.MainTimeline::fra me32:7]
Here is the code for the frame above:
import flash.events.MouseEvent;
next1_btn.addEventListener(MouseEvent.CLICK, ongoPage2);
function ongoPage2(Event:MouseEvent):void {[code].....
View 2 Replies
Sep 20, 2011
TypeError: Error #1034: Type Coercion failed: cannot convert glossary_fla::MainTimeline__Preloader__@31f46f21 to flash.display.Loader.at glossary_fla::MainTimeline/fexit()
View 2 Replies
Jan 25, 2012
I'm using Action Script 3 and CS4I'm trying to create a product and when i play it I get this error:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::MovieClip@16ed7e1 to flash.display.SimpleButton.
at flash.display::MovieClip/gotoAndPlay() at Homepage_fla::MainTimeline/after()
[code].....
View 4 Replies
Jan 31, 2012
error is TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event@3a242e71 to flash.events.ProgressEvent
and code is
import flash.events.ProgressEvent
import flash.display.MovieClip;
import flash.events.Event;
[code]....
View 1 Replies
Oct 31, 2009
I've been trying to get JSON working with AS3 for a while now, but to no avail. I keep getting the following error when I get the JSON back:
TypeError: Error #1034: Type Coercion failed: cannot convert Object@26331c41 to Array.
I've tried changing the datatype of the variable "jsonData" to object, which fixes the error, but I'm not entirely sure how I can parse the data.
package
{
import flash.display.Sprite;
import flash.net.URLRequest;
import flash.net.URLLoader;
[code].....
View 1 Replies
Jan 3, 2010
I am getting the following error: TypeError: Error #1034: Type Coercion failed: cannot convert "2010-01-02 23:28:17 UTC" to Date.
I am using WebORB to transfer data between Rails and Flex. The data coming from Rails is of type: 'ActiveSupport::TimeWithZone'. I am trying to assign it to a Flex 'Date' data type.
View 2 Replies
Jan 20, 2010
I need to get a grip on arrays and XML data but I'm having trouble understanding how to turn xml data into useful data.I load my XML with this code:
//set values for XML data file
private var XML_URL:String = "http://www.mysite.com/media/locXML.xml";
private var locXML:XML = new XML();[code]....
Error #1034: Type Coercion failed: cannot convert []@1488bac1 to Function.
What I would like to do is omit those two last lines and then add the event listeners in a loop at the end.
View 3 Replies
Jan 26, 2012
having some trouble with hitTestObject and now Flash is telling me it can't convert my ip to a display object.. my problem is the ship class extends Sprite to begin with so I don't know what's going on:Compile error shows this:
TypeError: Error #1034: Type Coercion failed: cannot convert Ship$ to flash.display.DisplayObject.
at Control/controlgame()
[code].....
View 1 Replies
Oct 28, 2009
In trying to remove default text from an Input field upon clicking inside of the field, this type error appears...TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::FocusEvent@2a1aa89 to flash.events.MouseEvent.
Code:
var itNewMessage:TextField = new TextField();
itNewMessage.type = TextFieldType.INPUT
itNewMessage.wordWrap = false;[code].....
View 1 Replies