I have a web page generated with PHP which has a lot of divs with rollover effects. It represents a table with more than 200 cells, but is made of divs instead of a table because I've read they are more efficient (specially in IE8 which has turn out my nightmare in this project!) In the same page I want to put a ticker for user messages with horizontal text scrolling. I have tried to implement the ticker in different ways: pure Javascript or with jquery pluggins: [URL] Well, the thing is that the ticker works great when the page loads, but as soon as the user starts to move the cursor over the table (rollover effects are triggered) the ticker becomes very jerky in IE8 (Firefox works almost perfect)
After a lot of work tunning my PHP/HTML code I gave up and decided to embed a flash object for the ticker in order to relieve the browser part of the scripting and delegate it to flash. My surprise was that it had the same defect. I am not an expert in how the browser deals with flash objects but I really though it would be a solution. I've found a example which illustrate the problem. [URL] This a page with a commercial flash object. It's really much more than what I need, but if you try (with IE8) to move the cursor around the right section of the page, over the elements with rollover effects, you'll notice that the ticker becomes less smooth. Imagine that within a page with 200 divs!
I have a movieclip that I want to be resized when a button is clicked. I want the animation to be smooth as if it had weight though. I read the tutorial on this but I need something slightly different, I would rather it where I can just refer to a function that is set in another movieclip. That way I could easily refer to it again and just set the height, width, and if possible, x, and y.
And my second question, is how to keep the border of my movieclip that is going to be resized the same thickness. I want the inside to be resized but the sides to stay the same width but move to stay on the edge.
How can I display alternate HTML with the jquery.swfobject plugin for browsers without Flash? I'm unable to find any documentation or examples showing how to do this.
I've looked high and low for an answer to this and I'm hoping someone has an answer, or at least a tip on how to avoid it.I'm loading a static HTML file into a container via the jQuery load() method. This static HTML file has a script which loads a swf. When I load that particular file, I get the white screen of death (WSOD) and the page explodes and everyone in the room dies a horrible death.I've had this happen also when using the jQuery wrap methods (wrap, wrapOuter, etc.) when a swf is present.It seems manipulating the DOM with a container that has a swf object causes this. Does anyone have a solution or a way that I can prevent it happening?
I am a web designer and I do like to hand code using jquery however, I think it would be much faster to use gui applications like flash to create animations especially on the fly as well as support for writing and editing source code.
I'm using the HTML5 JW Player. It sizes the HTML5 video correctly, but shrinks the Flash fallback player; here's an example page: Test Page
If you view that page in IE, you'll notice that on panel 5, the video is smaller than the space it's supposed to occupy. On Firefox, it works fine because it's using the OGG video in its HTML5 video player.Is there a way to resize the Flash video via JavaScript/jQuery to fit the same space as the HTML5 video?
I'm setting up a page that uses a flash menu to load html pages into a div container by the following call:
on (release){ getURL("javascript:getPage('test.html')"); }
The loading works fine, but some of my pages had specific jquery scripts and that's where I've struck out so far. I assumed all I needed to do was transfer the script importations, css stylesheets and the jquery functions to my main document, but it won't work.
I also tried importing the html as a the complete html, which works on it's own, but not when imported into the main document. Most recently I heard I should try shifting the jquery function calls to the end of the loaded document, to after the content, My scripts work, just not when imported, so I suppose my question is how can I make the main- and imported documents play nice with each other? What say you we make this a jump-start tutorial for all us noobs to reference?
This is sooo anoying! I can't type anything properly! The longer a line gets, the further the blinking line thing intersects with what you typed, and punctuation obstructs the text
I want to add a listener to the parent of a slider which is receiving the event from a non-gui class the EventDispatcherManager. So I tried to get the parent of the slider which should return the main class but it doesn't work. How to get the object (here main class) which instantiates an other (here a slider class) ?[code] now I did cast to DisplayObject and use .parent.parent since the slider is within another class sliderSprite but now I get null! So Is it impossible with Flash to get the Instance Creator?[code]
I am tired of people always stealing my swfs from the cache folder and taking the assets, sure I can encrypt my code but the assets are also very important to me. I have goggled and goggled till I can Google no more and finally found the eminem bonus site which contains a widget that works perfectly, it contains a swf that is just a container and the assets are impossible to get hold of.
When you duplicate a movieclip or generate one through AS hittest will allways return true. I tried to make a selection script, by putting the code below into the frame. It makes a rectangle to select charclip movieclips (duplicated and numbered, therefor the for loop) to select them, like when you select icons on a desktop. Unfortunately, it will select all charclips wether theyre inside the rectangle or not. I tried to confirm this behaviour by making a simple hittest script like the one discribed on the kirupa actionscript tutorial, with a moviecript and a duplicated one. The moviescript was detected when it actually hit it, the duplicated one was detected all the time. How do I circumvent this? Should I ducplicate in an existing movieclip or something?
I have an application where I try to load an external SWF. So, we have: My application: The Stage's dimensions are 768x1280. ScaleMode = EXACT_FIT. External SWF: It's another application where its stage is: 800x600. ScaleMode = EXACT_FIT.
The problem is that the external SWF does not modify its size although I apply "scaleX, scaleY", change its width and so on. I also tried to insert it into a Canvas container (as "How to resize an external SWF to fit into a container?" ) but it didn't solve my problem.
The interesting piece of code is when the external SWF is loaded by my application: private function onLoadedApp( evt:Event ):void{ stage.scaleMode = StageScaleMode.EXACT_FIT; trace("Loading Application.."); var loaderInfo:LoaderInfo = evt.target as LoaderInfo; loaderInfo.removeEventListener( Event.COMPLETE, onLoadedApp); [Code] .....
I also tried to do it through SWFLoader, but the external.swf's content doesn't change its original size although I add the "scaleContent" parameter.
Visual results I got: The external SWF is loaded on the suitable position and it "seems" to have 320x240 dim. But its width is a bit cropped, since if I stretch the Flash Player I achieve to see the rest of the external swf's stage. Besides, the external SWF never is resized although I shrink/stretch the Flash Player. It always remains fixed (if I trace its dimensions, I always get 800x600, although I visually see 320x240)- If I increase the stage's width of the main application, this little clip disappear.
I know the original Stage's dimensions are 800, and this is greater than the original stage of my application (768), but I think, when I do the resizing, external SWF's Stage have to be fitted in the container. It is fitted, but a part of the external SWF is not seen. It's like Flash Player remembered that the external SWF Stage's width were greater than my application's one...
I'm considering taking on a new project for myself - nothing particularly major - but I've a few questions that I'm certain anyone with some serious experience with Flash might be able to answer for me or perhaps (hopefully) guide me in the right direction for alternatives.
So I have an idea for a horizontal menu that I want to design using Flash (I've only experience with AS3 - odd as that is? - so that'll be how it'll be designed). As I'm coming to understand it's difficult/impossible to have the embedded flash interact with other portions of the HTML, so for every time that a menu item is clicked, is the only way to go about moving to that page just having the entire page effected - ie each page (home, port, etc) has to also include the embedded flash as well, or can I just have it affect some subwindow or section of the page, instead?
I have an application where I try to load an external SWF. So, we have:My application: The Stage's dimensions are 768x1280. ScaleMode = EXACT_FIT. External SWF: It's another application where its stage is: 800x600. ScaleMode = EXACT_FIT.The problem is that the external SWF does not modify its size although I apply "scaleX, scaleY", change its width and so on.I also tried to insert it into a Canvas container (as "How to resize an external SWF to fit into a container?" ) but it didn't solve my problem.The interesting piece of code is when the external SWF is loaded by my application:
private function onLoadedApp( evt:Event ):void{ stage.scaleMode = StageScaleMode.EXACT_FIT; trace("Loading Application..");
How would you go about initializing a Vector. with say the values 1, 2, 3, 4, and 5.
Logic would say you could do newVector = new Vector. ( [1, 2, 3, 4, 5] );
You could also try something like this...
var tmp = [1, 2, 3, 4, 5]; newVector = new Vector.(); newVector = newVector.concat(tmp);
But then you get a type error converting Array to Vector.
I'm stumped, am I missing something stupid or does the vector class really not play well with numeric types? You can try making them decimal numbers just to be sure they get cast as number and not int.
So im opening it up to the commuity as a programming challenge!!For something which i assumed would be very simple, writting a robust and solid multi turn spinner handle for flash in as3 has become the bane of my life.Feel free to download my attempts so far (attached), which cover the basics of a single rotation, and make it look like im further ahead than i actually am.The difficulty lies with the very specific things I personally need the spinner to do,and the fact its SO HARD to explain..Its actually used to control a piece of animation that is 72 frames long.I need the first "lap" of rotation to send the playhead to frames in the 1-36 range and the second rotation to send it to frames 37-72. So two full spins would take it to the final frame, one full spin would go half way to frame 36.
Problem is the rotator handle needs to be locked at the initial position, so a user can't drag it backwards to start with but can drag it backwards once theyve moved forwards. (think of turning on a hot water tap, many turns in one direction until it stops fully on, then the same turns back again to reach the original start position of fully off)I also need the rotator to be able to be used in anti clockwise and clockwise modes.The ideal is to be able to set the total number of animation frames to be controlled and the number of rotations required to reach the final frame, then have the spinner work everything else out for me.
I just upgraded from Flash CS3 to Flash CS5, and I've been playing with the various new features. However, I've just encountered an odd problem that I can't seem to find a solution to. In the past, I've made animated GIFs in CS3 by exporting them with the "Smooth" box unchecked. This was really convenient for me because not only could I export crisp pixel bitmaps from Flash, but I could edit it in another program later. I was planning on making some GIF animations via this process with the aid of the bone tool in CS4 and 5.
When I tried exporting frames of of a figure created with the bone tool in CS5, however, I got images that were fuzzy and often had distorted colors. After some time, I realized that this was because in CS3, I had exported the images from ActionScript 2 files, while the bone tool only works in ActionScript 3 files. Is it not possible to export "rough" GIFs from ActionScript 3 files, or is there a trick to doing that that I'm somehow missing?
I've created an horizontal sliding stock ticker that uses a xml feeder provided from another site.The ticker is now working fine if preview it doing ctrl + enter or if I see the swf with the flash player. The Problem comes when I want to preview it with F12 the browser shows me a warning that says something like this (the original text is in spanish)"adobe flash player has stopped this opration bc it may be not secure ...."I also can not see the swf file when online Here it is the code I'm using
I created a News Ticker in Flash CS3 from a tutorial on your site URL...But it just flashes "undefined" I know I must be messing something up with the location of the XML file or where it's defined in the action script. I don't think I understand the "cache" part of the tutorial or why the file can't be local? I have gone to the suggested links in the tutorial, and being a total novice, I must be missing some main point.
I just want a horizontal news ticker that loops a bunch of news headlines that are housed in an xml file. the headlines will link to pages will the full news story.