ActionScript 2.0 :: Keeping The Flash Banner Below 30K?
May 23, 2007
I am working on a Flash banner for my company here and I have a search form built into the animation. I have some specs that I need to follow keeping the flash banner below 30K. I have drawn most of the animation for the banner to keep the size down, but its still 79k. I have been testing the graphics learning more about how to optimize the images,
Anyway.. I have been deleteing parts to see where the problem is. Its the form. I have a drop down box and radio buttons. When I delete them, the K size drops to 13k. Is there a way to optimize the forms? Has anyone else had a problem with forms and k size?
I am using Flash 8, on a (bla) PC.
View 2 Replies
Similar Posts:
Oct 13, 2009
I am building a banner ad and I am using Flash CS4. I need it so when someone clicks the banner it takes them to the page in a new window. Its just a a simple URL and I keep getting syntax errors now and I dont know how to do this properly. I have tried these methods.
[Code]...
View 1 Replies
Feb 11, 2004
Im using Swishmax and I can't seem to make a url open in my flash site(so it doesnt open as a pop up but in my actual flash site) So basically that it opens in a designated space that I made for it on my site. I know that a tuturial for this exists on this site but i just can't seem to find it.
View 2 Replies
Feb 11, 2004
Im using Swishmax and I can't seem to make a url open in my flash site(so it doesnt open as a pop up but in my actual flash site) So basically that it opens in a designated space that I made for it on my site. I know that a tuturial for this exists on this site but i just can't seem to find it.
View 2 Replies
Feb 1, 2010
I have a little problem with a simple URLLoader,it simply just loads the data from an url, and processes that data, nothing complicated. But, when ever i run it, it leaves the connection open. At the bottom of the browser it says:
Transfering Data From www....
The data is read sucessfully, so it should close the connection? but doesnt seem to want to do it. Is there anyway to close all open connections, or somehow remove such message?
View 1 Replies
Mar 8, 2011
I am currently using:
right.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchRight);
function onTouchRight (e:TouchEvent):void{
player.x += 5;
as my code, and I was wondering if there was a way to keep the player moving without continuously tapping the button.
View 1 Replies
Jul 19, 2011
I have the following setup:
<mx:Canvas>
<mx:ViewStack width="800" height="600">
<mx:Canvas width="100%" height="100%">
[code].....
View 1 Replies
Dec 5, 2011
I have a project that involves playing back a video clip within my swf movie. The video clip plays fine on its own, but when brought into flash the video and audio become out of sync and the movie quality suffers dramatically. I have tried embedding and streaming.
View 1 Replies
Mar 19, 2012
So this one is a tricky one (for me) vital to the development of my project due to the fact that we can't directly modify the position of mouseX and mouseY - they are read-only variables. Basically, what I want to do is have a player able to move their mouse only within a certain triangular area when a specific instance is active. The latter bit I can manage just fine, however I am having trouble restricting mouse movement -- or apparent mouse movement.
Here's what I have done so far:
1. Assign a library moveclip to the mouseX and mouseY position in the Event.ENTER_FRAME event - although I acknowledge that this should be moved to Mouse.MOUSE_MOVE. (this does not matter yet)
2. Using Corey O'Neils Collision detection kit, do a hit test on the border instances of the area with the crosshair/cursor.
3. Offset the cursor appropriately, and then set a standard Boolean value to false so that the cursor will not keep bouncing back into the cursor over and over.
My problem is, I am not sure what the best way is to go about allowing mouse movement again. For what it's worth, this is to stop users from aiming in an unrealistic direction with a character in a top-down (ish) shooter.
Here is my code regarding mouse movement thus far:
import flash.ui.Mouse;
import flash.events.event
import com.coreyoneil.collision.CollisionList;
Mouse.hide();
var c:crosshair = new crosshair();
addchild(c);
var myCollisionList:CollisionList;
myCollisionList = new CollisionList(c);
[Code] .....
View 2 Replies
Aug 1, 2011
I wrote a singleton class to keep track of some variables across my application. I am getting a syntax error that I can't figure out, I am sure that I am missing something simple but it's been one of those days. Anyone see something wrong with my code?
The error is 1084: Syntax error: expecting rightparen before resultNumber.
public static function setResult(int resultNumber, int value): void {
switch(resultNumber) {
case 2: { this.result2 = value; break; }
case 3: { this.result3 = value; break; }
case 4: { this.result4 = value; break; }
case 5: { this.result5 = value; break; }
[Code] .....
View 1 Replies
Jan 19, 2008
what im interested in doing is, i want to create an all flash site but i want it so that whatever the screen size the user is viewing it on, that certain components on the scree stay in certain places. for exampke i want to 'bleed' the flash on the screen but whatever screen res the user has his monitor set to, that it adjusts to his size, so the name and buttons etc arent moved when the person resizes......
View 2 Replies
Mar 11, 2010
working with a AS3 flash movie button linking to an html form
I have a client that wants to keep the browser session going when it comes to a form being filled out and to pre-fill this data where necessary so basically for Flash to check the user URL and see if there are session keys attached to the URL..
I need Flash to look at the incoming URL which may already have keys attached such as 'uVB2GC1F/xGG3QX1F' and use them by adding them to a button link. These keys will be different every time for each session.
View 10 Replies
May 23, 2010
I am creating a site with lots of big scrollable text-boxes in it. Each text-box object contained some text, and two buttons to scroll up/down with. The scroll buttons each had an event listener so the text moved when you clicked them.
These text-boxes were stacked on-top of each other with all except one having an alpha of 0. If I wanted to change which text-box is active I move it to the front and call a small TweenLite animation.
To the left (outside of the text-box objects) I have an object similar to a menu. It also has about 12 or so event-listeners (one for every button).
This turns out cause A LOT of lag an it's very troublesome for my laptop to run it. reduce the number of event-listeners on the stage and also the amount of text-boxes.
What I was thinking was to add the text-boxes using AS so I only have 1 on the stage at a time but I couldn't figure out how to do it. I also thought it might be better to just use 1 big event-listeners and from mouseX and mouseY decide which button the user is trying to push.
View 1 Replies
Feb 22, 2012
I have 2 container MovieClips (mc1, mc2), each of them has a separate x,y, rotation. I want to take a child from mc1 and addChild() it to mc2 while keeping the same x, y, and rotation on the screen so you see the added child mc as if it didnt change position or rotation, just moved to the other MC.
View 3 Replies
May 15, 2011
I have recently launched a site for a client which includes an interactive flash element on the home page but it takes a long time to load (10-30seconds). I have followed advice from others about keeping image small and link movies rather than embed but still slow, the swf file is about 7.9mb which i thought was ok for the size of flash file. Does anyway else know where I have gone wrong whether it be the embedding or some other area.
View 5 Replies
Jun 28, 2010
This is driving me nuts and because it's a combination of various technologies together I have a hard time tracking the problem. I wrote a tiny HTTP server that serves .flv files; these flv files are encoded on the spot. The flv files are encoded with adobe's screencodec (I started with libflv but that was too buggy so I ended up implementing my own flv encoder). For the problem below it doesn't matter which codec I use or if I serve plain flv files instead of on-the-spot generated ones (the problem also occurs if I just send 12 h264 encoded files).
I also have a swf that I coded in as3. The as3 opens 12 connections to my server and requests 12 different flv's and just displays them as 12 different videos on the page. I tested the setup with Firefox and chrome and am using the latest flash client (version 10). The HTTP server is pseudo streaming those files; e.g. it tells the client the file is of mime type video/x-flv, tells the filesize is 2GB and just starts streaming. For sake of completeness here's a header it generates:
[Code]....
View 1 Replies
Sep 21, 2007
I am trying to create a flash banner ad that loads when a page loads and gives the user the option to minimize it. When the ad is minimized, I wanted to leave a box (that could also function as a mini version of the larger ad)that could be clicked and reload the ad if desired.
I have been struggling with how to do this. I tried creating two movies, one for the main ad and one for the smaller box that remains after the ad is minimized. I inserted the object code for the larger ad into my html and it loads and will load the smaller ad then the button (for minimizing the ad) is clicked but the smaller ad loads in the area defined by the object code for the larger ad. I am not sure how to work around this.
View 0 Replies
Feb 3, 2012
I have simple image gallery, where images are placed one next to another and the mask is revealing only one of them. Now I want to tween position of the images, but when I do that the mask is "traveling" alongside with the images..
View 4 Replies
May 2, 2006
Right I have created a flash banner ad and taken it into dreamweaver, I thought I could just link it to its website easily in DW but I can't.
Do I have to set the url in the flash doc, if so what do I do
View 3 Replies
Aug 12, 2009
i spend ages getting to know how to use flash, and make a banner and the bits that are animated have black boxes over them when i publish.
[URL]
View 6 Replies
Dec 30, 2009
We are moving to a new platform and will have a flash banner on the home page that will be changing frequently with new promos, etc. You can find the flash banner at http:[url].....I need to be able to update the swf file and have it immediately reflect on this new home page, but it only seems to be updating on the non-secure URL in Firefox and not at all in IE.
View 3 Replies
Jul 1, 2010
I'm trying to loop a Flash Banner ad. I added the code to the first and last frames on a separate action layer on the main timeline, but it's not working.
I'm using actionscript 2.0/CS4.
I have a stop action on the last frame of the last text movieclip that plays. And it seems to get hung up here. When I remove the stop action it just loops that movieclip and not the whole animation.
This is the code I'm using in the first frame of the main timeline.
> var counter:Number = 0
And this is the code I'm using in the last frame of the main timeline:
> // if its being used on the last frame use a stop(); action on the top line
> if (counter < 3) {
>counter++
> gotoAndPlay(1)
> }
View 1 Replies
May 31, 2011
I have flash as part of the adobe suite but am yet to have a real go at it. If I was to buy a third party flash banner say with a size of 100x250 and wanted to add text to it so it would then be 100x350, is this an easy process?
View 1 Replies
Nov 30, 2009
I have a banner I made which has an xml file that needs to be uploaded with the rest of the files. here is the code
[Code]...
View 9 Replies
Dec 9, 2009
i want to use xml and flash to make a banner like the one that tv.com is using so when i want to change the image or the content of the banner, i can do that by changing the url of the image and some text in the xml file. what do i have to do with flash, actionscript, and xml? is there any open source that i can use?
View 1 Replies
Jul 23, 2010
id like to know the action script code i need to add a url to my flash banner,ive found this and it works,but i need it to open as a self window and not as a blank
digilink_btn.addEventListener(MouseEvent.CLICK, myButtonFunction1);function myButtonFunction1(event: MouseEvent) { var request:URLRequest = new URLRequest("http://www.digilink.gr/fullmoon/index.php?option=com_mtree&task=advsea rch"); navigateToURL(request);}
where abouts can i add the _self so it opens within the web page?
View 4 Replies
Aug 30, 2010
I am creating a banner for a website, and I need to load an external swf of scrolling images that sits behind the layers in my flash banner. A similar example would be the website: [URL]..I have created managed to create everything in this banner except the scrolling images, so I have an external swf file that needs to load into my flash banner project.
[Code]...
View 6 Replies
Apr 20, 2011
i have a banner generate by my php code as below:[code] why i can not click to this flash to follow the adv link.
View 1 Replies
Jul 3, 2011
All I want for this banner to do is loop and start back from the beginning after it finishes. What should be the proper code? What is wrong with this?
View 1 Replies
Jan 12, 2009
I need to add a banner on top of one Flash movie i made. For this i need to change the document size of my movie but, when i'm doing this, Flash add space starting from the bottom of my document, but i want it to add space from the top.
View 3 Replies