ActionScript 2.0 :: SWF Versus HTML Scrollbar?
Jun 15, 2010
I have an AS2 .swf file called �sample.swf� This �sample.swf� contains a proportionally resizable background image. An external .swf file �content.swf� loads on top of it. The size of �content.swf� is 900x600 px and it is positioned to the absolute center (x and y) of the stage at all times.
So basically you open the page in a browser and resize it, the background image resizes as well and keeps its proportions and the content always stays in the absolute center regardless of the size of the browser. Here�s my problem, when I resize my browser to smaller than the content size (900x600), the content gets cut off. So what I want is to activate the scrollbars whenever the browser size goes under 900x600 in either directions (x,y) You tell me if it�s possible. I am open to other solutions as well.
Here�s my html code.
HTML Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7" />
[code]....
View 1 Replies
Similar Posts:
Sep 15, 2010
How do I get vertical scrollbar to appear in html?
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
[code]......
View 1 Replies
Jan 25, 2009
I would like to place a scrollbar in the HTML page that is in the iFrame. I also would like to remove or hide the original scrollbar from the iFrame (without using the scrolling="no" since this stops scrolling all together). Is any of this possible? Am I able to control HTML scroll with a Flash scrollbar? Will I need to use javascript?
I understand my way around both actionscript, html, CSS, and some javascript....if any of this is a possiblitiy could you at least point me in the right direction? Would this be better if I built .PNGs and created Divs to build the scroll bar on the HTML page?
View 0 Replies
Sep 1, 2009
I made a smooth scrolling scrollbar in Flash - it works fine except when I upload it to my server/domain the scrollbar lags a bit and is not really smooth. The swf runs very smooth on my desktop but when embedded into html and uploaded, the movie clip that the scrollbar is scrolling doesn't animate smoothly, it jumps. Is there any way to make it go faster?
View 0 Replies
Feb 15, 2011
I've made a website, [URL]. the stage size is 1000x590. this is big enough for most screens. but some small ones or if they have large amounts of toolbars, cut off the top and bottom of the stage. so what I want to do is, if some parts get cut off, I want scroll bars to appear so you can scroll and see all of the site. it seems to have been done on the [URL] website.
View 5 Replies
Feb 10, 2012
I have a scrollbar and it works as a swf locally. It works in the html file too UNTIL I add too much text. Then the dragger "sticks" so it sort of works, but works really poorly. I'm not sure why adding too much text would cause the scroller / dragger to have problems, but it is.
View 2 Replies
Jun 6, 2010
I have made a website that includes a section that loads some external text into a dynamic text feild called event_info. I have also added a vertical ScrollBar component to it. its target name is event_info.This is the code
var url:String = "events.txt";
var loadtext:URLLoader = new URLLoader();[code]...........
The SWF plays everything fine. However when I put the SWF into Dreamweaver and test it out in HTML, the ScrollBar appears as disabled.
View 4 Replies
Sep 21, 2009
I have a flash movie within it quite a few scenes. When I go to a certain scene it has a movie clip on it (UGFT_MC). Within this I have a dynamic text box (UGFTtxt). I have the render text as HTML selected and the variable called "data". On my main timeline at the start of this scene I have the actionscript: loadVariables("UGFT.txt","_root.UGFT_MC");
Within my text file I have the following:
data=<B>All the code I want in my text box</B>
<p><img src="test.jpg"</p> etc.
This part all works, except I have lots of text and images in the text file and need a scroll bar on my dynamic text box. I have tried the UIScrollBar and it only works some of the time, and there is no pattern as to whether the scroll bar will appear. Quite often it is just a grey area. Though the top of the text called from the file is visible.
View 0 Replies
Oct 28, 2008
Simply put, what I'm trying to do is create a Dynamic Textfield with custom scroll bars via this tutorial [URL], that renders an external HTML file with CSS attached as its content instead of images like in the tutorial. I've tried a mix and match combination, ultimately, when I test the movie, the scroll bar works, but I see no content to scroll through. I have attached my project file.
prototype.fla [ 80 KiB | Viewed 730 times ]
View 6 Replies
Mar 7, 2010
The problem is that when the site is being watched on, say a 10 inch notebook where the height of the screen is only 600px, the site is simply too big and it won't show all the content on the site.I was hoping there was a way to, either via actionscript or javascript(which I know next to nothing about), would be a way to tell the browser to use a normal HTML scrollbar when the stage size becomes too small ...If I haven't explained my question good enough or I need to post my actionscript code, I can do so when I get home.
View 10 Replies
Dec 22, 2010
So I published my Flash Movie using the HTML settings of Match Movie Size, rather than Fit To Screen (fit to percent, I believe it is) under the publish settings options. This way it works great, but there is no scrollbar on the browser. So my stage size is pretty big, lets pretend its 1200x1200 lol. So, now I want every monitor in the world to be able to see the entire page. I do not want it to fit to their screen, but I want them to be able to scroll down using their browsers scrollbar rather than a scrollbar within the SWF itself.
So imagine you are on a 15 inch monitor, and you are browsing my 1200x1200 HTML page, calling the SWF. You need to be able to scroll down to see the bottom, and scroll right to see the right side. Why is the browser scrollbar not appearing? Is there anything I must do?
View 3 Replies
Apr 26, 2009
how I would convert this vertical scrollbar into a horizontal scrollbar
heres the code:
onClipEvent (load) {
diff_y = bound_box._height-scroller._height;
bounds = bound_box.getBounds(this);
top = bounds.yMin+(scroller._height/2);
bottom = bounds.yMax-(scroller._height/2);
[code]....
View 3 Replies
Aug 4, 2011
I am designing a web application in Flex 4 and currently facing an issue rendering advanced HTML tags and entities in Flex 4. All I want to do is basically render an HTML text coming to me something like the one given below:-
[Code]....
View 3 Replies
Jul 14, 2011
-FPS between FLV and Flash file.If I load an external FLV file (24fps) into Flash file(30fps), then the FLV file will be played by 24fps or 30fps?
View 6 Replies
Feb 5, 2006
I'm working on a Mac. Now I made a site and when I compare colors on pc I get a huge difference:s. My green grey looks like it's black. How do you manage to get the colors wright on both platforms? The calibration of my screen is perfect for print.
View 1 Replies
Feb 4, 2010
A Video-loop at 25fps imported to flash, embedded, plays fine if the project fps also is 25fps.But i also want to add a 3D Carousel menu, but at the projects 25 fps it goes a little bit choppy when rotating quick.So I try to change the projects fps to 50, and voila, the menu looks good but the video plays to fast.The video should alternate between clips randomly, and the clips has to be preloaded, thus its embedded in the swf (...or could this be done with flvs?)5-10 clips.
View 2 Replies
Oct 27, 2011
I'm working on a new portfolio, full flash website for myself and so far I've been working on my Macbook Pro almost entirely. The website is somewhat heavy in graphics/animation however nothing too big, all pages are around 500kb or less. Running the website on my MAC in any browser it looks perfect, the animation runs smooth, everything goes great. However, when I try to run the same website on my PC which is pretty good, the whole website feels a little bit choppy and laggy and I'm not sure why. It feels like it chokes for 1/4th of a second every like 2-3 seconds, lower FPS basically.
View 11 Replies
Jun 22, 2009
I have an application that I support but did not create. I need to test it on FMSS 3.0 but the developer version has both Streaming and Interactive Server enabled. Is there any way to disable the Interactive Server in the Developer Edition so I can confirm the application works on Streaming Server without influence from Interactive Server? The application works on the development server but when I move it to the production Streaming Server, it does not respond the same.
View 10 Replies
Jun 9, 2010
I am planning to start a new project in as3 and I want Dependency Injection in the project. I found that parsley and Robotlegs are two popular frameworks for implementing DI in AS3. Which is the best one among these two?
My main requirements are
lightweight
minimal learning
extensive documentation and active helping community
View 4 Replies
May 5, 2011
In Flex world, is DTO / VO same as Presentation Model?
View 2 Replies
Aug 14, 2007
when i'm coding directly on the timeline, i usually create a var like this:
Code:
var home:MovieClip = this;
so i always have something to reference the main timeline's scope. how could i do this in a class? delegate.create gets a little confusing.
i tried a few things like the following:
Code:
class com.myClass
{
public var className:String = "myClass";
public static var version:String = "0.0.1";
[code]...
of course this is redundant because it'll scope just fine as parseNews();, but i'm just wondering why it's letting me scope it like this here and not in the onLoad declaration?
View 6 Replies
Mar 15, 2009
I'm animating various squares that needs to move "smoothly" on the screen.I've tried with the basic Tween and with TweenLite at 30 and 60 fps and the animation still choppy while at 90 fps looks better.
View 4 Replies
Jun 29, 2009
Sometimes one works while the other doesn't, and vice versa.
View 2 Replies
Dec 15, 2010
So I'm working on a as3 site that allows for users to signup/login, and I'm torn between using cookies vs SharedObjects to remember login info, I've been googling about it and I find a lot of people are super paranoid about LSOs, so maybe I should just go the regular cookie route?
View 10 Replies
Mar 8, 2011
I'm trying to load YouTube playlist feed data and I'm having some trouble with the ATOM version, which is the YT default. I'm having no problems with the RSS version, but the RSS takes a few minutes longer to update when making changes to a playlist. I can load both and toXMLString(); both feeds but I'm getting an error when I try and parse the ATOM feed.So if the ATOM feed looks like this:
HTML Code:
<feed ... >
<entry>...</entry>
</feed>
Shouldn't I be able to get the following trace to work after the completed load where playlistXML is my new XML for the feed:
Code:
trace(playlistXML.entry[0].title);
I'm getting a "TypeError: Error #1010: A term is undefined and has no properties." when I try and output that title data.And the RSS is like this:
HTML Code:
<rss ... >
<channel>
<item>...</item>
[code]....
View 2 Replies
Sep 20, 2010
I have been using the flashvars from swfobject for a long time to pass info into my swf for specific outcomes. I am just starting to publish everything using flash player 10 and wasnt able to get my variable to be seen by the swf. maybe i was doing something incorrectly with this new file? but i then took code from my older files and they didnt work either... then i published down to flashplayer 9 and it worked perfectly... ???
i am using swfobject 2.2 and my code for passing the flashvar is
// Flash Code:
Code:
var r:int = root.loaderInfo.parameters.varName == null ? 0 : root.loaderInfo.parameters.varName;
[code]....
View 1 Replies
Aug 19, 2010
So I wrote a CS4 Illustrator plugin that loads a SWF as its user interface. Works great on the mac, but I am having a problem on Windows:The .swf needs to be compiled with the "-use-network=false" option set in order to access some files on the local machine. HOWEVER when that option is set, all of my "Externalinterface" calls break down. When "-use-network=false" is not set, then I can't access the local files, BUT my "externalinterface" calls (which communicate with the plug-in) work just fine.
The SUPER frustrating part is that
A) it works fine on the mac, and
B) on window, I don't even need to set the "-use-network=false" option for the swf to access the files IF the .swf is loaded in explorer.I'm not sure if using AIR is possible, but I'm trying that next since AIR can access both local and network files without all the sand box hokey-pokey.Also CS5 is not an option for me for this project.
View 3 Replies
Sep 27, 2011
i am at the last part of my project. it worked all well and reads all text fields from a text file as seen on :[URL]now i am trying to get the same thing working from MYSQL.Notice that the text file i used for index2.html is called [URL]and it was a direct copy/paste from the php page that gave the results from the MYSQL query. [URL] The problem is i am getting an error in [URL] which uses the php to get the text for the dynamic fields.
I get the following error:
TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()
at final_fla::MainTimeline/onDataLoad()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
my flash movie has 113 buttons called button_1 --> button_113 and 113 dynamic text fields tcname_1-->tcname_113
my AC3 code is the following:
// button links: to all buttons to open in iframe 'tdes'
// link corrosponds to button number
// i have 113 buttons.
[code]....
View 5 Replies
Oct 10, 2009
For developing simple games with the Flex SDK, what are the consequences of using a Canvas object, versus a UIComponent object, as a drawing surface? Are there performance issues with either one? Are the methods generally the same? Searching around, it seems that most sample code I've found uses UIComponent. Is this just customary, or are there reasons?
I already know one odd difference - I had developed a simple Pong game using:
public class MyGameCanvas extends UIComponent
and then decided to replace UIComponent with Canvas. This caused the line to fail:
[Code]...
However, I have to confirm something, being new to Flex and the various terminology. I'm presuming that people mean I should not be using MXML for games, when they said Flex SDK. Since I thought the Flex SDK was what provided the compiler that generates .swf files. Otherwise, where/how would I even compile AS3?
Assuming that's the case, then my question would be about the suitability of using both MXML and AS3 for (simple) games. Based on what I've read about both, it seemed like the intended use of them was MXML for the interface elements, and AS3 for everything else. Is the overhead that bad for MXML?
View 3 Replies
Dec 23, 2009
I'm working on a video player and I initially developed the player with everything in the .FLA file with no classes. Then I started modularizing my player into classes and realised that my classes are static methods rather than instance methods which doesn't seem to be needed in my player. My question is - is this a bad design to have all of your classes methods to be static rather than instance methods ? As I dont see the need (yet) so that's why i geared more towards static methods, is this a bad design?
View 1 Replies