ActionScript 3.0 :: Load A Swf In A Little Rectangle And Not The Whole Window

Nov 25, 2009

i am trying to load a swf in a little rectangle and not the whole window.

View 3 Replies


Similar Posts:


Actionscript 3 :: Scrollbar With Sprite And Rectangle Won't Move Text, Just The Rectangle It's Painted On?

Mar 8, 2010

For those of you still with me, I am tasked with making some scrollable content in Flash. Load in a TextFile using LoadURL(), then display it. To get the text, we've written our own class TextFieldExtended, which is basically just there to give the textfile location to the constructor and then have the class do the various steps of getting it and loading it for you.So I needed to get a Scrollbar, which I got hereThe thing is, it works with Sprites.After trying to get it to accept TextFieldExtended, I bumped into a block, since the scrollbar relied heavily on a Sprite property that TextFieldExtended didn't have or could have.

So I tried adding the TextFieldExtended instance to a Sprite instance using addchild.A problem occurs here that I do not know how to handle. It seems that a Rectangle is drawn and the Text is drawn on that. I say this because the scrollbar moves the Rectangle up and down a bit, but the text doesn't scroll, just the Rectangle it is positioned in and the text then moves along with it.My question: can this be fixed, or is does this implementation of scrollbars need a lot of adaptations before this is possible?

View 1 Replies

Draw Rectangle Should See Little Bold Circle To Indicate A Perfect Rectangle

May 20, 2009

I draw a rectangle i should see a little bold circle to indicate a perfect rectangle, I seemed to lost mine, can somebody please tell me how to get it back!

View 2 Replies

ActionScript 3.0 :: Convert Rectangle To Curved Rectangle?

Aug 2, 2011

I am trying to convert a rectangle(actually multiple rectangles) to a curved rectangle. I think it should be pretty easy but I guess i am stupid. Basically I would have a start position and stop position (many of these), and they would be converted to curved rectangles and follow in a cicrle around.

View 0 Replies

ActionScript 3.0 :: Creating A Rectangle Inside Of A Rectangle?

Jun 26, 2010

I would like to create a rectangle inside of a rectangle, starting approximately 15% inward from the right side of the other rectangle.

I know how to create rectangles with:

Code:
var newHotRect:MovieClip = new MovieClip();
newHotRect.graphics.beginFill(0x00FF00);
newHotRect.graphics.drawRect(0, 0, 100, 100);
addChild(newHotRect);

But how would I make another rectangle on top of that (the black one pictured) that is approximately 15% from the right?

I toyed around with .right, and .bottomright with no success. Can anyone lead me in the right direction? or even finding the x and y of the upper right or bottom right side of a rectangle?

View 10 Replies

ActionScript 3.0 :: Rectangle To Rectangle Collision Response?

May 20, 2011

how to respond when a rectangle hits another rectangle? I already know how to detect the collision, I just don't know how to respond to it. I'm just trying making a simple side-scrolling platform game where I have platforms I can walk on and bump against on all sides. I have searched everywhere and just can't find the tutorials I'm looking for.

View 6 Replies

ActionScript 3.0 :: Load Swf Onto New Window?

Jul 16, 2011

I'm using the following code to try to open a new window and load an swf onto it. The window opens and it says the swf is being loaded, but I see nothing. If you remove "newWin." From the very last line it loads the swf properly on the 1st window. The only object on the stage is a button with the instance name "test_btn".

ActionScript Code:
import flash.display.NativeWindow;
import flash.display.NativeWindowInitOptions;
import flash.display.MovieClip;

[Code]....

View 1 Replies

ActionScript 3.0 :: Load Swf In Native Window?

Jul 17, 2011

How do I load an external swf into an external window? I'm using the following code, it works if i add the swf to the original window's stage but not if i add it to the new window's stage.

[Code]...

View 9 Replies

ActionScript 2.0 :: Load In New Window From Txtfile?

Jun 10, 2004

I want a textfile to load a site in a new window:

Code:
<a href="http://www.site.nl", "_blank" >www.site.nl

but this doesn't work..

View 14 Replies

ActionScript 3.0 :: Load External Swf File In A New Window?

Apr 6, 2009

I've got a few .swf files with video tutorials I've created using Captivate 4.I wanted to link them so I've created a main screen with menu with buttons in Flash.I've added AS to load the external swf files but they load in the same window. How can I load these .swf files in seperate window so that you could get back to the main window after you've finished watching?[code]...

View 8 Replies

ActionScript 1/2 :: Load Window Component With Button?

Jul 27, 2009

I found two tutorials that both contain pieces of what i am looking for but i cant seem to figure them out and get exactly what i want. Here is the first one[url]...

In the first one, the general idea is what i am looking for. Except that i want to load a movieclip and not an image. My problem in this one is the button component that is used. I have no clue how to skin or customize the button, and i cant find a good tutorial to help me so i figured it might be easier to just change the actionscript for this. I want to be able to create my own button (instance button) and use that so that when people release that button, the movie clip pops up![url]...

View 10 Replies

Load External SWF App In A New Air Window With Resize Functionality?

Mar 8, 2010

I'm trying to load a local SWF Application in my Air Application via the SWFLoader class. The SWFLoader class is displayed in a new Window. Therefore, i'm trying to resize the window automatically, when the Flash Application is resizing. But here's the problem. The SWFLoader does not get any events when the loader App has been resized.

The Problem seems to be the Sandbox Restrictions. I'm able to call methods in the childSandboxBridge and parentSandboxBridge Objects that i've set in the LoaderInfo of the SWFLoaders content (the loaded SWF Application). But i cannot listen to any ResizeEvents or something like that when i'm resizing the loaded App.

View 2 Replies

ActionScript 2.0 :: Load External Swf In New Flash Window?

Dec 8, 2009

I want to load external .exe or .swf in new flash window.I do not want to open it in an internet window.I want to open an .exe and click on a button that will open another .exe or .swf.I want to keep both flash windows open.I want to have the new one on top of the first one and I want it full screen.I am using Flash CS4 Action Script 2.0.I am using this code for full screen of second .exe or .swf

fscommand("fullscreen","true");

I am using this code to close the second .exe or .swf

on (release) {
fscommand("quit", "true"); }

View 0 Replies

ActionScript 2.0 :: How To Get URL Link To Load Into New Window Created Already

May 17, 2010

I am wondering what the AS code is to get a URL link in flash AS2 to open up into the new window that it already opened up the first time. Basically, I am making an online store. Once you hit the "Add to cart" Button, it opens the shopping cart up into a new window. ("_blank") Which I want it to. But now, when the shopper comes back to the window with the store in it and adds another Item to their cart, they now have 2 shopping carts open. I want it to refresh the shopping cart window that was opened the first time with the updated information, instead of opening an additional one everytime something new is added to the cart.

View 3 Replies

ActionScript 3.0 :: Play MP3 Then Load New Webpage In Same Window?

Jan 13, 2011

I am trying to set it up so that when someone goes to a page on this site, it plays the audio MP3 and then when that MP3 is completed, refreshes the current browser window with the new page. What I have so far in Actionscript 3 is that it works, but loads new page in a new browser window while the MP3 is still playing.Here is the code I have so far, all in a single KeyFrame.

Code:
var url:String = "url2file/preroll.mp3";
var urlRequest2:URLRequest = new URLRequest(url);

[code]........

View 7 Replies

ActionScript 2.0 :: [f8] Have Load Movie Open A New Window?

Nov 10, 2006

i have a m.c. button that when released i want it to load a movie but, i want the movie to open in a new window!so here is my script now:

b1.onRelease = tutorial;
function tutorial () {
_root.contents.loadMovie("tutorial_1.swf");
}

View 1 Replies

ActionScript 3.0 :: Flash Xml Url Link - How To Load In New Window

Jul 26, 2010

I have a script that is a flash based scroller that takes the information from an xml file:There are scrolling thumbnails, when you click on them it takes you to a new url page. Only it's loading the url in the same window and I'd like for it to load in a blank or new window.Here's what I have now:

Script from FLASH:
filename_list = new Array();
url_list = new Array();
title_list = new Array();

[code]...

View 2 Replies

ActionScript 2.0 :: Load Text From A .txt To A Dragable Window?

Jul 16, 2002

Ok i have a dragable window that i want text to be loaded into from a .txt. I used loadvariable and when i click my button and the window pops up no text. the close button on the window works, and i can drag it but no text. i tried pulling the text window and all its code out of the Window symbol but then the text didnt follow the window.

View 1 Replies

ActionScript 2.0 :: CS3 GetURL To Call A Page, But DO NOT Load A Window

Mar 26, 2009

So basically i have a flash application that needs to call a url when a button is clicked, but i don't want it to actually load a new window or even load the url. All the button does is call the url and it logs it, kind of like a click tag. My server keeps track of the number of times the particular url is called.

Everything works fine, but everytime i do it, it opens up a new browser window that is empty, i do not want to open a new window. I am using getURL, but that actually opens a new page, is there any other way to do this?

View 1 Replies

ActionScript 3.0 :: Change This Script So It Doesn't Load Into A New Window?

Jan 25, 2010

I have this script on an invisible button on a banner ad, but the client doesn't want the linked page to open in a new window, but rather load over the page in same window. How can I change the script to accomplish this,

link_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.sdesignsstore.com/store.html"));

[code]........

View 3 Replies

ActionScript 1/2 :: Load A URL In .exe Flash File Without Popping Up In New Window?

Apr 1, 2010

I have developed a full screen .exe flash file in actionscript 2. It controls physical lights (e.g. turn on and off) by simply calling a URL for each action. However, I don't want the called URL's to open in front of the interface. Is there a way to call a hidden URL in flash?

View 3 Replies

ActionScript 2.0 :: Load Variables Without Popping Up New Browser Window?

Jan 9, 2003

I've created a standalone Kiosk that sends data input from the user to an ASP page.

Everything is working perfectly except that since this is a Kiosk, there is no need for browsers. When I send the info to the ASP page, it pops up a new browser window.

Here is my code:
--------------------------------
on(release){
v = new LoadVars();
v.send("http://www.cube-interactive.com/clients/healthsource

[Code]....

View 1 Replies

ActionScript 2.0 :: GetURL To Call A Page, But DO NOT Load A Window?

Mar 26, 2009

So basically i have a flash application that needs to call a url when a button is clicked, but i don't want it to actually load a new window or even load the url. All the button does is call the url and it logs it, kind of like a click tag. My server keeps track of the number of times the particular url is called.Everything works fine, but everytime i do it, it opens up a new browser window that is empty, i do not want to open a new window. I am using getURL, but that actually opens a new page,

View 6 Replies

ActionScript 2.0 :: Calling SWF File To Load Into Its Own (Separate) Window

Dec 2, 2011

My code doesn't work.I use flash 8 (AS 2.0). When I click a button, I want it to load another flash file but not into the same parent/web page. I need the file to load in it's own window.
on (release) {
loadMovie("MyAccountPage.swf", "_blank");
}
After this, I still do not get a respond when I test run the script.

View 2 Replies

ActionScript 2.0 :: Load Movies - Cascading Window System?

Mar 1, 2005

I am building a site, and for each page I am using a draggable window. Each window is in a seperate swf file, so the need to be loaded.I am going to have the windows cascading so you have to close them to get rid of them.However i thought it would be nice so when you clicked the tab of a window, which is hidden beneath any other windows that are open, it pops up to the front, just like microsoft windows really.I was just wondering how i would do this, i thought about loading the swf's into levels, and thought maybe there was a script which could swap levels or something.

View 4 Replies

Jpegs - Load Images So They Pop Up In A Separate Window To The Flash Movie?

Mar 10, 2009

how to load images so they pop up in a seperate window to the flash movie, to see what mean check out this site and click one of the images [URL]

View 4 Replies

ActionScript 2.0 :: Load / Unload External Swf In Flash Popup Window

Sep 20, 2009

I have a main flash movie that has 6 navigation buttons for 6 sections of the website. Each button loads an external swf to cutdown on preloader time for the whole website. Within each section, for example section1.swf, there are a number of images you can click through, with previous and back buttons. On each image in section1.swf is a button so that you can popup a window with more related info and images. So, in section1.swf on the first image image1_mc there is a button pop_btn, and I would like it to open a popup_mc which loads an external swf. Popup_mc would have a close_btn to close the window. I have tried various things for 2 weeks, and have had no luck. I can open a popup window, or I can load a swf, but I can't figure out how to put it all together.

View 5 Replies

ActionScript 3.0 :: Full Size Swf - Window Is Resize But Not On The Initial Load?

Aug 14, 2011

I have a small snippet of code which stretches the swf to the size of the window... but it's only working if the window is resize and not on the initial load? I can't work out what's gone wrong?!

[Code]...

View 1 Replies

Flash - Load HTML Page Inside Flex Popup Window?

Feb 10, 2012

I have created a popup window in a flex website and I wanted to load a HTML page inside that popup. I tried many ways to do it but that way unsuccessful. Can someone recommend me a approach to get this done?

View 2 Replies

IDE :: Oval / Rectangle Tool And Oval / Rectangle Primitive Tool

Nov 14, 2010

I do know how to use the oval / rectangle and oval / rectangle primitive tools in the tool bar and find them quite useful, but one thing I find confusing is. A oval / rectangle primitive object can be edited later but the oval / rectangle can't. So the point is,how do we use them properly ? when to use ? Why does Adobe Flash still keep the oval / rectangle tool in their product instead of removing them with the oval / rectangle primitive tool ?

View 2 Replies







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