Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Google Maps: Interesting Thought...


Have noticed that alot of people are embedding google maps into threir html pages - as in this tutorial: http://blog.explorationage.com/artic...han-10-minutes

Now you know what i'm going to ask next don't you?!

That's right. "I wonder if it's possible to embed it into a flash page."

i know this is a little far fetched but it does seem to be vector based (cutch, clutch, straws, straws). Anyway - I'd love to add this to a flash project I'm working on right now without having to make a java p0p-up!

tnx




FlashKit > Flash Help > Flash ActionScript
Posted on: 01-19-2006, 05:33 AM


View Complete Forum Thread with Replies

Sponsored Links:

Yahoo Maps Vs. Google Maps - Overlay
Hello,

is it possible to do the same thing with Yahoo Maps Flash API?
any idea? tutorial? .fla?

http://nycsubway.eyebeamresearch.org/?DIM=400
or:
http://www.onnyturf.com/subwaymap.php

I like yahoo Maps a lot, but this google map feature is great!
thanks!

View Replies !    View Related
Google And Flash Thought
Hey
I'm thinking out an concept for an other flash portfolio site.
I was planning to do it completly in flash since it's mosty images.
But the problem with that would be that other content like the biography and other text would not be accessable by google.

would the next idea be a good solution:
I'll use a topframe for navigation and a mainFrame for content.
I'll make some "hidden" html text pages for the mainFrame for google to link to. these pages wiil NOT be in the top nav. the nav will link to the swf alternatives. (so when you 'land' on the html content and navigate further than you leave the html for good (the rest of site will be swf communicating with each other)).
Will this work???


another idea was to make a splash page with a 'ENTER' button and somewhere down all the text info very small , which propably (hopefully) nobody will read.

How do you guys try to tackle this search engine problem

View Replies !    View Related
Google Maps Api
has anyone on the forum had any success integrating the google maps api into their flash movies.

rat

View Replies !    View Related
Google Maps
I know there is a quick and easy way to embed a google map in an html doc, but what about Flash. Is there any way I can get a google map to display in Flash?

As always, any help is appreciated.

View Replies !    View Related
[F8] Google Maps
Hi, I'm designing a contact form for a client.

Is it possible to create a button that links you to the Google map showing the location of my client's office on the map (in a pop-up window)?

If so, how?

Thanks in advance.

View Replies !    View Related
Google Maps
Hey does any 1 know how 2 use google maps with flash sdk??
I dont want to use flex..

every time i run the flash map it says map not found.. And i have no idea where to put the API key for it??

thanks
thivy
http://www.thivy.com

View Replies !    View Related
Google Maps And Flash
Here is a strange one for you, is it possible to put a google map into flash?

A google map is placed onto a html page with a DIV tag like in this page http://www.jesterssnooker.co.uk/thingstodo.htm but I would like the map in a flash file so I can do some fancy animating around it like a robotic arm opening a door to reveal the map.

Is this possible?

View Replies !    View Related
Google Maps/mapquest
hi,
i have a website that needs to open a mapquest or google maps page with a predetermined destination and i have no idea how to write this or if it's even possible. desired result would be to go to google maps and have the address of the destination come up automatically displaying the map of the address i want it to go to.any ideas???? thanks!

View Replies !    View Related
[F8] Google Maps In Flash
Client wants Google Maps linked to his flash site instead of Mapquest.

Mapquest was a simple ahref opening to their site,
but Google Maps has some kind of javascript way of linking of would normally go into the head of an html page.

see: http://paulstamatiou.com/2005/12/04/...d-google-maps/

but it doesnt cover flash sites. Any ideas?

View Replies !    View Related
Faking Google Maps
Hi,

does anybody know how to create a tile based image/vector map, where you can scroll and zoom from one layer to another to get more details - like in google maps! please have a look at my attachment to see what i mean!

any tutorials, fla's?

thank you!
whiskie

View Replies !    View Related
Google Maps In Flash
Hi guys,


I was wondering if it would be somehow possible to integrate the following code into flash for the google map to appera within flash, like in a HTML textfield or something...


HTML Code:
<body BGCOLOR=#FFFFFF CLASS="scrollbar" onload=load()>

<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAF7DldF1hJkJs2R4cwhfFyhSEcjOsXvzSAkfyOm_O3PJ0v61jZhQqRHPlZRyixkNJcZOqr5Q7-gIe3w" type="text/javascript"></script>
<script type="text/javascript">
function load()
{
if (GBrowserIsCompatible())
{
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(41.40877804495484, 2.2064709663391113), 16, G_HYBRID_MAP);
var point = new GLatLng(41.40877804495484, 2.2064709663391113);
var icon = new GIcon();
icon.image = "http://www.fbex.com/images/fbex.png";
icon.shadow = "http://www.google.com/mapfiles/shadow50.png";
icon.iconSize = new GSize(20, 34);
icon.shadowSize = new GSize(37, 34);
icon.iconAnchor = new GPoint(6, 20);
map.addOverlay(new GMarker(point, icon));
}
}
</script>
<div id="map" style="width: 550px; height: 300px" align="right"></div>

</body>
Just copy paste that code in an html editor to see the map...

View Replies !    View Related
SearchMash And Google Maps
Hey guys,

I was having a look at SearchMash and noticed the nicely integrated Google Maps. The Google Maps seems like the normal HTML variant. I was wondering if anyone knew how they did this?

Thanks!

View Replies !    View Related
Google Maps And Flash ?
has anyone played with http://vgmap.eyebeamresearch.org/ nice code to overlay a SWF over google maps ... got it working but wondering how to plot a point in flash ....

View Replies !    View Related
Google Maps In Flash
I've been wondering how close to a google maps like interface can be created in flash. Could this be a new opensource project?

What the project needs:
-Be customizable via xml (load any map you want zooming options etc)
-Load maps dynamicaly acording to zoom level
-Easy to scale (this way it can be viewed in regular compters as well as mobile devices)
-Easy to plot points and save to db or xml file
-As you drag map to one side it would load map images to fill empty space created.

I have created a small hack which I will be posting in a day or two so some of you may get the idea and take this idea further.

Anyone up for this challenge?

View Replies !    View Related
Map Scroll Like Google Maps
Hi,

I'm trying to make an map that can be scrolled like Google Maps, i.e., the map can't be scrolled verticaly but ca be scrolled Horizontaly.

The scroll should be ciclic, the part thar got out of window should appear in the other side, like a tile game. Can somebody help me?

Here is the fla and the swf to make things easy.

FLA
SWF

Thanks

View Replies !    View Related
Google Maps & Flash
Dear all,

Is it possible to insert the small googlempas map into your flash movie, the code for a " normal" HTML page would be:


Code:
<iframe width="425" height="350" frameborder="no"
scrolling="no" marginheight="0" marginwidth="0" src="<A href="http://maps.google.com/maps?
f=d&hl=en&geocode=&saddr=50.962393,5.772039&daddr=&mrsp=
0&sz=17&mra=mi&sll=50.962319,5.772092&sspn=0.004737,0.009978&ie=
UTF8&om=1&ll=50.962319,5.772092&spn=0.004737,0.009978&output=
embed&s=AARTsJrai4VO0C9w8f-XA8wiT0Nnr33zIQ"></iframe><br/>
<a">http://maps.google.com/maps?f=d&hl=en&geocode=&saddr=50.962393,5.772039&daddr=&mrsp=0&sz=17&mra=
mi&sll=50.962319,5.772092&sspn=0.004737,0.009978&ie=UTF8&om=1&ll=50.962319,5.772092&spn=
0.004737,0.009978&output=embed&s=AARTsJrai4VO0C9w8f-XA8wiT0Nnr33zIQ"></iframe><br/><a href="http://maps.google.com/maps?f=d&hl=e...l=50.962319,5.
772092&sspn=0.004737,0.009978&ie=UTF8&om=1&ll=50.962319,5.772092&spn=0.004737,0.009978&source=embed" style="color:#0000FF;text-align:left;font-size:small">View Larger Map</a>
Would be very nice if this would work, in case in doesn't any suggestions for a alternative?

Cheers and Thanks

View Replies !    View Related
Google Maps Flash API
Could someone please help me understand what I have to do to set it up.

The info here http://code.google.com/apis/maps/doc...tml#Setting_Up isnt helping. Ive never come across setting up a .swc file before...

Thanks

View Replies !    View Related
Invoking Google Maps Api With AS
Hi!
I have seen that to retrieve an image form google maps the only thing you have to do is:


ActionScript Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Como integrar Google Maps en tu web</title>
<script src="http://maps.google.com/maps?file=api&v=2&key=TU-API-KEY" type="text/javascript"></script>
 
<script type="text/javascript">
//<![CDATA[
 
function cargar() {
if (GBrowserIsCompatible()) {
var map2 = new GMap2(document.getElementById("map2"));
map2.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
 
//]]>
</script>
</head>
 
<body onload="cargar()">
<div id="map2" style="width: 500px; height: 300px"></div>
</body>
</html>


my question is:

Is possible to retrieve that image from flash using AS?

greetings!

Polaco

View Replies !    View Related
Drag And Scroll Ala Google Maps
I'm trying to figure out a way to allow a user to click and drag their mouse, which scrolls the Flash stage. I'm pretty new to AS, so not sure where to start.

My background image that the user will be scrolling around is 1920x1380 pixels. The player window will be however large the user's web browser window is. Ideally the stage would stop scrolling outside of the image size, but have some sort of tiled background image if the user's browser window is larger than 1920x1380. Thanks!

View Replies !    View Related
Load Google Maps Into Flash?
Anyone know of any good places to start on integrating Google maps into Flash? I know it can be done as I've seen examples, but can't think I might go about doing it?

View Replies !    View Related
Google Maps Point Error
attempting to add a point to google maps within flash and getting the following error :

ReferenceError: Error #1069: Property addPoint not found on com.google.maps.Map and there is no default value.
at googlemapTest/onMapReady()

i've imported flash geom ( import flash.geom.*; )

and single line of code is as follows -

var homePoint = map.addPoint({lat:39.991177, lng:116.387346});




I'd be very obliged if anyone can help

View Replies !    View Related
Google Maps API InfoWindowOptions Not Working
I can't seem to get the InfoWindow to work properly. Here's my code:


ActionScript Code:
private function showInfoWindow(e:MapMouseEvent):void
{
     var options:InfoWindowOptions = new InfoWindowOptions({customContent: new CustomInfoWindow(),
                                                            customOffset: new Point(0, 10),
                                                            customCloseRect: new Rectangle(65, -110, 20, 20)});
                                         
     e.currentTarget.openInfoWindow(options);
}

And here's the error i'm getting:

TypeError: Error #1034: Type Coercion failed: cannot convert com.google.maps::InfoWindowOptions@1f3a7e81 to com.google.maps.InfoWindowOptions.

Anyone have any ideas what's going on?

View Replies !    View Related
Linking From Flash To Google Maps
Hello,

I am a novice at actionscripting and need some help with linking from flash to google maps. Basically what I need to figure out is how to fill in the search field in google maps after linking to the page.

I'm working on an interactive map application, where I need to ba able to have the viewer click a location on the map, pop a window to maps.google.com, and have the field fill in with the appropriate address.

Any pointers would be much appreciated. Thanks in advance

View Replies !    View Related
Can You Get Google Maps Into Flash Without A Browser
Hi,

Is it possible to get google maps into flash without using a browser, so in the stand alone player.

Here is an example http://nycsubway.eyebeamresearch.org/ but I think it uses code that in the browser as well, so this wouldn't run in a stand alone player?

Thanks

Dev

View Replies !    View Related
Is It Possible To Use Google Maps In Your Own Flash Website?
I am doing my 1st Flash site for my wife's cousin who is a photographer. Under the "Contact" page I want to show the phone number, address, and the google map showing the address.

Can this be done from within Flash or no?

View Replies !    View Related
Linking To Google Maps - Only Part Loasds URL
Hi, i have a Flash site, and on the contact page, have added a piece of text, converted that to Symbol, and used the basic 'link' field to add the URL of a Google Maps page;
The idea was, the visitor clicks on the text/symbol and it opens Google Maps on the specific address.
I have copied the linked URL from Google Maps, but when i upload the files, and test it, i click this text/symbol and it does load the URL into a new browser window as it should....

...but only the beginning of the URL is loaded??

I cant see why though, anyone have any ideas please?

It should basically load something like this URL string:
http://maps.google.co.uk/maps?f=q&hl...oc=addr&om= 1

Thats what is in the 'link to' field.

But when i click this it loads this only:
http://ma

....for some reason it is only reading the URL string up to here, the letter 'a' of 'maps'

Anyone know why this might be, i cant think of what to try tbh, its only [what should be] a simple hyperlink

cheers

View Replies !    View Related
Call Google Maps JavaScript Function From AS?
EDIT 16 July 2007: I've changed and improved the code from the example in this post so please see my post on this date below. The problem is more AS than JS now, maybe :-) - jim

I have a Web page, not yet online, with a Google Map at the top in div tags and a standard Flash app below it in div tags to display large images from displayed thumbs, XML driven.

I want to show viewers the location on the map that the image represents, a California winery that has a picnic area, by popping up an info window. So when they click on a thumb image / button they get the big image displayed in Flash plus it opens a Google Maps info window on the Web page map. (Not in the Flash app.)

I have the AS code below in the onRelease function. I'm still mostly stuck in AS 1 but can do a little AS 2. I'll learn AS 3 in a few months. I can read JS about as well as an AS1 coder can :-) The code below is just to test the concept. I'll set the var point data from XML for each winery after this works. The page's JS is at the bottom of this post.

// Open the Google Maps info window
// add a point
var point = gMap.addPoint({lat:35.65729624809628,lng:-120.90007781982422, name:"Justin Vineyards"});
function() {
_root.getURL('javascript:map.openInfoWindow(point) ');
}

So far nothing happens on the Google map.

Google API doc for the info window:

http://www.google.com/apis/maps/docu...an_Info_Window

http://www.google.com/apis/maps/docu...nce.html#GMap2

There is this component available with some hints but it doesn't do what I want:
http://afcomponents.com/tutorials/g_map/35/

I've searched the AS.org forums and the Web but nothing on this issue.

My old AS 1 code for my XML Flash app is working fine in Flash 9 / AS 2.

Any help appreciated! The future Web site is www.winerypicnics.com. Just an old Web page there now that may not work at all at the time of this posting. Eventually I'll have wineries with picnic sites in the Western US and evaluations. Fun hobby / project, once I get this to work!

- jim


<script type="text/javascript">

var map;
var geoXml = new GGeoXml("http://winerypicnics.com/paso/PasoWineries.kml");
var toggleState = 1;

function onLoad() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(35.626200,-120.700000), 11);

map.addOverlay(geoXml);
}
}
</script>

View Replies !    View Related
Passing Urls From Flash To Google Maps
Hi all
Just a quick one for any body who has done any popup mapping from flash.

I am wanting to do a pop up that displays the directions from "A" to "B"

this string would work

Code:
http://maps.google.co.uk/maps?f=d&hl=en&geocode=&saddr=51.48408,-0.16331&daddr=51.506178,-0.200329&mrcr=0&mrsp=1&sz=13&mra=dme&sll=51.48632,-0.21785&sspn=0.075574,0.179901&ie=UTF8&z=13&om=1
the only thing is I dont want to work out the in between points but rather just pass the two lat,lon values and have the google engine complete the rest.

does this make sense??

hopefully somebody has encountered this problem before.

cheers

View Replies !    View Related
XML Store Locator With A Link To Google Maps
I need help and direction with a XML Store Locator with a link to google maps. Basically, I was asked by my company to make a store locator for our website but I only have basic knowledge of Actionscript and XML. What I would like to do is have an Input text box with a search button and an dynamic text box to display the results. Whatever is typed into the input box is what I want to search the XML file for.

I would like to have 6 variables to search for and 1 variable that holds the URL infoStoreName, Address, City, StateShort, StateLong , ZipCode, Link).

Now For example if someone typed "CA" or "California" all entries that have CA as its StateShort or California as it's StateLong atribute would be displayed, something for the rest as well.

In addition to displaying the info in the text box I would like the output to be links so that I can link the location to a popup of the location in google maps.


Here is how I my XML file looks:


Code:
<?xml version="1.0"?>
<root>
<StoreEntry>
<StoreName>Joes Hardware</StoreName>
<Address>1234 Main Street</Address>
<City>Somewhere USA</City>
<StateShort>CA</StateShort>
<StateLong>California</StateLong>
<ZipCode>99999</ZipCode>
<Link>http://maps.google.com</Link>
</StoreEntry>
<StoreEntry>
<StoreName>Jims Bakery</StoreName>
<Address>4321 Muffin Street</Address>
<City>Elsewhere USA</City>
<StateShort>MA</StateShort>
<StateLong>Massachusetts</StateLong>
<ZipCode>99991</ZipCode>
<Link>http://maps.google.com</Link>
</StoreEntry>
<StoreEntry>
<StoreName>Jacks Bate and Tackle</StoreName>
<Address>498762 Fishhook Ave.</Address>
<City>A Place USA</City>
<StateShort>FL</StateShort>
<StateLong>Florida</StateLong>
<ZipCode>11111</ZipCode>
<Link>http://maps.google.com</Link>
</StoreEntry>
</root>

Here is my Actionscript so far, Please note I didn't write this code I copied and modified it to my needs. I'm not this knowledgeable about AS.


Code:
var myXML:XML = new XML();//creating XML object
var StoreName_arr:Array=new Array()//array objects to hold StoreName data from xml
var Address_arr:Array=new Array()//array objects to hold Address data from xml
var City_arr:Array=new Array()
var StateShort_arr:Array=new Array()
var StateLong_arr:Array=new Array()
var ZipCode_arr:Array=new Array()


myXML.ignoreWhite = true;//white spaces will be discarded

myXML.onLoad = function()
{//function will be call when xml file data loaded into xml object
var full_arr:Array=this.firstChild.childNodes//here we have array of child nodes
var len:Number=full_arr.length-1//getting the no of child nodes
for(var i:Number=0;i<=len;i++)//looping trough the values
{
StoreName_arr[i]=full_arr[i].childNodes[0].firstChild//storing StoreName values in array
Address_arr[i]=full_arr[i].childNodes[1].firstChild //storing Address details in array
City_arr[i]=full_arr[i].childNodes[2].firstChild
StateShort_arr[i]=full_arr[i].childNodes[3].firstChild
StateLong_arr[i]=full_arr[i].childNodes[4].firstChild
ZipCode_arr[i]=full_arr[i].childNodes[5].firstChild

trace([StoreName_arr[i],Address_arr[i],City_arr[i],StateLong_arr[i],ZipCode_arr[i],newline]);
displaytxt.text = StoreName_arr[i] + " " + Address_arr[i] + " " + City_arr[i] + " " + StateLong_arr[i] + " " + ZipCode_arr[i];
}

}

myXML.load("sample.xml");//loading the xml file data into xml object


I can display an entry in the XML in flash. However it keeps displaying only the last one. I think I am going to need assistance fixing this.

I am still trying to implement the search feature but I still don’t know how yet. And last but not least, making the text clickable.

My guess is that I need to make invisible movie clips and place them over the text box in rows. Then add some sort of generic on (release) function that grabs the link of the line of text beneath it.


seeing that I am in uncharted territory (for me), any help will be really appreciated.

Thanks in advance.

View Replies !    View Related
Can I Create A Window With A Sort Of 'Google Maps' Functionality?
A kick in the right direction wanted please.

Hi all. I'm unashamedly begging for some help, or at least a pointer to where I can find a tutorial or something similar to what I'm after.

I would like to create a window within my page that performs just like the google maps window - in that you drag an image to the left revealing the blank space to the right, a new image loads up in that blank area, drag in the window again revealing blank space elsewhere, an image loads up in the newly revealed space. So, just like google maps, but not a map, just my own normal everyday photos or pictures from my own sevrer, not associated with any mapping technologies or anything like that. Just a sort of gallery basically, but only loading the images it needs to to reduce bandwidth and have pretty fast load times.

I guess each image will need to be absolutely positioned or have a unique reference on some sort of grid so that when that area is revealed by the drag Flash knows the next image to load(?)

I have VERY limited actionscript knowledge - I'm a web designer and can create XHTML and CSS to compete with the best out there, but ask me to do some actionscript from scratch etc and I just go blank I can quite happily hack around with something someone's already created and get it to do my bidding (most of the time), but I've not found anything like I've described, except google maps of course, and that's all Ajax based and connected to real world coordinates and has waaay more features than I need. Just a simple 'drag > reveal blank > load certain image into blank' is all I'm after. If it's possble at all!?

And I don't expect anyone to do this for me, but if you could at least tell me if this is possible or point me in the direction of something I may find useful I would really ppreciate it.

I really hope someone can help.

Thanks a lot guys,
Rich

View Replies !    View Related
AS 2 How To Link Text Input To Google Maps Route?
Hello,

What I basically want to know is how to link input fields from your flash file to the input fields of google maps (to determne the route)..This is already done at this website, and i'm wondering if anyone can tell me how this works.

thanks in advance

View Replies !    View Related
On Second Thought
Firthy, your post earlier seems also a good solution to me. I will try it out this weekend.

Greetings

View Replies !    View Related
Just When I Thought I Was Done ...
..with my first ever flash file, its only just begun. For some reason my audio gets ahead of my other stuff, even though it doesnt in the file I have here on my computer. I tried a preloader, and it might not have all gotten set up right. If someone could take a look at it and help me out I'd really appreciate it!

Thanks!

Joe

PS: yeah I'm stupid, here's the website: http://www.joeshome.net/savecanada.html
[Edited by joe71284 on 03-04-2002 at 11:51 PM]

View Replies !    View Related
Just Thought You Should Know.
Using Dynamic Text........(basic)

Always set your variable to _root.yourvariable

Make sure your text document reads.....

yourvariable= blah,blah,blah



.....In Conclusion...

Always set your variable at _root even if your dynamic text box is on a different timeline.

Peace.

View Replies !    View Related
Just A Thought ...
Hi,

I'm working in Flash 6 on a PC computer. My friend I´m working with is a designer and he is using Freehand on a Mac computer. All the graphics he creates in Freehand I receive to use in Flash.

I was thinking when I receive a pathed text, which may contain plenty of words, is there a way to tell Flash to create a Graphic instance from the same letters so I can reduce the swf file size.

Forexample if I would path the text you are currently reading in Freehand.. you may notice there are allot of "a" letters in it. Is there a way to tell Flash to create a instance of "a" and replace it with all the pathed shaped "a" in the text I imported from Freehand ?

Just a thought

View Replies !    View Related
Thought This Was Possible
can a loaded movie be made to affect the timeline of the original movie? if I have a button in a loaded movie, can i get that button to point to a different scene in the original (parent) movie. I was told it's not possible but I'm sur eit is, I just don't know how to do it. If anyone out there does, please hook me up.

vijn

View Replies !    View Related
Just A Thought
Is it possible to make your timeline go backwards?


ex: If you have a button that you want certain things to happen when you go over it, but you want it to reverse when you go off. If this is possible wouldnt it help make the file smaller isntead of adding extra frames?

View Replies !    View Related
Just A Thought...
can you create a notepad file with the code in the file to be loaded into the flash swf, basically an external action script. i am pretty sure you can, but i 'm not sure.
does anyone know?

View Replies !    View Related
Thought This Might Be Useful
here's how to make a mouse cursor without using startDrag();



make a new symbol that you want to be your cursor
put that symbol on the main stage / timeline in it's own layer on frame one ... then apply these actions to the symbol


Code:
onClipEvent (load) {
Mouse.hide();
_x = 0;
_y = 0;
speed = 1;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
thanks for the inspiration lostinbeta

does anyone know if there is a function to detect when a mouse is over a button so you can make your own lil hand thingy that the cursor normally shows when you're over a button?

hope this helps someone

View Replies !    View Related
Thought For The Day
I know how to use the 'random' function, and I know how to load text dynamically. problem arises when I try and load random variables dynamically.

What I'm trying to do is load a random quote into flash using a single text file and different variables.

text file looks like this:


Code:
one=blah blah
&two=blah etc
actionscript:


ActionScript Code:
quotes = new Array('one', 'two', 'three', 'four', 'five', 'six');
i = random(6);
thisOne= quotes[i];
trace (thisOne);  // this trace outputs an array element
 
loadQuote = new LoadVars();
loadQuote.load("quotes.txt");   
loadQuote.onLoad = function(success){
if (success){
_root.quote.text = this.thisOne;
trace (this.thisOne)  // this trace is 'undefined'.....  why??!!
} else {
_root.quote.text = "nope";
}
}


Please help. I have thought about it and realised that it's not gonna work because the loadvars looks for a variable named 'thisOne' in the file.

SO my question is, how do I force it to look for the value of thisOne?

View Replies !    View Related
Just A Thought
As I look around for things to do, I wonder, "Can I play a game against my brother who is at college right now?" Well, can I. If any one knows how to or can find a tutorial on how to make a live game possible. Please tell me. Also what language on the, server side of the game, do I need to learn?

View Replies !    View Related
Should Be Easy Or So I Thought?
I have been using this movie clip (infinite menu – referred to in a previous post)

http://www.kirupa.com/developer/mx/infinite.asp

and have finally got the movie clip working, but I have just tried to apply actions to my buttons that make up my movie clip and the links don’t work?!

the different stages of the buttons show (up, over, down, hit) but when I click on the button it wont go to the next page? I’m not sure why?

I have applied the actions as I would to a normal button, just selecting it, but when I test the movie, it doesn't transfer me to the next page when I click on the buttons?

The actions I am using are:
on (release) {
gotoandstop (foundation scroll 2 drawing, 1);
}

I am trying to attatch the fla, but am having problems?!

Any ideas? Help


Sadie

View Replies !    View Related
Not As Simple As You First Thought
Help please!

I want to create an effect where the overlaying image displays the one underneath when the mouse rolls over it. Sounds simple, however, I have the 2 images (420*290), one in colour and the other is greyscale. I want a mouse trail to reveal the colour image square by square, using a slow but lazy fade. So it looks like a ripple effect across the image. Greyscale reveals colour on the trail.

I thought about dividing the images into sections with an individual mouse over to reveal the relevant slide below, but its a bit long winded. I thought I could duplicate the same movie which fades as the mouse goes over it, but it's been a while since I have done flash.

As a 2nd pointer, I wanted the flash movie to pull different images with the same name into the movie everytime the movie loads. Keeping the images in a folder, but the image names are 'imageone_colour' and 'imageone_gscale' so it always pulls the same image.

bit long winded i know, but its hard to explain.
If someone could provide me with a soution that would be great.

Drolstrom

View Replies !    View Related
I Thought This Was For Newbies
I thought this site was for newbies.
Well, I guess I am a few levels below that because all I am looking for is a tutorial for Flash 5 that is more than 1 page long and that does not focus on some obscure subject whose title I don't even recognize. I have already done the tutorials in the program, but need much more. Any hand-holding beginners course out there? Thanks. I promise to grow up soon.

View Replies !    View Related
Simple? I Thought So Too
i have done several times before but not working today!!
very simple menu bar in left frame. then say, text in the right frame. my code for my first flash menu button(in left frame) says:


on (release) {
getURL("tContents.htm", "right");
}


what code is missing to bring this .htm page into the frame on right. i have brought the 'tContents.htm' page up in just about everything, but the dame right frame.

someone please respond, i am obviously missing something.

View Replies !    View Related
Simple? I Thought So Too
i have done several times before but not working today!!
very simple menu bar in left frame. then say, text in the right frame. my code for my first flash menu button(in left frame) says:


on (release) {
getURL("tContents.htm", "right");
}


what code is missing to bring this .htm page into the frame on right. i have brought the 'tContents.htm' page up in just about everything, but the dame right frame.

someone please respond, i am obviously missing something.

View Replies !    View Related
Just When I Thought I Was Starting To Ge It.........
Okay, what am I doing wrong!

I created a Dynamic Text Field, created a text file and through the magic of ActionScript I'm able to load the text; I've even formated some HTML to the text and it took.

I then Exported the File as an SWF, and tried it again and it still worked.

I then placed an empty MC into another MC on the main stage, the Parent MC has 5 Buttons, one of which tells the playhead that, on release go to and stop at the frame where the empty MC resides. at which point I have placed actions on that frame to load the SWF that was working fine bofore..... NOTHING HAPPENS.

the button works but that's it. Everything is in the same folder. I have used the instance name, the MC name, I have tried _root, _parent, Orphan Adny, and NOTHING.

I saw one of iaskwhy post to another member and I tried that and nothing, so I know I'm doing something wrong I just don't know what.

Please Help, I've attached a condensed ver of the file, I didn't know that You couldn't attach more than one.

This was my thinking, principleMc to test/about_Us.swf to holderMc;
Where principleMc and holderMc are the instnce names, and like I said I tried every possibility, I think, and nothing.

View Replies !    View Related
Something That I Thought Would Be Neat To Do
I'm just curious, if there is a way to have a dragable object that when you release the mouse it plays an animation, for this one it is a laser and it plays the animation.

But is there a way so the end of the laser projectile when it hits anywhere on the screen it will leave a burn mark that will fade away after say 1 minute or so?

The location of where it hits would be random so I dont know how to go about it.

The .fla is Flash MX format

View Replies !    View Related
Just When I Thought I Could Script
on a symbol on my main time line i have this...

Code:
onClipEvent (load) {
var i = 0;
}
onClipEvent (enterFrame) {
//to tell duplicates to move
if (this != _root.player) {
trace("moving");
this._x += random(10);
}
duplicateMovieClip(this, "player"+i, i);
}

it traces "moving" but the duplicates do not move!!!

this is realy pissing me off cuz i feel like an idiot!
thanks in advance!

View Replies !    View Related
[F8] I Thought It Would Be Easier...
hi again everyone.

i have a menu loading from XML, and the is a buttons for each menu item to open a XML for submeniu. All this made by duplicateMovieClip. it duplicates horizontaly.

1st meniu is loading, everithing OK, button actions also.

the each 1st menu's having a submeniu with a different number of names. one have 2 another 6 and etc.

when i press one any of 1st menu item, the submeniu is created by duplicating another MC verticaly and it puttin all the names right. when i'm pressing the another 1st menu item which submenu have a smaller number of names for expample. it rewrites how many it cans and leaves submenu names from earlier pressed 1st menu item.

I'm trying to do like this:


Code:
x.onLoad = function () {
...
_root.panel["boxx"+i].button.onRelease = function () {
if (_global.lenght > 0) {
for (var u = 0; u < _global.lenght; u++) {
_root.meniu3.removeMovieClip ("meniu"+u);//<< this line should delete all the duplicates in that MC, but it doesn't
}
}
metai = year[this._parent.i];
y.load ("xml/tattoo/metai/"+year[this._parent.i]+".xml");
}
}
}

y.onLoad = function () {
...
for (z = 0; z < infoz.length; z++) {
...
_root.meniu3.box.duplicateMovieClip("meniu"+z, z);
_root.meniu3["meniu"+z]._y = a;
_root.meniu3["meniu"+z]._x = 0;
a += 30;
...
}
}
_global.lenght = infoz.length;
}


any IDEAS?

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved