Volledige versie bekijken : Flash movie lijkt "embossed", hoe verander ik dit?
103720
%Europe/Berlin %952 %2005, 23:51
Ik ben behoorlijk nieuw hier en werk nog maar erg kort met "Flash". Nu heb ik een movie gemaakt (een banner) welke ik op mijn site wil plaatsen. De achtergrondkleur van de movie is dezelfde als de achtergrondkleur van mijn site omdat ik hem mooi "weg" wou werken. Maar als ik hem nu plaats laat hij links van - en boven op - de movie een smal wit lijntje zien zodat het lijkt alsof de movie "uit de pagina steekt / embossed is". Dat was nou net niet de bedoeling. Iemand die me kan helpen dat lijntje weg te krijgen?
Laiverd
%Europe/Berlin %969 %2005, 00:15
url?
103720
%Europe/Berlin %474 %2005, 12:23
Nog niet, ben hem alleen nog maar op mijn computer aan het maken. Het gaat echt om een lijntje links en boven van maar 1 pixel, maar omdat dat lijntje wit is, en mijn pagina (en de movie) rood, is het behoorlijk storend.
Laiverd
%Europe/Berlin %496 %2005, 12:54
Ik snap dat het best storend is ;), maar zonder enig zocht op broncode wordt het een beetje een shot in the dark.
Laiverd
%Europe/Berlin %496 %2005, 12:55
Ik snap dat het best storend is ;), maar zonder enig zicht op broncode wordt het een beetje een shot in the dark.
103720
%Europe/Berlin %516 %2005, 13:24
Kan het wel naar je toe mailen, het is 230kb groot.
Laiverd
%Europe/Berlin %523 %2005, 13:33
Ik heb natuurlijk niet de wijsheid in pacht en dus is het handiger als meer mensen kunnen zien wat je hebt gedaan. Kun je e.e.a. niet gewoon even ergens live zetten? Of desnoods een zipje met alles?
John
103720
%Europe/Berlin %538 %2005, 13:55
Dag John,
Your wish is my command, tenminste binnen bepaalde grenzen.
Zie hier:
http://home.tiscali.nl/ajaxshirts/headtest.html
mknol
%Europe/Berlin %542 %2005, 14:01
maak je achtergrond kleur rood. in je swf maar ook in de code:
<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="269" width="780">
<param name="movie" value="0104.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#ff0000">
<embed height="269" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="0104.swf" quality="high" bgcolor="#ff0000" type="application/x-shockwave-flash" width="780">
</object></p>
ik heb nu #ff0000 gebruikt, maar dit moet je veranderen naar jouw rood. Hiermee moet het opgelost zijn!
Misschien zou het ook beter zijn om in je flashdocument het rode vlak groter te maken dan je moviegrootte, snap je. Dus dat het rode vlak aan alle kanten meer uitsteekt. Das een tip voor de volgende keer ;)
103720
%Europe/Berlin %554 %2005, 14:18
mknol2000 en Laiverd,
Mijn dank is groot.
Hoe simpel kan het zijn.
Bedankt voor de tips en de genomen moeite.
Marc
103720
%Europe/Berlin %564 %2005, 14:32
Verdrie, iets te vroeg gejuicht. In explorer werkt hij goed, in GoLive is ook alles goed. Maar als ik hem preview in Mozilla dan laat hij nog die witte lijntes zien.
HELP ;)
103720
%Europe/Berlin %567 %2005, 14:37
Laat maar, ik heb het zelf al opgelost. Ben zelf nu al een expert :D
Had maar op 1 plaats de achtergrondkleur veranderd, maar moest dus op twee plaatsen.
103720
%Europe/Berlin %639 %2005, 16:20
Nu het volgende,
in de movie verschijnen de "links" naar mijn andere pagina's. Het is natuurlijk de bedoeling dat, wanneer je op een van de links klikt, er een andere pagina wordt geladen. Ik weet dat je dit met de actie "GetURL" moet doen, maar ik krijg dit niet voor elkaar. Wanneer ik in de "scene" op de link "about us" klik, opent er een nieuw scherm (Symbol) waar ik de UP/OVER/DOWN/HIT gegevens krijg. Ik moet volgens mij een actie koppelen aan HIT, maar dit lukt me niet omdat de acties "grijs" blijven (en dus niet bruikbaar, zolang ik in de "symbol" zit) i.p.v zwart (wel bruikbaar, op het moment dat ik nog in de "scene" zit).
Iemand die me kan helpen?
Laiverd
%Europe/Berlin %702 %2005, 17:51
Nou wil ik niet vervelend zijn, maar die handleiding is er echt niet voor nik. Uit de handleiding van Flash 5:
Jumping to a different URL
To load a document from a specific URL into a browser window, or to pass variables to another application at a defined URL, you use the Get URL action. (Variables store named values that can be retrieved for use in scripts.) For example, you can send variable data to a CGI script for processing in the same way as you would an HTML form. Only variables for the current movie are sent.
Typically, you would use the Get URL action to load a Web page, but you can also use it in a Flash projector to open a browser window automatically and display the specified URL.
Testing this action requires that the requested file be at the specified location and that absolute URLs have a network connection (for example, http://www.myserver.com/).
For information on passing variables, see ActionScript Help.
To jump to a URL:
1 Select the frame, button instance, or movie clip instance to which you will assign the action.
2 Choose Window > Actions to display the Actions panel.
3 In the Toolbox list, click the Basic Actions category to display the basic actions, and select the Get URL action.
4 In the Parameters pane, enter the URL from which to get the document, following these guidelines:
Use either a relative path such as mypage.html or an absolute path such as http:///www.mydomain.com/mypage.html.
A relative path is a shorthand version of the full address that lets you describe one file's location in relation to another; it tells Flash to move up and down the hierarchy of nested files/folders/directories, starting from the file where you issued the Get URL instruction. An absolute path is the complete address that specifies the name of the server on which the file resides, the path (the nested hierarchy of directories, volumes, folders, and so on), and the name of the file itself.
To get a URL based on the value of an expression, select Expression and enter an expression that evaluates to the URL's location.
For example, the following statement indicates that the URL is the value of the variable dynamicURL:
getURL(dynamicURL);
For information on writing expressions, see ActionScript Help.
5 For Window, specify the window or HTML frame into which the document will be loaded, as follows:
Choose from the following reserved target names:
_self specifies the current frame in the current window.
_blank specifies a new window.
_parent specifies the parent of the current frame.
_top specifies the top-level frame in the current window.
Enter the name of a specific window or frame as it is named in the HTML file.
Select Expression and enter the expression that evaluates to the window's location.
6 For Variable, choose a method for sending variables for the loaded movie to the location listed in the URL text box:
Choose Send Using Get to append a small number of variables to the end of the URL. For example, you use this option to send the values of the variables in a Flash movie to a server-side script.
Choose Send Using Post to send variables separate from the URL, as longer strings in a separate header; this allows you to send more variables and lets you post information collected from a form to a CGI script on the server.
Choose Don't Send to not pass any variables.
See ActionScript Help.
Your code would look similar to the following:
getUrl ("page2.html", "_blank");
where the Get URL action loads the HTML document "page2" into a new browser window.
Kortom; je zet die code dus niet in de button.
John
103720
%Europe/Berlin %734 %2005, 18:38
Nou, ik heb dit dus gelezen (voordat jij het al had gepost) maar daarom snap ik het ook niet dat ik het niet voor elkaar krijg. Als ik in de "scene" aan het werken ben, kan ik inderdaad GetURL gebruiken. Maar als ik dan de movie afspeel dan gaat hij dus al naar die URL toe als de links in beeld komen (zie mijn pagina hierboven). En het is juist de bedoeling dat alle links in de movie zichtbaar zijn en dat je dan op een van die links drukt om naar een bepaalde pagina te gaan.
En dat krijg ik dus niet voor elkaar.
Er moet toch ergens aan te geven zijn wat de actie is, ALS JE OP DE LINK DRUKT. Dat zou toch eigenlijk gekoppeld moeten zijn aan de HIT-status. Ik begrijp dat dat niet zo is, maar ergens moet je toch in kunnen geven wat de te volgen actie is, op het moment dat je op een link klikt.
Alvast bedankt.
Laiverd
%Europe/Berlin %755 %2005, 19:07
Maar als ik dan de movie afspeel dan gaat hij dus al naar die URL toe als de links in beeld komen (zie mijn pagina hierboven). Dat betekent dan dus dat je script aan het frame is gekoppeld en niet aan de button. Nog een keer: selecteer je button op de stage, zorg dat het actionscript panel open is, en typ daar dan:
on (release){
getURL("blah", "targetvanlink");
}in.
John
103720
%Europe/Berlin %807 %2005, 20:23
Dag John,
Ja maar dat is het nu juist. Ik KAN daar geen actionscript aangeven. Hij laat de actions niet zien (wel in het lichtgrijs, maar niet in het zwart), wat betekent dat ik ze niet kan selecteren. Uit jouw opmerking begrijp ik dat dit dus wel moet kunnen (en dat lijkt me nu ook zo logisch, dat je aan de button een actie kunt koppelen), maar om de een of andere reden werkt het niet bij mij.
(misschien toch even de .fla mailen?)
Mvg
Marc
Laiverd
%Europe/Berlin %369 %2005, 09:51
Weet je wel echt heel zeker dat je niet de actie probeert toe te kennen terwijl je IN het button symbool zit, in plaats van op de tijdlijn waar de button staat??
Zet anders je fla maar even online.
John
103720
%Europe/Berlin %384 %2005, 10:13
Goedemorgen John, of ik het zeker weet? Het probleem is waarschijnlijk dat ik geen ervaren Flashgebruiker ben, dus ik zal wel iets verkeerd doen. Maar wat? Ik kom er echt niet uit. Hierbij de .fla van de movie in gezipte vorm.
Laiverd
%Europe/Berlin %421 %2005, 11:07
Ik denk toch dat je het gewoon verkeerd doet. De stappen:
1. bestand openen
2. as panel openen
3. button selecteren op de stage (dus NIET in een frame klikken)
4. script in as panel zetten.
Als je overigens wilt dat de button al werkt op het moment dat ie infade, dan zul je hetzelfde moeten doen voor ieder keyframe (twee dus in totaal) van iedere button animatie. If not (en je wilt alleen dat de button werkt op het moment dat ie zichtbaar is; dan alleen de button instance in het tweede keyframe selecteren.
Dan moet het werken. Anders moet je echt even een van de tutorials die bij Flash worden geleverd gaan doen. Meer dan bovenstaande is het nl. echt niet.
Je kunt het ook nog iets anders (overzichtelijker doen). Geef al je buttons een instancename (services bv service_btn)). En dan maak je een aparte actionscript layer aan (helemaal bovenaan). Vervolgens selecteer je dat frame en zet je in het as panel
service_btn.onRelease = function(){
getURL("whatever.com","whateverframe");
}
Op die manier kun je de actie voor alle buttons gewoon op 1 plek houden en dat bespaart je een hoop zoekwerk als je wat moet aanpassen.
Let wel: dit werkt alleen op het moment dat de button in de tijdlijn aanwezig is, wanneer de playhead (de rode ding bovenin) het script 'leest'. Nog een kleine tip: om je leven wat overzichtelijker te houden zou ik in elk geval alle layers en symbols in je library duidelijke namen gaan geven. Er staat nu al zoveel, dat zoeken naa de juiste layer/symbol je meer tijd kost dan nodig is. Tijd die je waarschijnlijk beter kan besteden ;)
John
103720
%Europe/Berlin %443 %2005, 11:39
Dag John
het werkt.
Heel erg bedankt.
Mvg
Marc
Laiverd
%Europe/Berlin %447 %2005, 11:44
Okay dan. Succes met je site verder.
John
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.