ActionScript 3.0 :: Unable To Use Scrollpane Component Cross-browser

May 23, 2009

I made an as3.0 website in Flash cs4. [URL]The content of the pages is placed in a ScrollPane component, that comes with cs4. It all works fine in Chrome, Opera and IE but Firefox and Safari only show the top-left 100x100px.

Here's how it works.index.html holds a variable that tells my flash where to go (agenda, djs, bookings etc.). index.html loads preloader.swf via swfObject. Preloader.swf loads theKitchen.swf and passes a variable to it so it knows where to go, and triggers the init() function.

Code:

var loader:Loader = new Loader();
var go:String;
public function Preload():void
{

[code]...

In the "mainswf" then comes some if/else statements to build the desired page. If you click a button in the menu a function is triggered with an if/else statement that checks if the page that belongs to that button isnt allready shown. If its false the source of the ScrollPane is set to that page.Every page is build in a seperate class. The class ready an XML file that holds all the text/urls to images/ video.

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Have A ScrollPane Component On The Stage And Within That Component?

Dec 22, 2010

All I want to do is have a scrollPane component on the stage and within that component I would like to have a movieclip that is essentially a list, and each list item is a button to be clicked on. I have no problem doing this if I have buttons within a movieclip, but having them in a scrollPane produces the following error:

1119: Access of possibly undefined property mcButtons through a reference with static type fl.containers:ScrollPane.It seems that I am unable to use the scrollPane component as if it were a movieclip and to use dot syntax to access it's content.

View 2 Replies

Cross Browser Resizing Of Swf Object?

Jun 9, 2011

Basically I am working on a project which I have coded using HTML, HTML5, CSS and JavaScript. The issue I have is that I want a flash object/animation to show on the first page. Now despite resizing the file within the HTML it seems that within Firefox and IE it sets a default size and doesn't fit the screen.

When tested on Safari it seemed to work fine but just doesn't show as intended on Firefox and IE.

Below you can a find a link to get a better understanding of what I mean.

[URL]

View 1 Replies

Java :: Cross Domain Calls From Web Browser

Jul 20, 2010

I would like to execute a cross domain http request from a website. Javascript is out, because most browser don't allow cross domain calls. Generally the solution is to use a proxy, but that isn't an option for this project. The other things I was thinking about would be to use Flash or maybe Java. Are there any other platforms that I could use?

View 4 Replies

IDE :: Cross Domain - How Browser Cache SWF And Its Contents

Sep 24, 2009

How the browser caches .swf and it's content? For example, if I have an image slideshow that load data specified in XML on the domain, will it be cached for access if the same swf is used on the domain or does it have to be re-cached?

View 2 Replies

ActionScript 3.0 :: Publish Swfs For Cross-browser Support?

Feb 4, 2010

I've tried publishing CS4 swfs in both Flash 10 and 9, but the pages are acting strange in various browsers. For example:

On PC FF and IE when hitting back button in browser the site disappears.

Sometimes PC site won't load. Says "Done with errors."

In FF, the page is coming up blank.

What is the best way to publish swfs for cross-browser support?

View 4 Replies

Flash - Invisible Stage Background (Cross Browser)?

Feb 1, 2011

Is there a cross-browser solution to making a flash players background invisible? I have a swf movie that I want to sit on a faintly stripped background. I could place the same background in the Flash movie and sit it with CSS - using hacks for i.e. to make the backgrounds match up, but wondered whether there was a simple way of turning the background off?

View 1 Replies

JQuery :: What Audio Formats Necessary For Cross Browser Support

May 24, 2011

I'm using jPlayer in a website, which is a cross-platform/cross-browser jQuery solution for audio and video playback on a website. On my website, I will have users upload files either in MP3 or OGG format. I wonder though... in order to truly stay 100% stable on any browser or platform, wouldn't I need to support a corresponding OGG for every MP3 uploaded (and vice-versa)? I know jPlayer uses HTML5 when it can and will fall back to Flash when necessary, but I didn't know if you need to have that file in both formats to have it play everywhere. If I need both file formats then I suppose I'd have to convert the file to the other format using a server-side conversion. If I need just one format... then wouldn't that be just dandy! So my question is, do I need to convert? Or not?

View 1 Replies

Javascript :: Cross-browser Solution To Work With SVG Files?

Dec 9, 2011

I'm working on a project that originally required me to use <area> elements and 40 copies of a single GIF image to have a hoverable and clickable <img> tag. I suggested SVG, and the client agreed to use SVG instead, as it was easier to work with for both of us.

Anyways, my question is, what cross-browser JavaScript SVG library will allow me to display and interact with pre-made SVG images.

I know of these libraries:

Raphaƫl: I'm currently using this along with a SVG loading plugin. But that plugin does not support Inkscape or Adobe Illustrator SVGs (i.e. most SVGs). cang: This library looks promising, but it requires <canvas> support, which IE doesn't have natively. svgweb: Another more-promising library. It requires Flash, but most IE users have Flash. jQuery SVG: It seems to be able to load SVG images, but development seems to have died. And it requires me to use a modified version of jQuery 1.3.

My client would like to provide somewhat-arbitrary images to my script and have chunks of them be "selectable" (see my demo here).

View 3 Replies

Cross Browser Embed String With Flash Object Not Showing

Sep 2, 2011

This is my code [code]Basically what I'm doing is creating a string with a flash object and embedding into a new window. Now this works perfectly with IE9 and Firefox but for Chrome and Safari I have to resize the new window and then the flash object appears.

View 1 Replies

ActionScript 3.0 :: Flash ScrollPane Component?

Nov 23, 2009

I have a scrollPane component set up with a long form in it.  When a user gets to the bottom he can submit the form, the button then navigates him away from the scrollPane.  If the user comes back to the scrollPane, the content in the scrollPane is scrolled all the way to the bottom where they clicked away.  How do I reset the content so if they return to the form, the top of the form is visible in the scrollPane instead of the bottom of the form?

View 1 Replies

ActionScript 3.0 :: X And Y Properties In ScrollPane Component?

Jan 18, 2010

I have a small problem with ActionScript in a SWF file I'm creating. It is a ScrollPane component where I want lo upload multiple buttons with links to Web pages. I have everything prepared, a ScrollPane created and buttons as well (about 30). What I cuden't find is how to locate the buttons on stage with the properties X and Y, how introduce the properties for each of the buttons. I still do not handle well ActionScript and the manual I have is very basic.

View 2 Replies

Professional :: Control Over The ScrollPane Component?

Nov 29, 2010

I've got some moveieClips in container in a scrollpane component.The movieClips are draggable.I'd like to add extra functionality where if an item is dragged and touches the bottom of the scrollpane, it automatically scrolls up, and the reverse if you touch the top with a dragged object.I tried the scrollDrag, but I only want it to scroll once the dragged item touches the bottom or top.So I wrote this and put it in the drag function:[code]....
It needs a bit of work, and I think I can get it working, but the one thing I'm stumped on is how to make the scrollbar move too.Is there a way to communicate with the component using code (I created this component from the component inspector)?

View 1 Replies

ActionScript 2.0 :: Can't See Text In ScrollPane Component

Jan 18, 2008

I loaded a swf into a scrollpane as scrollpanes go. The only difference is that the dynamically generated textfield in the loaded swf did not come out at all while the pic in the loaded swf did.

I've posted my code for the scrollpane and also for the swf being loaded:

SWF to be loaded

Code:
var a:MovieClip = this.createEmptyMovieClip("loaded", 100);
loaded.createTextField("mytf", 101, 0, 0, 100, 100);
loaded.mytf.text = "This text should come out."; //this doesn't come out

[Code].....

View 1 Replies

ActionScript 2.0 :: The ScrollPane Component [FMX2004Pro]

Jan 28, 2004

I'm using Flash MX 2004 Pro. I'm facing a problem with the ScrollPane Component (Flash UI Components). I'm trying to load a movie clip from the library into the ScrollPane by using the contentPath property of the ScrollPane. Normally this works fine, but the catch is that the contents of MC I'm trying to load is generated at runtime from an external XML document. The MC itself is empty in the beginning and the code to generate the contents of the MC is present in the first frame of this clip.

The problem is that the contents of the movie clip get generated correctly and it gets loaded into the ScrollPane too. But the Scrollbars don't work! I've been playing around with this for a couple of days now and I can't seem to figure out why the scrollbars wont work. If you guys know a solution to this I'll be a really happy man!

View 1 Replies

AS3 :: Setting Scroll Position For ScrollPane Component?

May 19, 2009

I ve got a series of frames, each with its own instance of a scrollPane called actionText. When navigating from frame to frame I want the vertical scroll position of actionText to reset to 0.For some reason these separate instances of the component are inheriting scroll positions from one another,for example,if I scroll to 50% in one frame, jump to a new frame with a new instance of actionText, that new instance starts at 50%, not 0.

I should be able to set the scroll position by actionText.vPostion = 0 but I get Position is an undefined property of the object actionText .Roll over either the star one or star twotabs and select any action item, scroll the text down (actually a pdf converted to swf), then navigate to another action item and the new scrollPane does not default to 0. Only stars one and two are coded.[url]......

View 3 Replies

ActionScript 3.0 :: Displaying Image In Scrollpane Component

Mar 14, 2010

I need info regarding ScrollPane tool in Flash CS4. As I need to display a image in it. I have a "zoom" effect set up to where when the user pushes the + button,the x and y scale is increased. But when I does so Scroll bar does not get resized automatically. And thus due to increased size only half of the image remain visible.

View 3 Replies

Flash :: Error 1009 When Using A ScrollPane Component

May 6, 2010

I have the same problem of this post [url]...

But I try to put the component in the parent fla and it doesn't change anything and I still have the 1009 error. Any idea ?

View 1 Replies

ActionScript 2.0 :: Remove Dropshadow From ScrollPane Component?

Feb 2, 2012

I'm trying to remove the gray border/dropshadow from the ScrollPane component, in AS2.

View 0 Replies

ActionScript 2.0 :: Disable / Freeze The Scrollpane Component

Nov 16, 2005

How can I freeze the scrollpane component so that user can no more drag in any direction?

View 7 Replies

ActionScript 2.0 :: AS 2 Deactivate OnMouseDown When Clicking On Scrollpane Component

May 25, 2011

I have a CS3 scrollpane component with a movieclip loaded into it that the user can scroll up and down and side to side. In the movieclip I have a PNG and a drawing function that essentially lets the user drag and draw a yellow highlight box on the PNG. So onMouseDown the drawing function starts, onMouseMove the box size is set based on where the user puts the cursor and onMouseUp the box is actually drawn.

My problem is that if the user clicks on the scroll pane dragger bars (for lack of a better term) it draws a box where they clicked and dragged the scroll bar. how I could disable the onMouseDown if the user is interacting with the scrollpane?

I have tried setting X&Y conditions, but if they only work if the user is at the bottom right corner of the image. I also tried making an invisible button that would change a variable on rollOver and rollOut but that messed up my scrollpane somehow.

here is my drawing code if that helps at all:

PHP Code:

//
var myClipNames:Array = ["mc0", "mc1", "mc2", "mc3", "mc4", "mc5", "mc6", "mc10", "mc11", "mc12", "mc13", "mc14", "mc15"];
var i = 0;

[Code].....

View 1 Replies

ActionScript 2.0 :: Eliminate Border And Scroll Bar From Scrollpane Component?

Mar 6, 2012

I have a flash movie using actionscript 2.0. I want to delete the white border around a ScrollPane component i added to my flash movie. I also want to get rid of the horizontal scroll bar at the bottom of the component.

For better clarity of what i mean, I also attached a picture sample of the scrollPane component.

View 5 Replies

ActionScript 3.0 :: Can't Control .tabChildren Property When Using ScrollPane Component

Feb 13, 2011

I have multiple tab loops, where I enable/disable the loops as needed to control the tabbing experience. I'm attempting to set control the tabbing with the tabChildren property on the Movieclip or Sprite containers I have by setting their tabChildren property to true/false. I am trying to set up tabbing that has three distinct tab loops (three different containers), each with their own internal Sprites/Movieclips that have their tabIndex properties set as needed.  I am able to properly set tabChildren to false, and back to true. But with the component, once I set it to false, I can't set it to true again.
 
Tab loop 1: main content (a loaded SWF file)

Tab loop 2: nav bar (previous & back buttons to load different SWFS, and a Help button)

Tab loop 3: a help pop-up window (a Sprite container) with a scrollPane component used to show scrolling content
 
Things seem to work fine without the ScrollPane component involved in the mix.Have others experienced this inability to control tabChildren like this? And with regards to using components? I am not using the FocusManager class in any capacity, and believe that it only applies to the components (unless I created my own components and implemented IFocusManager, which I haven't).

View 1 Replies

Actionscript 3 :: Handle Stage Reference Of The Scrollpane Component?

Jan 24, 2012

I have created a XML driven shell where I'm calling external SWF files reading from the XML.ome of the SWFs has SCROLLPANE from the component panel of Flash is added on their respective stages. Now if I'm running those files individually, they are working fine. But it is loaded in the shell the below issue is coming.

TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.containers::ScrollPane/setScrollDrag() at fl.containers::ScrollPane/draw() at fl.core::UIComponent/drawNow() at fl.containers::BaseScrollPane/get

[code].....

View 1 Replies

ActionScript 2.0 :: Loading External Swf Files In A ScrollPane Component?

Sep 21, 2011

I am developping a player with Articulate Presenter and Flash. I would like to put thumbnails that are in a special folder in swf, into a scrollPane. The scrollPane itself is in a clip loaded when I click on the Thumbnails Tab.

Here is my simplified code :

ActionScript Code:
//  I first preload the thumbnailsPanel containing the scrollPane
var thumbnailsPanelClip:MovieClip = completeMenu.attachMovie("thumbnailsPanel","thumbnailsPanel",completeMenu.getNextHighestDepth());
thumbnailsPanelClip._y = 35;

[code]....

Well, my problem is that the ScrollPane is not scrolling until the end of the thumbnails, so I don't know if all the thumbnails are loaded. And even worse, exactly one time on two, the Scroll Bar is not showing at all ... !is it a scrollPane pb ? I use it many times in other parts of my project without any problem ... or is it because there are too many thumbnails ? I have around 30 - 40 to load ..

View 2 Replies

ActionScript 3.0 :: Disable Horizontal Scroll Bar In ScrollPane Component

Dec 17, 2009

Is this possible? I don't see how to do so in the manual.

View 1 Replies

Data Integration :: Display Arabic Text In ScrollPane Component?

Apr 22, 2008

I have RSS reader it's work fine with english but the problem is arabic text don't display in RSS reader just english and about to display arabic text in ScrollPane component that component reader info from xml file and display it?

View 1 Replies

Flash - ScrollPane Component Required In Library Even Though It Is Not Being Used By Parent Movie?

Apr 19, 2010

note: all as3 is written in CS4 and compiled for flash 10.I have a parent movie that loads a separate standalone SWF movie. This standalone movie happens to use the ScrollPane component (fl.containers.ScrollPane), and it runs correctly when launched on it's own.When I attempt to have a Parent movie load the standalone SWF, i receive a run-time error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.containers::ScrollPane/drawBackground()
at fl.containers::ScrollPane/draw()
at fl.core::UIComponent/callLaterDispatcher()

I understand that this error can be avoided by adding the ScrollPane component to the Parent Movie library. My question is why is this necessary? If the component is only used in the standalone SWF being loaded by the Loader class, why does the Parent movie require the component to be in the library as well?

View 1 Replies

Flash :: Tween Scroll Position Of ScrollPane Component With TweenLite?

Sep 10, 2010

In actionscript3,using the ScrollPane component and the TweenLite package, would it be possible to animate to a particular scroll position?

View 2 Replies

Set The Border And Background Color Of A Flash ScrollPane Component To Transparent?

Mar 18, 2011

Does anyone have a simple example of modifying the style of aScrollPane component to set the pane area to transparent?

View 1 Replies







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